/* ===================== Foundations ===================== */

:root {
  --navy: #0B0F2E;
  --indigo: #1B2147;
  --gold: #E8C468;
  --dim: #4A5178;
  /* Brighter than --dim specifically for readable text (labels, dates,
     subtitles) — --dim stays reserved for decorative/locked-state fills
     and borders, which don't need text-level contrast. */
  --dim-text: #9AA3D9;
  --cream: #F5F1E6;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(165deg, var(--navy) 0%, var(--indigo) 100%);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===================== Ornamental card border ===================== */
/* A quiet double-rule frame with a curling gold vine, flowers and leaves
   at each corner — the whole site reads as one invitation card, no
   matter which page is open inside it. Purely decorative: fixed,
   unclickable, sits above everything. */

.page-frame {
  position: fixed;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}

.page-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(232, 196, 104, 0.55);
  border-radius: 42px;
}

.frame-corner {
  position: absolute;
  width: 220px;
  height: 220px;
  color: var(--gold);
}

.frame-corner-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.orn-leaf-tone {
  color: var(--dim-text);
}

.frame-branch {
  position: absolute;
  color: var(--gold);
}

.frame-branch-svg-h {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.frame-branch-svg-v {
  display: block;
  width: auto;
  height: 100%;
  overflow: visible;
}

.frame-branch-h {
  width: 45%;
  min-width: 220px;
  max-width: 560px;
}

.frame-branch-v {
  height: 45%;
  min-height: 220px;
  max-height: 560px;
}

.frame-branch-h--tl {
  top: 16px;
  left: 16px;
}

.frame-branch-v--tl {
  top: 16px;
  left: 16px;
}

.frame-branch-h--br {
  bottom: 16px;
  right: 16px;
  transform: scale(-1, -1);
}

.frame-branch-v--br {
  bottom: 16px;
  right: 16px;
  transform: scale(-1, -1);
}

.frame-corner--tr {
  top: 12px;
  right: 12px;
}

.frame-corner--bl {
  bottom: 12px;
  left: 12px;
  transform: scale(-1, -1);
}

.frame-flourish {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  color: var(--gold);
  opacity: 0.9;
}

.frame-flourish-svg {
  display: block;
  width: 100%;
  height: auto;
}

.frame-flourish--top {
  top: 7px;
}

.frame-flourish--bottom {
  bottom: 7px;
}

@media (max-width: 480px) {
  .page-frame::before {
    inset: 10px;
    border-radius: 28px;
  }

  .frame-corner {
    width: 142px;
    height: 142px;
  }

  .frame-corner--tr { top: 6px; right: 6px; }
  .frame-corner--bl { bottom: 6px; left: 6px; }

  .frame-branch-h {
    width: 45%;
    min-width: 150px;
    max-width: 300px;
  }

  .frame-branch-v {
    height: 45%;
    min-height: 150px;
    max-height: 300px;
  }

  .frame-branch-h--tl { top: 10px; left: 10px; }
  .frame-branch-v--tl { top: 10px; left: 10px; }
  .frame-branch-h--br { bottom: 10px; right: 10px; }
  .frame-branch-v--br { bottom: 10px; right: 10px; }

  .frame-flourish {
    width: 90px;
  }

  .frame-flourish--top { top: 4px; }
  .frame-flourish--bottom { bottom: 4px; }
}

/* ===================== Passcode gate ===================== */

.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  overflow: hidden;
  perspective: 1700px;
  transition: opacity 0.5s ease;
}

.gate[hidden] {
  display: none;
}

/* The closed album: two cover halves meeting at a center seam, each
   hinged at the spine so they swing open like real pages rather than
   sliding flat. */

.book-cover {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(165deg, rgba(11, 15, 46, 0.97) 0%, rgba(27, 33, 71, 0.97) 100%);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 0.95s cubic-bezier(0.6, 0, 0.4, 1);
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(232, 196, 104, 0.16);
  pointer-events: none;
}

/* A shadow that only gathers along the hinge-adjacent edge as the cover
   lifts, suggesting the thickness of the page catching the light. */
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.book-cover--left {
  left: 0;
  transform-origin: left center;
  box-shadow: inset -22px 0 44px -28px rgba(0, 0, 0, 0.7);
}

