:root {
  --burgundy-950: #23030d;
  --burgundy-900: #360414;
  --burgundy-800: #4b071b;
  --burgundy-700: #650d28;
  --burgundy-600: #7d1834;
  --ivory-50: #fffaf1;
  --ivory-100: #f7efe2;
  --ivory-200: #e9dcc9;
  --ink: #251a1c;
  --muted: #6d5b5e;
  --gold: #d2ad69;
  --gold-dark: #8f6b32;
  --line-light: rgba(255, 250, 241, 0.3);
  --line-dark: rgba(75, 7, 27, 0.24);
  --shadow: rgba(27, 3, 10, 0.24);
  --display: "Bodoni Moda", "Iowan Old Style", serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Allura", "Segoe Script", cursive;
  --body: "Manrope", "Helvetica Neue", sans-serif;
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --gutter: clamp(1.25rem, 6vw, 6rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ivory-50);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
body.is-locked > footer { display: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.overline { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }

/* Cover: the stage preserves the portrait artwork ratio so text stays aligned to the paper card. */
.invitation-cover {
  position: fixed;
  z-index: 100;
  inset: 0;
  min-height: 100svh;
  overflow: hidden;
  background: var(--burgundy-950);
  color: var(--ivory-50);
}
.cover-backdrop {
  position: absolute;
  inset: -2rem;
  width: calc(100% + 4rem);
  height: calc(100% + 4rem);
  object-fit: cover;
  filter: blur(26px) brightness(0.34) saturate(0.75);
  transform: scale(1.08);
}
.cover-stage {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100svh;
  aspect-ratio: 941 / 1672;
  overflow: hidden;
  transform: translateX(-50%);
  box-shadow: 0 0 5rem rgba(0, 0, 0, 0.42);
}
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-art-open { opacity: 0; transform: scale(1.018); }
.cover-topline {
  position: absolute;
  z-index: 3;
  top: max(1.25rem, env(safe-area-inset-top));
  left: 7%;
  width: 86%;
  text-align: center;
}
.cover-topline > p {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 2.35vh, 1.45rem);
  font-style: italic;
  letter-spacing: 0.06em;
}
.cover-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 0.55rem 0;
  background: rgba(35, 3, 13, 0.36);
}
.cover-countdown div { display: flex; flex-direction: column; border-left: 1px solid var(--line-light); }
.cover-countdown div:first-child { border-left: 0; }
.cover-countdown strong { font-family: var(--display); font-size: clamp(1.35rem, 3.4vh, 2rem); font-weight: 400; line-height: 1; }
.cover-countdown span { margin-top: 0.2rem; font-size: clamp(0.58rem, 1.15vh, 0.68rem); letter-spacing: 0.12em; text-transform: uppercase; }
.guest-gate {
  position: absolute;
  z-index: 5;
  right: 7%;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  left: 7%;
  padding: 0.9rem;
  border: 1px solid rgba(210, 173, 105, 0.7);
  background: rgba(35, 3, 13, 0.88);
  box-shadow: 0 1rem 2.5rem rgba(20, 0, 7, 0.4);
  text-align: center;
}
.cover-recipient { margin: 0 0 0.75rem; color: var(--ivory-100); font-family: var(--serif); font-size: 0.9rem; line-height: 1.25; }
.cover-recipient strong { color: var(--gold); font-size: 1.15rem; font-weight: 500; }
.open-button {
  display: inline-flex;
  width: 100%;
  min-width: 3rem;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 0.7rem 0.9rem;
  background: var(--burgundy-700);
  color: var(--ivory-50);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.open-button:disabled { cursor: wait; opacity: 0.72; }
.cover-reveal {
  position: absolute;
  z-index: 4;
  top: 35.6%;
  left: 25.5%;
  display: flex;
  width: 49%;
  height: 21%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: var(--burgundy-800);
  opacity: 0;
  text-align: center;
  transform: translateY(1rem);
}
.cover-reveal p, .cover-reveal span { margin: 0; font-family: var(--serif); }
.cover-reveal p { font-size: clamp(0.8rem, 2vh, 1.25rem); font-style: italic; }
.cover-reveal strong { margin: -0.1em 0; font-family: var(--script); font-size: clamp(2.05rem, 5.5vh, 3.5rem); font-weight: 400; line-height: 0.95; }
.cover-reveal strong i { color: var(--gold-dark); font-family: var(--serif); font-size: 0.62em; font-weight: 400; }
.cover-reveal span { font-size: clamp(0.62rem, 1.3vh, 0.78rem); letter-spacing: 0.12em; }
.invitation-cover.is-opening .guest-gate { opacity: 0; transform: translateY(1rem); pointer-events: none; }
.invitation-cover.is-opening .cover-art-closed { opacity: 0; transform: scale(0.99); }
.invitation-cover.is-opening .cover-art-open { opacity: 1; transform: scale(1); }
.invitation-cover.is-revealed .cover-reveal { opacity: 1; transform: translateY(0); }
.invitation-cover.is-leaving { opacity: 0; visibility: hidden; }

.story-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(20rem, 0.86fr) minmax(25rem, 1.14fr);
  overflow: hidden;
  background: var(--burgundy-950);
  color: var(--ivory-50);
}
.story-image { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; filter: brightness(0.74) saturate(0.86); }
.story-panel {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin: clamp(2rem, 5vw, 5rem);
  border: 1px solid var(--gold);
  padding: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  text-align: center;
}
.story-panel::before, .paper-frame::before, .event-card::before, .rsvp-form::before { position: absolute; inset: 0.55rem; border: 1px solid var(--line-light); content: ""; pointer-events: none; }
.story-panel .overline { color: var(--gold); }
.story-panel h1 { margin: 1rem 0; font-family: var(--script); font-size: clamp(5.2rem, 11vw, 9.5rem); font-weight: 400; letter-spacing: -0.035em; line-height: 0.68; }
.story-panel h1 span { display: block; }
.story-panel h1 i { display: block; margin: 0.1em 0; color: var(--gold); font-family: var(--serif); font-size: 0.35em; font-weight: 400; }
.story-date { margin: 1rem 0; font-family: var(--serif); font-size: 1.08rem; letter-spacing: 0.12em; }
.guest-welcome { margin: 1.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line-light); color: var(--ivory-100); font-family: var(--serif); font-size: 1rem; line-height: 1.35; }
.guest-welcome strong { font-size: 1.25rem; font-weight: 500; }
.scroll-cue { position: absolute; right: 2rem; bottom: 1rem; display: flex; min-height: 44px; align-items: center; gap: 1rem; color: var(--ivory-100); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }

