:root {
  --bg: #120b11;
  --ink: #fff8f4;
  --muted: rgba(255, 248, 244, 0.74);
  --accent: #ffd781;
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(12, 7, 12, 0.28);
  --shell: min(1260px, calc(100vw - 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #1a1117;
  touch-action: pan-y;
}

.reveal-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a1117;
  pointer-events: none;
  --focus-x: 34%;
  --focus-y: 55%;
}
.reveal-stage canvas,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-fallback {
  object-fit: cover;
  object-position: var(--focus-x) var(--focus-y);
}
.reveal-stage canvas { z-index: 1; }

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(8, 5, 9, 0.10) 0%,
      rgba(8, 5, 9, 0.02) 26%,
      rgba(8, 5, 9, 0.14) 51%,
      rgba(8, 5, 9, 0.42) 69%,
      rgba(8, 5, 9, 0.72) 100%),
    linear-gradient(180deg,
      rgba(8, 5, 9, 0.34) 0%,
      rgba(8, 5, 9, 0.03) 22%,
      rgba(8, 5, 9, 0.00) 56%,
      rgba(8, 5, 9, 0.80) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.10;
  pointer-events: none;
  mix-blend-mode: soft-light;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}
.hero-layer { position: relative; z-index: 4; }

.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.brand span { color: var(--accent); padding: 0 0.35rem; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--muted);
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--ink); }

.hero-copy {
  height: calc(100svh - 184px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.hero-copy-inner {
  width: min(560px, 41vw);
  margin-left: auto;
  pointer-events: auto;
}
.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  margin: 22px 0 20px;
  font-size: clamp(68px, 8.3vw, 132px);
  line-height: 0.84;
  letter-spacing: -0.065em;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 14px 56px rgba(0, 0, 0, 0.34);
}
h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  white-space: nowrap;
}
.birthday-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.birthday-line strong {
  color: var(--accent);
  font-size: 28px;
  letter-spacing: 0;
}
.lede {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button-solid { border-color: var(--ink); background: var(--ink); color: #111; font-weight: 850; }
.button-glass { background: var(--glass); backdrop-filter: blur(14px); }
.button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #17130a; font-weight: 850; }
.button:disabled { cursor: not-allowed; opacity: 0.52; transform: none; }

.interaction-hint {
  position: absolute;
  right: max(24px, calc((100vw - min(1260px, calc(100vw - 56px))) / 2));
  top: calc(50% + 138px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 8, 15, 0.28);
  backdrop-filter: blur(12px);
  font-size: 8px;
  letter-spacing: 0.19em;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}
.interaction-hint.hidden { opacity: 0; transform: translateY(5px); }
.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 211, 90, 0.14);
}

