/* =========================================================
   Axel & Hemma — Save the Date
   Mobile-first; reflows to a two-column hero on desktop.
   Palette ported from SwiftUI AppTheme.
   ========================================================= */

:root {
  /* Disco wedding palette: baby pink bg, Bordeaux burgundy for text/CTAs, baby blue for accents */
  --ivory:      #FFF4FF;          /* baby pink background */
  --warm-beige: #F8CCEF;          /* deeper pink placeholder bg */
  --stone:      #ECB0DD;          /* dusty pink borders */
  --muted-grey: #C46380;          /* dusty rose — secondary text */
  --ink:        #E8004E;          /* vivid pink — body copy (a touch deeper than display pink for reading) */
  --charcoal:   #FB0055;          /* vibrant pink-red — display + CTAs */
  --charcoal-deep: #D60048;       /* hover pink */
  --baby-blue:  #766CFF;          /* electric blue accent */
  --baby-blue-deep: #4E42D6;      /* deeper blue for hover */
  --white:      #fff;

  --font-display: "Monoton", "Anton", "Arial Narrow", "Impact", sans-serif;
  --font-heading: "Anton", "Arial Narrow", "Impact", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type — scales between 360px and 1400px viewports. */
  --fs-display:    clamp(3rem, 10vw, 8rem);
  --fs-display-md: clamp(2rem, 6vw, 3.75rem);
  --fs-location:   clamp(1.4rem, 4vw, 2.5rem);
  --fs-eyebrow:    0.75rem;
  --fs-body:       1rem;
  --fs-small:      0.75rem;

  --maxw-mobile-shell: 480px; /* form / success column on tablet+ */
  --maxw-content:      1280px;
  --gutter:            clamp(1.25rem, 4vw, 3rem);

  --radius: 2px;
  --shadow-soft: 0 18px 60px -20px rgba(0, 0, 0, 0.18);
}

/* ------------------- Reset / base ------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

/* G — subtle sparkle overlay */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-repeat: no-repeat;
}
body::before {
  background-image:
    radial-gradient(circle 1px at 12% 18%, rgba(255,255,255,0.95) 0, transparent 60%),
    radial-gradient(circle 1.5px at 82% 12%, rgba(255,255,255,0.9) 0, transparent 60%),
    radial-gradient(circle 1px at 45% 30%, rgba(255,255,255,0.95) 0, transparent 60%),
    radial-gradient(circle 1.2px at 68% 42%, rgba(255,255,255,0.85) 0, transparent 60%),
    radial-gradient(circle 1px at 22% 55%, rgba(255,255,255,0.9) 0, transparent 60%),
    radial-gradient(circle 1.5px at 90% 62%, rgba(255,255,255,0.95) 0, transparent 60%),
    radial-gradient(circle 1px at 38% 78%, rgba(255,255,255,0.9) 0, transparent 60%),
    radial-gradient(circle 1.2px at 72% 88%, rgba(255,255,255,0.85) 0, transparent 60%),
    radial-gradient(circle 1px at 8% 92%, rgba(255,255,255,0.9) 0, transparent 60%),
    radial-gradient(circle 1px at 55% 5%, rgba(255,255,255,0.85) 0, transparent 60%);
  animation: twinkle-a 4.5s ease-in-out infinite alternate;
}
body::after {
  background-image:
    radial-gradient(circle 1px at 28% 8%, rgba(255,255,255,0.85) 0, transparent 60%),
    radial-gradient(circle 1.2px at 5% 42%, rgba(255,255,255,0.9) 0, transparent 60%),
    radial-gradient(circle 1px at 95% 28%, rgba(255,255,255,0.9) 0, transparent 60%),
    radial-gradient(circle 1.4px at 50% 50%, rgba(255,255,255,0.85) 0, transparent 60%),
    radial-gradient(circle 1px at 78% 70%, rgba(255,255,255,0.9) 0, transparent 60%),
    radial-gradient(circle 1.2px at 14% 72%, rgba(255,255,255,0.85) 0, transparent 60%),
    radial-gradient(circle 1px at 62% 32%, rgba(255,255,255,0.9) 0, transparent 60%),
    radial-gradient(circle 1.5px at 32% 60%, rgba(255,255,255,0.95) 0, transparent 60%),
    radial-gradient(circle 1px at 88% 95%, rgba(255,255,255,0.9) 0, transparent 60%);
  animation: twinkle-b 5.8s ease-in-out infinite alternate;
  animation-delay: -1.4s;
}
@keyframes twinkle-a {
  from { opacity: 0.35; transform: translateY(0); }
  to   { opacity: 0.9;  transform: translateY(-3px); }
}
@keyframes twinkle-b {
  from { opacity: 0.45; transform: translateY(0); }
  to   { opacity: 0.85; transform: translateY(2px); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; opacity: 0.55; }
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }

/* ------------------- Top bar (menu + language toggle) ------------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 0.85rem 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-mono {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--charcoal);
  padding: 0.4rem 0.9rem 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 244, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none !important;
  user-select: none;
}
.topbar-mono span { color: var(--baby-blue); }
@media (max-width: 760px) {
  /* The monogram sat underneath the RSVP button on narrow screens. */
  .topbar-mono { display: none; }
  .topbar { padding: 0.7rem 0.75rem; }
  .topbar-right { gap: 0.35rem; }
}

.menu-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(250, 247, 245, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.menu-toggle .bar {
  width: 18px; height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 160ms ease;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.lang-toggle {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(250, 247, 245, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lang-toggle .lang-other { color: var(--muted-grey); }
.lang-sep { margin: 0 0.35em; color: var(--muted-grey); }

/* ------------------- Nav menu overlay ------------------- */
.nav-menu {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}
.nav-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
}
.nav-menu-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  transform: translateY(8px);
  transition: transform 260ms ease;
}
.nav-menu[data-open="true"] .nav-menu-inner { transform: none; }
.nav-eyebrow {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--muted-grey);
  margin-bottom: 0.5rem;
}
.nav-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.nav-list button {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 0.5rem 0;
  transition: opacity 140ms ease;
}
.nav-list button:hover { opacity: 0.55; }
.nav-meta {
  margin: 0.5rem 0 0;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-grey);
}

/* ------------------- Layout / view switching ------------------- */
main#app { flex: 1; }
.view {
  width: 100%;
  max-width: var(--maxw-content);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem;
  animation: fade 320ms ease both;
  scroll-margin-top: 3.5rem;
}

/* One-page flow: hairline chapter breaks between stacked sections */
.view-info, .view-gallery, .view-faq {
  border-top: 1px solid rgba(236, 176, 221, 0.55);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* FAQ accordion */
.view-faq .info-section { max-width: 820px; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 1px solid rgba(236, 176, 221, 0.5); }
.faq-item:last-of-type { border-bottom: 0; }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: color 150ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--charcoal-deep); }
.faq-chevron {
  color: var(--baby-blue);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform 200ms ease;
}
.faq-item[open] .faq-chevron { transform: rotate(45deg); }
.faq-a {
  margin: 0 0 1.2rem;
  color: var(--muted-grey);
  line-height: 1.7;
  max-width: 70ch;
}
.faq-a strong { color: var(--charcoal); font-weight: 700; }
.faq-a a {
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
  transition: border-color 140ms ease;
}
.faq-a a:hover { border-bottom-color: var(--charcoal); }
.faq-more { text-align: center; margin: 1.6rem 0 0.25rem; }

