/* ─── Fonts ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&family=Courier+Prime:wght@400;700&family=Space+Grotesk:wght@500;700&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --cotton-candy: #F9C4D8;
  --magenta:      #CC2D78;
  --magenta-deep: #9C1A56;
  --orange:       #F5793A;
  --marigold:     #F5A623;
  --charcoal:     #1A1028;
  --cream:        #FDF6EC;
  --white:        #FFFFFF;
  --muted:        #6b6560;
  --sage:         #C7D3B4;
  --forest:       #3F6349;
  --sky-blue:     #BFE0E8;
  --green:        #3F6349;
  --green-deep:   #28402E;
  --green-wash:   #E3EAD9;
  --red:          #B23A3A;
  --red-deep:     #7A2626;
  --red-wash:     #F4DCDA;

  --font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.scale-110 { font-size: 110%; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1200px;
  margin: 0;
  padding: 0 3rem;
}

/* ─── Password Screen ────────────────────────────────────────── */
#password-screen {
  position: fixed;
  inset: 0;
  background-image: repeating-conic-gradient(#FCE8E6 0% 25%, var(--cream) 0% 50%);
  background-size: 48px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  overflow-y: auto;
}

#password-screen.hidden { display: none; }

.password-illustration {
  width: 100%;
  max-width: min(190px, 20vh, 38vw);
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.password-box {
  position: relative;
  background: #F7F5EC;
  border-radius: 28px;
  padding: clamp(1.5rem, 3.5vh, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  width: min(92vw, 440px);
  border: 3px solid var(--charcoal);
  box-shadow: 12px 12px 0 var(--magenta);
  margin: auto;
}

.password-box .section-heading {
  margin: 0 0 1rem;
}

.password-box h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: var(--charcoal);
  margin-bottom: 1.1rem;
  line-height: 1.05;
}

.password-box h1 .h1-light {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  color: var(--muted);
  font-size: 0.4em;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.password-box h1 .h1-names {
  display: block;
  font-size: 1.2em;
  line-height: 1.05;
  margin-top: 0.15em;
}

.password-box input[type="text"],
.password-box input[type="password"] {
  width: 100%;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--charcoal);
  background: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  outline: none;
  margin-bottom: 1.1rem;
}

.password-box input[type="text"]:focus,
.password-box input[type="password"]:focus { border-color: var(--magenta); }

.password-box button {
  width: 100%;
  padding: 1.1rem 1.5rem;
  border-radius: 999px;
  background: var(--marigold);
  color: var(--charcoal);
  border: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.password-box button:hover { transform: translateY(-2px); }

.password-error {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--magenta);
  margin-top: 0.85rem;
  min-height: 1em;
}

.password-rsvp-note {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* ─── Navigation ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid rgba(26, 16, 40, 0.08);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 0.92;
  flex-shrink: 0;
  font-size: 2.2rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.nav-divider {
  width: 2px;
  height: 4rem;
  background: rgba(26, 16, 40, 0.15);
  flex-shrink: 0;
}

.nav-page-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--charcoal);
  font-size: 1.8rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-pill {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.nav-pill:hover { transform: translateY(-2px); }
.nav-pill.active {
  border-width: 3px;
  border-color: var(--charcoal);
  box-shadow: 3px 3px 0 var(--charcoal);
}

.nav-pill-home     { background: var(--magenta);      color: var(--white); }
.nav-pill-details  { background: var(--cotton-candy); color: var(--charcoal); }
.nav-pill-recovery { background: var(--marigold);     color: var(--charcoal); }
.nav-pill-story    { background: var(--orange);       color: var(--white); }
.nav-pill-trivia   { background: var(--magenta);      color: var(--white); }

.nav-rsvp {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--marigold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.nav-rsvp:hover { transform: scale(1.05); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 1.6rem;
  height: 3px;
  border-radius: 2px;
  background: var(--charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────────── */
#hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 3rem 5rem;
}

.hero-copy { max-width: 640px; }

.hero-copy p {
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-cta {
  display: inline-block;
  background: var(--cotton-candy);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 1.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.hero-cta:hover { transform: translateY(-2px); }

/* ─── Checkerboard Divider ──────────────────────────────────── */
.checker-divider {
  width: 100%;
  height: 72px;
  background-image: repeating-conic-gradient(var(--cotton-candy) 0% 25%, var(--cream) 0% 50%);
  background-size: 48px 48px;
}

/* ─── Rule Divider (light, for minor section breaks) ─────────── */
.rule-divider {
  width: 100%;
  padding: 0 3rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rule-divider::before,
.rule-divider::after {
  content: '';
  flex: 1;
  height: 0;
  border-top: 3px dashed var(--charcoal);
}

.rule-divider .rule-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--marigold);
  border: 2px solid var(--charcoal);
  flex-shrink: 0;
}

.hero-photo { width: 100%; display: block; }

/* ─── Countdown (homepage) ───────────────────────────────────── */
.countdown-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 2.5rem 1.5rem;
}

.countdown-unit { display: flex; align-items: baseline; gap: 0.4rem; }

.countdown-unit + .countdown-unit::before {
  content: '·';
  color: rgba(26, 16, 40, 0.16);
  margin-right: 0.9rem;
  font-size: 1.4rem;
}

.countdown-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--charcoal);
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.location-photo {
  width: 80%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--charcoal);
}

.moodboard-photo {
  width: 100%;
  border-radius: 20px;
  border: 2px solid var(--charcoal);
  margin-top: 1.5rem;
}

/* ─── Section Base ───────────────────────────────────────────── */
section { padding: 3rem 0; }
section .wrap { max-width: 1000px; }

@media (min-width: 1281px) {
  section .wrap { max-width: 80%; }
}

.section-kicker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.section-heading {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
  border-radius: 14px;
  padding: 0.6rem 1.3rem;
  background: var(--marigold);
  transform: rotate(var(--tag-rot, -1deg));
  box-shadow: 6px 6px 0 var(--charcoal);
  margin: 0 0 3rem;
}

.section-heading.tag-flip { --tag-rot: 1deg; }
.section-heading.tag-magenta { background: var(--magenta); color: var(--white); }
.section-heading.tag-orange  { background: var(--orange);  color: var(--white); }
.section-heading.tag-cotton  { background: var(--cotton-candy); color: var(--charcoal); }

.page-header {
  padding: 4rem 3rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.page-kicker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.page-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 0.95;
  color: var(--charcoal);
}

/* ─── Color-Block Row (full-bleed 3-up) ─────────────────────── */
.block-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.block-row-1 { grid-template-columns: 1fr; }
.block-row-2 { grid-template-columns: repeat(2, 1fr); }

.block { padding: 3rem 2.75rem; }

.block h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.block p { font-size: 1rem; margin-bottom: 0.25rem; }

.block .block-time {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  margin-top: 1rem;
}

.block-magenta  { background: var(--magenta);      color: var(--white); }
.block-pink     { background: var(--cotton-candy); color: var(--charcoal); }
.block-marigold { background: var(--marigold);     color: var(--charcoal); }
.block-orange   { background: var(--orange);       color: var(--white); }

/* ─── Our Story Chapters ─────────────────────────────────────── */
.story-chapters { display: grid; }

.chapter {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  padding: 2.75rem 0;
  align-items: start;
}

.chapter-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 3rem;
}

.chapter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#chapter-1 .chapter-photo { background: var(--magenta); }
#chapter-2 .chapter-photo { background: var(--cotton-candy); }
#chapter-3 .chapter-photo { background: var(--marigold); aspect-ratio: 1 / 1; }
#chapter-4 .chapter-photo { background: var(--orange); }
#chapter-4 .chapter-photo img { object-position: left center; }

.chapter-kicker {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.chapter-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
  color: var(--charcoal);
}

.chapter-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.chapter-text + .chapter-text { margin-top: 0.9rem; }

.chapter-text.placeholder { font-style: italic; }

/* ─── FAQs ───────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--white);
  border: 2px solid var(--charcoal);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item::before {
  content: '?';
  grid-row: 1 / span 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  background: var(--magenta);
  position: relative;
}

.faq-item:nth-child(4n+2)::before { background: var(--marigold); color: var(--charcoal); }
.faq-item:nth-child(4n+3)::before { background: var(--orange); }
.faq-item:nth-child(4n+0)::before { background: var(--charcoal); color: var(--marigold); }

.faq-item::before {
  border-right: 2px dashed var(--charcoal);
}

.faq-item > .faq-question,
.faq-item > .faq-answer {
  grid-column: 2;
  padding: 0 1.5rem;
}

.faq-item > .faq-question { padding-top: 1.25rem; }
.faq-item > .faq-answer:last-child { padding-bottom: 1.25rem; }

.faq-question {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--charcoal);
  margin: 0 0 0.6rem;
}

.faq-answer {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer + .faq-answer { margin-top: 0.6rem; }

.faq-answer.placeholder { font-style: italic; }

.faq-answer a { color: var(--magenta); font-weight: 700; }

/* ─── Photo Grid ─────────────────────────────────────────────── */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.photo-grid img {
  width: calc((100% - 32px) / 3);
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--charcoal);
  display: block;
}

