/* ==========================================================================
   Peony Wishes — Baby Shower (Girl) Invitation Card
   Ivory stationery, peony florals and gold hairlines — one continuous,
   naturally scrolling invitation.

   Layout model:
   • A fixed header sized EXACTLY by --header-h; every offset that must
     clear it (cover cap, scroll-padding-top, scroll-margin-top) derives
     from that token, so real chrome can never drift from it.
   • Sections are stacked "scenes" in normal document flow — guests simply
     scroll; nothing intercepts wheel/touch/keys.
   • Without JS (.no-js) the chrome hides and the page reads as a plain
     document; printing restores everything hidden on screen.

   Customize the whole look by editing the palette below — every component
   reads from these variables.
   ========================================================================== */

:root {
  /* Palette — warm ivory, blush petals, sage leaves, antique gold */
  --blush-50:   #fdf6f8;
  --blush-100:  #fbeef2;
  --blush-200:  #f6dde6;
  --blush-300:  #f0c3d2;
  --rose-400:   #e2a0b4;
  --rose-500:   #cf829b;
  --rose-600:   #b06b82;
  --plum-700:   #7c4a5c;
  --ink:        #5f424e;
  --sage:       #a9b795;
  --sage-deep:  #8b9d7b;
  --gold:       #b9933c;
  --cream:      #fffaf4;
  --paper:      #fffdfb;
  --error:      #bf4a55;

  /* Type */
  --font-script:  'Great Vibes', cursive;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --radius-lg: 26px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 24px 60px -32px rgba(176, 107, 130, 0.5);
  --shadow-card: 0 14px 34px -20px rgba(124, 74, 92, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Geometry tokens — single source of truth for fixed chrome.
     --header-h INCLUDES the notch/safe-area so one number is always right;
     the cover cap and every anchor offset derive from it. */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --header-h: calc(58px + var(--safe-t));
  --dock-h: 62px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Elements carrying the hidden attribute are truly hidden, even when a
   component rule sets its own display (e.g. the lightbox, zoom buttons). */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Anchor offsets come solely from each section's scroll-margin-top
     (derived from --header-h). Adding scroll-padding-top here too would
     STACK both offsets in Chromium and overshoot the landing spot. */
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(240, 195, 210, 0.45), transparent 36%),
    radial-gradient(circle at 86% 90%, rgba(169, 183, 149, 0.2), transparent 40%),
    linear-gradient(180deg, var(--blush-100), var(--blush-50));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  /* Reserve room for the fixed header + floating dock so nothing is ever
     permanently covered, including at the very end of the page. */
  padding-top: var(--header-h);
  padding-bottom: calc(var(--dock-h) + 28px + var(--safe-b));
  overflow-x: clip; /* belt & braces: never a sideways scrollbar */
}

img, svg { display: inline-block; vertical-align: middle; }
img { max-width: 100%; }

button { font: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--plum-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- custom scrollbars, palette-matched ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--blush-300) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blush-300), var(--rose-400));
  border-radius: 8px;
  border: 2px solid var(--blush-50);
}
::-webkit-scrollbar-thumb:hover { background: var(--rose-400); }

/* ==========================================================================
   EMPTY STATES — .is-empty is VISUALLY hidden only: it stays in the DOM
   (screen-reader/SEO safe) and comes back in print. main.js adds it to any
   [data-empty-hide] whose content is empty, and to groups whose items are
   all empty ([data-empty-group]).
   ========================================================================== */
.is-empty {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   SITE HEADER — fixed, exactly var(--header-h) tall, gains a glass
   backdrop once the page scrolls, with a thin rose/gold progress hairline
   along its bottom edge.
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);            /* locked — see the token above */
  padding: var(--safe-t) clamp(14px, 4vw, 26px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 60;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 250, 244, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -18px rgba(124, 74, 92, 0.45), inset 0 -1px 0 rgba(226, 160, 180, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.brand__mark { flex: 0 0 auto; }
.brand__name {
  font-family: var(--font-script);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--rose-600);
}

/* Desktop pills — derive from the DOM sections via main.js */
.topnav { display: flex; gap: 6px; min-width: 0; }
.topnav__link {
  appearance: none;
  border: 1px solid rgba(192, 138, 157, 0.4);
  background: transparent;
  color: var(--rose-600);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease);
}
.topnav__link:hover { background: var(--blush-100); }
.topnav__link[aria-current="true"] {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(176, 107, 130, 0.7);
}
.topnav__link:active { transform: scale(0.97); }