/* Full-screen overlays (RSVP, success, questions) */
.view-overlay {
  position: fixed;
  inset: 0;
  z-index: 26;
  max-width: none;
  margin: 0;
  background: var(--ivory);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 0;
  animation: fade 240ms ease both;
}
.view-overlay .rsvp-shell,
.view-overlay .success-wrap {
  max-width: var(--maxw-mobile-shell);
  margin: 0 auto;
}
body.overlay-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
}

/* ------------------- Typography helpers ------------------- */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: 0;
  margin: 0;
  color: var(--charcoal);
  text-transform: uppercase;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.display-word { display: block; }
.display-script {
  font-family: "Monsieur La Doulaise", "Snell Roundhand", cursive;
  display: block;
  font-size: 0.8em;
  text-transform: none;
  color: var(--baby-blue);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.85;
  margin: -0.06em 0 -0.02em 1.4em;
  position: relative;
  z-index: 1;
  -webkit-text-stroke: 0;
}
.display-md { font-size: var(--fs-display-md); }
.eyebrow {
  margin: 0;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--muted-grey);
  text-transform: uppercase;
}
.eyebrow-faint { color: var(--stone); }

/* ------------------- HOME ------------------- */
/* MOBILE: stacked, centered — order picks image between headline and action row */
.home-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  align-items: stretch;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.home-text { display: contents; }
.home-text > .display        { order: 1; white-space: nowrap; }
.home-text > .couple-line    { order: 2; justify-content: center; margin: 0.25rem 0 0.5rem; }
.home-image                  { order: 3; width: 100%; }
.home-text > .countdown      { order: 4; align-self: center; margin-top: 1.25rem; }
.home-text > .countdown-date { order: 5; margin: 0.5rem 0 0; }
.home-text > .hello-name     { order: 6; }
.home-text > #cta-rsvp       { order: 7; align-self: center; width: min(100%, 22rem); margin-top: 1.25rem; }
.home-text > .welcome        { order: 8; margin: 1.25rem auto 0.5rem; }
.home-text > .rsvp-counter   { order: 9; justify-content: center; margin: 0.25rem 0 0.75rem; }
.home-text > .home-cta-links { order: 10; justify-content: center; }

/* DESKTOP: two-column magazine-spread — text left, tall hero image right */
@media (min-width: 900px) {
  .home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-rows: 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100dvh - 9rem);
  }
  .home-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
  }
  /* Reset mobile order values with higher specificity */
  .home-text > .display,
  .home-text > .couple-line,
  .home-text > .countdown,
  .home-text > .countdown-date,
  .home-text > .welcome,
  .home-text > .hello-name,
  .home-text > #cta-rsvp,
  .home-text > .home-cta-links {
    order: 0;
    margin: 0;
    align-self: flex-start;
  }
  .home-text > .couple-line {
    justify-content: flex-start;
    margin: 0.5rem 0 0.25rem;
  }
  .home-image {
    grid-column: 2;
    grid-row: 1;
    order: initial;
    align-self: center;
    width: 100%;
    height: auto;
    max-height: 85vh;
    aspect-ratio: 3 / 4;   /* portrait — matches mockup */
  }
  .home-image img { object-position: center 40%; }
  .home-text > .display  { white-space: normal; margin: 0; }
  .home-text > .countdown { margin-top: 0.75rem; }
  .home-text > .welcome   { margin: 1rem 0 1.5rem; text-align: left; max-width: 30ch; }
  .home-text > #cta-rsvp  { align-self: flex-start; width: auto; margin-bottom: 1rem; }
  .home-cta-links         { justify-content: flex-start; text-align: left; }
  .home-text > .home-cta-links { align-self: flex-start; }
}

/* Countdown + RSVP horizontal row */
.action-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  margin-top: 0.5rem;
}
.action-row .countdown { margin-top: 0; }
.action-row .btn { min-width: 0; flex: 0 0 auto; }

/* On phones / small tablets the action-row stacks */
@media (max-width: 720px) {
  .action-row {
    flex-direction: column;
    gap: 1rem;
  }
  .action-row .btn { width: 100%; }
}

/* Breathing room above the SAVE THE DATE on every screen */
.view-home { padding-top: clamp(4rem, 8vh, 6rem); padding-bottom: 0; }

@media (max-width: 720px) {
  .home-grid { gap: 1rem; }
  /* On smaller screens, let the headline wrap if it must */
  .home-text > .display { white-space: normal; }
}
.couple-line {
  display: flex;
  gap: 1.5rem;
  font-size: clamp(0.95rem, 1.6vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.32em;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}
.welcome {
  color: var(--muted-grey);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 38ch;
  margin: 1.5rem 0 2rem;
}
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.days-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--charcoal);
}
.days-label {
  display: flex; flex-direction: column;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.days-label span { font-size: 1rem; }

/* Wedding date, echoing the overlay on the photo */
.countdown-date {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--baby-blue);
}

.home-image {
  position: relative;
  margin: 0;
  width: 100%;
  overflow: hidden;
  /* Portrait / tall aspect matching the mockup */
  aspect-ratio: 3 / 4;
  box-shadow: 10px 10px 0 0 var(--charcoal);
  container-type: inline-size;        /* enables cqw-based sizing for overlays */
}
.home-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
/* Scrim so overlaid type is always readable against the sky */
.home-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(180, 0, 70, 0.22) 0%,
    rgba(180, 0, 70, 0) 22%,
    rgba(180, 0, 70, 0) 65%,
    rgba(180, 0, 70, 0.28) 100%
  );
}

/* Portrait aspect kept across all breakpoints for the magazine-cover feel */
.home-image img { object-position: center 35%; }
.location {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  left: auto;
  margin: 0;
  padding: 0;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 5cqw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: right;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.date-overlay {
  position: absolute;
  bottom: 0.85rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-family: var(--font-display);
  /* Scales with the image container, not the viewport */
  font-size: clamp(2.4rem, 12cqw, 5.5rem);
  line-height: 0.9;
  color: var(--white);
  pointer-events: none;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}
.date-overlay span { display: block; }

/* (Desktop two-column hero override removed — using single centered column everywhere now) */

/* ------------------- Buttons ------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 58px;
  padding: 0 2.25rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  min-width: 220px;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 10px 24px -14px rgba(251, 0, 85, 0.55);
}
.btn-primary:hover {
  background: var(--charcoal-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(251, 0, 85, 0.6);
}
.btn-primary:disabled {
  background: var(--stone);
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .btn { width: 100%; }
}

.link-button {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.link-button-bottom { margin-top: auto; padding: 1.25rem 0 1.5rem; color: var(--charcoal); }

/* ------------------- RSVP ------------------- */
.rsvp-shell {
  max-width: var(--maxw-mobile-shell);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 75vh;
}
.rsvp-bar, .gallery-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 1.5rem;
}
.rsvp-bar { padding-top: 0; }
.rsvp-bar-title, .gallery-title {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.22em;
  justify-self: center;
  margin: 0;
}
/* Top bar already shows the A & H monogram — avoid doubling it in the shell bar */
.rsvp-bar-title { visibility: hidden; }
.gallery-title { font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: 0.1em; color: var(--charcoal); }
.rsvp-bar .link-button { justify-self: start; }
.gallery-bar .link-button { justify-self: start; }
.bar-spacer { justify-self: end; }