/* ─── Venue Map ──────────────────────────────────────────────── */
.map-card {
  width: 100%;
  margin: 2rem 0 0;
  background: var(--white);
}

.map-illustration { background: var(--cream); min-height: 480px; }
.map-illustration iframe,
.map-illustration > div { display: block; width: 100%; height: 480px; border: 0; }

/* ─── Timeline (Wedding Details) ─────────────────────────────── */
.schedule-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: var(--marigold);
  border-radius: 999px;
  display: inline-block;
  padding: 0.55rem 1.4rem;
  margin: 3rem 0 2rem;
}

.timeline {
  margin-left: 0.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 0 0 1.75rem 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  background: var(--marigold);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -2px;
  top: calc(0.3rem + 8px);
  bottom: calc(-0.3rem - 8px);
  border-left: 3px dashed var(--marigold);
}

.timeline-time {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--charcoal);
  height: fit-content;
  margin-top: 0.15rem;
}

.timeline-event h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--charcoal);
}

.timeline-event p { font-size: 0.9rem; color: var(--muted); }

.logistics-note {
  margin-top: 3rem;
  background: var(--cotton-candy);
  border-radius: 20px;
  padding: 2rem 2.25rem;
}

.logistics-note h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}

.logistics-note p { font-size: 0.95rem; color: var(--charcoal); }

