/* =========================================================
   InviteUtsav — "Anand Chitthi" theme (letter-theme family, see
   inc/template-letter-theme.php). One of 7 themes sharing the exact
   same structural CSS/HTML/JS — only these design tokens plus the
   artwork under assets/templates/anand-chitthi/ are theme-specific.
   No framework. Mobile-first.
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Fonts */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-script:  'Allura', cursive;
  --font-accent:  'Cinzel', 'Georgia', serif;
  --font-body:    'Jost', 'Segoe UI', sans-serif;

  /* Colors */
  --color-primary:    #0e3676;   /* muted royal blue    */
  --color-primary-dk: #031a3f;   /* deep navy           */
  --color-secondary:  #bd9552;   /* subtle antique gold */
  --color-secondary-lt: #e6d3a8;
  --color-accent:     #3d6ba3;   /* powder / sky blue   */
  --color-background: #f8f6f0;   /* ivory               */
  --color-surface:    #ffffff;
  --color-text:       #1e2a3d;   /* deep navy ink       */
  --color-muted:      #5b6b80;   /* muted slate-blue, WCAG AA on ivory */

  /* Spacing scale */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;  --sp-7: 3rem;   --sp-8: 4.5rem;
  --sp-9: 6rem;

  --radius: 6px;
  --radius-lg: 18px;
  --shadow-soft: 0 20px 45px -20px rgba(43, 24, 16, .35);
  --shadow-card: 0 12px 30px -14px rgba(43, 24, 16, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --transition: .6s var(--ease);
  --max-w: 1180px;

  /* Shared curtain-opening (assets/css/templates/letter-theme-curtain.css)
     reads its artwork from these two — relative to THIS file's own
     location (assets/css/templates/). */
  --curtain-bg-url: url("../../templates/anand-chitthi/curtain/opening-bg.webp");
  --curtain-front-url: url("../../templates/anand-chitthi/curtain/opening-front.webp");
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
    line-height: 1.2;
    font-weight: normal;
    /* Explicit resets for properties design-system.css's global h1,h2,h3,h4
       rule also declares (font-family:Fraunces, color:var(--plum-800),
       letter-spacing:-.01em) — headings with their own class (.section-title,
       .family-card__name, etc.) already win by class specificity, but a
       heading with no further class (e.g. the hero .hero__names wrapper,
       whose child .hero__name spans inherit color from it) would otherwise
       silently pick up the global plum-800/Fraunces instead of inheriting
       this template's own ambient color/font — most visibly turning the
       couple's hero names the wrong color instead of white on the hero
       overlay. */
    color: inherit;
    font-family: inherit;
    letter-spacing: normal;
}
input, textarea, select { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body.no-scroll { overflow: hidden; height: 100vh; }

/* ---------- 3. SHARED TYPOGRAPHY & LAYOUT ---------- */
.section {
  position: relative;
  padding: var(--sp-9) var(--sp-5);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-accent);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
  /* Explicit resets for properties design-system.css's global .eyebrow
     also declares (font-style:italic, font-weight:500, display:inline-flex
     + gap, plus a ::before ornament line) — this template's own eyebrow-style
     labels (hero__eyebrow, family-card__label, stay-modal__eyebrow) are all
     plain/non-italic/non-bold with no ornament, so we match that established
     convention instead of inheriting the global stylesheet's styling. */
  font-style: normal;
  font-weight: 400;
  display: block;
}
.eyebrow::before { content: none; }
.eyebrow--light { color: var(--color-secondary-lt); }
.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  color: var(--color-primary);
  margin-bottom: var(--sp-7);
}
.section-title--light { color: #fff; }

.divider {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  color: var(--color-secondary);
  margin: var(--sp-6) auto 0;
}
.divider span { width: 46px; height: 1px; background: currentColor; opacity: .6; }
.divider i { font-style: normal; font-size: 1.1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: .95rem 2.1rem;
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  /* Explicit values for properties design-system.css's global .btn also
     declares, so this rule no longer depends on it. */
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dk));
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn--outline {
  border: 1px solid var(--color-secondary);
  color: var(--color-primary);
  background: transparent;
}
.btn--outline:hover { background: var(--color-secondary); color: #fff; }
.btn--ghost-light {
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
}
.btn--ghost-light:hover { background: rgba(255,255,255,.15); }
.btn--sm { padding: .65rem 1.3rem; font-size: .68rem; }

/* ---------- 4. SCROLL REVEAL ANIMATIONS ---------- */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: transform, opacity;
}
.reveal-up { transform: translateY(36px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(.85); }
.reveal-up.is-visible, .reveal-left.is-visible, .reveal-right.is-visible, .reveal-scale.is-visible {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}

/* ---------- 4b. TEXT ANIMATIONS ----------
   A small varied set, applied selectively (not everywhere) via
   data-anim on the element — see initTextAnimations() in script.js.
   Each type owns its own timing/easing so headings, names and small
   accents each feel distinct rather than reusing one effect site-wide. */

/* word / letter stagger — script.js wraps each unit in a span with a
   --i custom property; transition-delay reads it for the stagger. */
[data-anim="word"] .ta-word__item,
[data-anim="char"] .ta-char__item {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
[data-anim="char"] .ta-char__item { transition-delay: calc(var(--i) * 26ms); }
[data-anim="word"].is-visible .ta-word__item,
[data-anim="char"].is-visible .ta-char__item { opacity: 1; transform: none; }

/* mask reveal — text rises up from behind its own overflow-hidden box,
   like a curtain lifting. A little vertical padding keeps overflow:hidden
   from clipping descenders/swashes on script or decorative fonts. */
[data-anim="mask"] { overflow: hidden; padding-block: .1em; }
[data-anim="mask"] .ta-mask__inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s var(--ease);
}
[data-anim="mask"].is-visible .ta-mask__inner { transform: translateY(0); }

/* blur-to-clear */
[data-anim="blur"] {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 1s var(--ease), filter 1s var(--ease);
}
[data-anim="blur"].is-visible { opacity: 1; filter: blur(0); }

/* typewriter — script.js progressively fills textContent; the blinking
   cursor is pure CSS and removes itself once typing finishes. */
[data-anim="typewriter"] {
  display: inline-block;
  border-right: 2px solid currentColor;
  padding-right: 2px;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
[data-anim="typewriter"].is-visible { opacity: 1; animation: ta-caret .8s step-end infinite; }
[data-anim="typewriter"].is-done { animation: none; border-right-color: transparent; }
@keyframes ta-caret { 50% { border-right-color: transparent; } }

/* highlighted word — a gold underline sweeps in beneath the marked
   word/phrase once its ancestor scrolls into view. */
[data-anim="highlight"] {
  background-image: linear-gradient(var(--color-secondary), var(--color-secondary));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 1s .2s var(--ease);
}
[data-anim="highlight"].is-visible { background-size: 100% 2px; }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { transition: none !important; animation: none !important; }
  [data-anim="word"] .ta-word__item, [data-anim="char"] .ta-char__item { transition-delay: 0s !important; }
  [data-anim="mask"] .ta-mask__inner { transform: none !important; }
  [data-anim="blur"] { filter: none !important; }
}

/* ---------- 5b. FALLING PETALS OVERLAY ---------- */
#petals-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000; /* deliberately above everything, including the curtain gate (99999) — decorative and pointer-events:none, so nothing underneath is ever blocked */
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #petals-canvas { display: none; }
}