.rsvp-heading {
  text-align: center;
  margin: 1rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rsvp-heading .display-md {
  line-height: 1.1;
}

.yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.decision {
  height: 58px;
  border: 1.5px solid var(--charcoal);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.22em;
  background: transparent;
  color: var(--charcoal);
  transition: background-color 160ms ease, color 160ms ease;
}
.decision[aria-checked="true"] {
  background: var(--charcoal);
  color: var(--white);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--baby-blue);
  text-transform: uppercase;
}
.field input,
.field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0.4rem 0 0.45rem;
  border: 0;
  border-bottom: 1px solid var(--stone);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--charcoal);
}
.select-wrap { position: relative; }
.select-chevron {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-grey);
  font-size: 0.85rem;
  pointer-events: none;
}

#submit-btn { margin-top: 1rem; }
.form-error {
  margin: 0.75rem 0 0;
  color: #b3261e;
  font-size: var(--fs-small);
  text-align: center;
}

.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------- SUCCESS ------------------- */
.success-wrap {
  max-width: var(--maxw-mobile-shell);
  margin: 0 auto;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding-top: 2rem;
}
.check {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 1.5px solid var(--charcoal);
  display: grid; place-items: center;
  font-size: 2rem;
  color: var(--charcoal);
}
.success-copy {
  color: var(--muted-grey);
  line-height: 1.7;
  margin: 0;
}
.planning {
  margin-top: 1.25rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.planning-line {
  margin: 0;
  font-style: italic;
  color: var(--muted-grey);
  font-weight: 500;
}

/* ------------------- GALLERY ------------------- */
.gallery-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-grid figure {
  margin: 0;
  background: transparent;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.1);
}

/* ------------------- Home: primary + demoted text links ------------------- */
.home-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.home-cta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}
.text-cta {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--charcoal);
  text-transform: uppercase;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 140ms ease;
}
.text-cta:hover { border-bottom-color: var(--charcoal); }
.text-cta-sep { color: var(--muted-grey); }
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
  height: 52px;
  min-width: auto;
  padding: 0 1.5rem;
  border-radius: 999px;
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
}
@media (max-width: 720px) {
  .home-cta-links { width: 100%; justify-content: flex-start; }
}

/* Bilingual SAVE THE DATE */
.save-bilingual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
  line-height: 0.95;
}
.save-bilingual .save-divider { display: none; }
.save-bilingual .save-fr {
  font-size: 0.7em;
  color: var(--muted-grey);
  letter-spacing: -0.015em;
}
@media (min-width: 900px) {
  .save-bilingual .save-fr { font-size: 0.62em; }
}

/* Mobile burger overlap fix — pad the home text so the AXEL · AND · HEMMA line doesn't sit under the fixed topbar */
@media (max-width: 720px) {
  .view-home { padding-top: 4.25rem; }
  .couple-line { margin-top: 0.5rem; }
}

/* ------------------- Decorative sparkles ------------------- */
.view-home { position: relative; overflow: hidden; }
.sparkle {
  position: absolute;
  width: 36px;
  height: 36px;
  fill: var(--charcoal);
  pointer-events: none;
  z-index: 0;            /* sit behind everything */
  opacity: 0.5;
  animation: sparkle-twinkle 3.4s ease-in-out infinite;
}
/* Keep all real content above the sparkles so text is always readable */
.home-grid, .home-text, .home-image, .story { position: relative; z-index: 1; }

/* All positions sit in safe zones — edges, corners, and the image area.
   None overlap the SAVE THE DATE block, counter, paragraph, or CTAs. */

/* Square — corners and margins only */
.sparkle.s1  { top: 1%;    left: 1%;    width: 28px; height: 28px; animation-delay: 0s;   }
.sparkle.s3  { top: 50%;   right: 1%;   width: 26px; height: 26px; animation-delay: 1.6s; }
.sparkle.s6  { top: 2%;    right: 4%;   width: 18px; height: 18px; animation-delay: 1.2s; }
.sparkle.s11 { bottom: 1%; right: 18%;  width: 22px; height: 22px; animation-delay: 2.4s; }
.sparkle.s13 { bottom: 2%; left: 50%;   width: 20px; height: 20px; animation-delay: 1.0s; }

/* Tall — vertical edges */
.sparkle.s2  { top: 8%;    right: 1%;   width: 18px; height: 40px; animation-delay: 0.8s; }
.sparkle.s4  { bottom: 1%; right: 0.5%; width: 24px; height: 48px; animation-delay: 0.4s; }
.sparkle.s8  { top: 30%;   left: 0.5%;  width: 18px; height: 36px; animation-delay: 1.4s; }
.sparkle.s10 { bottom: 8%; left: 1%;    width: 22px; height: 44px; animation-delay: 0.2s; }

/* Wide — top/bottom strips */
.sparkle.s5  { bottom: 6%; left: 28%;   width: 36px; height: 20px; animation-delay: 2.0s; }
.sparkle.s7  { top: 1%;    right: 38%;  width: 30px; height: 16px; animation-delay: 0.6s; }
.sparkle.s9  { top: 0;     left: 32%;   width: 34px; height: 18px; animation-delay: 1.8s; }
.sparkle.s12 { bottom: 1%; left: 14%;   width: 28px; height: 16px; animation-delay: 1.6s; }
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  50%      { opacity: 0.7;  transform: scale(1)   rotate(15deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; opacity: 0.8; transform: none; }
}
@media (max-width: 720px) {
  .sparkle.s2, .sparkle.s7 { display: none; }
  .sparkle.s4 { width: 32px; }
}

/* Section stacking context (was shared with the old floating decor) */
.view-info, .view-gallery, .view-faq { position: relative; }
.view-info > *, .view-gallery > * { position: relative; z-index: 1; }