/* ─── Food & Accom cards ─────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.card {
  border-radius: 20px;
  padding: 2rem 1.85rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.card p, .card li {
  font-size: 0.92rem;
  line-height: 1.65;
}

.card ul { padding-left: 1.2rem; margin-top: 0.5rem; }

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: var(--marigold);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.6rem;
}

.card.tint-magenta  { background: var(--magenta);      color: var(--white); }
.card.tint-pink     { background: var(--cotton-candy); color: var(--charcoal); }
.card.tint-marigold { background: var(--marigold);     color: var(--charcoal); }
.card.tint-orange   { background: var(--orange);       color: var(--white); }

.card.tint-magenta .card-icon,
.card.tint-orange  .card-icon { background: rgba(255,255,255,0.25); color: var(--white); }
.card.tint-pink    .card-icon,
.card.tint-marigold .card-icon { background: rgba(26,16,40,0.12); color: var(--charcoal); }

.card .placeholder { font-style: italic; opacity: 0.75; }

/* ─── RSVP Form ──────────────────────────────────────────────── */
.rsvp-wrap { max-width: 600px; margin: 0 auto; }

.rsvp-household-name {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin: -1.5rem 0 2rem;
}

.rsvp-ticket-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.75rem; }

.rsvp-ticket {
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--white);
  border: 2px solid var(--charcoal);
  border-radius: 16px;
  overflow: hidden;
}

.rsvp-stub {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  border-right: 2px dashed var(--charcoal);
  background: var(--magenta);
}

.rsvp-ticket:nth-child(3n+2) .rsvp-stub { background: var(--marigold); color: var(--charcoal); }
.rsvp-ticket:nth-child(3n+3) .rsvp-stub { background: var(--orange); }

.rsvp-ticket-body { padding: 1.4rem 1.5rem 1.6rem; }

.rsvp-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 1.1rem;
}