/* ---------- 6. MUSIC TOGGLE ---------- */
.music-toggle {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 150;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary-lt);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease);
}
.music-toggle:hover { transform: scale(1.08); }
.music-toggle__bars { display: flex; align-items: center; gap: 3px; height: 16px; }
.music-toggle__bars i { display: block; width: 3px; background: currentColor; border-radius: 2px; height: 6px; }
.music-toggle[aria-pressed="true"] .music-toggle__bars i { animation: bar-bounce 1s ease-in-out infinite; }
.music-toggle[aria-pressed="true"] .music-toggle__bars i:nth-child(2) { animation-delay: .15s; }
.music-toggle[aria-pressed="true"] .music-toggle__bars i:nth-child(3) { animation-delay: .3s; }
@keyframes bar-bounce { 0%, 100% { height: 5px; } 50% { height: 16px; } }

/* ---------- 7. SCROLL PROGRESS ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 140; background: rgba(14,54,118,.08); }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--color-secondary), var(--color-accent)); transition: width .1s linear; }

/* ---------- 8. HERO ---------- */
.hero {
  min-height: 100svh;
  max-width: none;
  padding: 0;
  display: flex; align-items: center;
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--color-primary) 80%, transparent); /* Safari <18 fallback */
    background: rgb(from var(--color-primary) r g b / 0.8);
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 20%;
  text-align: center;
}
.hero__eyebrow { font-family: var(--font-accent); letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; color: var(--color-secondary-lt); margin-bottom: var(--sp-4); }
.hero__names { margin: 0 0 var(--sp-4); display: flex; flex-direction: column; gap: .2em; }
.hero__name { font-family: var(--font-script); font-size: clamp(2.8rem, 12vw, 5.2rem); line-height: 1.2; }
.hero__amp { font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; color: var(--color-secondary-lt); }
.hero__date { font-family: var(--font-accent); letter-spacing: .1em; font-size: .95rem; color: var(--color-secondary-lt); margin-bottom: var(--sp-4); }
.hero__tagline { max-width: 34ch; margin: 0 auto; font-size: .95rem; font-style: italic; color: rgba(255,255,255,.85); }
.hero__scroll {
  position: absolute; left: 50%; bottom: var(--sp-5); transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  font-family: var(--font-accent); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: #fff;
}
.hero__scroll-line { width: 1px; height: 34px; background: linear-gradient(#fff, transparent); animation: scroll-pulse 1.8s ease-in-out infinite; }
@keyframes scroll-pulse { 0% { transform: scaleY(.3); opacity: .3; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(.3); opacity: .3; } }

/* ---------- 9. BLESSINGS ---------- */
.blessings { color: var(--color-primary); }
.blessings__motif { color: var(--color-secondary); margin: 0 auto var(--sp-4); width: 130px; }
.blessings__motif img { width: 100%; height: auto; }
.blessings__sanskrit { font-family: var(--font-heading); font-size: clamp(1.6rem, 5vw, 2.3rem); color: var(--color-primary); }
.blessings__translit { font-family: var(--font-accent); font-size: .8rem; letter-spacing: .1em; color: var(--color-muted); margin: var(--sp-2) 0 var(--sp-5); }
.blessings__text { max-width: 46ch; margin: 0 auto; line-height: 1.8; color: var(--color-text); font-size: 1rem; }

/* ---------- 10. FAMILIES ---------- */
.families__grid { display: grid; gap: var(--sp-6); align-items: center; }
.family-card__label { font-family: var(--font-accent); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--sp-2); }
.family-card__name { font-family: var(--font-heading); font-size: clamp(1.5rem, 4vw, 2rem); color: var(--color-primary); margin-bottom: var(--sp-4); }
.family-card__parents { line-height: 1.9; margin-bottom: var(--sp-4); font-size: 1rem; }
.family-card__grandparents { line-height: 1.9; color: var(--color-muted); font-size: .92rem; }
.families__divider { display: flex; align-items: center; gap: var(--sp-3); justify-content: center; color: var(--color-secondary); }
.families__divider span { width: 60px; height: 1px; background: currentColor; opacity: .5; }
.families__divider em { font-family: var(--font-script); font-style: normal; font-size: 1.8rem; color: var(--color-accent); }

@media (min-width: 760px) {
  .families__grid { grid-template-columns: 1fr auto 1fr; }
  .families__divider { flex-direction: column; }
  .families__divider span { width: 1px; height: 60px; }
}

/* ---------- 12. SAVE THE DATE ---------- */
.save-date { max-width: none; padding: 0; }
.save-date__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, var(--color-primary-dk), var(--color-primary));
}
.save-date__bg img { width: 100%; height: 100%; object-fit: cover; }
.save-date__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(3,26,63,.92), rgba(14,54,118,.85)); }
.save-date__inner { position: relative; z-index: 1; padding: var(--sp-9) var(--sp-5); max-width: var(--max-w); margin: 0 auto; }