/* Burger — mobile only (<920px) */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 10px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid rgba(192, 138, 157, 0.5);
  border-radius: 12px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.menu-btn:hover { border-color: var(--rose-500); background: var(--blush-50); }
.menu-btn__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--rose-600);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 919px) {
  .topnav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Scroll progress — whisper-thin rose→gold line filling as guests read */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--rose-500) 70%, var(--rose-600));
  pointer-events: none;
}

/* ==========================================================================
   MOBILE MENU — slide-down sheet of labelled section rows over a dimmed
   backdrop. Hidden by default; main.js toggles [hidden] + aria-expanded.
   ========================================================================== */
.menu-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  background: rgba(95, 66, 78, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.menu-backdrop.is-open { opacity: 1; }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 10px;
  right: 10px;
  z-index: 56;
  max-height: min(70vh, 480px);
  overflow-y: auto;
  background: linear-gradient(170deg, var(--paper), var(--cream));
  border: 1px solid rgba(226, 160, 180, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 14px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0.28s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}
.mobile-menu__head {
  margin: 0 0 10px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mobile-menu__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(226, 160, 180, 0.45);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: left;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.mobile-menu__list button:hover { background: var(--blush-50); border-color: var(--rose-400); }
.mobile-menu__list button:active { transform: scale(0.99); }
.mobile-menu__list button.is-current {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  border-color: transparent;
  color: #fff;
}
.mobile-menu__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  opacity: 0.65;
}

/* ==========================================================================
   SCENES — stacked sections in normal flow. Short scenes fill one viewport
   (below the header) and centre their content; tall scenes simply grow.
   ========================================================================== */
.scene {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  min-height: calc(100vh - var(--header-h)); /* fallback first, dvh wins where supported */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 4vw, 44px) clamp(14px, 3vw, 30px) clamp(34px, 6vw, 64px);
  /* Anchor jumps land just below the header (mirrors scroll-padding-top) */
  scroll-margin-top: calc(var(--header-h) + 8px);
}
@supports (height: 100dvh) {
  .scene { min-height: calc(100dvh - var(--header-h)); }
}

/* Gentle scene entrance — gated behind prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .scene > * { animation: scene-in 0.5s var(--ease) both; }
  @keyframes scene-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Shared section head */
.scene-head {
  width: 100%;
  max-width: 640px;
  margin: 0 auto clamp(20px, 4vw, 32px);
  text-align: center;
}
.scene-head__script {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--rose-600);
  line-height: 1.1;
}
.scene-head__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.scene-head__intro {
  margin: 8px auto 0;
  max-width: 34em;
  font-size: 0.92rem;
  color: var(--plum-700);
}