.verse-section { display: flex; min-height: 72svh; align-items: center; flex-direction: column; justify-content: center; padding: clamp(6rem, 10vw, 9rem) var(--gutter); background: var(--ivory-50); text-align: center; }
.verse-section .ornament { margin-bottom: 1.5rem; color: var(--gold-dark); font-size: 1.35rem; }
.verse-section .overline, .couple-section .overline, .countdown-section .overline, .wishes-section .overline, .rsvp-section .overline { color: var(--burgundy-700); }
.verse-section h2 { margin: 1.2rem 0 2rem; color: var(--burgundy-800); font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 400; letter-spacing: -0.04em; line-height: 0.95; }
.verse-section blockquote { max-width: 48rem; margin: 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-style: italic; line-height: 1.55; }
.verse-section cite { margin-top: 1.5rem; color: var(--burgundy-700); font-size: 0.76rem; font-style: normal; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

.greeting-section { padding: clamp(5rem, 10vw, 9rem) var(--gutter); background: var(--burgundy-900); color: var(--ink); }
.paper-frame { position: relative; max-width: 64rem; margin: 0 auto; border: 1px solid var(--gold); padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 9vw, 8rem); background: var(--ivory-50); box-shadow: 0 2rem 5rem var(--shadow); text-align: center; }
.paper-frame::before { border-color: var(--line-dark); }
.basmalah { margin: 0 0 2rem; color: var(--burgundy-800); font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3.2rem); }
.paper-frame h2 { margin: 0; color: var(--burgundy-800); font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.4rem); font-style: italic; font-weight: 400; line-height: 1; }
.paper-frame > p:last-of-type { max-width: 40rem; margin: 2rem auto 0; color: var(--muted); }
.monogram-mark { position: absolute; bottom: -2.7rem; left: 50%; display: grid; width: 5.4rem; height: 5.4rem; grid-template-columns: 1fr auto 1fr; align-items: center; border: 1px solid var(--gold); border-radius: 50%; background: var(--burgundy-800); color: var(--ivory-50); font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.08em; transform: translateX(-50%); }
.monogram-mark::before { position: absolute; inset: 0.38rem; border: 1px solid rgba(210, 173, 105, 0.58); border-radius: inherit; content: ""; }
.monogram-mark::after { position: absolute; right: 50%; bottom: 0.58rem; left: 50%; width: 2.05rem; border-bottom: 1px solid var(--gold); content: "23 · 10"; color: var(--gold); font-family: var(--body); font-size: 0.39rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.25; text-align: center; transform: translateX(-50%); }
.monogram-mark span, .monogram-mark i { position: relative; z-index: 1; align-self: center; font-style: normal; font-weight: 400; line-height: 1; }
.monogram-mark span:first-child { justify-self: end; }
.monogram-mark span:last-child { justify-self: start; }
.monogram-mark i { margin: 0 0.18rem; color: var(--gold); font-family: var(--serif); font-size: 0.68rem; letter-spacing: 0; }