/* Fireworks sit behind the content (z-index 0, between the bg and
   .save-date__inner's z-index 1) and never intercept clicks/scroll. */
.save-date__fireworks {
  position: absolute;
  top: 0;
  width: 58%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.save-date__fireworks--left { left: 0; }
.save-date__fireworks--right { right: 0; }

/* Deliberately no border/box-shadow/frame — the date sits directly on the
   section's own background, kept as plain and uncluttered as possible so
   the scratch interaction itself is the entire focus. */
.scratch-card {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}
.scratch-card__content {
  min-height: 220px;
  padding: var(--sp-6) var(--sp-4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4);
  color: #fff;
  text-align: center;
}
.scratch-card__hearts { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.date-heart {
  position: relative;
  width: clamp(72px, 24vw, 96px);
  aspect-ratio: 1 / 0.94;
  clip-path: url(#heartClip);
  background: linear-gradient(160deg, #fffaf0, #f0ddb0);
  box-shadow: inset 0 -6px 10px rgba(154,110,40,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15em;
  padding-bottom: 6%;
}
.date-heart__label { font-family: var(--font-accent); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); }
.date-heart__value { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.05rem, 5vw, 1.5rem); color: var(--color-primary); line-height: 1; }
.scratch-card__msg { line-height: 1.6; font-size: .9rem; color: rgba(255,255,255,.9); max-width: 30ch; }

/* One independent scratch layer per heart — same box, same clip-path as
   the heart underneath, so the two shapes always match exactly. */
.date-heart__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: url(#heartClip);
  touch-action: none;
  cursor: none;
  transition: opacity .5s var(--ease);
}
.date-heart__canvas.is-revealed { opacity: 0; pointer-events: none; }

/* Custom scratch cursor — a small "coin" that tracks the pointer while
   hovering the card, replacing the system cursor (canvas has cursor:none)
   so the scratching gesture reads clearly as an interactive tool, not a
   plain pointer. Desktop/mouse only; touch input needs no cursor. */
.scratch-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3dfa8, var(--color-secondary) 65%, #a67a2e 100%);
  border: 2px solid #fff6e2;
  box-shadow: 0 4px 12px rgba(0,0,0,.35), inset 0 0 6px rgba(255,255,255,.5);
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transform: scale(.9) rotate(0deg);
  transition: opacity .2s var(--ease), transform .12s var(--ease);
}
.scratch-cursor::after {
  content: '';
  position: absolute; inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.6);
}
.scratch-cursor.is-active { opacity: 1; }
.scratch-cursor.is-scratching { transform: scale(1.05) rotate(-18deg); }

/* ---------- 13. COUNTDOWN ---------- */
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); max-width: 560px; margin: 0 auto; }
.countdown__unit {
  background: var(--color-surface);
  border: 1px solid rgba(189,149,82,.35);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-2);
  box-shadow: var(--shadow-card);
}
.countdown__num { display: block; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--color-primary); font-variant-numeric: tabular-nums; }
.countdown__label { font-family: var(--font-accent); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--color-muted); }
.countdown__done { margin-top: var(--sp-5); font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; color: var(--color-accent); }