/* ------------------- Wedding Info view ------------------- */
.view-info { padding-top: clamp(3.5rem, 7vw, 5rem); }
.info-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.info-header .eyebrow { margin-bottom: 0.75rem; }
.info-section {
  --card-pad: clamp(1.5rem, 3.5vw, 2.5rem);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(236, 176, 221, 0.5);
  border-radius: 22px;
  padding: var(--card-pad);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 26px 54px -34px rgba(150, 0, 70, 0.28);
}
.section-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  margin: 0 0 1.6rem;
  font-weight: 400;
}
/* ------------------- Running order (THE DAY) ------------------- */
.run-date {
  margin: -0.9rem 0 1.9rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--baby-blue);
}
.day-row { align-items: start; }
.day-group .field-label { margin: 0 0 1.1rem; }
.day-slot {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: clamp(0.9rem, 2vw, 1.4rem);
  margin-top: 1.15rem;
}
.day-slot:first-of-type { margin-top: 0; }
.day-time {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}
.day-title,
.day-place,
.day-note { grid-column: 2; margin: 0; }
.day-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--charcoal);
}
.day-place {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.day-note {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted-grey);
}
.day-place-lead {
  margin: -0.5rem 0 1.3rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.day-outro {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding-top: clamp(1.4rem, 3vw, 1.9rem);
  border-top: 1px solid rgba(236, 176, 221, 0.55);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

/* Title sits above the banner bleed in THE PLACE card */
.info-section .venue-banner + .info-row { margin-top: 0; }
.info-row {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .info-row.two   { grid-template-columns: 1fr 1fr; }
  .info-row.three { grid-template-columns: repeat(3, 1fr); }
  .info-row.four  { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .info-row.four { grid-template-columns: repeat(4, 1fr); }
}
.info-value {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
}
.info-value strong { font-weight: 700; color: var(--charcoal); }
.explore-intro {
  color: var(--muted-grey);
  max-width: 62ch;
  margin-bottom: 1.75rem;
}
.info-links {
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.info-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 2px;
  width: max-content;
  transition: border-color 140ms ease;
}
.info-links a:hover { border-color: var(--charcoal); }

/* Venue card */
.place-venue {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.place-address { margin-bottom: 1.1rem; }
.place-what { color: var(--muted-grey); max-width: 46ch; }
.place-note {
  margin-top: clamp(2rem, 4vw, 2.6rem);
  padding-top: clamp(1.4rem, 3vw, 1.8rem);
  border-top: 1px solid rgba(236, 176, 221, 0.55);
}
.place-note .field-label { margin: 0 0 0.75rem; }
.place-note .info-value { max-width: 52ch; }
#stay { scroll-margin-top: 4.5rem; }

.access-intro { margin-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.day-note-inline {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted-grey);
}
.access-shuttle {
  margin-top: clamp(1.4rem, 3vw, 1.9rem);
  font-size: 0.85rem;
  color: var(--muted-grey);
}
.place-note .info-row .day-title { margin-bottom: 0.15rem; }

.label-aside {
  margin-left: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted-grey);
}
.stacked .info-value + .info-value { margin-top: 0.7rem; }
.schedule-detail .day-slot + .info-value { margin-top: 0.95rem; }
.schedule-detail .day-slot { margin-top: 0.9rem; }
.explore-kicker {
  margin: 0 auto 0.9rem;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted-grey);
}
.trip-banner {
  margin: -0.25rem 0 1.1rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--stone);
  background: var(--warm-beige);
}
.trip-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trip-time {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.trip-tip {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(236, 176, 221, 0.55);
  font-size: 0.9rem;
}
.trip-card .field-label { margin-bottom: 0.35rem; }

.pin-embed { margin: 1rem 0; width: 100%; overflow-x: auto; }
.pin-embed span, .pin-embed iframe, .pin-embed > a { max-width: 100%; }
.pin-embed > a { font-size: 0.85rem; color: var(--muted-grey); text-decoration: none; }

.stay-facts {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.stay-facts li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.stay-facts li::before {
  content: "\00b7";
  position: absolute;
  left: 0.15rem;
  color: var(--baby-blue);
  font-weight: 900;
}
.stay-facts strong { color: var(--charcoal); }

.stay-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(1.5rem, 4vw, 3rem);
}
.stay-list li {
  break-inside: avoid;
  margin-bottom: 0.55rem;
}
.stay-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 1px;
  transition: border-color 140ms ease, color 140ms ease;
}
.stay-list a:hover { color: var(--charcoal); border-color: var(--charcoal); }
@media (min-width: 900px) { .stay-list { columns: 3; } }
@media (max-width: 560px)  { .stay-list { columns: 1; } }

/* Two-step venue itinerary */
.place-intro {
  color: var(--muted-grey);
  margin-bottom: 1.6rem;
  max-width: 60ch;
}
.place-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.place-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.95rem;
  align-items: start;
}
.place-step-num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--baby-blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}
.place-step:nth-child(2) .place-step-num { background: var(--charcoal); }

.venue-banner {
  /* Bleed to the card edges for a full-width header image */
  margin: calc(var(--card-pad, 2rem) * -1) calc(var(--card-pad, 2rem) * -1) 1.75rem;
  position: relative;
  overflow: hidden;
  border-radius: 21px 21px 0 0;
}
.venue-banner img {
  width: 100%;
  height: clamp(180px, 30vw, 360px);
  object-fit: cover;
  filter: grayscale(0.08) contrast(1.02);
  display: block;
}
.venue-banner-caption {
  position: absolute;
  left: 1rem; bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: var(--white);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

/* Two-point venue map (Leaflet) */
.venue-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 300px;
  border-radius: 12px;
  border: 1px solid var(--stone);
  background: var(--warm-beige);
  overflow: hidden;
  position: relative;
  z-index: 0;
}
.map-pin {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pin, var(--charcoal));
  border: 3.5px solid #fff;
  box-shadow: 0 3px 12px rgba(80, 0, 40, 0.35);
}
.leaflet-tooltip.map-label {
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--charcoal);
  box-shadow: 0 8px 20px -10px rgba(80, 0, 40, 0.4);
}
.leaflet-tooltip.map-label-blue { color: var(--baby-blue); }
.leaflet-tooltip.map-label::before { display: none; }

.schedule { display: flex; flex-direction: column; }
.schedule-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(236, 176, 221, 0.55);
}
.schedule-row:last-child { border-bottom: 0; }
.schedule-day .day-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}
.schedule-day .day-date {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--baby-blue);
  margin-top: 0.25rem;
}
.schedule-detail .field-label { margin-bottom: 0.4rem; }

/* Saturday timeline */
.day-timeline {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  position: relative;
}
.day-timeline::before {
  content: "";
  position: absolute;
  left: calc(56px + 0.85rem + 5px);
  top: 10px;
  bottom: 10px;
  width: 1.5px;
  background: var(--stone);
}
.day-timeline li {
  display: grid;
  grid-template-columns: 56px 12px 1fr;
  gap: 0 0.85rem;
  align-items: center;
  padding: 0.45rem 0;
  position: relative;
}
.tl-time {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  text-align: right;
}
.tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2.5px solid var(--charcoal);
  position: relative;
  z-index: 1;
}
.day-timeline li:first-child .tl-dot,
.day-timeline li:last-child .tl-dot {
  background: var(--charcoal);
}
.tl-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.sched-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted-grey);
}