.rsvp-row { margin-bottom: 1rem; }
.rsvp-row:last-child { margin-bottom: 0; }

.rsvp-row-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.5rem;
  display: block;
}

.rsvp-toggle { display: flex; gap: 0.5rem; }

.rsvp-btn {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.6rem 0.7rem;
  border-radius: 999px;
  border: 2px solid var(--charcoal);
  background: var(--cream);
  color: var(--charcoal);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.rsvp-btn:hover { transform: translateY(-1px); }
.rsvp-btn.selected.yes { background: var(--marigold); }
.rsvp-btn.selected.no { background: var(--charcoal); color: var(--white); }

.rsvp-dietary textarea,
.rsvp-song input[type="text"] {
  width: 100%;
  background: var(--cream);
  border: 2px solid var(--charcoal);
  border-radius: 14px;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.65rem 0.9rem;
  resize: vertical;
  min-height: 2.6rem;
  outline: none;
  transition: border-color 0.2s;
}

.rsvp-dietary textarea::placeholder,
.rsvp-song input[type="text"]::placeholder { color: rgba(26,16,40,0.4); }
.rsvp-dietary textarea:focus,
.rsvp-song input[type="text"]:focus { border-color: var(--magenta); }

.rsvp-submit {
  margin-top: 0.5rem;
  padding: 1rem 2rem;
  background: var(--marigold);
  color: var(--charcoal);
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s;
  width: 100%;
}

.rsvp-submit:hover { transform: translateY(-2px); }

.rsvp-success {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--charcoal);
  font-size: 1.05rem;
  min-height: 1.5rem;
}

/* ─── RSVP Submitted screen ──────────────────────────────────── */
.rsvp-submitted-screen {
  position: fixed;
  top: var(--nav-h, 88px);
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
}
.rsvp-submitted-screen[hidden] { display: none; }
body.rsvp-done { overflow: hidden; }

.rsvp-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.rsvp-confetti span { position: absolute; border-radius: 3px; will-change: transform; opacity: 0; }
.rsvp-confetti span.static { opacity: var(--op); }
.rsvp-confetti span.burst { animation: rsvpBurst 1.1s cubic-bezier(.2, .8, .3, 1) forwards; }
.rsvp-confetti span.fall  { animation: rsvpFallFromBurst var(--dur) linear forwards; }
.rsvp-confetti span.loop  { animation: rsvpFallLoop var(--dur) linear infinite; animation-delay: var(--delay, 0s); }
.rsvp-confetti-stream { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; }
.rsvp-confetti-stream.is-on { opacity: 1; }

@keyframes rsvpBurst {
  0%   { transform: translate(0, 0) rotate(0deg) scale(0.4); opacity: 0; }
  12%  { opacity: var(--op); }
  100% { transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(1); opacity: var(--op); }
}
@keyframes rsvpFallFromBurst {
  0%   { transform: translate(var(--tx), var(--ty)) rotate(var(--r)); opacity: var(--op); }
  100% { transform: translate(calc(var(--tx) + var(--dx)), 100vh) rotate(calc(var(--r) + 220deg)); opacity: var(--op); }
}
@keyframes rsvpFallLoop {
  0%   { transform: translate(0, -8vh) rotate(var(--r)); opacity: 0; }
  10%  { opacity: var(--op); }
  90%  { opacity: var(--op); }
  100% { transform: translate(var(--dx), 108vh) rotate(calc(var(--r) + 220deg)); opacity: 0; }
}

.rsvp-check {
  position: relative;
  z-index: 1;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  border: 3px solid var(--charcoal);
  box-shadow: 5px 5px 0 var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
}

.rsvp-submitted-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--magenta);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.rsvp-submitted-note {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--charcoal);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.rsvp-details-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  padding: 1rem 2rem;
  background: var(--marigold);
  color: var(--charcoal);
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s;
}

.rsvp-details-btn:hover { transform: translateY(-2px); }

/* ─── RSVP Details modal ─────────────────────────────────────── */
.rsvp-modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(26, 16, 40, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}
.rsvp-modal-scrim[hidden] { display: none; }