/* ---------- 14. CEREMONIES ---------- */
/* Plain vertical stack — every event stays on the page and simply
   scroll-reveals into view in sequence, no carousel/swipe/controls. */
.ceremonies__timeline { display: flex; flex-direction: column; gap: var(--sp-8); }
.ceremony {
  max-width: 420px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-5);
  text-align: center;
}
.ceremony__media { width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/5; position: relative; }
.ceremony__media img, .ceremony__media video { width: 100%; height: 100%; object-fit: cover; }
.ceremony__video-badge {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  background: rgba(43,24,16,.6); color: #fff;
  font-family: var(--font-accent); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .35em .8em; border-radius: 999px;
  display: flex; align-items: center; gap: .4em;
}
.ceremony__body { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.ceremony__name { font-family: var(--font-heading); font-size: 1.7rem; color: var(--color-primary); }
.ceremony__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-4); font-family: var(--font-accent); font-size: .72rem; letter-spacing: .06em; color: var(--color-accent); text-transform: uppercase; }
.ceremony__meta span { display: inline-flex; align-items: center; gap: .4em; }
.ceremony__venue { color: var(--color-text); font-size: .95rem; }
.ceremony__desc { color: var(--color-muted); line-height: 1.8; font-size: .92rem; }
.ceremony__dress-chip {
  display: inline-block;
  padding: .3em 1em;
  border: 1px solid rgba(189,149,82,.5);
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-primary);
}
.ceremony__link { margin-top: var(--sp-1); }

/* ---------- 15. VENUES ---------- */
.venues__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-6); }
.venue-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.venue-card__img { aspect-ratio: 16/10; overflow: hidden; }
.venue-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.venue-card:hover .venue-card__img img { transform: scale(1.06); }
.venue-card__body { padding: var(--sp-5); }
.venue-card__name { font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-primary); margin-bottom: var(--sp-2); }
.venue-card__address { color: var(--color-muted); font-size: .9rem; line-height: 1.6; margin-bottom: var(--sp-4); }