/* Pills — shared button/anchor look */
.pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.pill--primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  box-shadow: 0 14px 26px -12px rgba(176, 107, 130, 0.8);
}
.pill--primary:hover { filter: brightness(1.05); box-shadow: 0 16px 30px -12px rgba(176, 107, 130, 0.9); }
.pill--ghost {
  border: 1.5px solid rgba(176, 107, 130, 0.65);
  color: var(--rose-600);
  background: rgba(255, 250, 244, 0.6);
}
.pill--ghost:hover { border-color: var(--rose-500); background: var(--blush-50); }
.pill:active { transform: scale(0.98); }
.pill--cal { border: 1.5px dashed rgba(185, 147, 60, 0.75); color: var(--gold); background: rgba(255, 250, 244, 0.75); }
.pill--cal:hover { background: #fdf3e2; border-style: solid; }
.pill--cal svg { width: 17px; height: 17px; }

/* Guest personalisation (platform injects `var name`) */
.guest-greeting { margin: 0 0 6px; font-family: var(--font-display); font-style: italic; color: var(--plum-700); }

/* ==========================================================================
   COVER — exactly one screen: capped at (viewport − header), vertically
   centred, fully visible at load. Fluid sizing grows with the viewport but
   STOPS past ~700px-tall viewports so mid-size phones never lose content.
   Decoration yields in a documented order before any primary content:
     1. scroll cue        (@media max-height 620)
     2. corner flourishes (@media max-height 560)
     3. subtitle          (@media max-height 500)
     4. meta chips        (@media max-height 440)
   Primary content (peony, title, name, CTAs) is never hidden. The inner
   wrapper scrolls ONLY as a last-resort safety valve on extreme viewports.
   ========================================================================== */
.scene--cover {
  min-height: 0;
  height: calc(100vh - var(--header-h));
  padding-bottom: clamp(20px, 4vw, 44px);
}
@supports (height: 100dvh) {
  .scene--cover { height: calc(100dvh - var(--header-h)); }
}

.cover-fit {
  width: 100%;
  max-width: 640px;
  max-height: 100%;
  overflow: auto;              /* last-resort valve only */
  scrollbar-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-fit::-webkit-scrollbar { display: none; }

.cover-inner {
  width: 100%;
  text-align: center;
  padding: 4px 0 10px;
}

.cover__peony {
  width: clamp(88px, 17dvh, 150px);
  height: auto;
  margin: 0 auto;
  display: block;
}

.cover__banner {
  margin: clamp(6px, 1.4dvh, 12px) auto 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rose-600);
}
.cover__banner::before,
.cover__banner::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 147, 60, 0.7));
  margin: 0 12px 3px;
}
.cover__banner::after { background: linear-gradient(90deg, rgba(185, 147, 60, 0.7), transparent); }

.cover__title { margin: clamp(6px, 1.4dvh, 14px) 0 0; }
.cover__script {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.35rem, 7.2dvh, 4rem);      /* stops growing ≈700px-tall viewports */
  line-height: 1.08;
  color: var(--rose-600);
}
.cover__caps {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 3dvh, 1.6rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 8px;
}

.cover__name {
  margin: clamp(8px, 1.8dvh, 18px) 0 0;
  font-family: var(--font-script);
  font-size: clamp(2rem, 6dvh, 3.2rem);
  line-height: 1.15;
  color: var(--rose-600);
  overflow-wrap: anywhere; /* long names wrap instead of overflowing */
}

.cover__sub {
  margin: 8px auto 0;
  max-width: 28em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.96rem, 2.4dvh, 1.14rem);
  color: var(--plum-700);
}

.cover__meta {
  margin: clamp(10px, 2dvh, 18px) auto 0;
  max-width: 34em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.cover__chip {
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 2.2dvh, 1rem);
  color: var(--plum-700);
  background: rgba(255, 250, 244, 0.85);
  border: 1px solid rgba(226, 160, 180, 0.5);
  border-radius: 100px;
  padding: 5px 13px;
  overflow-wrap: anywhere;
}
.cover__chip--wide { flex-basis: 100%; max-width: 30em; }

.cover__actions {
  margin: clamp(12px, 2.4dvh, 22px) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(10px, 2dvh);
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-500);
  opacity: 0.8;
}
.scroll-cue svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: cue-drift 2.2s var(--ease) infinite; }
  @keyframes cue-drift {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
  }
}

/* Decoration yield order (documented above) */
@media (max-height: 620px) { .scroll-cue { display: none; } }
@media (max-height: 560px) { .cover__sub[data-empty-hide], .cover__sub { display: none; } }
@media (max-height: 500px) { .cover__meta { display: none; } }
@media (max-height: 480px) {
  /* Short/landscape viewports: compact rhythm so the primary stack still
     fits without the last-resort valve scrolling */
  .scene--cover { padding-top: 12px; padding-bottom: 14px; }
  .cover__peony { width: 64px; }
  .cover__banner { margin-top: 4px; }
  .cover__title { margin-top: 6px; }
  .cover__name { margin-top: 6px; }
  .cover__actions { margin-top: 10px; }
}
@media (max-height: 440px) { .guest-greeting { display: none; } }

/* ==========================================================================
   DETAILS — the paper invitation card (ledger, keepsake, calendar)
   ========================================================================== */
.details-wrap { width: 100%; max-width: 640px; }