.rsvp-modal {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border: 2px solid var(--charcoal);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 6px 6px 0 rgba(26, 16, 40, 0.2);
}

.rsvp-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--charcoal);
  cursor: pointer;
}

.rsvp-modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  margin: 0 0 1.5rem;
}

.rsvp-modal-guest {
  border-top: 1px dashed rgba(26, 16, 40, 0.25);
  padding: 1rem 0;
}
.rsvp-modal-guest:first-child { border-top: none; padding-top: 0; }

.rsvp-modal-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 0.6rem;
}

.rsvp-modal-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.3rem 0;
}
.rsvp-modal-row span { color: var(--muted); }
.rsvp-modal-row strong { text-align: right; color: var(--charcoal); }

/* ─── Trivia: Quest Card Arena ───────────────────────────────── */
.quest-arena {
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 2.5rem calc(20vw + 3rem) 2.5rem 3rem;
  background: var(--cotton-candy);
}

.quest-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1300px;
  min-height: 100%;
}

.quest-progress-wrap { width: 64%; max-width: 880px; margin: 0 auto; }

.xp-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.xp-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(26, 16, 40, 0.12);
  border: 2px solid var(--charcoal);
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: var(--magenta);
  transition: width 0.3s ease;
}

.quest-card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--charcoal);
  border-radius: 20px;
  padding: 2.4rem;
  width: 64%;
  max-width: 880px;
  min-height: 52vh;
  margin: 0 auto;
  box-shadow: 10px 10px 0 rgba(26, 16, 40, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.quest-qnum {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

.quest-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  width: 100%;
}

.quest-view[hidden] { display: none; }

.quest-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  background: var(--marigold);
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
}

.quest-question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.2;
  text-align: center;
  color: var(--charcoal);
  text-wrap: balance;
  max-width: 780px;
}

.quest-options { display: flex; flex-direction: column; gap: 1.4rem; width: 100%; max-width: 700px; }

.quest-final-score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 4rem;
  color: var(--magenta);
}

.quest-leaderboard-inline {
  width: 100%;
  max-width: 420px;
  margin-top: 0.5rem;
  background: var(--cream);
  border: 2px dashed var(--charcoal);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  text-align: left;
}

.trivia-option {
  padding: 1.4rem 1.9rem;
  border-radius: 999px;
  border: 2px solid var(--charcoal);
  background: var(--cream);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s;
  width: 100%;
  color: var(--charcoal);
}

.trivia-option:hover:not(:disabled) { background: var(--cotton-candy); }
.trivia-option:disabled { cursor: default; }

.trivia-option.correct { background: var(--green-wash); color: var(--charcoal); border-color: var(--green); }
.trivia-option.wrong   { background: var(--red-wash);   color: var(--charcoal); border-color: var(--red); }
.trivia-option.reveal-correct { background: var(--green-wash); border-color: var(--green); border-style: dashed; }

/* ─── Feedback popup (Trivia) ────────────────────────────────── */
.fb-scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 16, 40, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  border-radius: inherit;
  z-index: 4;
}
.fb-scrim.show { opacity: 1; }

.fb-popup {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 3px solid var(--charcoal);
  border-radius: 18px;
  padding: 1.4rem 2rem;
  box-shadow: 6px 6px 0 rgba(26, 16, 40, 0.2);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}
.fb-popup .fb-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--charcoal);
  color: var(--cream);
}
.fb-popup.is-correct .fb-icon { background: var(--green); color: var(--cream); }
.fb-popup.is-wrong .fb-icon   { background: var(--red);   color: var(--cream); }
.fb-popup .fb-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  color: var(--charcoal);
}
.fb-popup.show { animation: fbCenterPop 2.5s cubic-bezier(.25,1,.4,1) forwards; }
@keyframes fbCenterPop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
  9%   { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  14%  { transform: translate(-50%, -50%) scale(1); }
  91%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
}

.trivia-letter { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; display: inline-block; width: 1.8rem; }

.leaderboard {
  text-align: left;
  background: var(--white);
  border: 3px solid var(--charcoal);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
}

.leaderboard-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.leaderboard-list { list-style: none; display: grid; gap: 0.5rem; }

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  background: var(--cream);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
}