.couple-section { padding: clamp(7rem, 12vw, 11rem) var(--gutter); background: var(--ivory-100); }
.section-heading { max-width: 72rem; margin: 0 auto clamp(3rem, 7vw, 6rem); }
.section-heading h2 { margin: 1rem 0 0; color: var(--burgundy-800); font-family: var(--display); font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 400; letter-spacing: -0.055em; line-height: 0.9; }
.couple-list { max-width: 72rem; margin: 0 auto; }
.person-card { display: grid; grid-template-columns: minmax(14rem, 0.8fr) minmax(18rem, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.person-card-reverse { grid-template-columns: minmax(18rem, 1.2fr) minmax(14rem, 0.8fr); }
.person-card-reverse .couple-photo { grid-column: 2; }
.person-card-reverse .person-copy { grid-row: 1; grid-column: 1; text-align: right; }
.couple-photo { position: relative; display: flex; min-height: 24rem; align-items: center; justify-content: center; background: transparent; }
.couple-photo img { width: min(100%, 29rem); max-width: 100%; height: auto; object-fit: contain; }
.person-name { margin: 0 0 0.5rem; color: var(--burgundy-800); font-family: var(--script); font-size: clamp(3.4rem, 6vw, 5.8rem); line-height: 0.95; }
.person-copy > p:last-child { margin: 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.45; }
.couple-ampersand { margin: clamp(2rem, 5vw, 4rem) 0; color: var(--gold-dark); font-family: var(--serif); font-size: 4rem; text-align: center; }

.event-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr); gap: clamp(3rem, 8vw, 8rem); padding: clamp(8rem, 12vw, 12rem) var(--gutter); background: var(--ivory-50); }
.event-heading > p { max-width: 34rem; margin: 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1.25rem, 2.5vw, 1.7rem); line-height: 1.5; }
.event-title-lockup { margin-top: clamp(3rem, 7vw, 6rem); color: var(--burgundy-800); }
.event-heading .event-title-lockup { margin-top: 0; }
.event-title-lockup > span { display: block; font-family: var(--script); font-size: clamp(4.5rem, 9vw, 8rem); line-height: 0.72; }
.event-title-lockup small { display: block; margin: 0.9rem 0 0.35rem; font-family: var(--serif); font-size: 1.1rem; font-style: italic; }
.event-title-lockup h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 6vw, 6rem); font-weight: 400; letter-spacing: -0.055em; line-height: 0.9; }
.event-card { position: relative; align-self: center; border: 1px solid var(--burgundy-800); padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--ivory-100); }
.event-card::before { border-color: var(--line-dark); }
.event-date-block { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--burgundy-800); border-bottom: 1px solid var(--burgundy-800); padding: 1.2rem 0; }
.event-date-block span { align-self: center; color: var(--burgundy-700); font-size: 0.77rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.event-date-block strong { grid-row: 1 / 3; grid-column: 2; font-family: var(--display); font-size: clamp(4rem, 8vw, 6.5rem); font-weight: 400; line-height: 0.85; }
.event-card dl { position: relative; z-index: 1; margin: 1.4rem 0; }
.event-card dl div { display: grid; grid-template-columns: 0.42fr 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
.event-card dt { color: var(--burgundy-700); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.event-card dd { margin: 0; }
.location-button { position: relative; z-index: 1; display: flex; min-height: 3.25rem; align-items: center; justify-content: space-between; padding: 0.8rem 1.25rem; background: var(--burgundy-800); color: var(--ivory-50); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }

.countdown-section { position: relative; display: grid; min-height: 72svh; place-items: center; overflow: hidden; padding: clamp(7rem, 12vw, 11rem) var(--gutter); background: var(--ivory-100); text-align: center; }
.countdown-heading h2 { margin: 1rem 0 3rem; color: var(--burgundy-800); font-family: var(--display); font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 400; letter-spacing: -0.055em; line-height: 0.9; }
.countdown-heading h2 i { font-family: var(--script); font-weight: 400; }
.event-countdown { position: relative; z-index: 1; display: grid; width: min(100%, 66rem); grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--burgundy-800); border-bottom: 1px solid var(--burgundy-800); padding: clamp(1.1rem, 3vw, 2rem) 0; }
.event-countdown div { display: flex; flex-direction: column; border-left: 1px solid var(--line-dark); }
.event-countdown div:first-child { border-left: 0; }
.event-countdown strong { color: var(--burgundy-800); font-family: var(--display); font-size: clamp(2.6rem, 8vw, 6.8rem); font-weight: 400; line-height: 0.9; }
.event-countdown span { margin-top: 0.65rem; color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.monogram-static { position: relative; bottom: auto; left: auto; width: 6.2rem; height: 6.2rem; margin-top: 3.5rem; transform: none; }

.note-section { position: relative; display: grid; min-height: 90svh; grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 9vw, 9rem); align-content: center; padding: clamp(7rem, 12vw, 11rem) var(--gutter); overflow: hidden; background: var(--burgundy-800); color: var(--ivory-50); }
.note-section::after { position: absolute; right: -12vw; bottom: -30vw; width: min(70vw, 45rem); height: min(70vw, 45rem); border: 1px solid var(--line-light); border-radius: 50%; content: ""; }
.note-intro .overline { color: var(--gold); }
.note-intro h2 { position: relative; z-index: 1; }
.note-copy { position: relative; z-index: 1; align-self: center; padding-top: 1rem; border-top: 1px solid var(--line-light); color: var(--ivory-100); }
.note-copy p { margin: 0 0 1.2rem; }
.monogram-light { right: 8vw; bottom: 4rem; left: auto; background: var(--ivory-50); color: var(--burgundy-800); transform: none; }

.wishes-section { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); padding: clamp(7rem, 12vw, 11rem) var(--gutter); background: var(--ivory-50); }
.wishes-entry h2, .rsvp-intro h2 { margin: 1.1rem 0 1.5rem; font-family: var(--display); font-size: clamp(3.3rem, 7vw, 7rem); font-weight: 400; letter-spacing: -0.055em; line-height: 0.9; }
.wishes-entry > p, .rsvp-intro > p:last-child { max-width: 30rem; color: var(--muted); }
.wish-form { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line-dark); }
.wish-field { margin-bottom: 1rem; }
.wish-field label { display: block; margin-bottom: 0.4rem; color: var(--burgundy-800); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.wish-field input, .wish-field textarea { width: 100%; min-height: 3.15rem; border: 1px solid var(--line-dark); border-radius: 0; padding: 0.8rem 0.9rem; background: var(--ivory-100); color: var(--ink); }
.wish-field textarea { min-height: 8rem; resize: vertical; }
.wish-status { min-height: 1.5rem; margin: 0 0 0.75rem; color: var(--muted); font-size: 0.82rem; }
.wish-status.is-error { color: var(--burgundy-700); }
.wish-status.is-success { color: #285d3b; }
.wish-button { width: 100%; min-height: 3.25rem; border: 1px solid var(--burgundy-800); border-radius: 0; padding: 0.8rem 1rem; background: var(--burgundy-800); color: var(--ivory-50); cursor: pointer; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.wish-button:disabled { cursor: wait; opacity: 0.7; }
.wishes-board { display: grid; max-height: 42rem; align-self: start; gap: 1rem; overflow-y: auto; padding-right: 0.5rem; scrollbar-color: var(--burgundy-700) var(--ivory-100); }
.wishes-state { margin: 0; border-top: 1px solid var(--line-dark); padding: 1.5rem 0; color: var(--muted); font-family: var(--serif); font-size: 1.2rem; }
.wish-card { position: relative; border: 1px solid var(--line-dark); padding: 1.6rem 1.6rem 1.2rem 3.8rem; background: var(--ivory-100); }
.wish-mark { position: absolute; top: 0.75rem; left: 1.15rem; color: var(--gold-dark); font-family: var(--display); font-size: 4rem; line-height: 1; }
.wish-card > p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; }
.wish-card footer { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line-dark); color: var(--burgundy-700); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wish-card footer strong { font-weight: 600; }
.wish-card footer time { color: var(--muted); }

.rsvp-section { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; padding: clamp(7rem, 12vw, 11rem) var(--gutter); background: var(--burgundy-800); color: var(--ivory-50); }
.rsvp-section .overline { color: var(--gold); }
.rsvp-intro h2 { color: var(--ivory-50); }
.rsvp-intro > p:last-child { color: var(--ivory-100); }
.rsvp-form-shell { border: 1px solid var(--gold); padding: clamp(0.55rem, 1.2vw, 0.8rem); background: rgba(35, 3, 13, 0.22); }
.rsvp-form { position: relative; border: 1px solid var(--line-light); padding: clamp(1.5rem, 4vw, 3.5rem); background: transparent; }
.rsvp-form::before { border-color: rgba(210, 173, 105, 0.24); }
.field-group, .rsvp-form fieldset, .rsvp-status, .rsvp-button { position: relative; z-index: 1; }
.field-group { margin-bottom: 1.1rem; }
.field-group label, .rsvp-form legend { display: block; margin-bottom: 0.4rem; color: var(--gold); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.field-group label span { color: var(--muted); font-size: 0.68rem; }
.field-group input, .field-group select, .field-group textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  background: var(--ivory-50);
  color: var(--ink);
}
.field-group textarea { min-height: 8rem; resize: vertical; }
.rsvp-form fieldset { margin: 0 0 1.1rem; border: 0; padding: 0; }
.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.attendance-options label { position: relative; cursor: pointer; }
.attendance-options input { position: absolute; opacity: 0; }
.attendance-options span { display: flex; min-height: 3.2rem; align-items: center; justify-content: center; border: 1px solid var(--line-dark); padding: 0.65rem; background: var(--ivory-50); color: var(--ink); font-size: 0.76rem; text-align: center; }
.attendance-options input:checked + span { border-color: var(--gold); background: var(--gold); color: var(--burgundy-950); }
.attendance-options input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.rsvp-status { min-height: 1.5rem; margin: 0 0 0.75rem; color: var(--ivory-100); font-size: 0.82rem; }
.rsvp-status.is-error { color: #ffd6df; }
.rsvp-status.is-success { color: #e9d4a6; }
.rsvp-button { width: 100%; min-height: 3.25rem; border: 1px solid var(--gold); border-radius: 0; padding: 0.8rem 1rem; background: var(--gold); color: var(--burgundy-950); cursor: pointer; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.rsvp-button:disabled { cursor: wait; opacity: 0.7; }

.closing-section { display: flex; min-height: 75svh; align-items: center; flex-direction: column; justify-content: center; padding: 6rem 1.25rem; background: var(--ivory-100); text-align: center; }
.closing-section .overline { color: var(--burgundy-700); }
.closing-names { margin: 1.2rem 0; font-family: var(--script); font-size: clamp(5.5rem, 15vw, 11rem); font-weight: 400; letter-spacing: -0.04em; line-height: 0.8; }
.closing-names i { color: var(--gold-dark); font-family: var(--serif); font-size: 0.55em; font-weight: 400; }
.closing-section > p:last-child { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.08em; }

.music-control { position: fixed; z-index: 20; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: inline-flex; min-width: 3rem; min-height: 3rem; align-items: center; justify-content: center; gap: 0.45rem; border: 1px solid var(--gold); border-radius: 999px; padding: 0.7rem 0.9rem; background: var(--burgundy-800); color: var(--ivory-50); box-shadow: 0 0.7rem 1.8rem var(--shadow); cursor: pointer; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.music-control .music-icon-play { display: none; }
.music-control.is-paused .music-icon-pause { display: none; }
.music-control.is-paused .music-icon-play { display: block; }
.youtube-player { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
body > footer { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); background: var(--burgundy-950); color: var(--ivory-100); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
body > footer p { margin: 0; }
body > footer a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 0.25rem; }

@media (hover: hover) {
  .open-button, .location-button, .scroll-cue, .rsvp-button, .wish-button, .music-control { transition: transform 100ms var(--ease-enter), background-color 100ms var(--ease-enter); }
  .open-button:hover, .location-button:hover, .wish-button:hover, .music-control:hover { background: var(--burgundy-700); transform: translateY(-2px); }
  .rsvp-button:hover { background: var(--ivory-50); transform: translateY(-2px); }
  .scroll-cue:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: no-preference) {
  .cover-art-closed, .cover-art-open { transition: opacity 400ms var(--ease-enter), transform 400ms var(--ease-enter); }
  .guest-gate { transition: opacity 200ms var(--ease-exit), transform 200ms var(--ease-exit); }
  .cover-reveal { transition: opacity 300ms var(--ease-enter), transform 300ms var(--ease-enter); }
  .invitation-cover { transition: opacity 300ms var(--ease-exit), visibility 0ms 300ms; }
  .story-image, .story-panel { opacity: 0; transform: translateY(1rem); }
  body.invitation-open .story-image, body.invitation-open .story-panel { opacity: 1; transform: translateY(0); transition: opacity 400ms var(--ease-enter), transform 400ms var(--ease-enter); }
  body.invitation-open .story-panel { transition-delay: 100ms; }
}

@media (max-width: 760px) {
  .cover-stage { height: 100svh; min-width: 100vw; }
  .cover-topline { top: max(0.8rem, env(safe-area-inset-top)); }
  .open-button svg { display: none; }
  .guest-gate { bottom: max(0.75rem, env(safe-area-inset-bottom)); padding: 0.75rem; }
  .cover-recipient { margin-bottom: 0.55rem; }
  .open-button { min-height: 2.75rem; }
  .story-hero { display: block; min-height: 100svh; }
  .story-image { position: absolute; inset: 0; height: 100%; opacity: 0.45; }
  body.invitation-open .story-image { opacity: 0.45; }
  .story-panel { min-height: calc(100svh - 5rem); margin: 1.25rem; padding: 4rem 1.25rem; background: rgba(35, 3, 13, 0.58); }
  .scroll-cue { right: 1.25rem; bottom: 0.25rem; }
  .greeting-section { padding: 5rem 1.25rem 6.5rem; }
  .paper-frame { padding: 4rem 1.4rem; }
  .couple-section { padding: 7rem 1.25rem; }
  .verse-section { min-height: auto; padding: 6rem 1.25rem; }
  .person-card, .person-card-reverse { grid-template-columns: 1fr; gap: 2rem; }
  .person-card-reverse .couple-photo, .person-card-reverse .person-copy { grid-row: auto; grid-column: auto; }
  .person-card-reverse .person-copy { text-align: left; }
  .couple-photo { width: min(100%, 23rem); min-height: 0; justify-self: center; }
  .person-copy { text-align: center !important; }
  .event-section, .note-section, .wishes-section, .rsvp-section { grid-template-columns: 1fr; }
  .event-section { padding: 7rem 1.25rem; }
  .event-card dl div { grid-template-columns: 1fr; gap: 0.25rem; }
  .countdown-section { min-height: auto; padding: 7rem 1.25rem; }
  .event-countdown strong { font-size: clamp(2.25rem, 13vw, 4rem); }
  .event-countdown span { font-size: 0.59rem; letter-spacing: 0.1em; }
  .note-section { min-height: auto; padding: 7rem 1.25rem 10rem; }
  .monogram-light { right: 1.5rem; bottom: 2.5rem; }
  .wishes-section { padding: 7rem 1.25rem; }
  .wish-field input, .wish-field textarea, .field-group input, .field-group select { font-size: 1rem; }
  .wishes-board { max-height: 34rem; }
  .wish-card { padding: 1.4rem 1.2rem 1.1rem 3.2rem; }
  .wish-mark { left: 0.9rem; }
  .wish-card footer { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .rsvp-section { padding: 7rem 1.25rem; }
  .rsvp-form-shell { padding: 0.45rem; }
  .attendance-options { grid-template-columns: 1fr; }
  .music-control span { display: none; }
  footer { gap: 1rem; }
}

@media (max-height: 680px) {
  .cover-topline > p { margin-bottom: 0.4rem; }
  .cover-countdown { padding: 0.35rem 0; }
  .cover-countdown strong { font-size: 1.2rem; }
  .cover-countdown span { font-size: 0.56rem; }
  .guest-gate { padding: 0.6rem; }
  .cover-recipient { margin-bottom: 0.35rem; font-size: 0.72rem; }
  .open-button { min-height: 2.5rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
}

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