.book-cover--left::after {
  background: linear-gradient(90deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.book-cover--right {
  right: 0;
  transform-origin: right center;
  box-shadow: inset 22px 0 44px -28px rgba(0, 0, 0, 0.7);
}

.book-cover--right::after {
  background: linear-gradient(270deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Hinged at the outer edge (not the spine) so the covers swing away like
   real double doors, widening the gap at the center as they open — hinging
   at the spine instead made them collapse to a sliver there, which read as
   closing rather than opening. */
.gate--opening .book-cover--left {
  transform: rotateY(108deg);
}

.gate--opening .book-cover--right {
  transform: rotateY(-108deg);
}

.gate--opening .book-cover::after {
  opacity: 1;
}

.gate-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gate--opening .gate-content {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.gate-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.gate-title {
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--cream);
  margin: 0 0 8px;
}

/* The ribbon "belt" holding the cover shut, with a wax-seal clasp at its
   center — echoes the same seal motif used to reveal each chapter's clue. */

.book-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin: 24px auto 28px;
  max-width: 280px;
}

.book-ribbon-strip {
  flex: 1;
  height: 5px;
  background: linear-gradient(90deg, rgba(232, 196, 104, 0.15), rgba(232, 196, 104, 0.85));
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.book-ribbon-strip--left {
  background: linear-gradient(270deg, rgba(232, 196, 104, 0.15), rgba(232, 196, 104, 0.85));
}

.book-seal {
  width: 18px;
  height: 18px;
  margin: 0 -1px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 10px 2px rgba(74, 81, 120, 0.5);
  transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

.book-seal.ignited {
  background: var(--gold);
  box-shadow:
    0 0 14px 3px rgba(232, 196, 104, 0.9),
    0 0 36px 10px rgba(232, 196, 104, 0.5);
  transform: scale(1.3);
}

.gate--opening .book-ribbon-strip--left {
  transform: translateX(-160%);
  opacity: 0;
}

.gate--opening .book-ribbon-strip--right {
  transform: translateX(160%);
  opacity: 0;
}

.gate--opening .book-seal {
  transform: scale(0);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .book-cover,
  .book-cover::after,
  .gate-content,
  .book-ribbon-strip,
  .book-seal {
    transition: none;
    animation: none;
  }
}

.gate-prompt {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--dim-text);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Face unlock — an optional, friendlier alternative to the passphrase,
   never a replacement for it. */

.face-unlock[hidden] {
  display: none;
}

.face-unlock-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.face-unlock-button:hover {
  background: var(--gold);
  color: var(--navy);
}

.face-scan {
  margin-top: 20px;
}

.face-scan[hidden] {
  display: none;
}

.face-video {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  transform: scaleX(-1);
  border: 2px solid var(--gold);
  box-shadow: 0 0 24px rgba(232, 196, 104, 0.35);
  background: rgba(0, 0, 0, 0.3);
}

.face-status {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--dim-text);
  font-style: italic;
}

.face-cancel {
  display: block;
  margin: 10px auto 0;
  background: none;
  border: none;
  color: var(--dim-text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.face-cancel:hover {
  color: var(--gold);
}

.gate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--dim-text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gate-divider::before,
.gate-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(74, 81, 120, 0.5);
}

.gate-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.gate-input {
  background: rgba(245, 241, 230, 0.06);
  border: 1px solid var(--dim);
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  min-width: 200px;
  text-align: center;
  letter-spacing: 0.05em;
}

.gate-input::placeholder {
  color: var(--dim);
}

.gate-input.shake {
  animation: gate-shake 0.5s ease;
}

@keyframes gate-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

@media (prefers-reduced-motion: reduce) {
  .gate-input.shake {
    animation: none;
  }
}

.gate-error {
  min-height: 1.4em;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--dim-text);
}

/* ===================== Site shell ===================== */

.site {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.site--visible {
  opacity: 1;
}

section, .hero {
  position: relative;
  padding: 96px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  text-align: center;
  text-shadow: 0 0 24px rgba(245, 241, 230, 0.18);
  margin-bottom: 0.2em;
}

.section-flourish {
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  color: var(--dim-text);
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto 48px;
}

/* ===================== Hero ===================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-inner {
  animation: fade-up 1.4s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-inner {
    animation: none;
  }
}

.hero-kicker {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-title {
  text-align: center;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  color: var(--cream);
  margin-bottom: 40px;
  text-shadow: 0 0 30px rgba(245, 241, 230, 0.2);
}

.hero-title .amp,
.gate-title .amp {
  color: var(--gold);
  font-style: italic;
  padding: 0 0.15em;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-photo-wrap[hidden] {
  display: none;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(232, 196, 104, 0.3);
}

.invitation-letter {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-style: italic;
  color: var(--cream);
  text-align: center;
  max-width: 540px;
  margin: 0 auto 8px;
}

.invitation-letter p {
  margin-bottom: 1.1em;
}

.invitation-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--dim-text);
  text-align: center;
  margin: 0 auto 56px;
}

.countdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.countdown {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
  padding: 20px 18px;
  border: 1px solid rgba(74, 81, 120, 0.5);
  border-radius: 14px;
  background: rgba(245, 241, 230, 0.03);
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim-text);
  margin-bottom: 8px;
}

.countdown-timer {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  color: var(--gold);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.countdown-placeholder .countdown-timer {
  color: var(--dim-text);
  font-size: 0.95rem;
  font-style: italic;
  font-family: var(--font-body);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-hint-line {
  width: 1px;
  height: 22px;
  background: var(--gold);
  animation: scroll-hint-move 1.8s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes scroll-hint-move {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint-line {
    animation: none;
    opacity: 0.6;
  }
}

/* ===================== Constellation ===================== */

.constellation-wrap {
  width: 100%;
  overflow-x: auto;
}

.constellation {
  width: 100%;
  height: auto;
  display: block;
}

.constellation-line {
  stroke: rgba(74, 81, 120, 0.7);
  stroke-width: 1;
}

.constellation-star--unlocked {
  fill: var(--gold);
  filter: drop-shadow(0 0 6px rgba(232, 196, 104, 0.9));
}

.constellation-star-glow {
  fill: rgba(232, 196, 104, 0.12);
}

.constellation-star--locked {
  fill: var(--dim);
}

.constellation-label {
  fill: var(--dim-text);
  font-family: var(--font-body);
  font-size: 13px;
}

.constellation-label--unlocked {
  fill: var(--cream);
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
}

.constellation-link {
  cursor: pointer;
}

.constellation-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.constellation-link .constellation-star--unlocked {
  transition: r 0.2s ease;
}

.constellation-link:hover .constellation-star--unlocked,
.constellation-link:focus-visible .constellation-star--unlocked {
  r: 11;
}

.constellation-link--opening .constellation-star--unlocked {
  transform-box: fill-box;
  transform-origin: center;
  animation: star-flare 0.55s ease forwards;
}

.constellation-link--opening .constellation-star-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: star-flare-glow 0.55s ease forwards;
}

.constellation-link--opening .constellation-label--unlocked {
  animation: label-fade-out 0.4s ease forwards;
}

@keyframes star-flare {
  0% { transform: scale(1); }
  40% { transform: scale(1.9); }
  100% { transform: scale(3.4); opacity: 0; }
}

@keyframes star-flare-glow {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(4.5); opacity: 0; }
}

@keyframes label-fade-out {
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .constellation-link--opening .constellation-star--unlocked,
  .constellation-link--opening .constellation-star-glow,
  .constellation-link--opening .constellation-label--unlocked {
    animation: none;
  }
}

.story-progress {
  text-align: center;
  color: var(--dim-text);
  font-size: 0.85rem;
  margin-top: 36px;
}

/* ===================== Chapter page ===================== */

.chapter-page {
  animation: fade-up 0.9s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .chapter-page {
    animation: none;
  }
}

.back-link {
  display: block;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 0;
  color: var(--dim-text);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--gold);
}

.chapter-spotify {
  max-width: 280px;
  margin: 36px auto 0;
  opacity: 0.85;
}

.chapter-spotify[hidden] {
  display: none;
}

.chapter-spotify-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim-text);
  margin-bottom: 8px;
}