.info-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ------------------- Plus-one + small yes/no ------------------- */
.yesno-small {
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
}
.decision-small { height: 44px; font-size: 0.7rem; }
.plusone-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--stone);
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
fieldset.field legend {
  padding: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--baby-blue);
  text-transform: uppercase;
}

/* ------------------- Photo upload ------------------- */
.field-photo { gap: 0.5rem; }
.photo-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 1.5px dashed var(--stone);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
  min-height: 88px;
}
.photo-drop:hover {
  border-color: var(--charcoal);
  background: rgba(236, 176, 221, 0.16);
}
.photo-drop-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted-grey);
}
.photo-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  display: grid; place-items: center;
  font-size: 1rem; line-height: 1;
}
.photo-cta {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--charcoal);
}
.photo-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}
.photo-preview {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 2px;
}
.photo-info {
  display: flex; flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}
.photo-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-remove {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-grey);
  align-self: flex-start;
}
.photo-remove:hover { color: #b3261e; }
.photo-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted-grey);
}

/* ------------------- Question form ------------------- */
.view-question .rsvp-shell { min-height: 70vh; }
.rsvp-subcopy {
  color: var(--muted-grey);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

/* ------------------- RSVP form: hints, checkboxes, tent size ------------------- */
.field-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted-grey);
}
.field-hint-block { margin: 0 0 0.35rem; }
.field-hint-block + .field-hint-block { margin-bottom: 0.9rem; }

.rsvp-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.rsvp-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  border: 1.5px solid var(--stone);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.rsvp-check input[type="checkbox"]:checked {
  background: var(--charcoal);
  border-color: var(--charcoal);
}
.rsvp-check input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 1px 0 0 5px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.rsvp-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--baby-blue); outline-offset: 2px; }

/* ------------------- RSVP: one block per attending guest ------------------- */
.who-list { margin-top: 0.2rem; }
.person-blocks {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.6rem;
}
.person-block {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--stone);
  border-radius: 12px;
  background: var(--warm-beige);
}
.person-block .person-name {
  /* float + full width keeps the name inside the card instead of notching
     the rounded border the way a default <legend> does. */
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 0.75rem;
  font-family: "Anton", "Inter", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.person-block > .field-label { display: block; margin-bottom: 0.5rem; }
.person-block .yesno { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.person-block .decision-small { flex: 1 1 auto; }
.person-block .person-allergies { margin-top: 1rem; }
.person-block .person-allergies input { background: transparent; }

.village-fields { margin-top: 1.1rem; }
.village-count-label { display: block; margin-bottom: 0.55rem; }
.yesno.count-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.yesno.count-row .decision-small { min-width: 3.2rem; }

.rsvp-form textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid var(--stone);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0;
  resize: vertical;
  font-family: var(--font-body);
  min-height: 110px;
}
.rsvp-form textarea:focus { outline: none; border-bottom-color: var(--charcoal); }
.question-success {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 1.25rem;
  padding-top: 2rem;
}
.check.small { width: 52px; height: 52px; font-size: 1.5rem; }
.success-photo-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-grey);
  max-width: 36ch;
  line-height: 1.55;
}

/* ------------------- Success: CTA stack + timeline ------------------- */
.success-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  max-width: 460px;
}
.success-cta-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}
.success-cta-row .btn { flex: 1; min-width: 0; padding: 0 0.85rem; height: 50px; }
@media (max-width: 520px) {
  .success-cta-row { flex-direction: column; }
}

.timeline-wrap {
  margin-top: 2rem;
  width: 100%;
  max-width: 460px;
  text-align: left;
}
.timeline-wrap .eyebrow {
  text-align: center;
  margin: 0 0 1.25rem;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--stone);
}
.t-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0;
  position: relative;
}
.t-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--stone);
  background: var(--ivory);
  position: relative;
  z-index: 1;
}
.t-item.is-done .t-dot {
  background: var(--charcoal);
  border-color: var(--charcoal);
}
.t-item.is-progress .t-dot {
  border-color: var(--charcoal);
  background:
    radial-gradient(circle at center, var(--charcoal) 0 4px, var(--ivory) 5px 100%);
  animation: pulse 1.8s ease-in-out infinite;
}
.t-item.is-final .t-dot {
  background: var(--ivory);
  border-color: var(--charcoal);
  width: 16px; height: 16px;
  box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 4px var(--charcoal);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.t-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.t-item.is-upcoming .t-label { color: var(--muted-grey); }
.t-item.is-final .t-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  text-transform: uppercase;
}
.t-state {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted-grey);
  text-transform: uppercase;
  white-space: nowrap;
}
.t-item.is-done .t-state { color: var(--charcoal); }
.t-item.is-progress .t-state { color: var(--baby-blue); }
.t-item.is-final .t-state { color: var(--charcoal); }

/* ------------------- Lightbox ------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(31, 31, 31, 0.93);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fade 240ms ease both;
}
.lightbox[hidden] { display: none; }
.nav-menu[aria-hidden="true"] { pointer-events: none; }
.lightbox-img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  width: 44px; height: 44px;
  font-size: 1.4rem;
  display: grid; place-items: center;
  transition: background-color 140ms ease;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 2px;
  overflow: hidden;
  background: transparent;
}
.gallery-thumb img { transition: transform 600ms ease; }
.gallery-thumb:hover img { transform: scale(1.03); }

/* ------------------- Topbar right cluster ------------------- */
.topbar-right { display: flex; gap: 0.5rem; align-items: center; pointer-events: auto; }
.btn-topbar-rsvp {
  height: 36px;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px -10px rgba(251, 0, 85, 0.6);
  transition: transform 150ms ease, background-color 150ms ease;
}
.btn-topbar-rsvp:hover { background: var(--charcoal-deep); transform: translateY(-1px); }
.sound-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(250, 247, 245, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted-grey);
  transition: color 160ms ease, background-color 160ms ease;
}
.sound-toggle:hover { color: var(--charcoal); }
.sound-toggle .sound-icon { width: 18px; height: 18px; }
.sound-toggle .icon-on { display: none; }
.sound-toggle[aria-pressed="true"] { color: var(--charcoal); }
.sound-toggle[aria-pressed="true"] .icon-off { display: none; }
.sound-toggle[aria-pressed="true"] .icon-on { display: inline-block; }

/* ------------------- Hello {name} from personal link ------------------- */
.hello-name {
  margin: -0.5rem 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted-grey);
  text-transform: uppercase;
}

/* ------------------- Live RSVP counter ------------------- */
.rsvp-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted-grey);
}
.rsvp-counter strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-right: 0.35rem;
  letter-spacing: 0;
}
.rc-sep { opacity: 0.45; }