.event-banner {
  position: relative;
  margin: 0 0 clamp(20px, 4vw, 30px);
  padding: 10px;
  background: linear-gradient(160deg, var(--blush-100), var(--blush-50) 55%, var(--cream));
  border: 1px solid rgba(185, 147, 60, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.event-banner img {
  display: block;
  width: 100%;
  max-height: 46vh; /* flyers/banners show fully — never cropped, never cut off */
  object-fit: contain;
  border-radius: var(--radius-md);
}
.event-banner__cap {
  margin: 8px 0 2px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.card {
  position: relative;
  background: linear-gradient(170deg, var(--paper) 0%, var(--cream) 60%, #fdf3ef 100%);
  border: 1px solid rgba(185, 147, 60, 0.5);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: clamp(26px, 6vw, 54px) clamp(18px, 5vw, 46px);
  text-align: center;
  overflow: hidden;
}

/* double frame: gold hairline outer (border above) + dashed blush inner */
.card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(226, 160, 180, 0.65);
  border-radius: 6px;
  pointer-events: none;
}

.card__sprig { position: absolute; width: clamp(52px, 13vw, 84px); height: auto; opacity: 0.92; z-index: 1; }
.card__sprig--tl { top: 14px; left: 12px; }
.card__sprig--br { bottom: 14px; right: 12px; transform: rotate(180deg); }

.card__ledger {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 400px;
  text-align: left;
}

.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(226, 160, 180, 0.4);
  min-width: 0;
}
.ledger-row:first-child { padding-top: 2px; }
.ledger-row--last { border-bottom: 0; }

.ledger-row dt {
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.ledger-row dd {
  margin: 0;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 3.2vw, 1.06rem);
  color: var(--ink);
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere; /* long venue names wrap safely */
}

.calendar-wrap {
  position: relative;
  z-index: 2;
  margin: clamp(14px, 3vw, 20px) 0 0;
}

.card__photo {
  margin: clamp(16px, 3.5vw, 26px) auto 0;
  max-width: 420px;
  position: relative;
  z-index: 2;
  /* Designed fallback frame: if a photo is missing it still looks intentional */
  background: linear-gradient(160deg, var(--blush-100), var(--blush-50) 55%, var(--cream));
  border-radius: var(--radius-md);
}
.card__photo img {
  display: block;
  width: 100%;
  height: auto;
  /* Any photo shape fills the 16:9 strip (auto-cropped) */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(185, 147, 60, 0.5);
  box-shadow: var(--shadow-card);
}

.card__foot {
  position: relative;
  z-index: 2;
  margin: clamp(14px, 3vw, 20px) 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 3.2vw, 1rem);
  color: var(--plum-700);
}

/* ==========================================================================
   MOMENTS — photo gallery (optional PHOTO FEATURE)
   ========================================================================== */
.moments-section { width: 100%; max-width: 1040px; }

.moments-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 22px);
}
@media (min-width: 720px) {
  .moments-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.moments-grid__item { min-width: 0; }

.moment {
  margin: 0;
  position: relative;
  /* Designed fallback frame: if a photo is missing it still looks intentional */
  background: linear-gradient(160deg, var(--blush-100), var(--blush-50) 55%, var(--cream));
  border-radius: var(--radius-md);
}

.moment__img {
  display: block;
  width: 100%;
  height: auto;
  /* Every photo fills the 3:4 frame (auto-cropped) so the grid stays even
     whatever the shape of the user's own file */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(185, 147, 60, 0.5);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .moment:hover .moment__img {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -18px rgba(124, 74, 92, 0.45);
  }
}

.moment__caption {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: var(--plum-700);
}

/* ==========================================================================
   VIDEO FEATURE (placeholder.mp4 out of the box; hides when emptied)
   ========================================================================== */
.video-feature {
  width: 100%;
  max-width: 560px;
  margin: clamp(26px, 5vw, 40px) auto 0;
  text-align: center;
}
.video-feature__label {
  margin: 0 0 12px;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 6vw, 2rem);
  line-height: 1.15;
  color: var(--rose-600);
}
.video-card {
  position: relative;
  margin: 0;
  background: linear-gradient(160deg, var(--blush-100), var(--blush-50) 55%, var(--cream));
  border-radius: var(--radius-md);
}
.video-card__poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(185, 147, 60, 0.5);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(124, 74, 92, 0.8), 0 0 0 7px rgba(255, 253, 251, 0.6);
  pointer-events: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.video-card__play svg { width: 26px; height: 26px; margin-left: 3px; }