.venue-card { flex: 1 1 320px; max-width: calc(50% - var(--sp-6) / 2); }
@media (max-width: 560px) { .venue-card { max-width: 100%; flex-basis: 100%; } }

/* ---------- 16. ACCOMMODATION ---------- */
/* The main invitation only shows one button — all accommodation detail
   lives in a modal, keeping the primary scroll focused on wedding
   content. See #stayModal below. */

/* ---------- 16b. ACCOMMODATION MODAL ---------- */
.stay-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5);
  background: rgba(20,10,8,.6);
  backdrop-filter: blur(3px);
}
.stay-modal[hidden] { display: none; }
.stay-modal__panel {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--sp-7) var(--sp-5) var(--sp-6);
  text-align: center;
}
.stay-modal__close {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; line-height: 1;
  color: var(--color-muted);
  transition: background .25s, color .25s;
}
.stay-modal__close:hover { background: rgba(14,54,118,.08); color: var(--color-primary); }
.stay-modal__eyebrow { font-family: var(--font-accent); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--sp-2); }
.stay-modal__title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary); margin-bottom: var(--sp-6); }
.stay-modal__list { display: flex; flex-direction: column; gap: var(--sp-4); }
.stay-modal__item {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.stay-modal__item img { width: 100%; height: 160px; object-fit: cover; flex-shrink: 0; }
.stay-modal__item-body { width: 100%; padding: 20px; min-width: 0; text-align: center; }
.stay-modal__item-name { font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-primary); margin: 0; }
.stay-modal__item-loc { font-size: .8rem; color: var(--color-muted); margin: .2em 0 .5em; }

/* ---------- 17. GALLERY ---------- */
/* One image at a time, cross-fading — compact footprint, no thumbnails,
   no grid, no manual nav controls. Auto-advances; swipe on touch.
   .gallery-frame is a plain positioning parent so the tilted ::before/
   ::after "stacked photo" borders can sit behind the actual card
   (which itself needs overflow:hidden to clip/round its own image). */
.gallery-frame {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
}
.gallery-frame::before,
.gallery-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.gallery-frame::before { transform: rotate(-3deg); }
.gallery-frame::after { transform: rotate(3deg); }
.gallery-single {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  touch-action: pan-y;
}
.gallery-single__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.gallery-single__img.is-active { opacity: 1; z-index: 1; }

/* ---------- 18. GUEST QUESTIONS FORM ---------- */
.guest__intro { max-width: 42ch; margin: 0 auto var(--sp-7); color: var(--color-muted); font-size: 1rem; }
.guest-form { max-width: 640px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: var(--sp-5); }
.guest-form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 560px) { .guest-form__row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: 0; }
.field label { font-family: var(--font-accent); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-primary); font-weight: 400; }
.field label em { color: var(--color-accent); font-style: normal; }
.field input, .field textarea, .field select {
  padding: .85rem 1rem;
  border: 1px solid rgba(14,54,118,.2);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(189,149,82,.2);
}
.field__error { display: none; font-size: .78rem; color: #b3261e; }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field.has-error .field__error { display: block; }

.guest-question { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5) 0; border-top: 1px dashed rgba(14,54,118,.15); }
.guest-question__q { font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-primary); }
.guest-question__options { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.guest-question__option { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1.1em; border: 1px solid rgba(14,54,118,.25); border-radius: 999px; font-size: .88rem; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.guest-question__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.guest-question__option:has(input:checked),
.guest-question__option.is-checked { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.guest-question__option:has(input:focus-visible) { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

.guest-form__submit { align-self: center; margin-top: var(--sp-3); }
.guest-form__success { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); color: var(--color-primary); }
.guest-form__success[hidden] { display: none; }
.guest-form__success svg { color: var(--color-accent); }
.guest-form__success h3 { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-primary); }
.guest-form__success p { color: var(--color-muted); font-size: 1rem; }

/* ---------- 19. RSVP ---------- */
.rsvp { background: linear-gradient(160deg, var(--color-primary-dk), var(--color-primary)); border-radius: var(--radius-lg); color: #fff; max-width: calc(var(--max-w) - 0px); margin: var(--sp-6) auto; }
.rsvp__msg { max-width: 44ch; margin: 0 auto var(--sp-7); line-height: 1.8; color: rgba(255,255,255,.85); font-size: 1rem; }
.rsvp__contacts { display: grid; gap: var(--sp-5); max-width: 560px; margin: 0 auto; }
.rsvp-contact {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(230,211,168,.3);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
}
.rsvp-contact__info strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; }
.rsvp-contact__info span { font-size: .85rem; color: rgba(255,255,255,.7); }
.rsvp-contact__actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }
.rsvp-contact__icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.4); transition: background .3s, transform .3s; }
.rsvp-contact__icon:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