/* ------------------- Story scroll ------------------- */
.story {
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(236, 176, 221, 0.55);
  grid-column: 1 / -1;
}
.story-eyebrow {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.36em;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}
.story-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  align-items: stretch;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms ease;
}
.story-block:last-of-type { margin-bottom: 0; }
.story-block.is-visible { opacity: 1; transform: none; }
@media (min-width: 820px) {
  .story-block { grid-template-columns: 1fr 1.05fr; }
  .story-block.reverse .story-img { order: 2; }
}
/* Editorial chapter numbers */
.story-block .story-text::before {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--baby-blue);
  margin-bottom: 0.85rem;
}
.story-block:nth-of-type(1) .story-text::before { content: "N° 01"; }
.story-block:nth-of-type(2) .story-text::before { content: "N° 02"; }
.story-block:nth-of-type(3) .story-text::before { content: "N° 03"; }
.story-img {
  margin: 0;
  aspect-ratio: 3 / 2;
  box-shadow: 12px 12px 0 0 var(--charcoal);
}
.story-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
/* Alternate corners so the shadows feel hand-placed, not systematic */
.story-block:nth-of-type(2) .story-img { box-shadow: -12px 12px 0 0 var(--charcoal); }
.story-block:nth-of-type(3) .story-img { box-shadow: 12px -12px 0 0 var(--charcoal); }
.story-text { padding: 0 0.25rem; }
.story-text .display-md { font-size: clamp(2rem, 5vw, 3.25rem); }
.story-body {
  margin: 0.65rem 0 0;
  color: var(--muted-grey);
  line-height: 1.6;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
}

/* ------------------- Outfit board (dress code) ------------------- */
.outfit-board-title { margin-top: 1.75rem; }
.outfit-board {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.outfit-board .empty {
  grid-column: 1 / -1;
  color: var(--muted-grey);
  font-size: 0.85rem;
  font-style: italic;
}
.outfit-board img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  background: var(--warm-beige);
  filter: grayscale(0.05);
}

/* ------------------- Spotify section ------------------- */
.songs-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
}
.songs-list li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(236, 176, 221, 0.5);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.songs-list li:last-child { border-bottom: 0; }
.songs-list .by {
  font-size: 0.72rem;
  color: var(--muted-grey);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.songs-list .songs-empty {
  font-style: italic;
  color: var(--muted-grey);
  border-bottom: 0;
}

/* Spotify embed widget */
.spotify-embed-wrap {
  margin-top: 1.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: #121212;
}
.spotify-embed {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}

/* ------------------- Gallery (modern grid) ------------------- */
.polaroid-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: flex-start;
}
.polaroid {
  background: transparent;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: polaroid-in 550ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
}
.polaroid:nth-child(3n)   { --delay: 60ms; }
.polaroid:nth-child(3n+1) { --delay: 140ms; }
.polaroid:nth-child(3n+2) { --delay: 220ms; }
.polaroid .gallery-thumb {
  padding: 0;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  box-shadow: 0 18px 40px -24px rgba(150, 0, 70, 0.35);
  transition: box-shadow 280ms ease, transform 280ms ease;
}
.polaroid:hover .gallery-thumb {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -24px rgba(150, 0, 70, 0.45);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: none;
  transition: transform 600ms ease;
}
.polaroid:hover img { transform: scale(1.045); }
.polaroid-caption {
  margin-top: 0.75rem;
  text-align: left;
  padding-left: 0.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--baby-blue);
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}
@keyframes polaroid-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .polaroid { animation: none; opacity: 1; transform: none; }
  .story-block { transition: none; opacity: 1; transform: none; }
}

/* ------------------- Trip page ------------------- */
.trip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (min-width: 720px) {
  .trip-grid { grid-template-columns: 1fr 1fr; }
}
.trip-card {
  border: 1px solid var(--stone);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(255, 255, 255, 0.45);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.trip-card:hover {
  transform: translateY(-3px);
  border-color: var(--charcoal);
  box-shadow: 0 20px 44px -26px rgba(150, 0, 70, 0.4);
}
.trip-card .field-label { margin-bottom: 0.6rem; }
.view-trip .explore-intro { margin: 0 auto 2rem; text-align: center; }
.trip-teaser { margin: 1.75rem 0 0; }

/* ------------------- Easter egg ------------------- */
.egg-modal {
  position: fixed; inset: 0;
  background: rgba(31, 31, 31, 0.55);
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  animation: fade 220ms ease both;
}
.egg-card {
  position: relative;
  background: var(--ivory);
  padding: 2rem 1.75rem 1.75rem;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-radius: 4px;
}
.egg-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 32px; height: 32px;
  border-radius: 999px;
  color: var(--muted-grey);
}
.egg-close:hover { color: var(--charcoal); }
.egg-title { margin: 0.5rem 0 0.75rem; }
.egg-body { color: var(--muted-grey); line-height: 1.55; margin: 0 0 1rem; }
.egg-sign {
  margin: 0;
  font-family: "Monsieur La Doulaise", "Snell Roundhand", cursive;
  font-size: 1.9rem;
  color: var(--charcoal);
}

/* ------------------- Couple-line clickability ------------------- */
.couple-line { cursor: default; user-select: none; }

/* ------------------- Disco palette accents -------------------
   Baby-blue accent for subtitles/eyebrows and separators. Also used on
   photo overlays (e.g. 19/06/27 hero overlay). */
.eyebrow,
.rc-sep,
.lang-sep,
.text-cta-sep,
.t-item.is-progress .t-state,
.couple-line span:nth-child(2) {
  color: var(--baby-blue);
  font-weight: 900;
}

.info-links a { border-bottom-color: var(--baby-blue); }
.info-links a:hover { border-bottom-color: var(--charcoal); }
.t-item.is-progress .t-dot {
  background:
    radial-gradient(circle at center, var(--baby-blue) 0 4px, var(--ivory) 5px 100%);
  border-color: var(--baby-blue);
}

/* ------------------- Footer ------------------- */
.footer {
  text-align: center;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 2.25rem var(--gutter) 2.5rem;
  color: var(--muted-grey);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-top: 1px solid rgba(236, 176, 221, 0.55);
}
.footer p { margin: 0; }