@media (hover: hover) and (pointer: fine) {
  .video-card:hover .video-card__poster {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -18px rgba(124, 74, 92, 0.45);
  }
  .video-card:hover .video-card__play {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 18px 36px -10px rgba(124, 74, 92, 0.9), 0 0 0 9px rgba(255, 253, 251, 0.7);
  }
}
/* Inline playback (mediaZoom off): the poster swaps for a native player */
.video-inline video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: 1px solid rgba(185, 147, 60, 0.5);
  background: #000;
}

/* ==========================================================================
   FREE PAGE — A NOTE FROM US (repeatable; supports MULTIPLE pages)
   ========================================================================== */
.free-section { width: 100%; max-width: 640px; }

.free-blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vw, 20px);
}

.free-block {
  background: linear-gradient(170deg, var(--paper), var(--cream));
  border: 1px solid rgba(226, 160, 180, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 4vw, 30px);
  text-align: center;
}

.free-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.free-block__content {
  margin: 10px auto 0;
  max-width: 32em;
  font-size: 0.95rem;
  color: var(--plum-700);
  overflow-wrap: anywhere;
}

.free-block__media {
  margin: clamp(14px, 3vw, 20px) auto 0;
  max-width: 420px;
  position: relative;
  background: linear-gradient(160deg, var(--blush-100), var(--blush-50) 55%, var(--cream));
  border-radius: var(--radius-md);
}
.free-block__media img {
  display: block;
  width: 100%;
  height: auto;
  /* Any photo shape fills the 4:3 frame (auto-cropped) so the page stays even */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(185, 147, 60, 0.5);
  box-shadow: var(--shadow-card);
}
.free-block__cap {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: var(--plum-700);
}

.free-powered-by {
  margin: clamp(18px, 4vw, 26px) 0 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 5vw, 1.7rem);
  line-height: 1.2;
  color: var(--rose-600);
}

/* ==========================================================================
   RSVP FORM
   ========================================================================== */
.rsvp-inner { width: 100%; max-width: 600px; }

.rsvp-form {
  background: linear-gradient(170deg, var(--paper), var(--cream));
  border: 1px solid rgba(226, 160, 180, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 4vw, 34px);
}

.rsvp-fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}
.rsvp-fieldset__legend {
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(185, 147, 60, 0.6);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group__hint { font-weight: 400; color: var(--plum-700); opacity: 0.85; }

.form-control {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--blush-200);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-control::placeholder { color: rgba(95, 66, 78, 0.45); }
.form-control:hover { border-color: var(--blush-300); }
.form-control:focus {
  outline: none;
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(207, 130, 155, 0.25);
}
textarea.form-control { resize: vertical; min-height: 84px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b06b82' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* error messages — the platform fills these spans */
.error {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--error);
  min-height: 0;
}
.error:empty { display: none; }

/* submit */
.btn {
  appearance: none;
  border: 0;
  border-radius: 100px;
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  box-shadow: 0 14px 26px -12px rgba(176, 107, 130, 0.8);
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 16px 30px -12px rgba(176, 107, 130, 0.9); }
.btn:active { transform: scale(0.98); }

/* loading — hidden by default; the platform toggles visibility while submitting */
.loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--plum-700);
}
.loading__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--blush-300);
  border-top-color: var(--rose-600);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   GUESTBOOK
   ========================================================================== */
.guestbook-inner { width: 100%; max-width: 600px; }

/* The platform injects the guestbook UI into .guestbook-body */
.guestbook-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

/* ── Guestbook (platform-injected form + message list) ─────────────── */
/* Scoped to the server-injected guestbook UI; mirrors the RSVP card,
   labels, blush inputs and rose pill button so the guestbook reads as
   part of the Peony Wishes design. */
.guestbook-form { width: 100%; max-width: 600px; margin: 0 auto; }

#guestbookForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(170deg, var(--paper), var(--cream));
  border: 1px solid var(--blush-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 4vw, 34px);
}

#guestbookForm .form-group { margin: 0; }
#guestbookForm .form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
#guestbookForm .form-control {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--blush-200);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
#guestbookForm .form-control::placeholder { color: rgba(95, 66, 78, 0.45); }
#guestbookForm .form-control:hover { border-color: var(--blush-300); }
#guestbookForm .form-control:focus {
  outline: none;
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(207, 130, 155, 0.25);
}
#guestbookForm textarea.form-control { resize: vertical; min-height: 84px; }
#guestbookForm .error {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--error);
  min-height: 0;
}
#guestbookForm .error:empty { display: none; }

