:root {
  --brie: #E5DCB1;
  --parchment: #DFDAC2;
  --elise: #D4D3B3;
  --sage: #8D926F;
  --tea: #4e5138;
  --ink: #303226;
  --paper: #f7f4e9;
  --white: #fffdf6;
  --line: rgba(78, 81, 56, .22);
  --nav-w: 250px;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--nav-w);
  padding: 30px 26px 24px;
  display: flex;
  flex-direction: column;
  background: var(--tea);
  color: #f8f4e7;
  border-right: 1px solid rgba(255,255,255,.12);
  transform: translateX(-100%);
  transition: transform .3s ease;
  box-shadow: 14px 0 40px rgba(0,0,0,.2);
}
body.nav-open .side-nav { transform: translateX(0); }
.brand {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 36px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
}
.brand-mark { font-size: 34px; font-weight: 500; }
.brand-amp { font-size: 22px; font-style: italic; color: var(--brie); }
.brand small {
  grid-column: 1 / -1;
  margin-top: -4px;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-align: center;
  opacity: .72;
}
.side-nav nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav nav a {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  padding: 8px 8px;
  text-decoration: none;
  color: rgba(255,255,255,.66);
  transition: color .25s ease, transform .25s ease;
}
.side-nav nav a::before {
  content: "";
  position: absolute;
  left: -26px;
  width: 3px;
  height: 0;
  background: var(--brie);
  transition: height .25s ease;
}
.side-nav nav a:hover,
.side-nav nav a.active { color: #fff; transform: translateX(3px); }
.side-nav nav a.active::before { height: 70%; }
.side-nav nav b { font-size: 9px; letter-spacing: .16em; color: var(--brie); font-weight: 500; }
.side-nav nav span { font-size: 12px; letter-spacing: .03em; }
.side-note {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.35;
  font-style: italic;
  color: rgba(255,255,255,.64);
}
.nav-toggle {
  position: fixed;
  z-index: 50;
  top: 24px;
  left: 24px;
  display: grid;
  gap: 4px;
  width: 48px;
  height: 48px;
  place-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(78,81,56,.92);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 1px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: block;
  background: rgba(24,25,18,.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

main { margin-left: 0; overflow: hidden; }
.panel, .section { position: relative; min-height: 100vh; }
.section { padding: clamp(76px, 8vw, 130px) clamp(34px, 7vw, 110px); }
.section-number {
  position: absolute;
  top: 36px;
  right: 48px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .08em;
  color: rgba(78,81,56,.42);
}
.kicker, .eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h2 {
  margin-bottom: 24px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 84px);
  line-height: .95;
  letter-spacing: -.035em;
}
h3 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.05; }
.lead { font-family: var(--display); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.25; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

.hero { color: #fff; display: flex; align-items: flex-end; padding: clamp(40px, 7vw, 100px); }
.hero-photo, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: center 52%; }
.hero-shade { background: linear-gradient(180deg, rgba(25,20,12,.06), rgba(27,25,18,.12) 40%, rgba(26,25,19,.74)); }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero .eyebrow { color: var(--brie); }
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(63px, 9vw, 135px);
  line-height: .72;
  font-weight: 400;
  letter-spacing: -.055em;
  text-shadow: 0 3px 30px rgba(0,0,0,.2);
}
.hero h1 i { font-weight: 400; font-size: .62em; color: var(--brie); }
.hero-date { display: flex; align-items: center; gap: 18px; }
.hero-date strong { font-size: 16px; font-weight: 400; letter-spacing: .18em; }
.hero-date span { font-size: 10px; letter-spacing: .17em; text-transform: uppercase; opacity: .78; }
.scroll-hint { position: absolute; z-index: 3; right: 34px; bottom: 44px; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.scroll-hint span { font-size: 9px; letter-spacing: .19em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-hint i { display: block; width: 1px; height: 70px; background: rgba(255,255,255,.55); }

.section-welcome { background: var(--paper); }
.welcome-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.welcome-copy { max-width: 670px; }
.welcome-copy .kicker { color: var(--sage); }
.portrait-card { margin: 0; position: relative; }
.portrait-card img { height: min(64vh, 720px); object-fit: cover; }
.portrait-card figcaption { position: absolute; left: -28px; bottom: 35px; padding: 14px 18px; background: var(--tea); color: #fff; font-family: var(--display); font-style: italic; font-size: 20px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 820px; margin-top: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown div { padding: 24px 20px; text-align: center; border-right: 1px solid var(--line); }
.countdown div:last-child { border-right: 0; }
.countdown strong { display: block; font-family: var(--display); font-size: clamp(45px, 5vw, 70px); line-height: 1; font-weight: 500; }
.countdown span { font-size: 9px; letter-spacing: .19em; text-transform: uppercase; color: var(--sage); }

.section-schedule { background: var(--elise); }
.section-head { max-width: 780px; margin-bottom: 55px; }
.section-head .kicker { color: var(--tea); }
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .65fr); gap: clamp(50px, 7vw, 110px); align-items: start; }
.timeline { border-top: 1px solid rgba(78,81,56,.42); }
.timeline-item { display: grid; grid-template-columns: 110px 1fr; gap: 25px; padding: 26px 0; border-bottom: 1px solid rgba(78,81,56,.32); }
.timeline-item time { font-family: var(--display); font-size: 32px; }
.timeline-item h3 { margin-bottom: 8px; }
.timeline-item p { margin: 0; font-size: 14px; max-width: 620px; }
.photo-stack { position: sticky; top: 30px; }
.photo-stack img:first-child { height: 56vh; object-fit: cover; }
.photo-stack img:last-child { width: 62%; margin: -18% 0 0 -14%; border: 10px solid var(--elise); }

.section-location { display: grid; grid-template-columns: 1.1fr .9fr; padding: 0; min-height: 100vh; background: var(--tea); color: #fff; }
.location-photo img { height: 100vh; object-fit: cover; object-position: 50% center; }
.location-card { align-self: center; padding: clamp(50px, 8vw, 120px); }
.location-card .kicker { color: var(--brie); }
.location-card .address { margin-bottom: 32px; font-family: var(--display); font-size: 25px; line-height: 1.28; color: var(--brie); }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 18px;
  min-height: 54px; padding: 0 24px; margin-top: 20px;
  border: 1px solid var(--tea); background: var(--tea); color: #fff;
  text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 600;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.location-card .button { border-color: var(--brie); background: var(--brie); color: var(--tea); }

.section-transfer { background: var(--parchment); }
.transfer-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.transfer-copy { max-width: 580px; }
.transfer-time { margin: 25px 0 4px; font-family: var(--display); font-size: 92px; line-height: 1; color: var(--tea); }
.transfer-copy h3 { margin-bottom: 18px; }
.small-note { padding-left: 18px; border-left: 2px solid var(--sage); font-size: 13px; }
.transfer-collage { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: end; }
.transfer-collage img:first-child { height: 68vh; object-fit: cover; }
.transfer-collage img:last-child { margin-bottom: -35px; height: 36vh; object-fit: cover; }

.section-dresscode { background: #f8f5ec; }
.dress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 120px); align-items: end; }
.dress-copy { max-width: 620px; }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); min-height: 300px; }
.palette > div { display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 10px; color: var(--tea); background: var(--swatch); }
.palette .dark { color: #fff; }
.palette span { font-family: var(--display); font-size: 17px; line-height: 1; }
.palette small { font-size: 8px; letter-spacing: .08em; opacity: .7; }
.wide-photo { margin-top: 80px; }
.wide-photo img { height: 62vh; object-fit: cover; object-position: center 38%; }

.section-rsvp { background: var(--sage); color: #fff; }
.section-rsvp .section-number { color: rgba(255,255,255,.42); }
.rsvp-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.rsvp-intro .kicker { color: var(--brie); }
.rsvp-intro img { margin-top: 42px; height: 48vh; object-fit: cover; }
.rsvp-form { padding: clamp(28px, 4vw, 55px); background: var(--paper); color: var(--ink); }
.field { display: block; border: 0; padding: 0; margin: 0 0 26px; }
.field > span, .field legend { display: block; margin-bottom: 9px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.field i { color: #9d4b3e; font-style: normal; }
input[type=text], select, textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(48,50,38,.34); background: transparent; color: var(--ink); padding: 12px 4px; border-radius: 0; outline: none;
}
input[type=text]:focus, select:focus, textarea:focus { border-bottom-color: var(--tea); }
.choice-row, .checks { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-row label, .checks label { cursor: pointer; }
.choice-row input, .checks input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row span, .checks span { display: inline-flex; padding: 9px 13px; border: 1px solid rgba(48,50,38,.26); font-size: 11px; transition: .2s ease; }
.choice-row input:checked + span, .checks input:checked + span { background: var(--tea); border-color: var(--tea); color: #fff; }
.form-error { min-height: 22px; margin: -8px 0 8px; color: #8f3e32; font-size: 12px; }
.button.submit { width: 100%; border: 0; }
.privacy-note { margin: 12px 0 0; font-size: 10px; opacity: .65; }

.section-wishes { display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--brie); }
.wishes-photo img { height: 100vh; object-fit: cover; }
.wishes-copy { align-self: center; padding: clamp(50px, 8vw, 110px); }
.wishes-copy article { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 25px 0; border-top: 1px solid rgba(78,81,56,.34); }
.wishes-copy article:last-child { border-bottom: 1px solid rgba(78,81,56,.34); }
.wishes-copy article > span { font-size: 9px; letter-spacing: .15em; color: var(--sage); }
.wishes-copy article h3 { margin-bottom: 9px; }
.wishes-copy article p { margin: 0; font-size: 14px; }

.section-coordinator { display: grid; grid-template-columns: .9fr 1.1fr; padding: 0; background: var(--tea); color: #fff; }
.section-coordinator .section-number { color: rgba(255,255,255,.35); }
.coordinator-card { align-self: center; padding: clamp(50px, 8vw, 110px); }
.coordinator-card .kicker { color: var(--brie); }
.contact { margin: 38px 0 5px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.contact span { display: block; font-family: var(--display); font-size: 34px; }
.contact a { text-decoration: none; color: var(--brie); letter-spacing: .06em; }
.button.light { border-color: var(--brie); background: transparent; color: var(--brie); }
.coordinator-photo img { height: 100vh; object-fit: cover; }
.section-coordinator footer { grid-column: 1 / -1; padding: 80px 30px; text-align: center; background: #3f422e; }
.section-coordinator footer p { margin-bottom: 4px; font-family: var(--display); font-style: italic; font-size: 22px; color: var(--brie); }
.section-coordinator footer h2 { margin-bottom: 15px; font-size: clamp(55px, 7vw, 95px); }
.section-coordinator footer small { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; opacity: .65; }

@media (max-width: 1024px) {
  :root { --nav-w: 205px; }
  .side-nav { padding-inline: 20px; }
  .side-nav nav a::before { left: -20px; }
  .section { padding-inline: 48px; }
  .welcome-grid, .schedule-layout, .dress-grid, .rsvp-grid { gap: 48px; }
  .section-location, .section-wishes, .section-coordinator { grid-template-columns: 1fr 1fr; }
  .location-card, .wishes-copy, .coordinator-card { padding: 55px 42px; }
  .palette { min-height: 245px; }
}

@media (max-width: 820px) {
  :root { --nav-w: 240px; }
  .nav-toggle { top: 18px; left: 18px; width: 44px; height: 44px; }
  .nav-toggle span { width: 17px; }
  .hero { padding: 68px 36px 52px; }
  .section { padding: 82px 34px; }
  .welcome-grid, .schedule-layout, .transfer-inner, .dress-grid, .rsvp-grid { grid-template-columns: 1fr; }
  .portrait-card { max-width: 520px; margin-left: auto; }
  .photo-stack { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .photo-stack img:first-child, .photo-stack img:last-child { width: 100%; height: 44vh; margin: 0; border: 0; object-fit: cover; }
  .section-location, .section-wishes, .section-coordinator { grid-template-columns: 1fr; }
  .location-photo img, .wishes-photo img, .coordinator-photo img { height: 62vh; }
  .location-card, .wishes-copy, .coordinator-card { padding: 78px 34px; }
  .section-number { top: 28px; right: 28px; }
  .transfer-inner { gap: 60px; }
  .transfer-collage img:first-child { height: 56vh; }
  .wide-photo img { height: 52vh; }
  .section-coordinator footer { grid-column: 1; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .hero { min-height: 100svh; }
  .hero-photo { object-position: 49% center; }
  .hero h1 { font-size: clamp(54px, 18.9vw, 82.8px); line-height: .78; }
  .hero-date { flex-wrap: wrap; gap: 9px 12px; }
  .scroll-hint { right: 18px; bottom: 28px; }
  .section { min-height: auto; padding: 76px 22px; }
  h2 { font-size: 49px; }
  .lead { font-size: 24px; }
  .welcome-grid { gap: 36px; }
  .portrait-card img { height: 58vh; }
  .portrait-card figcaption { left: 0; bottom: 0; }
  .countdown { grid-template-columns: 1fr 1fr; margin-top: 45px; }
  .countdown div:nth-child(2) { border-right: 0; }
  .countdown div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .timeline-item { grid-template-columns: 76px 1fr; gap: 16px; padding: 21px 0; }
  .timeline-item time { font-size: 27px; }
  .timeline-item h3 { font-size: 23px; }
  .photo-stack { grid-template-columns: 1fr; }
  .photo-stack img:first-child, .photo-stack img:last-child { height: 57vh; }
  .photo-stack img:last-child { display: none; }
  .location-photo img, .wishes-photo img, .coordinator-photo img { height: 55vh; }
  .location-card, .wishes-copy, .coordinator-card { padding: 70px 22px; }
  .transfer-time { font-size: 72px; }
  .transfer-collage { gap: 8px; }
  .transfer-collage img:first-child { height: 52vh; }
  .transfer-collage img:last-child { height: 30vh; }
  .palette { grid-template-columns: 1fr; min-height: auto; }
  .palette > div { min-height: 90px; }
  .wide-photo { margin-top: 45px; }
  .wide-photo img { height: 58vh; }
  .rsvp-form { margin-inline: -4px; padding: 26px 18px; }
  .choice-row, .checks { gap: 7px; }
  .wishes-copy article { grid-template-columns: 34px 1fr; }
  .section-coordinator footer { padding: 65px 18px; }
}

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