/* ------------------- Scroll reveal -------------------
   Elements are tagged with [data-reveal] by app.js (initReveal). The
   `reveal-on` class is only added to <html> when IntersectionObserver is
   available, so without JS everything stays visible. */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-shift, 20px), 0);
  transition:
    opacity 720ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms),
    transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms);
}
.reveal-on [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Slightly larger travel for the big editorial blocks */
.reveal-on .story-block,
.reveal-on .home-image,
.reveal-on .info-section,
.reveal-on .polaroid { --reveal-shift: 28px; }

/* Headline words drop in a touch tighter */
.reveal-on .home-text > * { --reveal-shift: 14px; }

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


/* ------------------- Story: text column fills the image height ------------------- */
.story-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story-block .display-md {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.05;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .story-block .display-md { white-space: normal; }
}
.story-block .story-text::before { margin-bottom: 0.5rem; }

/* ------------------- Quick jump chips ------------------- */
.quick-jump {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.jump {
  appearance: none;
  border: 1px solid var(--stone);
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.jump:hover { background: var(--white); border-color: var(--charcoal); }
.jump:focus-visible { outline: 2px solid var(--baby-blue); outline-offset: 2px; }

/* ------------------- Two venues ------------------- */
.two-venues-lead {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.two-venues {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 760px) {
  .two-venues { grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1.5rem; }
}
.tv-step { position: relative; padding-left: 2.4rem; }
.tv-num {
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}
.tv-step-2 .tv-num { background: var(--baby-blue-deep); }
.tv-when {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--baby-blue);
}
.tv-place {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.tv-city { margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--muted-grey); }
.tv-step .info-links { margin-top: 0.6rem; }
.tv-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; padding-top: 1.4rem; }
.tv-arrow-glyph { font-size: 1.5rem; line-height: 1; color: var(--stone); }
.tv-arrow-note { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted-grey); white-space: nowrap; }
@media (max-width: 759px) {
  .tv-arrow { flex-direction: row; gap: 0.5rem; padding: 0 0 0 2.4rem; }
  .tv-arrow-glyph { transform: rotate(90deg); }
}

/* ------------------- Key facts ------------------- */
.keyrow { align-items: start; }
.keyfact-v {
  margin: 0.15rem 0 0.1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}
.keyfact-warn { color: var(--baby-blue-deep); }
.keyfact-l { margin: 0; font-size: 0.85rem; color: var(--muted-grey); }
.keyrow .info-links { margin-top: 0.7rem; }
.dress-shoes { margin-top: clamp(1.25rem, 3vw, 1.75rem); }

/* ------------------- Trip banner placeholder ------------------- */
.trip-banner.is-empty {
  display: grid;
  place-items: center;
  border-style: dashed;
}
.trip-banner-ph {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-grey);
}
.trip-banner.is-empty .trip-banner-ph { display: block; }

/* ------------------- Collapsible info sections ------------------- */
.acc > summary.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0;
  transition: color 150ms ease;
}
.acc > summary.section-title::-webkit-details-marker { display: none; }
.acc > summary.section-title:hover { color: var(--charcoal-deep); }
.acc > summary.section-title:focus-visible {
  outline: 2px solid var(--baby-blue);
  outline-offset: 6px;
  border-radius: 4px;
}
.acc-chevron {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--baby-blue);
  transition: transform 220ms ease;
}
.acc[open] > summary .acc-chevron { transform: rotate(45deg); }

.acc-body {
  padding-top: clamp(1.5rem, 3vw, 2.1rem);
  animation: acc-open 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes acc-open {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to   { opacity: 1; transform: none; }
}
/* The banner bleeds to the card edge; cancel the body's top padding for it. */
.acc-body > .venue-banner { margin-bottom: clamp(1.25rem, 3vw, 1.75rem); }
/* Closed cards sit tighter together. */
.acc:not([open]) { padding-top: clamp(1.4rem, 3vw, 1.9rem); padding-bottom: clamp(1.4rem, 3vw, 1.9rem); }

@media (prefers-reduced-motion: reduce) {
  .acc-body { animation: none; }
  .acc-chevron { transition: none; }
}


/* Banner inside a collapsible card: no bleed, so the title keeps its air. */
.acc-body > .venue-banner {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 12px;
}
.acc-body > .venue-banner img { height: clamp(160px, 24vw, 280px); }

/* Story as a collapsible block */
.story.acc {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
}
.story.acc:not([open]) { padding-bottom: clamp(0.75rem, 2vw, 1.1rem); }
.story-summary { margin-bottom: 0; }
.story.acc .acc-body { padding-top: clamp(1.25rem, 3vw, 1.9rem); }

/* Shorter placeholders on the trip cards */
.trip-banner { aspect-ratio: 21 / 9; }
.trip-banner.is-empty { aspect-ratio: auto; min-height: 92px; }

/* Trip / gallery / FAQ cards inherit the info-card chrome */
#sec-trip, #sec-gallery, #sec-faq { margin-left: auto; margin-right: auto; }
#sec-faq { max-width: none; }
.view-faq #sec-faq .info-section { padding: 0; background: none; box-shadow: none; border: 0; max-width: 820px; }
.view-faq #sec-faq .info-section + .info-section { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* ------------------- Weekend: horizontal Saturday ------------------- */
.wk-row {
  display: flex;
  align-items: baseline;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: 0 0 0.95rem;
  border-bottom: 1px solid rgba(236, 176, 221, 0.55);
}
.wk-row-last { padding: 0.95rem 0 0; border-bottom: 0; }
.wk-day { min-width: 4.4rem; flex: 0 0 auto; }
.wk-day-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}
.wk-day-date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--baby-blue);
}
.wk-time {
  flex: 0 0 auto;
  min-width: 4.2rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.wk-line { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }
.wk-line strong { font-weight: 700; }
.wk-muted { color: var(--muted-grey); }

.wk-sat { padding: 0.95rem 0; border-bottom: 1px solid rgba(236, 176, 221, 0.55); }
.wk-row-head { padding: 0 0 1rem; border-bottom: 0; align-items: center; }
.wk-sat-title {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: 0.03em;
  color: var(--charcoal);
}

.wk-venues { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 780px) {
  .wk-venues { grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); align-items: start; }
}
.wk-venue { border-top: 2px solid var(--charcoal); padding-top: 0.85rem; }
.wk-venue-2 { border-top-color: var(--baby-blue); }
.wk-venue-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.wk-num {
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.75rem;
  display: grid;
  place-items: center;
}
.wk-venue-2 .wk-num { background: var(--baby-blue-deep); }
.wk-city {
  margin: 0 0 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted-grey);
}
.wk-steps {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
}
.wk-t {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}
.wk-l { font-size: 0.9rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
.wk-l.wk-muted { color: var(--muted-grey); font-weight: 400; }

.wk-drive {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding-top: 2.4rem;
}
.wk-drive-glyph { font-size: 1.4rem; line-height: 1; color: var(--stone); }
.wk-drive-note { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted-grey); white-space: nowrap; }
.wk-drive-time { font-size: 0.65rem; color: var(--muted-grey); }
@media (max-width: 779px) {
  .wk-drive { flex-direction: row; gap: 0.5rem; padding: 0; justify-content: flex-start; }
  .wk-drive-glyph { transform: rotate(90deg); }
}
@media (max-width: 520px) {
  .wk-row { flex-wrap: wrap; }
  .wk-line { flex: 1 0 100%; }
}

/* ------------------- One continuous drop-down list ------------------- */
#view-trip, #view-gallery, #view-faq {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}
#view-info { padding-bottom: 0; }
#view-faq { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

/* Story card matches the other drop-downs */
.story-acc {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: var(--card-pad);
  border-top: 0;
}
.story-acc .acc-body { padding-top: clamp(1.25rem, 3vw, 1.9rem); }
.story-acc .story-block:last-of-type { margin-bottom: 0; }

.acc { scroll-margin-top: 72px; }