.hero-meta {
  position: absolute;
  right: max(24px, calc((100vw - min(1260px, calc(100vw - 56px))) / 2));
  bottom: 24px;
  z-index: 4;
  width: min(680px, calc(100vw - 56px));
}
.meta-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(11, 6, 12, 0.34), rgba(11, 6, 12, 0.14));
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
.meta-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.meta-item { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.meta-item span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.meta-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  font-variant-numeric: tabular-nums;
}
.section { padding: 120px 0; }
.details-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 80px; margin-top: 30px; }
.details h2,
.rsvp h2 { margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: 0.96; letter-spacing: -0.045em; }
.detail-cards { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.detail-cards article { padding: 24px 8px 28px 0; border-bottom: 1px solid var(--line); }
.detail-cards article:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-cards article:nth-child(even) { padding-left: 24px; }
.detail-cards span { color: var(--accent); font-size: 9px; letter-spacing: 0.18em; }
.detail-cards h3 { margin: 14px 0 7px; font-size: 18px; }
.detail-cards p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.story { background: #f7efe8; color: #17131d; }
.story .section-kicker { color: #a3576c; }
.story-inner { max-width: 980px; }
.story blockquote { margin: 28px 0 34px; font-family: Georgia, serif; font-size: clamp(44px, 6vw, 88px); line-height: 1.04; letter-spacing: -0.045em; }
.story-copy { max-width: 720px; color: rgba(23, 19, 29, 0.70); font-size: 17px; line-height: 1.70; }
.rsvp-panel {
  margin-top: 28px;
  padding: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(130deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.rsvp-panel p { max-width: 650px; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 1260px); }
  .nav-links { display: none; }
  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(6,6,12,.25) 0%, rgba(6,6,12,.00) 26%, rgba(6,6,12,.10) 52%, rgba(6,6,12,.86) 100%),
      linear-gradient(90deg, rgba(6,6,12,.05), rgba(6,6,12,.32) 74%, rgba(6,6,12,.56) 100%);
  }
  .hero-copy {
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 204px;
  }
  .hero-copy-inner { width: min(620px, 86vw); margin-left: 0; }
  h1 { font-size: clamp(64px, 15vw, 118px); }
  .interaction-hint { right: 16px; top: auto; bottom: 152px; }
  .hero-meta {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
  .meta-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .meta-grid { width: 100%; grid-template-columns: 1fr 1fr; gap: 14px; }
  .details-grid { grid-template-columns: 1fr; gap: 40px; }
  .rsvp-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --shell: min(100% - 24px, 1260px); }
  .nav { height: 68px; }
  .brand { font-size: 11px; }
  .hero-copy { height: calc(100svh - 68px); padding-bottom: 188px; }
  .hero-copy-inner { width: 100%; }
  .eyebrow { font-size: 0.54rem; letter-spacing: 0.14em; }
  h1 { margin: 16px 0 14px; font-size: clamp(50px, 16vw, 76px); line-height: .86; letter-spacing: -.055em; }
  h1 em { white-space: normal; }
  .birthday-line { margin-bottom: 11px; font-size: 10px; letter-spacing: .12em; }
  .birthday-line strong { font-size: 22px; }
  .lede { max-width: 360px; font-size: 12.5px; line-height: 1.52; }
  .hero-actions { margin-top: 17px; }
  .button { min-height: 44px; padding: 10px 15px; font-size: 12px; }
  .interaction-hint { display: none; }
  .meta-grid { grid-template-columns: 1fr; }
  .meta-item span { font-size: 0.47rem; letter-spacing: .14em; }
  .meta-item strong { font-size: 9.2px; letter-spacing: .025em; }
  .section { padding: 84px 0; }
  .details-grid { gap: 28px; }
  .detail-cards { grid-template-columns: 1fr; }
  .detail-cards article:nth-child(odd) { border-right: 0; }
  .detail-cards article:nth-child(even) { padding-left: 0; }
  .rsvp-panel { padding: 28px; }
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .interaction-hint { transition: none; }
}

/* Reused functional patterns from the supplied invitation code, restyled to keep this design intact. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span { width: 23px; height: 1.5px; display: block; background: currentColor; transition: transform 180ms ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.detail-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; }
.detail-actions a { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.detail-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }

.countdown-section {
  padding: 86px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d090f;
}
.countdown-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 64px; }
.countdown-layout h2 { margin: 18px 0 10px; max-width: 660px; font-size: clamp(38px, 4.8vw, 68px); line-height: .98; letter-spacing: -.045em; }
.countdown-status { margin: 0; color: var(--muted); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown div { min-width: 0; padding: 24px 12px; text-align: center; border-right: 1px solid var(--line); }
.countdown div:last-child { border-right: 0; }
.countdown strong { display: block; font-family: Georgia, serif; font-size: clamp(34px, 5vw, 66px); font-weight: 400; line-height: 1; }
.countdown span { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.section-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.section-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav { position: relative; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 32px));
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(13,9,15,.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { min-height: 46px; display: flex; align-items: center; padding: 0 12px; }
  .countdown-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .countdown-section { padding: 68px 0; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .countdown div:nth-child(2) { border-right: 0; }
  .countdown div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .section-reveal { opacity: 1; transform: none; transition: none; }
}


/* --------------------------------------------------------------------------
   Production birthday additions: music, memory gallery, Firebase RSVP, footer
   -------------------------------------------------------------------------- */

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: 16px;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #171018;
  font-size: 12px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.section-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.music-toggle {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  padding: 0;
  background: rgba(19, 10, 17, .82);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.music-toggle:hover { transform: translateY(-2px); border-color: rgba(255,215,129,.72); }
.music-toggle[aria-pressed="true"] { background: rgba(181,60,92,.88); border-color: rgba(255,215,129,.75); }
.music-toggle-icon { font-size: 18px; line-height: 1; }

/* Gallery */
.gallery {
  padding: 118px 0 128px;
  background: #0d090f;
}
.gallery-heading {
  display: grid;
  grid-template-columns: 1fr .72fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 34px;
}
.gallery-heading h2 {
  margin: 18px 0 0;
  font-size: clamp(48px, 6vw, 86px);
  line-height: .96;
  letter-spacing: -.055em;
}
.gallery-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  align-items: start;
}
.gallery-photo {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: #20151d;
  color: white;
  cursor: zoom-in;
  text-align: left;
}
.gallery-photo-tall { aspect-ratio: 3 / 4; }
.gallery-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
}
.gallery-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(9,5,9,.76) 100%);
  pointer-events: none;
}
.gallery-photo > span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 17px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}
.gallery-photo > span small {
  color: var(--accent);
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .18em;
}
.gallery-photo:hover img { transform: scale(1.035); filter: saturate(1.04); }
.gallery-photo:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.lightbox {
  width: min(96vw, 1080px);
  height: min(92dvh, 860px);
  max-width: none;
  max-height: none;
  border: 0;
  padding: 16px;
  background: transparent;
  color: white;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
dialog.lightbox:not([open]) { display: none; }
.lightbox::backdrop {
  background: rgba(6,4,7,.92);
  backdrop-filter: blur(12px);
}
.lightbox-stage {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) 54px;
  align-items: center;
  gap: 14px;
}
.lightbox-visual {
  min-width: 0;
  min-height: 0;
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lightbox-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
}
.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(22,12,19,.66);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.lightbox-close {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
}
.lightbox-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
}
.lightbox > p {
  width: 100%;
  margin: 10px auto 0;
  padding: 0 12px 2px;
  max-width: 720px;
  color: rgba(255,255,255,.74);
  text-align: center;
  font-size: 12px;
}

