:root {
  --ink: #17352e;
  --forest: #123c32;
  --forest-deep: #092b24;
  --gold: #c79a43;
  --gold-soft: #e8c77e;
  --sand: #f1e8d8;
  --cream: #fbf8f1;
  --red: #ae4a38;
  --white: #fffdf8;
  --muted: #687570;
  --line: rgba(23, 53, 46, .16);
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(9, 43, 36, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  background: white;
  color: var(--ink);
  padding: .65rem 1rem;
}
.skip-link:focus { transform: none; }
.kente-line {
  height: 8px;
  background:
    linear-gradient(90deg,
      #d5a72e 0 9%, #161616 9% 12%, #b84838 12% 20%, #f0ce52 20% 27%,
      #0f5542 27% 36%, #161616 36% 39%, #f0ce52 39% 48%, #b84838 48% 57%,
      #161616 57% 60%, #0f5542 60% 70%, #d5a72e 70% 80%, #b84838 80% 88%,
      #161616 88% 91%, #d5a72e 91% 100%);
}
.site-header {
  position: fixed;
  inset: 8px 0 auto;
  z-index: 50;
  height: 84px;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  transition: background .3s, box-shadow .3s, color .3s;
}
.site-header.scrolled {
  background: rgba(251, 248, 241, .96);
  box-shadow: 0 8px 30px rgba(9, 43, 36, .08);
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.monogram {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: .06em;
  line-height: 1;
}
.monogram span { color: var(--gold-soft); margin: 0 .12em; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2.2rem);
}
.nav a {
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--gold-soft); }
.nav-private { border-bottom: 1px solid currentColor; }
.header-actions { display: flex; align-items: center; gap: 1.3rem; }
.language { display: flex; align-items: center; gap: .35rem; font-size: .72rem; }
.language button {
  border: 0;
  padding: .2rem;
  color: inherit;
  background: transparent;
  opacity: .55;
  cursor: pointer;
}
.language button.active { opacity: 1; font-weight: 700; }
.menu-button { display: none; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: hero-in 1.6s ease-out forwards;
}
@keyframes hero-in { to { transform: scale(1); } }
.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 23, 19, .56) 0%, rgba(3, 23, 19, .15) 45%, rgba(3, 23, 19, .66) 100%),
    linear-gradient(90deg, rgba(3, 23, 19, .2), transparent 50%, rgba(3, 23, 19, .15));
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(900px, 90vw);
  padding: 7rem 0 11rem;
  text-align: center;
}
.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--red);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--gold-soft); }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .72;
  text-shadow: 0 5px 30px rgba(0, 0, 0, .2);
}
.hero h1 span { display: block; }
.hero h1 i {
  display: block;
  margin: .28em 0 .2em;
  color: var(--gold-soft);
  font-size: .42em;
  font-weight: 400;
}
.hero-details {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin: 2.4rem 0 2.1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: .8rem 1.5rem;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--white); background: transparent; }
.button-light:hover { background: var(--white); color: var(--forest); }
.button-dark { color: var(--white); background: var(--forest); border-color: var(--forest); }
.button-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.countdown {
  position: absolute;
  right: clamp(1.2rem, 4vw, 4.5rem);
  bottom: 2.3rem;
  z-index: 2;
  display: flex;
  gap: 1px;
  background: rgba(255, 255, 255, .25);
}
.countdown div {
  min-width: 98px;
  padding: 1rem 1.1rem;
  text-align: center;
  background: rgba(9, 43, 36, .58);
  backdrop-filter: blur(8px);
}
.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1.1;
}
.countdown span {
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section { padding: clamp(5rem, 9vw, 9rem) 0; }
.shell { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.intro-grid {
  display: grid;
  grid-template-columns: .75fr 1.6fr;
  gap: 8vw;
  align-items: start;
}
h2 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}
h2 em { color: var(--gold); font-weight: 400; }
.lead {
  max-width: 750px;
  margin: 0;
  color: #4b5e58;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
}
.dark { color: var(--white); background: var(--forest-deep); }
.dark .lead, .dark p { color: rgba(255, 253, 248, .7); }
.section-heading { margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-heading.centered { text-align: center; }
.chapter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.chapter {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 1.25rem;
}
.chapter-number {
  position: absolute;
  top: -1.55rem;
  right: 0;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  z-index: 2;
}
.chapter-art {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  position: relative;
}
.chapter-art img {
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.chapter:hover .chapter-art img { transform: scale(1.025); }
.chapter-copy { padding: 2rem 0 0; }
.chapter-time {
  margin: 0 0 .45rem;
  color: var(--gold-soft) !important;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.chapter h3 {
  margin: 0 0 .9rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
}
.chapter-copy p:last-child { max-width: 500px; margin: 0; }
.detail-note {
  margin: 4rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .8rem;
}

.place-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}
.place-copy .lead { margin-bottom: 2.8rem; }
.facts { margin: 0 0 2rem; }
.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.2rem;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.facts dd { margin: 0; }
.text-link {
  text-underline-offset: .28em;
  text-decoration-thickness: 1px;
  font-size: .82rem;
  font-weight: 600;
}
.place-visual { position: relative; }
.place-visual img { aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow); }
.visual-note {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .06em;
}

.sand { background: var(--sand); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, 22vw);
  gap: .75rem;
}
.gallery-item {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.lightbox {
  width: min(92vw, 1200px);
  max-height: 90vh;
  border: 0;
  padding: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgba(3, 23, 19, .92); }
.lightbox img { max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  border: 0;
  background: transparent;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
}

.rsvp-grid {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.rsvp-heading { position: sticky; top: 130px; }
.rsvp-contact { margin-top: 2.5rem; color: var(--muted); font-size: .86rem; }
.rsvp-card {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--white);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.2rem; }
.form-grid label { display: block; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid label > span {
  display: block;
  margin-bottom: .4rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
input, select, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #aeb8b4;
  border-radius: 0;
  outline: 0;
  padding: .75rem .1rem;
  color: var(--ink);
  background: transparent;
}
select { cursor: pointer; }
textarea { border: 1px solid #aeb8b4; padding: .8rem; resize: vertical; }
input:focus, select:focus { border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
#turnstile { min-height: 70px; margin: 1.7rem 0 .5rem; }
.form-status { min-height: 1.5rem; margin: 0 0 .75rem; color: #a1382c; font-size: .84rem; }
.form-success { padding: 4rem 1rem; text-align: center; }
.form-success span {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--forest);
  font-size: 1.5rem;
}
.form-success h3 { margin: 1.5rem 0 .5rem; font-family: var(--serif); font-size: 2.5rem; font-weight: 400; }
.private-callout { padding: 5rem 0; color: white; background: var(--red); }
.private-inner { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.private-inner h2 { margin-bottom: 1rem; font-size: clamp(2.6rem, 5vw, 5rem); }
.private-inner h2 em { color: var(--gold-soft); }
.private-inner p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.8); }
.private-inner .button { flex: 0 0 auto; }
footer { color: rgba(255,255,255,.7); background: #071f1a; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  padding-block: 3.5rem;
  font-size: .78rem;
}
.footer-inner > :last-child { justify-self: end; }
.footer-names { color: white; font-family: var(--serif); font-size: 1.5rem; }
.footer-names i { color: var(--gold-soft); font-weight: 400; }

/* Guest area */
.guest-body { min-height: 100vh; background: var(--sand); }
.guest-login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--forest-deep);
}
.guest-login-image {
  min-height: 600px;
  background:
    linear-gradient(rgba(4, 27, 22, .15), rgba(4, 27, 22, .4)),
    url("images/house/IMG-20260410-WA0003.jpg") center/cover;
}
.guest-login-panel { display: grid; place-items: center; padding: 4rem; color: white; }
.guest-login-card { width: min(460px, 100%); }
.guest-login-card .monogram { display: inline-block; margin-bottom: 5rem; }
.guest-login-card h1 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 400; line-height: .95; }
.guest-login-card p { color: rgba(255,255,255,.7); }
.guest-login-card label { display: block; margin: 2.5rem 0 1.25rem; }
.guest-login-card label span { display: block; margin-bottom: .5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.guest-login-card input { color: white; border-bottom-color: rgba(255,255,255,.5); }
.guest-login-card .button { width: 100%; }
.login-status { min-height: 1.6rem; color: #f6baaa !important; font-size: .83rem; }
.back-link { display: inline-block; margin-top: 2rem; color: rgba(255,255,255,.7); font-size: .8rem; }
.guest-app[hidden], .guest-login[hidden] { display: none; }
.guest-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1.25rem, 4vw, 4.5rem);
  color: white;
  background: rgba(9, 43, 36, .97);
}
.guest-topbar button { border: 0; color: white; background: transparent; cursor: pointer; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.guest-hero { padding: clamp(5rem, 9vw, 8rem) 0 4rem; color: white; background: var(--forest); }
.guest-hero h1 { max-width: 900px; margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(3.3rem, 7vw, 6.7rem); font-weight: 400; line-height: .98; }
.guest-hero p:last-child { max-width: 720px; color: rgba(255,255,255,.7); }
.guest-content { padding: 4rem 0 8rem; }
.guest-notice {
  margin-bottom: 3rem;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--gold);
  background: rgba(255,255,255,.62);
  font-size: .87rem;
}
.guest-section { margin-bottom: 1rem; background: rgba(255,255,255,.82); }
.guest-section > button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 0;
  padding: 1.4rem;
  text-align: left;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.guest-section > button strong { font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
.guest-section > button .icon { color: var(--red); }
.guest-section > button .chevron { transition: transform .2s; }
.guest-section.open > button .chevron { transform: rotate(45deg); }
.guest-section-content { display: none; padding: 0 1.4rem 1.8rem 4.3rem; }
.guest-section.open .guest-section-content { display: block; }
.guest-section-content h3 { margin: 1.8rem 0 .4rem; color: var(--red); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.guest-section-content ul { padding-left: 1.2rem; }
.guest-section-content a { text-underline-offset: 3px; }
.guest-section-content .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.info-card { padding: 1.25rem; border: 1px solid var(--line); background: var(--cream); }
.info-card strong { display: block; margin-bottom: .35rem; color: var(--ink); }
.twi-table { width: 100%; border-collapse: collapse; }
.twi-table th, .twi-table td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.twi-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.source-note { color: var(--muted); font-size: .78rem; }

@media (max-width: 920px) {
  .nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 12vw;
    color: white;
    background: var(--forest-deep);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav.open { transform: none; }
  .nav a { font-family: var(--serif); font-size: clamp(2.2rem, 8vw, 4rem); font-weight: 400; text-transform: none; }
  .menu-button {
    position: relative;
    z-index: 2;
    width: 30px;
    height: 22px;
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-button span:not(.sr-only) { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: .25s; }
  .menu-button span:nth-child(1) { top: 3px; }
  .menu-button span:nth-child(2) { top: 10px; }
  .menu-button span:nth-child(3) { top: 17px; }
  .menu-button[aria-expanded="true"] { color: white; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
  .intro-grid, .place-grid, .rsvp-grid { grid-template-columns: 1fr; }
  .rsvp-heading { position: static; }
  .place-copy { order: 1; }
  .place-visual { order: 0; max-width: 680px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(180px, 42vw); }
  .private-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner > :last-child { justify-self: center; }
  .guest-login { grid-template-columns: 1fr; }
  .guest-login-image { display: none; }
  .guest-login-panel { padding: 2rem; }
  .guest-section-content .cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { height: 68px; }
  .shell { width: min(100% - 2rem, 1180px); }
  .hero-copy { padding-top: 8rem; }
  .hero h1 { font-size: clamp(3.7rem, 20vw, 6.2rem); }
  .hero-details { gap: .8rem 1.4rem; flex-wrap: wrap; margin-top: 2rem; }
  .countdown { right: 1rem; left: 1rem; bottom: 1rem; }
  .countdown div { flex: 1; min-width: 0; padding-inline: .3rem; }
  .countdown strong { font-size: 1.7rem; }
  .intro-grid { gap: 1rem; }
  .chapter-grid { grid-template-columns: 1fr; gap: 4rem; }
  .gallery { grid-auto-rows: 55vw; }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }
  .phrase { grid-template-columns: 1fr; gap: .1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .rsvp-card { padding: 1.25rem; }
  .guest-login-card .monogram { margin-bottom: 3.5rem; }
  .guest-section > button { grid-template-columns: auto 1fr auto; padding: 1rem; }
  .guest-section > button strong { font-size: 1.35rem; }
  .guest-section-content { padding: 0 1rem 1.4rem; }
  .twi-table { font-size: .83rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