@media (min-width: 560px) { .rsvp-contact { flex-wrap: nowrap; } }
@media (max-width: 420px) { .rsvp-contact { flex-direction: column; align-items: flex-start; } }

/* ---------- 20. HASHTAG ---------- */
.hashtag__pill {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: 1rem 1.8rem;
  border: 1px dashed var(--color-secondary);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: background .3s, transform .3s;
}
.hashtag__pill:hover { background: rgba(189,149,82,.1); transform: translateY(-2px); }
.hashtag__pill svg { color: var(--color-accent); }
.hashtag__hint { margin-top: var(--sp-4); font-size: .85rem; color: var(--color-muted); }
.hashtag__hint.is-copied { color: var(--color-accent); font-weight: 500; }

/* ---------- 21. CLOSING ---------- */
.closing { position: relative; overflow: hidden; padding-bottom: var(--sp-9); }
.closing__motif, .closing__title, .closing__msg, .closing__names { position: relative; z-index: 1; }
.closing__motif { letter-spacing: .5em; color: var(--color-secondary); margin-bottom: var(--sp-4); }
.closing__title { font-family: var(--font-heading); font-size: clamp(2rem, 6vw, 3rem); color: var(--color-primary); margin-bottom: var(--sp-3); }
.closing__msg { max-width: 36ch; margin: 0 auto; line-height: 1.8; color: var(--color-text); font-size: 1rem; }
.closing__names { font-family: var(--font-script); font-size: 2.4rem; color: var(--color-accent); margin: var(--sp-5) 0; }
.closing__names em { font-style: normal; color: var(--color-accent); padding: 0 .15em; }

/* Static "fallen petals" scattered along the bottom edge — decorative
   only (aria-hidden, pointer-events:none), not the animated falling
   canvas effect used elsewhere. */
.closing__petals { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.closing__petal {
  position: absolute;
  bottom: 0;
  width: 16px; height: 16px;
  border-radius: 0 50% 50% 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
}
.closing__petal:nth-child(1)  { left: 4%;  bottom: 2%;  width: 14px; height: 14px; opacity: .3;  transform: rotate(18deg); }
.closing__petal:nth-child(2)  { left: 11%; bottom: 6%;  width: 10px; height: 10px; opacity: .22; transform: rotate(-40deg); background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-lt)); }
.closing__petal:nth-child(3)  { left: 19%; bottom: 1%;  width: 20px; height: 20px; opacity: .28; transform: rotate(64deg); }
.closing__petal:nth-child(4)  { left: 28%; bottom: 4.5%;width: 12px; height: 12px; opacity: .2;  transform: rotate(-12deg); background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-lt)); }
.closing__petal:nth-child(5)  { left: 38%; bottom: 0;   width: 16px; height: 16px; opacity: .26; transform: rotate(100deg); }
.closing__petal:nth-child(6)  { left: 49%; bottom: 3%;  width: 11px; height: 11px; opacity: .2;  transform: rotate(-55deg); background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-lt)); }
.closing__petal:nth-child(7)  { left: 60%; bottom: 5%;  width: 18px; height: 18px; opacity: .3;  transform: rotate(30deg); }
.closing__petal:nth-child(8)  { left: 71%; bottom: 1%;  width: 13px; height: 13px; opacity: .22; transform: rotate(-80deg); background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-lt)); }
.closing__petal:nth-child(9)  { left: 84%; bottom: 4%;  width: 15px; height: 15px; opacity: .26; transform: rotate(45deg); }
.closing__petal:nth-child(10) { left: 93%; bottom: 0;   width: 12px; height: 12px; opacity: .2;  transform: rotate(-20deg); background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-lt)); }

/* ---------- 23. RESPONSIVE FINE-TUNING ---------- */
@media (max-width: 480px) {
  .section { padding: var(--sp-8) var(--sp-4); }
  .countdown__grid { gap: var(--sp-2); }
  .rsvp { margin: var(--sp-5) var(--sp-3); }
}

/* prevent any accidental horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }
	