/* ------------------- Accommodation ------------------- */
.stay-features { align-items: start; }
.stay-hero {
  margin: 0 0 0.9rem;
  /* The two photos are portrait and square. A square box with `contain`
     shows the whole picture on the beige backdrop instead of cropping
     the top and bottom away. */
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--stone);
  background: var(--warm-beige);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.stay-hero img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stay-hero-ph {
  display: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-grey);
}
.stay-hero.is-empty { border-style: dashed; }
.stay-hero.is-empty .stay-hero-ph { display: block; }
.stay-oneline {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.45;
}

.lodges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(0.75rem, 2vw, 1.1rem);
  margin: 1.1rem 0 1.4rem;
}
.lodge {
  display: block;
  text-decoration: none;
  color: inherit;
}
.lodge-img {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--stone);
  background: var(--warm-beige);
  overflow: hidden;
  transition: border-color 140ms ease;
}
.lodge-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lodge-img.is-empty { border-style: dashed; }
.lodge:hover .lodge-img { border-color: var(--charcoal); }
.lodge-name {
  display: block;
  min-height: 2.7em;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--charcoal);
}
.lodge-kind {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--baby-blue);
}
.stay-map { margin-bottom: 1.1rem; aspect-ratio: 16 / 9; max-height: 340px; }
.lodge-pop { text-align: center; }
.lodge-pop img { width: 160px; height: 108px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 0.4rem; }
.lodge-pop strong { font-size: 0.85rem; color: var(--charcoal); }

/* ------------------- Personal invitation ------------------- */
.rsvp-invitees {
  margin: 0.6rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.02em;
  /* Same blue as the field labels further down the form. */
  color: var(--baby-blue);
}
.rsvp-deadline {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-grey);
}
.rsvp-locked {
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px dashed var(--stone);
  border-radius: 14px;
}
.rsvp-locked .info-value { margin: 0; max-width: 48ch; }
.rsvp-locked .info-links { margin-top: 0.9rem; }

/* ------------------- Invitation intro ------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 700ms ease;
}
.intro-sky {
  position: absolute;
  inset: -4%;
  background: url("/public/images/intro/sky.jpg") center / cover no-repeat;
  animation: intro-sky-drift 26s ease-in-out infinite alternate;
}
@keyframes intro-sky-drift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.07) translateY(-1.5%); }
}
.intro-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem;
}
.intro-for {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(30, 60, 120, 0.35);
}
.intro-envelope {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  position: relative;
  width: min(430px, 80vw);
  animation: intro-float 4.5s ease-in-out infinite alternate;
}
@keyframes intro-float {
  from { transform: translateY(-6px) rotate(-0.6deg); }
  to   { transform: translateY(8px) rotate(0.6deg); }
}
.intro-envelope:focus-visible { outline: 3px solid #fff; outline-offset: 6px; border-radius: 18px; }
.intro-addr {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 6.5%;
  font-family: "Monsieur La Doulaise", "Snell Roundhand", cursive;
  font-style: normal;
  font-weight: 400;
  text-align: center;
  color: #FFF0F6;
  text-shadow: 0 1px 6px rgba(120, 0, 40, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 300ms ease;
}
.intro.is-opening .intro-addr { opacity: 0; }
.intro-closed {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 30px 60px -22px rgba(30, 40, 90, 0.55);
  transition: opacity 420ms ease, transform 420ms ease;
}
.intro-openwrap {
  --open-scale: 1;
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 118%;
  transform-origin: 50% 58%;
  display: block;
  transform: translateX(-50%) translateY(10%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms ease 160ms, transform 680ms cubic-bezier(0.2, 0.9, 0.3, 1.12) 160ms;
}
.intro-open {
  width: 100%;
  display: block;
  filter: drop-shadow(0 30px 40px rgba(30, 40, 90, 0.4));
}
.intro-letter { position: absolute; inset: 0; display: block; text-align: center; }
.il-names {
  position: absolute;
  text-transform: uppercase;
  top: 19.5%;
  left: 15%;
  right: 15%;
  font-size: 3.2em;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--charcoal);
  white-space: nowrap;
}
.il-names .il-amp { color: var(--baby-blue-deep); }
.il-headline {
  position: absolute;
  top: 30.5%;
  left: 10%;
  right: 10%;
  font-family: var(--font-display);
  font-size: 10.5em;
  line-height: 1.04;
  color: var(--charcoal);
}
.il-spark {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  font-size: 2.6em;
  color: var(--baby-blue-deep);
}
.il-rule {
  position: absolute;
  top: 55%;
  left: 26%;
  right: 26%;
  height: 1px;
  background: var(--baby-blue-deep);
  opacity: 0.6;
}
.il-date {
  position: absolute;
  top: 57.3%;
  left: 12%;
  right: 12%;
  font-size: 2.5em;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--baby-blue-deep);
  white-space: nowrap;
}
.intro-enter {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  top: 91.5%;
  text-align: center;
  font-family: "Monsieur La Doulaise", "Snell Roundhand", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 4.8em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 1px 10px rgba(140, 0, 45, 0.35);
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 420ms ease 620ms;
  animation: intro-hint-pulse 2.4s ease-in-out 1.4s infinite;
}
.intro-enter-spark { color: #fff; font-size: 0.8em; margin-left: 0.3rem; opacity: 0.9; }
.intro.is-opening .intro-enter { opacity: 1; }
.intro.is-opening .intro-envelope { animation: none; cursor: default; }
.intro.is-opening .intro-closed { opacity: 0; transform: scale(1.05); }
.intro.is-opening .intro-openwrap { opacity: 1; transform: translateX(-50%) translateY(-1%) scale(var(--open-scale)); }
.intro.is-leaving { opacity: 0; }
.intro.is-leaving .intro-openwrap { transform: translateX(-50%) translateY(-22%) scale(calc(var(--open-scale) * 1.35)); transition-duration: 700ms; }
.intro.is-leaving .intro-enter { opacity: 0; }
.intro-hint {
  margin: 0;
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(30, 60, 120, 0.4);
  animation: intro-hint-pulse 2.2s ease-in-out infinite;
}
@keyframes intro-hint-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.intro.is-opening .intro-hint,
.intro.is-opening .intro-for { opacity: 0; animation: none; transition: opacity 250ms ease; }
.intro-skip {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: 1.25rem;
  z-index: 2;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  cursor: pointer;
}
.intro-skip:hover { background: rgba(255, 255, 255, 0.28); }
body.intro-active { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .intro-sky, .intro-envelope, .intro-hint { animation: none; }
}

/* ------------------- Mobile polish ------------------- */
@media (max-width: 720px) {
  /* Long answers ("MALHEUREUSEMENT NON") were touching the pill edge. */
  .decision {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    hyphens: auto;
  }
  /* Comfortable thumb targets on the drop-downs and inline links. */
  .acc > summary.section-title {
    min-height: 44px;
    padding: 0.55rem 0;
    align-items: center;
  }
  .faq-item summary { min-height: 44px; }
  .info-links a,
  .lodge,
  .text-cta {
    display: inline-block;
    min-height: 34px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
  .lodge { display: block; }
}
