:root {
  --ink: #1e211c;
  --olive: #5f644f;
  --ivory: #f6f0e6;
  --paper: #efe4d3;
  --gold: #c79a62;
  --line: rgba(30, 33, 28, .22);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); }
img { display: block; width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.section-pad { padding: clamp(84px, 14vw, 180px) max(7vw, 24px); }
.eyebrow { margin: 0 0 22px; font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: #fffaf0; display: grid; place-items: center; text-align: center; isolation: isolate; }
.hero__image { position: absolute; inset: -5%; z-index: -3; background: url('assets/coastal-hero.webp') center 60% / cover no-repeat; transform: translate3d(0, var(--hero-shift, 0), 0) scale(1.04); }
.hero__wash { position: absolute; inset: 0; z-index: -2; background: linear-gradient(to bottom, rgba(45,38,26,.12) 0%, rgba(45,38,26,.06) 42%, rgba(18,18,14,.3) 76%, rgba(12,12,10,.68) 100%); }
.hero__content { align-self: start; width: min(94%, 820px); padding-top: clamp(130px, 23vh, 230px); }
.hero__names { margin: 0; font-family: var(--serif); font-size: clamp(4.5rem, 16vw, 10rem); font-weight: 400; letter-spacing: -.075em; line-height: .72; text-shadow: 0 2px 24px rgba(0,0,0,.14); }
.hero__names span { display: block; }
.hero__names .hero__plus { font-size: .46em; font-style: italic; line-height: .7; margin: .12em 0 .04em; }
.hero__date { margin: 34px 0 0; font-size: clamp(.68rem, 2vw, .9rem); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.continue { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); text-decoration: none; font-family: var(--serif); font-size: 1rem; font-style: italic; white-space: nowrap; }
.continue::after { content: ''; display: block; width: 1px; height: 35px; margin: 12px auto 0; background: currentColor; }

.welcome { min-height: 88svh; display: grid; align-content: center; justify-items: center; text-align: center; background: var(--ivory); }
.welcome__inner { width: min(760px, 100%); }
.welcome h2, .section-heading h2, .rsvp h2 { margin: 0; font: 400 clamp(3rem, 8vw, 6.8rem)/.96 var(--serif); letter-spacing: -.045em; }
.welcome__copy { width: min(620px, 100%); margin: 36px auto 0; font: 400 clamp(1.08rem, 2vw, 1.35rem)/1.75 var(--serif); }
.guest-greeting { margin: 32px auto 0; color: var(--olive); font-weight: 700; }
.countdown { display: flex; gap: clamp(30px, 8vw, 90px); margin-top: 70px; }
.countdown div { display: grid; gap: 8px; }
.countdown strong { font: 400 clamp(2rem, 6vw, 4rem) var(--serif); }
.countdown span { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; }

.date-band { overflow: hidden; padding: 30px 0 35px; background: var(--ink); color: var(--ivory); }
.date-band p { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 6vw, 80px); margin: 0; font: 400 clamp(3.8rem, 13vw, 10rem) var(--serif); letter-spacing: -.06em; }
.date-band i { width: clamp(30px, 8vw, 120px); height: 1px; background: var(--gold); }

.schedule { background: var(--paper); }
.section-heading { width: min(900px, 100%); margin-bottom: clamp(60px, 10vw, 120px); }
.schedule__list { width: min(950px, 100%); margin-left: auto; }
.schedule__item { display: grid; grid-template-columns: 120px 1fr; gap: clamp(24px, 7vw, 90px); padding: 34px 0; border-top: 1px solid var(--line); }
.schedule__item:last-child { border-bottom: 1px solid var(--line); }
.schedule time { padding-top: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
.schedule h3, .notes h3 { margin: 0 0 10px; font: 400 2rem var(--serif); }
.schedule p, .notes p { margin: 0; line-height: 1.65; color: rgba(30,33,28,.72); }

.venue { position: relative; min-height: 92svh; display: flex; align-items: center; color: var(--ivory); overflow: hidden; isolation: isolate; }
.venue > img { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -2; }
.venue__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,15,24,.78), rgba(5,15,24,.3) 55%, rgba(5,15,24,.04)); }
.venue__content { margin-left: max(7vw, 24px); width: min(520px, 80%); }
.venue h2 { margin: 0 0 22px; font: 400 clamp(3.5rem, 9vw, 7.5rem)/.9 var(--serif); letter-spacing: -.05em; }
.venue p { font: 400 1.1rem/1.7 var(--serif); }
.text-link { display: inline-block; margin-top: 26px; padding-bottom: 8px; border-bottom: 1px solid; text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.notes { background: var(--ivory); }
.notes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(34px, 6vw, 90px); }
.notes article { border-top: 1px solid var(--line); padding-top: 22px; }
.notes article > span { display: block; margin-bottom: 45px; color: var(--gold); font-size: .7rem; letter-spacing: .2em; }

.rsvp { background: var(--olive); color: var(--ivory); display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: clamp(60px, 10vw, 150px); }
.rsvp__intro { align-self: start; position: sticky; top: 80px; }
.rsvp__intro > p:last-child { font: italic 1.25rem var(--serif); }
.rsvp__form { display: grid; gap: 30px; }
.rsvp fieldset { border: 0; padding: 0; margin: 0; }
.rsvp legend, .field > span { display: block; margin-bottom: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-row label { cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row span { display: grid; min-height: 70px; place-items: center; border: 1px solid rgba(255,255,255,.38); padding: 15px; text-align: center; }
.choice-row input:checked + span { background: var(--ivory); color: var(--olive); border-color: var(--ivory); }
.choice-row input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.45); border-radius: 0; padding: 14px 0; background: transparent; color: var(--ivory); outline: none; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ivory); }
.rsvp button { min-height: 58px; border: 1px solid var(--ivory); padding: 15px 26px; background: var(--ivory); color: var(--olive); cursor: pointer; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.rsvp button:hover { background: transparent; color: var(--ivory); }
.rsvp__success { align-self: center; }
.rsvp__success p { line-height: 1.7; }
.rsvp .button-secondary { margin-top: 20px; background: transparent; color: var(--ivory); }

footer { padding: 70px 24px; background: var(--ink); color: var(--ivory); text-align: center; }
footer p { margin: 0 0 8px; font: 400 2rem var(--serif); }
footer small { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }
footer a { color: inherit; }

.demo-notice { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 20; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: center; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.28); background: rgba(37,50,44,.92); color: var(--ivory); font-size: .88rem; }
.demo-notice a { color: var(--gold); font-weight: 800; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .venue > img { object-position: center 56%; }
}

@media (max-width: 760px) {
  .hero__content { padding-top: 18vh; }
  .hero__names { font-size: clamp(4.5rem, 24vw, 7rem); }
  .hero__date { font-size: .62rem; letter-spacing: .17em; }
  .schedule__item { grid-template-columns: 82px 1fr; }
  .notes__grid { grid-template-columns: 1fr; }
  .notes article > span { margin-bottom: 22px; }
  .rsvp { grid-template-columns: 1fr; }
  .rsvp__intro { position: static; }
  .choice-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__image { transform: scale(1.04); }
}