.chapter-spotify-iframe {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.sfx-toggle {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(74, 81, 120, 0.7);
  background: rgba(11, 15, 46, 0.75);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.sfx-toggle:hover {
  border-color: var(--gold);
  opacity: 1;
  transform: scale(1.05);
}

.close-album-toggle {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(74, 81, 120, 0.7);
  background: rgba(11, 15, 46, 0.75);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.close-album-toggle:hover {
  border-color: var(--gold);
  opacity: 1;
  transform: scale(1.05);
}

.chapter {
  text-align: center;
}

.chapter-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.chapter-date {
  color: var(--dim-text);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.chapter-theme {
  display: inline-block;
  padding: 6px 18px;
  margin: 0 0 28px;
  border: 1px solid rgba(232, 196, 104, 0.4);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chapter-theme:empty {
  display: none;
  margin: 0;
}

.chapter-intro {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-style: italic;
  max-width: 480px;
  margin: 0 auto 28px;
}

.chapter-details {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cream);
  max-width: 520px;
  margin: 0 auto 40px;
}

.chapter-details:empty {
  display: none;
  margin: 0;
}

.seal-pretext {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--dim-text);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.seal-button {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.seal-button:hover {
  background: var(--gold);
  color: var(--navy);
}

.seal-icon {
  font-size: 1rem;
}

.seal-button--broken .seal-icon {
  opacity: 0.8;
}

.clue-text {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream);
  max-width: 460px;
  margin: 28px auto 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.clue-text--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .clue-text {
    transition: opacity 0.2s linear;
    transform: none;
  }
}

.logistics-note {
  margin-top: 56px;
  padding: 24px;
  border: 1px dashed rgba(74, 81, 120, 0.6);
  border-radius: 14px;
  background: rgba(245, 241, 230, 0.03);
}

.logistics-title {
  font-size: 1rem;
  color: var(--dim-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.logistics-text {
  margin: 0;
  color: var(--cream);
  font-size: 0.95rem;
}

/* ===================== RSVP ===================== */

.rsvp-question {
  border: none;
  padding: 0;
  margin: 0 0 36px;
}

.rsvp-question legend {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 16px;
  padding: 0;
  width: 100%;
  text-align: center;
}

.card-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.option-card {
  position: relative;
  flex: 1 1 120px;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid rgba(74, 81, 120, 0.7);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.option-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.option-card:hover {
  border-color: var(--gold);
}

.option-card:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.option-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(232, 196, 104, 0.08);
  transform: translateY(-2px);
}

.option-icon {
  font-size: 1.6rem;
}

.option-text {
  font-size: 0.9rem;
  color: var(--cream);
}

.option-card:has(input:checked) .option-text {
  color: var(--gold);
}

.rsvp-submit {
  display: block;
  margin: 12px auto 0;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.rsvp-submit:hover {
  opacity: 0.9;
}

.rsvp-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.rsvp-error {
  text-align: center;
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 16px;
}

.rsvp-thanks {
  text-align: center;
  animation: fade-up 0.8s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-thanks {
    animation: none;
  }
}

.rsvp-thanks-line {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 28px;
}

/* ===================== Memories (post-date upload) ===================== */

.memories-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.memories-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 32px 20px;
  border: 1px dashed rgba(74, 81, 120, 0.7);
  border-radius: 14px;
  cursor: pointer;
  color: var(--dim-text);
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.memories-drop:hover {
  border-color: var(--gold);
  color: var(--cream);
}

.memories-drop-icon {
  font-size: 1.8rem;
}

.memories-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.memories-caption {
  width: 100%;
  background: rgba(245, 241, 230, 0.04);
  border: 1px solid rgba(74, 81, 120, 0.6);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  resize: vertical;
}

.memories-caption::placeholder {
  color: var(--dim);
}

.memories-submit {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.memories-submit:hover {
  background: var(--gold);
  color: var(--navy);
}

.memories-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.memories-error {
  text-align: center;
  color: var(--gold);
  font-size: 0.9rem;
}

.memories-thanks {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  max-width: 460px;
  margin: 0 auto;
}

/* ===================== Footer ===================== */

.site-footer {
  text-align: center;
  padding: 48px 24px 80px;
  color: var(--dim-text);
  font-size: 0.85rem;
}

/* ===================== Responsive ===================== */

@media (min-width: 640px) {
  section, .hero {
    padding: 120px 32px;
  }
}
