:root {
  --forest: #26352d;
  --forest-deep: #1d2923;
  --gold: #d8b353;
  --paper: #f5f2eb;
  --ink: #252822;
  --muted: #72756d;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
.site-header { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: 0 5.2vw; color: white; }
.wordmark { display: inline-flex; align-items: center; gap: 7px; color: inherit; font: 600 19px/1 var(--sans); letter-spacing: .08em; white-space: nowrap; }
.wordmark span { color: var(--gold); font: italic 500 25px/1 var(--serif); }
.site-logo { position: relative; left: -28px; display: block; width: 136px; height: 136px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 58px); }
.site-nav a { font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; transition: color .2s ease; }
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-rsvp { color: var(--gold); }
.nav-toggle { display: none; }
.hero { position: relative; display: grid; min-height: min(820px, 100svh); min-height: max(680px, 100svh); place-items: center; overflow: hidden; color: white; text-align: center; background: #343e34 url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1600&q=78') center 42% / cover no-repeat; }
.hero::before { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgb(20 31 25 / 63%), rgb(25 30 25 / 27%) 50%, rgb(19 29 24 / 55%)); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgb(15 24 19 / 40%), transparent 40%, rgb(15 24 19 / 18%)); }
.hero-content { position: relative; z-index: 1; width: min(1100px, 90vw); padding: 105px 0 100px; animation: arrive .8s ease both; }
.eyebrow { margin: 0 0 21px; color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .24em; line-height: 1.7; text-transform: uppercase; }
.hero h1 { margin: 0; font: 400 clamp(64px, 14vw, 178px)/.85 var(--serif); white-space: nowrap; }
.hero-script { margin: 23px 0 0; color: #f0eae0; font: italic 500 clamp(29px, 4vw, 47px)/1.1 var(--serif); }
.hero-note { max-width: 440px; margin: 25px auto 31px; color: rgb(255 255 255 / 85%); font-size: 13px; line-height: 1.9; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 21px; min-height: 49px; padding: 0 25px; border: 1px solid transparent; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button span { font-size: 15px; }
.button-gold { color: var(--forest-deep); background: var(--gold); }
.button-gold:hover { color: white; border-color: var(--gold); background: transparent; }
.button-dark { color: white; background: var(--forest); }
.button-dark:hover { color: var(--forest); border-color: var(--forest); background: transparent; }
.scroll-cue { position: absolute; z-index: 1; bottom: 27px; left: 50%; display: flex; align-items: center; gap: 11px; transform: translateX(-50%); color: rgb(255 255 255 / 75%); font-size: 11px; font-weight: 600; letter-spacing: .16em; white-space: nowrap; }
.scroll-cue span { width: 25px; height: 1px; background: var(--gold); }
.hero-countdown { position: relative; z-index: 1; width: min(340px, calc(100vw - 36px)); margin: 34px auto 0; padding: 13px 20px 12px; border: 1px solid rgb(255 255 255 / 25%); background: rgb(29 41 35 / 58%); text-align: center; backdrop-filter: blur(5px); }
.hero-countdown .eyebrow { margin-bottom: 8px; font-size: 8px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.countdown-grid div { display: grid; gap: 2px; }
.countdown-grid span { color: white; font: 500 27px/.95 var(--serif); font-variant-numeric: tabular-nums; }
.countdown-grid small { color: rgb(255 255 255 / 70%); font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }
.countdown-finished { margin: 0; color: white; font: italic 500 25px/1 var(--serif); }
.section-light { background: var(--paper); }
.story { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr); align-items: center; gap: 10vw; padding: 112px max(8vw, calc((100vw - 1140px) / 2)); overflow: hidden; }
.story-mark { position: absolute; top: 8px; left: -34px; color: rgb(38 53 45 / 4%); font: 500 390px/.9 var(--serif); pointer-events: none; }
.section-copy { position: relative; z-index: 1; max-width: 410px; }
.section-copy h2, .section-heading h2, .registry h2, .rsvp-band h2 { margin: 0; font: 500 clamp(47px, 6vw, 76px)/.94 var(--serif); }
.section-copy > p:not(.eyebrow), .section-heading > p:not(.eyebrow), .registry-copy > p:not(.eyebrow) { margin: 23px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.text-link { display: inline-flex; gap: 15px; align-items: center; margin-top: 28px; padding-bottom: 7px; border-bottom: 1px solid var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.text-link span { color: #a57f20; font-size: 15px; }
.story-photo { position: relative; width: 100%; max-width: 440px; margin: 0; }
.story-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.story-photo figcaption { position: absolute; right: -27px; bottom: 32px; padding: 14px 19px; color: white; background: var(--forest); font: italic 19px var(--serif); }
.section-green { color: white; background: var(--forest); }
.details { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 12vw; padding: 100px max(8vw, calc((100vw - 1140px) / 2)); }
.section-heading { max-width: 390px; }
.section-heading > p:not(.eyebrow) { max-width: 330px; }
.details .section-heading > p:not(.eyebrow) { color: rgb(255 255 255 / 65%); }
.details .eyebrow { color: var(--gold); }
.detail-list { width: 100%; }
.detail-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: baseline; gap: 15px; padding: 20px 0; border-bottom: 1px solid rgb(255 255 255 / 19%); }
.detail-row:first-child { border-top: 1px solid rgb(255 255 255 / 19%); }
.detail-row > span { color: var(--gold); font-size: 10px; }
.detail-row h3 { margin: 0; font: 500 27px var(--serif); }
.detail-row p { margin: 0; color: rgb(255 255 255 / 82%); font-size: 16px; line-height: 1.45; text-align: right; }
.venue-map-link { display: inline-block; margin-top: 7px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.venue-map-link:hover { color: white; }
.schedule { padding: 104px max(8vw, calc((100vw - 1140px) / 2)) 120px; text-align: center; }
.schedule .section-heading { max-width: 570px; margin: 0 auto; }
.schedule .section-heading > p:not(.eyebrow) { max-width: none; }
.schedule-line { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 960px; margin: 66px auto 0; }
.schedule-line::before { position: absolute; top: 7px; right: 16%; left: 16%; height: 1px; content: ''; background: #d8d2c5; }
.schedule-line article { position: relative; padding-top: 30px; }
.schedule-dot { position: absolute; top: 0; left: 50%; width: 15px; height: 15px; border: 4px solid var(--paper); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); transform: translateX(-50%); }
.schedule-line article .eyebrow { margin-bottom: 10px; font-size: 8px; }
.schedule-line h3 { margin: 0; font: 500 33px var(--serif); }
.schedule-line article > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.registry { position: relative; display: grid; min-height: 440px; place-items: center; padding: 80px 8vw; color: white; text-align: center; background: #394037; }
.registry-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.registry-shade { position: absolute; z-index: 0; inset: 0; background: rgb(26 36 29 / 69%); }
.registry-copy { position: relative; z-index: 1; max-width: 570px; }
.registry-copy > p:not(.eyebrow) { color: rgb(255 255 255 / 78%); }
.registry-copy .button { margin-top: 30px; }
.gift-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 34px 0 0; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 35%); text-align: left; }
.gift-details div { min-width: 0; }
.gift-details dt { margin-bottom: 7px; color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gift-details dd { margin: 0; color: white; font: 500 20px/1.2 var(--serif); overflow-wrap: anywhere; }
.rsvp-band { padding: 94px 24px 100px; text-align: center; }
.rsvp-band .eyebrow { margin-bottom: 15px; }
.rsvp-band h2 { margin-bottom: 27px; }
.site-footer { display: flex; min-height: 88px; align-items: center; justify-content: space-between; padding: 0 5.2vw; color: white; background: var(--forest-deep); }
.site-footer > span, .admin-link { color: rgb(255 255 255 / 65%); font-size: 10px; }
.admin-link:hover { color: var(--gold); }

.rsvp-page { min-height: 100svh; padding: 28px max(5vw, calc((100vw - 1080px) / 2)) 70px; background: var(--paper); }
.rsvp-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #ddd7ca; }
.rsvp-header .wordmark { color: var(--forest); }
.rsvp-header .rsvp-logo { position: relative; left: -20px; display: block; width: 136px; height: 136px; object-fit: contain; }
.rsvp-header a:last-child { color: var(--muted); font-size: 11px; }
.rsvp-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9vw; align-items: start; padding-top: 75px; }
.rsvp-intro { position: sticky; top: 36px; padding-top: 22px; }
.rsvp-intro h1 { margin: 0; color: var(--forest); font: 500 clamp(56px, 7vw, 88px)/.88 var(--serif); }
.rsvp-intro .rsvp-script { margin: 16px 0 20px; color: #9b7b34; font: italic 500 31px var(--serif); }
.rsvp-intro > p:last-child { max-width: 330px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.rsvp-form-wrap { padding: 34px clamp(23px, 4vw, 48px); border: 1px solid #ded8cd; background: #fffdfa; }
.rsvp-form-wrap h2 { margin: 0 0 24px; color: var(--forest); font: 500 38px var(--serif); }
.rsvp-form { display: grid; gap: 18px; }
.form-field label, .field-label { display: block; margin-bottom: 8px; color: #454a42; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.form-field label span { color: var(--muted); font-weight: 400; text-transform: none; }
.rsvp-choice-field { min-width: 0; padding: 0; border: 0; }
.form-field input, .form-field select { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #d6d1c8; border-radius: 0; color: var(--ink); background: #fff; font: 13px var(--sans); }
.form-field input:focus, .form-field select:focus { border-color: var(--forest); outline: 2px solid rgb(38 53 45 / 12%); }
.rsvp-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsvp-option { position: relative; }
.rsvp-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rsvp-option span { display: grid; min-height: 47px; place-items: center; border: 1px solid #d6d1c8; color: #55594f; font-size: 11px; cursor: pointer; }
.rsvp-option input:checked + span { border-color: var(--forest); color: white; background: var(--forest); }
.rsvp-option input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-field input:disabled { color: #8b8b85; background: #efede7; }
.rsvp-submit { width: 100%; min-height: 51px; margin-top: 3px; border: 0; cursor: pointer; }
.rsvp-notice { margin-bottom: 22px; padding: 14px; color: var(--forest); background: #e9ede5; font-size: 12px; line-height: 1.65; }
.rsvp-notice.error { color: #8a332a; background: #f5e8e5; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .site-header { min-height: 76px; padding: 0 22px; }
  .nav-toggle { z-index: 7; display: grid; width: 42px; height: 42px; align-content: center; justify-items: center; gap: 6px; border: 1px solid rgb(255 255 255 / 42%); background: transparent; }
  .nav-toggle span { width: 17px; height: 1px; background: white; }
  .site-nav { position: absolute; top: 0; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 82px 23px 20px; background: var(--forest-deep); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 0; border-bottom: 1px solid rgb(255 255 255 / 13%); }
  .hero { min-height: 720px; min-height: 100svh; background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=950&q=74'); background-position: 55% center; }
  .hero-content { padding: 90px 0 100px; }
  .hero h1 { font-size: clamp(48px, 13vw, 95px); }
  .hero-note { max-width: 300px; }
  .story { grid-template-columns: 1fr; gap: 43px; padding: 82px 26px 90px; }
  .story-mark { top: 10px; left: -5px; font-size: 260px; }
  .story-photo { width: calc(100% - 15px); max-width: none; margin-left: 0; }
  .story-photo img { aspect-ratio: 5 / 4; }
  .story-photo figcaption { right: -15px; }
  .details { grid-template-columns: 1fr; gap: 40px; padding: 82px 27px; }
  .detail-row { grid-template-columns: 27px 1fr; gap: 8px 13px; }
  .detail-row h3 { font-size: 25px; }
  .detail-row p { grid-column: 2; font-size: 15px; text-align: left; }
  .schedule { padding: 80px 25px 86px; }
  .schedule-line { grid-template-columns: 1fr; gap: 29px; max-width: 350px; margin-top: 44px; text-align: left; }
  .schedule-line::before { top: 6px; bottom: 22px; left: 7px; width: 1px; height: auto; }
  .schedule-line article { min-height: 74px; padding: 0 0 0 32px; }
  .schedule-dot { top: 0; left: 7px; }
  .schedule-line article > p:last-child { font-size: 15px; }
  .registry { min-height: 390px; padding: 62px 26px; }
  .gift-details { grid-template-columns: 1fr; gap: 17px; margin-top: 25px; }
  .gift-details dd { font-size: 18px; }
  .rsvp-band { padding: 77px 20px 83px; }
  .site-footer { min-height: 78px; padding: 0 22px; }
  .site-footer .wordmark { font-size: 16px; }
  .site-footer > span, .admin-link { font-size: 9px; }
  .rsvp-page { padding: 19px 21px 48px; }
  .rsvp-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .rsvp-intro { position: static; padding: 0; }
  .rsvp-intro h1 { font-size: clamp(59px, 18vw, 78px); }
  .rsvp-intro .rsvp-script { margin: 12px 0 10px; font-size: 26px; }
  .rsvp-intro > p:last-child { margin: 0; }
  .rsvp-form-wrap { padding: 26px 20px; }
}

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