.guestbook-chapta { margin: 2px 0; }

#guestbookForm button[type="submit"] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 100px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  box-shadow: 0 14px 26px -12px rgba(176, 107, 130, 0.8);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
#guestbookForm button[type="submit"]:hover {
  filter: brightness(1.05);
  box-shadow: 0 16px 30px -12px rgba(176, 107, 130, 0.9);
}
#guestbookForm button[type="submit"]:active { transform: scale(0.98); }

.loading-guestbook {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--plum-700);
}

#comments-container.guestbook-wrap {
  border-top: 1px solid var(--blush-300) !important;
  margin-top: 22px !important;
  padding-top: 20px;
}
.guestbook-entry {
  background: var(--paper);
  border: 1px solid var(--blush-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.guestbook-entry h5 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}
.guestbook-entry p { margin: 0 0 6px; font-size: 0.9rem; line-height: 1.55; color: var(--ink); }
.guestbook-entry small { font-size: 0.75rem; color: var(--plum-700); opacity: 0.8; }

.more-guestbook-wrap { text-align: center; margin-top: 14px; }
#load-more {
  appearance: none;
  background: transparent;
  border: 1px solid var(--blush-300);
  border-radius: 100px;
  padding: 10px 26px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rose-600);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
#load-more:hover { border-color: var(--rose-500); color: var(--rose-600); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  padding: clamp(22px, 5vw, 36px) 16px 0;
  text-align: center;
}
.site-footer p { margin: 0; }
.footer-brand {
  margin: 0;
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--rose-600);
}
.site-footer__tag {
  margin: 6px 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-600);
}
.site-footer__heart { color: var(--gold); }

/* Full-width platform credit line — exact class 'powered-by' */
.powered-by {
  width: 100%;
  margin: 18px 0 0;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(226, 160, 180, 0.35);
  background: rgba(255, 250, 244, 0.82);
  text-align: center;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-600);
  opacity: 0.85;
}
.powered-by__name { color: var(--gold); }

/* ==========================================================================
   DOCK — floating glass pill of section shortcuts; built by JS from the
   DOM sections, so deleted sections lose their entry automatically.
   Sized to fit a 360px viewport even with six entries.
   ========================================================================== */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: stretch;
  gap: 2px;
  max-width: calc(100vw - 20px);
  padding: 6px 8px;
  background: rgba(124, 74, 92, 0.82);
  border: 1px solid rgba(253, 246, 248, 0.22);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 52px -22px rgba(95, 42, 61, 0.75), inset 0 1px 0 rgba(253, 246, 248, 0.12);
}
.dock button {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 46px;
  height: 48px;
  padding: 6px 7px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(253, 246, 248, 0.72);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}