/* RSVP */
.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0,.76fr) minmax(0,1.24fr);
  gap: clamp(48px,7vw,94px);
  align-items: start;
}
.rsvp-intro {
  position: sticky;
  top: 44px;
}
.rsvp-intro h2 {
  margin: 20px 0 18px;
}
.rsvp-intro > p {
  color: var(--muted);
  line-height: 1.7;
}
.privacy-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 26px;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.privacy-note > span { color: var(--accent); }
.privacy-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  padding: clamp(24px,4vw,42px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 26px 75px rgba(0,0,0,.12);
}
.field {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.field-full { grid-column: 1 / -1; }
.field label,
.field legend {
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .015em;
}
.field label span { color: var(--muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.field input,
.field select { min-height: 50px; }
.field textarea { min-height: 122px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,248,244,.42); }
.field select option { color: #181018; background: white; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255,215,129,.85);
  box-shadow: 0 0 0 3px rgba(255,215,129,.10);
  background: rgba(255,255,255,.075);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #ef9288;
  box-shadow: 0 0 0 3px rgba(239,146,136,.10);
}
.field-error {
  min-height: 18px;
  color: #ffaaa1;
  font-size: 11px;
}
.form-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.form-heading span { font-family: Georgia, serif; font-size: 24px; }
.form-heading small { color: var(--muted); font-size: 10px; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  text-align: center;
  font-size: 12px;
  font-weight: 760;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.choice span b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
}
.choice:hover span { transform: translateY(-1px); border-color: rgba(255,215,129,.65); }
.choice input:checked + span { background: var(--ink); color: #171018; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

.button-submit { width: 100%; }
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(17,16,17,.28);
  border-top-color: #171018;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin: 0; color: var(--muted); font-size: 12px; }
.form-status.is-success,
.form-status.is-error {
  padding: 14px 15px;
  border-radius: 14px;
}
.form-status.is-success { background: rgba(96,174,122,.15); color: #b9e7c5; }
.form-status.is-error { background: rgba(207,84,73,.15); color: #ffc1ba; }
.submission-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,215,129,.08);
  color: rgba(255,248,244,.76);
  font-size: 11px;
  line-height: 1.5;
}

/* Closing + footer */
.closing {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 24%, rgba(181,60,92,.16), transparent 28rem),
    #0d090f;
}
.closing-inner { max-width: 900px; }
.closing h2 {
  margin: 18px 0 20px;
  max-width: 850px;
  font-size: clamp(50px,6.5vw,94px);
  line-height: .98;
  letter-spacing: -.055em;
}
.closing p { max-width: 620px; color: var(--muted); line-height: 1.7; }
.closing .button { margin-top: 16px; }

.footer {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.footer strong { font-size: 11px; letter-spacing: .14em; }
.footer strong span { color: var(--accent); padding: 0 .25rem; }
.footer p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.footer > a { color: var(--muted); font-size: 11px; }
.footer > a:hover { color: var(--ink); }

/* Mobile production additions */
@media (max-width: 900px) {
  .gallery-heading { grid-template-columns: 1fr; gap: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rsvp-layout { grid-template-columns: 1fr; gap: 34px; }
  .rsvp-intro { position: static; }
}

@media (max-width: 560px) {
  .music-toggle { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .gallery { padding: 82px 0 92px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-photo,
  .gallery-photo-tall { aspect-ratio: 4 / 5; }
  .rsvp-form { grid-template-columns: 1fr; padding: 22px 16px; }
  .field-full { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .lightbox { width: calc(100vw - 16px); height: calc(100dvh - 16px); padding: 12px 8px; }
  .lightbox-stage { grid-template-columns: 42px minmax(0,1fr) 42px; gap: 6px; }
  .lightbox-close { top: 0; right: 0; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox > p { margin-top: 8px; padding-inline: 4px; font-size: 11px; }
  .footer { align-items: flex-start; flex-direction: column; padding-block: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-photo img,
  .music-toggle { transition: none; }
}