.leaderboard-list li:first-child { background: var(--marigold); }

.leaderboard-empty {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.leaderboard-list li .lb-score { font-weight: 800; color: var(--magenta); white-space: nowrap; margin-left: 0.75rem; }

.leaderboard-note {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ─── Leaderboard panel (Trivia, fixed right-hand column) ──────── */
.lb-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20vw;
  background: var(--cream);
  border-left: 2px solid var(--charcoal);
  padding: calc(var(--nav-h, 96px) + 1.75rem) 1.5rem 1.75rem;
  overflow-y: auto;
  z-index: 50;
}
.lb-panel-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
}
.lb-panel-list { display: flex; flex-direction: column; transition: opacity 0.35s ease, filter 0.35s ease; }
.lb-panel-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(26, 16, 40, 0.14);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
}
.lb-panel-row:first-child { color: var(--magenta-deep); font-weight: 800; }
.lb-panel-row .lb-score { font-weight: 800; white-space: nowrap; margin-left: 0.75rem; }
.lb-panel-empty { font-style: italic; color: var(--muted); font-size: 0.85rem; padding: 0.4rem 0; }
.lb-panel:not(.unlocked) .lb-panel-list { opacity: 0.3; filter: grayscale(1); pointer-events: none; }
.lb-panel-note {
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.lb-panel.unlocked .lb-panel-note { display: none; }

/* Desktop gets the fixed panel; keep the inline end-screen leaderboard for mobile only */
@media (min-width: 861px) { .quest-leaderboard-inline { display: none; } }

/* ─── Section Nav (scroll-spy) ───────────────────────────────── */
.section-nav {
  position: fixed;
  top: 50%;
  right: 1.75rem;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  background: #FBE2E4;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.section-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.5;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.section-nav a:hover { opacity: 0.8; }

.section-nav a.active {
  opacity: 1;
  border-bottom-color: var(--magenta);
}

@media (max-width: 1280px) {
  .section-nav { display: none; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 3px solid var(--charcoal);
  text-align: center;
  padding: 4rem 2rem;
}

.footer-monogram {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.footer-date {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-hearts {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--magenta);
}

/* ─── Disco Ball Cursor (site-wide) ──────────────────────────── */
body { cursor: none; }
a, button, input, select, textarea { cursor: none; }

#disco-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  font-size: 1.75rem;
  line-height: 1;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) perspective(200px);
  animation: disco-spin 1.2s linear infinite;
  user-select: none;
  opacity: 0;
  transition: opacity 0.15s;
}

@keyframes disco-spin {
  from { transform: translate(-50%, -50%) perspective(200px) rotateY(0deg); }
  to   { transform: translate(-50%, -50%) perspective(200px) rotateY(360deg); }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  #hero { grid-template-columns: 1fr; padding: 2.5rem 1.5rem 3.5rem; }
  .wrap { padding: 0 1.5rem; }
  .page-header { padding: 3rem 1.5rem 2rem; }
  .block-row { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .photo-grid img { width: calc((100% - 16px) / 2); }
  .location-grid { grid-template-columns: 1fr; }
  .quest-arena { grid-template-columns: 1fr; min-height: auto; padding: 2rem 1.5rem; }
  .quest-card { width: 100%; min-height: auto; padding: 2rem; }
  .quest-progress-wrap { width: 100%; }
  .lb-panel { display: none; }
  .password-box { width: 100%; padding: 2rem 1.5rem; }
  .password-illustration { max-width: min(200px, 28vh, 55vw); margin-bottom: 1rem; }
  nav { padding: 1.25rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(26, 16, 40, 0.08);
    box-shadow: 0 10px 18px rgba(26, 16, 40, 0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-pill { display: block; text-align: center; padding: 0.75rem 1rem; }
  .nav-divider { height: 3rem; }
  .nav-page-title { font-size: 1.2rem; max-width: 40vw; }

  section { padding: 1.75rem 0; }
  .section-heading { margin-bottom: 1.75rem; }
  .chapter { padding: 1.25rem 0; gap: 1.5rem; }
  .rule-divider { height: 32px; padding: 0 1.5rem; }
}