.dock button svg { width: 19px; height: 19px; flex: none; }
.dock button:hover { color: #fff; background: rgba(253, 246, 248, 0.12); }
.dock button:active { transform: scale(0.94); }
.dock button.is-current { color: #f7d9a8; background: rgba(185, 147, 60, 0.22); }
.dock button.is-current::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.dock__label {
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ==========================================================================
   CLICKABLE MEDIA — photo/video slots open in the viewer when
   PEONY_CONFIG.mediaZoom is true (JS adds role/tabindex and binds clicks).
   With the option OFF, html.media-static removes every click affordance:
   static cursor, no hover badge, figures not focusable.
   ========================================================================== */
html:not(.media-static) [data-lightbox] { cursor: zoom-in; }
html:not(.media-static) [data-video-open] { cursor: pointer; }

/* A gentle zoom badge on hover, so photo slots clearly invite a tap */
.moment::after,
.card__photo::after,
.event-banner::after,
.free-block__media::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(124, 74, 92, 0.62);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.6-4.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  html:not(.media-static) .moment:hover::after,
  html:not(.media-static) .card__photo:hover::after,
  html:not(.media-static) .event-banner:hover::after,
  html:not(.media-static) .free-block__media:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
}
/* With media zoom off, no badge at all */
.media-static .moment::after,
.media-static .card__photo::after,
.media-static .event-banner::after,
.media-static .free-block__media::after { content: none; }

/* ==========================================================================
   LIGHTBOX — view any photo large with zoom; plays the optional video.
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 55, 72, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 24px clamp(10px, 4vw, 36px);
}
.lightbox button {
  appearance: none;
  border: 1px solid rgba(253, 246, 248, 0.4);
  background: rgba(96, 55, 72, 0.45);
  color: var(--blush-50);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox button:hover { background: rgba(253, 246, 248, 0.16); }

.lightbox__figure {
  max-width: min(940px, 94vw);
  margin: 0;
  text-align: center;
  user-select: none;
}
.lightbox__pan {
  display: inline-block;
  transform-origin: 0 0;
  touch-action: none;
  cursor: grab;
  will-change: transform;
}
.lightbox__pan:active { cursor: grabbing; }
.lightbox__img {
  display: block;
  max-width: 92vw;
  max-height: 76vh;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__cap {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3.4vw, 1.15rem);
  color: rgba(253, 246, 248, 0.92);
}

.lightbox__close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox__close:hover { transform: rotate(90deg); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: clamp(8px, 3vw, 26px); }
.lightbox__nav--next { right: clamp(8px, 3vw, 26px); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox__zoom {
  position: absolute;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}
.lightbox__zbtn {
  position: static;
  width: 40px;
  height: 40px;
}
.lightbox__zbtn svg { width: 18px; height: 18px; }

.lightbox__count {
  position: absolute;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  padding: 4px 14px;
  border: 1px solid rgba(253, 246, 248, 0.25);
  border-radius: 100px;
  background: rgba(96, 55, 72, 0.45);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(253, 246, 248, 0.85);
}

/* "Open original" escape hatch */
.lightbox__original {
  position: absolute;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 3;
  padding: 6px 14px;
  border: 1px solid rgba(253, 246, 248, 0.35);
  border-radius: 100px;
  background: rgba(96, 55, 72, 0.45);
  color: rgba(253, 246, 248, 0.92);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}
.lightbox__original:hover { background: rgba(253, 246, 248, 0.16); }

.lightbox__video {
  width: min(960px, 94vw);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65);
}
.lightbox__video iframe,
.lightbox__video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENT — without JS everything reads as a document
   ========================================================================== */
.no-js body { overflow-x: visible; }
.no-js .site-header { background: rgba(255, 250, 244, 0.86); border-bottom: 1px solid rgba(226, 160, 180, 0.35); }
.no-js .topnav,
.no-js .menu-btn,
.no-js .scroll-progress,
.no-js .dock,
.no-js .mobile-menu,
.no-js .menu-backdrop { display: none !important; }
.no-js .video-feature { display: none; }         /* cannot play without JS */
.no-js .calendar-wrap { display: none; }          /* dead link without JS */
.no-js .lightbox { display: none !important; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   PRINT — the invitation prints as a clean document: the card centred like
   a 5×7 stationery sheet, every other section flowing after it. Everything
   visually hidden by the empty-state system is RESTORED here.
   ========================================================================== */
@media print {
  body {
    background: #fff;
    padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .site-header, .dock, .mobile-menu, .menu-backdrop, .scroll-progress,
  .skip-link, .scroll-cue, .video-feature, .event-banner, .lightbox,
  .calendar-wrap { display: none !important; }

  .scene {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10mm 8mm;
    animation: none;
  }
  .scene > * { animation: none; }
  .scene--details { padding-top: 14mm; }

  /* empty-state sweep is undone on paper: hosts may still want the record */
  .is-empty {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    display: revert !important;
  }
  [data-empty-hide].is-empty { display: revert !important; }

  .card {
    max-width: 5.5in;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
    padding: 0.9in 0.65in;
    overflow: visible;
    border: 1px solid #b9933c;
    page-break-inside: avoid;
  }
  .card::before { inset: 0.18in; border-radius: 0; }
  .card__sprig { width: 0.7in; }
  .card__sprig--tl { top: 0.4in; left: 0.35in; }
  .card__sprig--br { bottom: 0.4in; right: 0.35in; }
  .card__photo { max-width: 4in; margin-top: 0.22in; }
  .card__photo img { border-radius: 6px; }
}
