:root {
  color-scheme: dark;
  --night: #100e0b;
  --night-raised: #19150f;
  --night-soft: #211b13;
  --paper: #f5efdf;
  --muted: #a9a08f;
  --gold: #c6a363;
  --gold-light: #ead39a;
  --line: rgba(198, 163, 99, .25);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 300 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  z-index: 120;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--night);
}
.skip-link:focus { transform: translateY(0); }
.demo-ribbon {
  position: relative;
  z-index: 6;
  padding: 7px 15px;
  background: #352a17;
  color: var(--gold-light);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-align: center;
}
.demo-ribbon span { padding-inline: 5px; color: var(--gold); }
.topbar {
  position: absolute;
  z-index: 5;
  top: 37px;
  display: flex;
  width: 100%;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(30px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.wordmark, .back-link { text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: .66rem; letter-spacing: .16em; }
.wordmark b { color: var(--gold-light); font-weight: 500; }
.wordmark__seal {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font: italic 1rem var(--serif);
}
.back-link { color: rgba(245,239,223,.72); font-size: .69rem; }
.back-link span { padding-left: 5px; color: var(--gold); }

.opening {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: var(--night);
  transition: visibility 1.15s ease;
}
.opening.is-open { visibility: hidden; }
.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(80,61,31,.34), transparent 58%),
    linear-gradient(110deg, #0d0b09, #18130d 55%, #0c0b09);
  transition: transform 1.15s cubic-bezier(.76,0,.24,1);
}
.curtain::after { position: absolute; top: 8%; bottom: 8%; width: 1px; background: linear-gradient(transparent,var(--gold),transparent); content: ""; opacity: .46; }
.curtain--left { left: 0; border-right: 1px solid rgba(198,163,99,.13); }
.curtain--left::after { right: 0; }
.curtain--right { right: 0; border-left: 1px solid rgba(198,163,99,.13); }
.curtain--right::after { left: 0; }
.opening.is-open .curtain--left { transform: translateX(-101%); }
.opening.is-open .curtain--right { transform: translateX(101%); }
.opening__content { position: relative; z-index: 1; width: min(90%,560px); text-align: center; transition: opacity .32s ease, transform .6s ease; }
.opening.is-open .opening__content { transform: scale(.96); opacity: 0; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .61rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.opening__content h1 { margin: 0; font: 400 clamp(1.7rem,6vw,2.8rem)/1.2 var(--display); letter-spacing: .03em; }
.opening__content h1 i, .intro__signature i, .footer p i { color: var(--gold); font: italic 1em var(--serif); }
.opening__date { margin: 16px 0 24px; color: var(--muted); font-size: .66rem; letter-spacing: .18em; }
.opening__date span { padding-inline: 7px; color: var(--gold); }
.seal-button {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle,#382d19,#15110b 72%);
  box-shadow: 0 0 0 8px rgba(198,163,99,.05), 0 0 35px rgba(198,163,99,.15);
  color: var(--gold-light);
  cursor: pointer;
  font: italic 1rem var(--serif);
  transition: transform .25s ease, box-shadow .25s ease;
}
.seal-button:hover { transform: scale(1.07); box-shadow: 0 0 0 10px rgba(198,163,99,.07), 0 0 48px rgba(198,163,99,.25); }
.seal-button i { padding-inline: 3px; color: var(--gold); font-size: .65rem; font-style: normal; }
.opening__hint { margin: 19px 0 0; color: var(--muted); font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; }

.hero {
  position: relative;
  display: grid;
  min-height: min(850px, 100svh);
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(ellipse at 52% 43%, rgba(129,92,36,.19), transparent 35%),
    radial-gradient(ellipse at 50% 100%, #2a1c0c 0, #15110c 36%, var(--night) 73%);
}
.hero::before, .hero::after { position: absolute; inset: 18px; border: 1px solid rgba(198,163,99,.15); content: ""; pointer-events: none; }
.hero::after { inset: 27px; border-color: rgba(198,163,99,.07); }
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
.hero__orbit { position: absolute; width: min(74vw,640px); aspect-ratio: 1; border: 1px solid rgba(198,163,99,.12); border-radius: 50%; }
.hero__orbit::before { position: absolute; inset: 9%; border: 1px solid rgba(198,163,99,.08); border-radius: 50%; content: ""; }
.hero__orbit--one { transform: scaleY(.65) rotate(-23deg); }
.hero__orbit--two { transform: scaleY(.65) rotate(34deg) scale(1.2); opacity: .55; }
.hero__content { position: relative; z-index: 1; width: min(92%,700px); padding-top: 40px; text-align: center; }
.hero__overline { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); font-size: .54rem; letter-spacing: .2em; }
.hero__overline span { width: 30px; height: 1px; background: var(--gold); opacity: .65; }
.hero h1 {
  margin: 31px 0 0;
  color: var(--paper);
  font: 500 clamp(3.1rem,10vw,7.2rem)/.98 var(--display);
  letter-spacing: .015em;
  text-shadow: 0 7px 45px rgba(234,211,154,.16);
}
.hero h1 i { display: inline-block; margin-inline: .04em; color: var(--gold-light); font: italic .68em var(--serif); }
.hero__date { margin: 30px 0 0; color: rgba(245,239,223,.7); font-size: .69rem; letter-spacing: .12em; }
.hero__date span { padding-inline: 8px; color: var(--gold); }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 78px; color: var(--muted); font-size: .52rem; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 39px; background: linear-gradient(var(--gold),transparent); animation: breathe 1.8s ease-in-out infinite; }
.hero__index { position: absolute; right: 36px; bottom: 35px; color: rgba(245,239,223,.42); font-size: .48rem; letter-spacing: .17em; }

.section-shell { width: min(1020px, calc(100% - 48px)); margin-inline: auto; }
.intro { padding-block: 123px 112px; text-align: center; }
.intro h2, .section-title {
  margin: 0;
  color: var(--paper);
  font: 400 clamp(2.4rem,6.2vw,4.5rem)/1.08 var(--serif);
  letter-spacing: -.025em;
}
.intro h2 em, .section-title em { color: var(--gold-light); font-weight: 400; }
.intro__copy { max-width: 480px; margin: 26px auto 0; color: var(--muted); font-size: .83rem; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 34px auto 24px; }
.ornament span { width: 40px; height: 1px; background: var(--line); }
.ornament i { color: var(--gold); font-size: .8rem; font-style: normal; }
.intro__signature { margin: 0; font: italic 1.5rem var(--serif); }
.intro__signature i { font-size: 1.1rem; }

.countdown-section { padding-block: 92px 100px; border-block: 1px solid rgba(198,163,99,.12); background: linear-gradient(110deg,rgba(198,163,99,.035),transparent 40%,rgba(198,163,99,.035)); text-align: center; }
.countdown-section .eyebrow { margin-bottom: 11px; }
.countdown-section .section-title { font-size: clamp(2rem,4.8vw,3rem); }
.countdown { display: flex; align-items: center; justify-content: center; gap: clamp(10px,3vw,27px); margin-top: 40px; }
.countdown__unit { display: flex; min-width: 68px; flex-direction: column; align-items: center; gap: 6px; }
.countdown__unit span { color: var(--gold-light); font: 400 clamp(1.9rem,5vw,3.3rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown__unit small { color: var(--muted); font-size: .53rem; letter-spacing: .11em; text-transform: uppercase; }
.countdown__separator { margin-top: -19px; color: var(--gold); font: 1.6rem var(--serif); opacity: .65; }
.countdown__done { margin: 24px 0 0; color: var(--gold-light); font: italic 1.2rem var(--serif); }

.story-section { padding-block: 116px 126px; }
.section-heading { margin-bottom: 45px; text-align: center; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading .section-title { font-size: clamp(2.6rem,6vw,4.1rem); }
.story-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.story-card { position: relative; min-height: 290px; overflow: hidden; padding: 32px 27px 28px; border: 1px solid rgba(198,163,99,.16); background: linear-gradient(145deg,#211b13,#14110c 74%); }
.story-card::after { position: absolute; right: -40px; bottom: -62px; width: 190px; height: 190px; border: 1px solid rgba(198,163,99,.12); border-radius: 50%; box-shadow: 0 0 0 18px rgba(198,163,99,.025),0 0 0 38px rgba(198,163,99,.02); content: ""; }
.story-card__year { position: absolute; top: 25px; right: 26px; color: rgba(234,211,154,.54); font: italic .87rem var(--serif); }
.story-card__symbol { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-light); font: italic .83rem var(--serif); }
.story-card__label { margin-bottom: 5px; color: var(--gold); font-size: .52rem; letter-spacing: .16em; text-transform: uppercase; }
.story-card h3 { position: relative; z-index: 1; margin: 0 0 10px; font: 500 1.42rem/1.13 var(--serif); }
.story-card > p:last-child { position: relative; z-index: 1; max-width: 30ch; margin: 0; color: var(--muted); font-size: .71rem; }
.story-card--second { transform: translateY(20px); }
.story-card--third { transform: translateY(40px); }

.schedule-section { padding-block: 105px 112px; background: #17130e; }
.schedule-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 80px; }
.schedule-heading .eyebrow { margin-bottom: 13px; }
.schedule-heading .section-title { font-size: clamp(2.7rem,5.6vw,4.1rem); }
.schedule-heading > p:last-child { max-width: 28ch; margin: 19px 0 0; color: var(--muted); font-size: .76rem; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 67px 1fr; gap: 17px; padding: 20px 0; border-top: 1px solid rgba(198,163,99,.17); }
.timeline li:last-child { border-bottom: 1px solid rgba(198,163,99,.17); }
.timeline time { color: var(--gold-light); font: 500 .81rem var(--serif); font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 0 0 2px; font-size: .79rem; font-weight: 500; }
.timeline p { margin: 0; color: var(--muted); font-size: .65rem; }

.venue-section { padding-block: 115px; }
.venue-card { max-width: 720px; margin-inline: auto; text-align: center; }
.venue-card .eyebrow { margin-bottom: 9px; }
.venue-card .section-title { font-size: clamp(2.5rem,5.4vw,3.8rem); }
.venue-card__address { margin: 13px 0 22px; color: var(--muted); font-size: .75rem; }
.outline-button { display: inline-flex; min-height: 42px; align-items: center; gap: 20px; padding: 0 15px; border: 1px solid var(--line); color: var(--gold-light); font-size: .65rem; text-decoration: none; transition: background .2s ease; }
.outline-button:hover { background: rgba(198,163,99,.1); }
.map-frame { height: auto; margin-top: 29px; overflow: hidden; border: 1px solid rgba(198,163,99,.18); }
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; filter: grayscale(.85) sepia(.18) brightness(.77); }
.map-frame > p { margin: 0; padding: 6px; background: #1c170f; color: var(--gold); font-size: .45rem; letter-spacing: .1em; }

.rsvp-section { padding-block: 110px 120px; border-top: 1px solid rgba(198,163,99,.13); background: radial-gradient(ellipse at 16% 50%,rgba(111,77,26,.14),transparent 40%),#14110d; }
.rsvp-layout { display: grid; grid-template-columns: 1fr .85fr; align-items: start; gap: 90px; }
.rsvp-copy .eyebrow { margin-bottom: 12px; }
.rsvp-copy .section-title { font-size: clamp(2.7rem,5.7vw,4rem); }
.rsvp-copy > p:not(.eyebrow) { max-width: 36ch; margin: 20px 0 0; color: var(--muted); font-size: .78rem; }
.demo-notice { display: flex; align-items: flex-start; gap: 12px; max-width: 410px; margin-top: 29px; padding: 13px 14px; border: 1px solid rgba(198,163,99,.2); background: rgba(198,163,99,.045); }
.demo-notice > span { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font: .68rem var(--serif); }
.demo-notice p { margin: 0; color: var(--muted); font-size: .62rem; }
.demo-notice b { color: var(--gold-light); font-weight: 500; }
.rsvp-form { padding: 27px; border: 1px solid rgba(198,163,99,.19); background: rgba(255,255,255,.018); }
.field { display: grid; gap: 7px; margin: 0 0 17px; }
.field label, .field legend { color: rgba(245,239,223,.85); font-size: .61rem; font-weight: 500; letter-spacing: .04em; }
.field label span { color: var(--muted); font-weight: 300; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid rgba(198,163,99,.18); border-radius: 0; background: #17130e; color: var(--paper); font-size: .68rem; }
.field textarea { min-height: 88px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #777064; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field fieldset, fieldset.field { min-width: 0; padding: 0; border: 0; }
.field legend { margin-bottom: 8px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span { display: flex; min-height: 42px; align-items: center; padding: 8px 10px; border: 1px solid rgba(198,163,99,.18); color: var(--muted); font-size: .59rem; transition: border-color .2s ease,color .2s ease,background .2s ease; }
.choice input:checked + span { border-color: var(--gold); background: rgba(198,163,99,.08); color: var(--gold-light); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.gold-button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding-inline: 14px; border: 0; background: var(--gold); color: var(--night); cursor: pointer; font-size: .67rem; font-weight: 600; transition: background .2s ease; }
.gold-button:hover { background: var(--gold-light); }
.form-status { margin: 13px 0 0; color: var(--gold-light); font-size: .66rem; }
.form-status[data-kind="error"] { color: #f0a08c; }
.bot-preview { margin-top: 14px; padding: 16px; border: 1px solid rgba(198,163,99,.2); background: #171d19; }
.bot-preview__header { display: flex; align-items: center; gap: 10px; }
.bot-preview__avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #2b594b; color: #e7d39f; font: italic 1rem var(--serif); }
.bot-preview__header > span:nth-child(2) { display: grid; gap: 1px; }
.bot-preview__header b { font-size: .64rem; font-weight: 500; }
.bot-preview__header small, .bot-preview__note { color: var(--muted); font-size: .52rem; }
.bot-preview__badge { margin-left: auto; color: var(--gold); font-size: .48rem; letter-spacing: .13em; }
.bot-preview__message { margin: 14px 0 10px; padding: 10px 12px; border-radius: 0 10px 10px 10px; background: #232a24; color: var(--paper); font-size: .66rem; }

.footer { padding: 49px 20px 42px; border-top: 1px solid rgba(198,163,99,.12); text-align: center; }
.footer .ornament { margin: 0 auto 15px; }
.footer > p { margin: 0; font: italic 1.5rem var(--serif); }
.footer > small { display: block; margin-top: 3px; color: var(--muted); font-size: .55rem; letter-spacing: .13em; }
.footer > small span { padding-inline: 5px; color: var(--gold); }
.footer > a { display: inline-block; margin-top: 22px; color: var(--gold); font-size: .5rem; letter-spacing: .14em; text-decoration: none; }

@keyframes breathe { 50% { opacity: .35; transform: scaleY(.75); } }
@media (max-width: 760px) {
  .topbar { top: 34px; min-height: 57px; padding-inline: 25px; }
  .hero { min-height: 760px; min-height: 92svh; }
  .hero__overline { font-size: .46rem; letter-spacing: .14em; }
  .hero__overline span { width: 17px; }
  .hero__orbit { width: 94vw; }
  .intro { padding-block: 96px 88px; }
  .story-section { padding-block: 91px 104px; }
  .story-grid { grid-template-columns: 1fr; gap: 10px; }
  .story-card { min-height: 225px; padding: 27px 25px; }
  .story-card--second, .story-card--third { transform: none; }
  .story-card__symbol { margin-bottom: 18px; }
  .schedule-section { padding-block: 87px; }
  .schedule-layout, .rsvp-layout { grid-template-columns: 1fr; gap: 38px; }
  .schedule-heading > p:last-child { max-width: 36ch; }
  .venue-section { padding-block: 90px; }
  .map-frame iframe { height: 260px; }
  .rsvp-section { padding-block: 88px; }
}
@media (max-width: 420px) {
  .section-shell { width: calc(100% - 36px); }
  .demo-ribbon { font-size: .49rem; }
  .topbar { padding-inline: 20px; }
  .wordmark { gap: 6px; font-size: .57rem; }
  .back-link { font-size: .58rem; }
  .hero__date { font-size: .58rem; letter-spacing: .07em; }
  .hero__date span { padding-inline: 3px; }
  .countdown { gap: 5px; }
  .countdown__unit { min-width: 57px; }
  .countdown__unit span { font-size: 1.72rem; }
  .countdown__unit small { font-size: .47rem; }
  .countdown__separator { font-size: 1.15rem; }
  .rsvp-form { padding: 20px 16px; }
  .choice-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .curtain, .opening__content, .seal-button, .outline-button, .choice span, .gold-button { transition-duration: .01ms !important; }
}
