/* Invitani invitation pages — original stationery-inspired design, three themes, mobile first.
   No external fonts or resources. All motion respects prefers-reduced-motion. Served under style-src 'self'. */

/* Public, read-only sample actions remain reachable without traversing the invitation. */
body[data-read-only-preview="true"] .public-sample-entry {
  position: sticky; top: .5rem; z-index: 120; width: calc(100% - 2rem); max-width: 48rem;
  margin: .5rem auto; padding: .5rem; border: 1px solid #d8b97a88; border-radius: 12px;
  background: #151a1c; color: #fbf4ea; text-align: center;
}
body[data-read-only-preview="true"] .public-sample-entry .button {
  min-height: 44px; margin: .2rem; padding: .5rem .75rem;
  color: inherit; font: 600 .75rem/1.2 var(--font-body); letter-spacing: .025em; text-transform: none;
}
body[data-read-only-preview="true"] .public-sample-entry .public-sample-controls {
  position: static; top: auto; left: auto; right: auto; width: auto; max-width: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
  margin: .35rem 0 0; padding: 0;
}
@media (scripting: enabled) {
  /* Compact preview toolbar. While the cover is closed the VIP controls are invisible anyway (vip-invitation.css hides .vip-bar
     under html.vip-locked), so instead of reserving their empty row the row is collapsed from first paint until the invitation is
     opened (html.vip-opened). The language toggle's init reveal (invitation.js initLanguage) then happens inside a collapsed row
     and cannot move the toolbar; the row appears only after the guest's open action. Without scripts nothing here applies. */
  html.vip:not(.vip-opened):not(:has(.vip-anchor:target)) body[data-read-only-preview="true"] .public-sample-entry .public-sample-controls { display: none; }
  /* Native #abrir open: the cover is already hidden by CSS (vip-invitation.css .vip-anchor:target ~ .vip-opening) before the deferred
     scripts finish, so the page is visible; keep the original full reservation there so nothing above the content expands later. */
  html.vip:has(.vip-anchor:target) body[data-read-only-preview="true"] .public-sample-entry { min-height: 7.25rem; }
}
/* Public VIP preview, closed cover: the toolbar (sticky, z 120) and the cover (fixed, inset 0, z 60, vip-invitation.css) share
   the screen instead of overlapping. The cover starts at the toolbar's own bottom edge, whatever its height (one or two rows,
   either language, the NoJS controls margin), so the arch, eyebrow and name are never painted under it. The toolbar is the
   body's first child, so above and beside it there is only the body background; page scrolling stays off while the cover
   shows (html.vip-locked does this with scripts; the rule below does it without), so no page content passes there. The
   cover is display:none once opened, natively (#abrir) or by script, and every rule here then stops mattering. Without
   anchor positioning nothing here applies. Screen only: print hides the cover but it stays in the DOM, so the :has() scroll
   lock would still match and clip the printout. */
@media screen { @supports (top: anchor(--a bottom)) {
  body[data-read-only-preview="true"] .public-sample-entry { anchor-name: --invitani-preview-nav; }
  html.vip body[data-read-only-preview="true"] .vip-opening { top: anchor(--invitani-preview-nav bottom, 0px); }
  html.vip:not(.vip-opened):not(:has(.vip-anchor:target)):has(body[data-read-only-preview="true"] .vip-opening) { overflow: hidden; }
} }

/* ---------------------------------------------------------------- tokens ---------------------------------------------------------------- */
:root {
  --font-display: Gabriola, "Sitka Display", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(40, 20, 30, 0.06), 0 12px 32px -12px rgba(40, 20, 30, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --success: #1F6B45;
  --error: #A3261F;
  /* rosa-dorada (default) */
  --bg: #FBF3EF;
  --bg-2: #F6E6E0;
  --surface: #FFFBF9;
  --field-bg: #FFFFFF;
  --ink: #3E1F2A;
  --ink-soft: #6B4A55;
  --accent: #8E3B4E;
  --accent-hover: #7A3042;
  --accent-ink: #FFFFFF;
  --gold: #B08A45;
  --gold-text: #7D5A1F;
  --line: #E8CFC6;
  --focus: #1B4E9B;
  --art-leaf: #9DB096;
  --art-stem: #6F8A6B;
  --art-petal: #FFF7F3;
  --art-petal-alt: #F2C4C9;
  --art-rose: #D9919E;
  --art-rose-deep: #A95A6A;
  --art-rose-line: #8E3B4E;
  --art-rose-line-light: #FFE9EC;
  --art-gold: #C2994B;
  --art-star: #F5E3B8;
  --glow: rgba(255, 255, 255, 0.85);
  --paper: radial-gradient(120% 80% at 50% 0%, #FFF9F6 0%, var(--bg) 55%, var(--bg-2) 100%);
}

html[data-theme="noche-azul"] {
  --success: #9FE0B8;
  --error: #FFB4AB;
  --bg: #0D1532;
  --bg-2: #141F45;
  --surface: #18244D;
  --field-bg: #111A3C;
  --ink: #F5F0E4;
  --ink-soft: #C9CFE3;
  --accent: #DCC07E;
  --accent-hover: #E8D29A;
  --accent-ink: #1A1F3A;
  --gold: #DCC07E;
  --gold-text: #E6CD8F;
  --line: #2C3A6B;
  --focus: #FFE08A;
  --art-leaf: #7488C4;
  --art-stem: #56679F;
  --art-petal: #E7ECFA;
  --art-petal-alt: #9AAEE3;
  --art-rose: #9AAEE3;
  --art-rose-deep: #6576B8;
  --art-rose-line: #E7ECFA;
  --art-rose-line-light: #F5F0E4;
  --art-gold: #DCC07E;
  --art-star: #F7F1DE;
  --glow: rgba(52, 69, 127, 0.55);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  --paper:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(247, 241, 222, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, rgba(247, 241, 222, 0.8) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 64% 42%, rgba(247, 241, 222, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 66%, rgba(247, 241, 222, 0.6) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 88% 74%, rgba(247, 241, 222, 0.7) 50%, transparent 51%),
    radial-gradient(120% 90% at 50% 0%, #22306A 0%, var(--bg) 60%, #0A1029 100%);
}

html[data-theme="jardin-esmeralda"] {
  --bg: #F3F6EE;
  --bg-2: #E4ECDF;
  --surface: #FCFDF9;
  --ink: #173A2E;
  --ink-soft: #3F5E52;
  --accent: #245C47;
  --accent-hover: #1B4A39;
  --accent-ink: #FFFFFF;
  --gold: #A4833E;
  --gold-text: #6F5620;
  --line: #CFDCCB;
  --art-leaf: #7FA78E;
  --art-stem: #3E7560;
  --art-petal: #FFFFFF;
  --art-petal-alt: #F0C2BA;
  --art-rose: #E3A9A1;
  --art-rose-deep: #B8726A;
  --art-rose-line: #8A4A43;
  --art-rose-line-light: #FFF1EE;
  --art-gold: #B8964D;
  --art-star: #FFF8E6;
  --paper: radial-gradient(120% 80% at 50% 0%, #FFFFFA 0%, var(--bg) 55%, var(--bg-2) 100%);
}

/* Every theme keeps text, links and buttons at 4.5:1 or more against its own backgrounds (invitations-themes.test.ts). */
html[data-theme="marfil-oro"] {
  --bg: #FAF6EC;
  --bg-2: #F1E8D4;
  --surface: #FFFDF7;
  --ink: #2E261A;
  --ink-soft: #5E5140;
  --accent: #7A5A1E;
  --accent-hover: #664A16;
  --accent-ink: #FFFFFF;
  --gold: #B8964D;
  --gold-text: #6E5118;
  --line: #E6DAC0;
  --art-leaf: #B5AE8C;
  --art-stem: #8C8462;
  --art-petal: #FFFDF7;
  --art-petal-alt: #EFE2C4;
  --art-rose: #E8D3A8;
  --art-rose-deep: #B8964D;
  --art-rose-line: #7A5A1E;
  --art-rose-line-light: #FFF8E8;
  --art-gold: #C7A45A;
  --art-star: #FFF3D6;
  --paper: radial-gradient(120% 80% at 50% 0%, #FFFDF7 0%, var(--bg) 55%, var(--bg-2) 100%);
}

html[data-theme="azul-cielo"] {
  --bg: #F1F6FB;
  --bg-2: #DFEAF5;
  --surface: #FAFCFE;
  --ink: #15304A;
  --ink-soft: #3D5670;
  --accent: #285A8A;
  --accent-hover: #1F4A73;
  --accent-ink: #FFFFFF;
  --gold: #B08A45;
  --gold-text: #6B5220;
  --line: #CCDCEB;
  --art-leaf: #9DB6C9;
  --art-stem: #6F8FA8;
  --art-petal: #FFFFFF;
  --art-petal-alt: #CFE1F2;
  --art-rose: #A9C8E6;
  --art-rose-deep: #6E98C2;
  --art-rose-line: #285A8A;
  --art-rose-line-light: #EEF5FC;
  --art-gold: #C2A15A;
  --art-star: #FFF6DE;
  --paper: radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, var(--bg) 55%, var(--bg-2) 100%);
}

html[data-theme="lavanda"] {
  --bg: #F6F2FA;
  --bg-2: #E9E0F3;
  --surface: #FDFBFF;
  --ink: #2E2244;
  --ink-soft: #584A70;
  --accent: #5E3F8F;
  --accent-hover: #4D3277;
  --accent-ink: #FFFFFF;
  --gold: #B08A45;
  --gold-text: #6E5420;
  --line: #DDD0EA;
  --art-leaf: #A9B59A;
  --art-stem: #7C8A6C;
  --art-petal: #FFFFFF;
  --art-petal-alt: #E3D2F2;
  --art-rose: #C9B0E3;
  --art-rose-deep: #8E6CB8;
  --art-rose-line: #5E3F8F;
  --art-rose-line-light: #F6EEFD;
  --art-gold: #C2A15A;
  --art-star: #FFF6E0;
  --paper: radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, var(--bg) 55%, var(--bg-2) 100%);
}

html[data-theme="borgona"] {
  --success: #9FE0B8;
  --error: #FFB4AB;
  --bg: #2A0E17;
  --bg-2: #3A1520;
  --surface: #431A26;
  --field-bg: #34121D;
  --ink: #F8EEE6;
  --ink-soft: #E3CFC9;
  --accent: #E5BE86;
  --accent-hover: #EDCD9D;
  --accent-ink: #2A0E17;
  --gold: #E5BE86;
  --gold-text: #EBCB98;
  --line: #5A2A38;
  --focus: #FFE08A;
  --art-leaf: #8C5A5F;
  --art-stem: #6E4046;
  --art-petal: #F6E3DA;
  --art-petal-alt: #D99AA6;
  --art-rose: #C46A7E;
  --art-rose-deep: #8F3A4E;
  --art-rose-line: #F6E3DA;
  --art-rose-line-light: #F8EEE6;
  --art-gold: #E5BE86;
  --art-star: #FBF1E2;
  --glow: rgba(120, 40, 60, 0.5);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  --paper: radial-gradient(120% 90% at 50% 0%, #4A1A28 0%, var(--bg) 60%, #1E0910 100%);
}

/* ---------------------------------------------------------------- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-active-lang="en"] [data-lang="es"], html[data-active-lang="es"] [data-lang="en"] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: 0.005em; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1.1rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------- banners and controls ---------------------------------------------------------------- */
.banners { position: relative; z-index: 5; display: grid; gap: 0.35rem; padding: 0.6rem 0.75rem 0; max-width: 760px; margin: 0 auto; }
.banner {
  font-size: 0.8125rem; line-height: 1.45; text-align: center; padding: 0.5rem 0.9rem; border-radius: 14px;
  background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line);
}
.banner-sandbox { border-style: dashed; }
.banner-demo { color: var(--ink); }

.controls {
  position: sticky; top: 0.6rem; z-index: 20; display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.6rem 0.75rem 0; max-width: 760px; margin: 0 auto; pointer-events: none;
}
.controls > * { pointer-events: auto; }
.controls:empty { display: none; }
.lang-toggle, .music-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0.45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 0.875rem/1.2 var(--font-body);
  cursor: pointer; box-shadow: var(--shadow); transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang-toggle:hover, .music-toggle:hover { transform: translateY(-1px); }
.music { display: inline-flex; align-items: center; gap: 0.5rem; }
.music-title { font-size: 0.75rem; color: var(--ink-soft); max-width: 12rem; line-height: 1.3; display: none; }
.music-toggle[data-state="playing"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.music-toggle[data-state="blocked"] { border-style: dashed; }
.music-toggle:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.music-icon { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 16px; }
.music-icon span { display: block; width: 3px; height: 5px; border-radius: 2px; background: currentColor; }
.music-icon span:nth-child(2) { height: 9px; }
.music-icon span:nth-child(3) { height: 6px; }
.music-toggle[data-state="playing"] .music-icon span { animation: eq 0.9s ease-in-out infinite alternate; }
.music-toggle[data-state="playing"] .music-icon span:nth-child(2) { animation-delay: -0.3s; }
.music-toggle[data-state="playing"] .music-icon span:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* ---------------------------------------------------------------- hero ---------------------------------------------------------------- */
.hero {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 88vh; min-height: 88svh; padding: 0.5rem 1.25rem 1rem; text-align: center; overflow: hidden;
}
.hero-art { display: block; width: min(560px, 100%); height: auto; flex: none; }
.hero-art-top { margin-bottom: -1.25rem; }
.hero-art-bottom { margin-top: -0.5rem; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.85rem; max-width: 34rem; }
.hero-inner::before {
  content: ""; position: absolute; inset: -2rem -3rem; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.monogram { width: 104px; height: auto; color: var(--gold); }
.monogram-text { font-family: var(--font-display); font-size: 34px; fill: currentColor; letter-spacing: 1px; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-text); }
.hero h1 { font-size: clamp(2.9rem, 13vw, 5.4rem); line-height: 1.02; overflow-wrap: anywhere; }
.ornament { width: 200px; height: auto; color: var(--gold); display: block; margin: 0.4rem auto; }
.hosted { color: var(--ink-soft); font-size: 1.05rem; }
.hosted-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.2rem; }
.hero-date { font-family: var(--font-display); font-size: clamp(1.3rem, 5vw, 1.7rem); color: var(--ink); }
.hero-date time { display: block; }

.countdown { width: 100%; max-width: 22rem; margin-top: 0.35rem; }
.countdown-label, .countdown-past { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.countdown-past { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em; text-transform: none; color: var(--gold-text); }
.countdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.countdown-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 0.4rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.countdown-grid span { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown-grid small { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.35rem; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.6rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.8rem 1.6rem;
  border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1.2 var(--font-body); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.button-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px var(--accent); }
.button-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button-primary:disabled { opacity: 0.65; cursor: progress; transform: none; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--gold); }
.button-ghost:hover { background: var(--surface); }

/* ---------------------------------------------------------------- sections ---------------------------------------------------------------- */
main { display: block; }
.section { max-width: 760px; margin: 0 auto; padding: 3.25rem 1.25rem; text-align: center; }
.section > h2 { font-size: clamp(2rem, 7vw, 2.7rem); }
.section > .ornament { margin-bottom: 1.6rem; }

.message { padding-top: 2rem; }
.message-card {
  position: relative; margin: 0; padding: 2.6rem 1.6rem 2.2rem; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.message-card::before, .message-card::after {
  content: ""; position: absolute; left: 50%; width: 56px; height: 1px; background: var(--gold); transform: translateX(-50%);
}
.message-card::before { top: 1.3rem; }
.message-card::after { bottom: 1.1rem; }
.message-text { font-family: var(--font-display); font-size: clamp(1.25rem, 4.6vw, 1.55rem); line-height: 1.5; color: var(--ink); }
.pair { display: flex; flex-direction: column; gap: 1rem; }
html[data-active-lang="en"] [data-pair-lang="es"], html[data-active-lang="es"] [data-pair-lang="en"] {
  order: 2; font-size: 1.02rem; font-family: var(--font-body); font-style: italic; color: var(--ink-soft); line-height: 1.6;
  border-top: 1px solid var(--line); padding-top: 1rem;
}
.signature { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.2rem; color: var(--ink-soft); }
.signature strong { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: var(--ink); }

.venue-grid { display: grid; gap: 1rem; }
.venue-card, .note-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.6rem 1.3rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
}
.venue-kind { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-text); }
.venue-card h3 { font-size: 1.65rem; }
.venue-time { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.venue-card address { color: var(--ink-soft); font-size: 0.98rem; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: underline;
  text-underline-offset: 0.2em; text-decoration-thickness: 1px;
}
html[data-theme="noche-azul"] .text-link, html[data-theme="borgona"] .text-link { color: var(--gold-text); }
.note-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.note-card h3 { font-size: 1.35rem; }
.note-card p { color: var(--ink-soft); }

/* Guest sections: places to stay, menu, questions & answers, registry links */
.note-card .price-note { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; color: var(--gold-text); }
.registry-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; }
/* Cash gifts ("lluvia de sobres"): each way to give, its holder, its value (a tap selects all of it) and its copy button,
   which invitation.js shows. */
.cash-gift-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; width: 100%; }
.cash-gift { display: grid; gap: 0.3rem; justify-items: center; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.cash-gift:last-child { border-bottom: 0; padding-bottom: 0; }
.note-card .cash-gift-method { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }
.cash-gift-label { font-size: 0.85rem; }
.cash-gift-value { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 0.75rem; }
.cash-gift-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--ink); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.cash-gift-copy { min-height: 44px; padding: 0.35rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.cash-gift-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.note-card .cash-gift-status { font-size: 0.85rem; color: var(--ink); }
.cash-gift-status:empty { display: none; }
/* How to get there spans the grid; the colours guests may wear sit under the dress code: round chips with their names,
   and the honoree's reserved colour crossed out. A chip's colour is its circle's own fill (render.ts); this sheet only
   draws the ring, so a white or ivory colour still shows on a light card. The cross is a thin ink line over a wide
   halo in the card's colour, so it shows on any colour: an ivory dress on a dark theme, a navy one on a light theme. */
.note-grid > .note-wide { grid-column: 1 / -1; }
.dress-palette { display: grid; gap: 0.55rem; justify-items: center; width: 100%; margin-top: 0.35rem; }
.note-card .palette-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }
.palette-swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.note-card .palette-swatch { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 38px; margin: 0; padding: 0.25rem 0.85rem 0.25rem 0.3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.95rem; }
.palette-dot { flex: none; width: 26px; height: 26px; }
.palette-dot circle { stroke: var(--ink); stroke-opacity: 0.3; stroke-width: 1.5; }
.palette-avoid-halo { stroke: var(--surface); stroke-width: 4.5; stroke-linecap: round; }
.palette-avoid-mark { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.palette-reserved { display: grid; gap: 0.45rem; justify-items: center; width: 100%; margin-top: 0.3rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.note-card .palette-avoid { font-size: 0.95rem; }
.menu-list { max-width: 40rem; margin: 0 auto; text-align: center; }
.faq-list { display: grid; gap: 0.75rem; max-width: 40rem; margin: 0 auto; text-align: left; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 52px; padding: 0.8rem 1.1rem; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; content: "+" / ""; flex: none; font-size: 1.35rem; line-height: 1; color: var(--gold-text); transition: transform 0.2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-item p { margin: 0; padding: 0 1.1rem 1rem; color: var(--ink-soft); }

.honor-list { display: grid; gap: 1.1rem; margin: 0; }
.honor-list > div { padding: 1.1rem 1rem; border-bottom: 1px solid var(--line); }
.honor-list > div:last-child { border-bottom: 0; }
.honor-list dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-text); }
.honor-list dd { margin: 0.35rem 0 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }

.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 30rem; text-align: left; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.4rem; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 5.6rem 1fr; gap: 1.6rem; align-items: baseline; padding: 0.75rem 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(6.4rem - 5px); top: 1.2rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--gold);
}
.timeline time { font-weight: 700; color: var(--gold-text); text-align: right; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.timeline li > span { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
/* A moment's place and note, under its words; a program of several days has a heading per day. */
.timeline li:has(> .program-detail) { row-gap: 0.2rem; }
.timeline li > .program-detail { grid-column: 2; display: grid; gap: 0.1rem; margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.program-place { font-weight: 600; }
.program-days { display: grid; gap: 1.8rem; }
.program-day-title { margin: 0 0 0.3rem; font-size: 1.35rem; text-align: center; color: var(--gold-text); }
/* The day of the celebration (invitation.js): the moment under way and the next one. */
.day-badge { display: inline-block; margin-right: 0.2rem; padding: 0.1rem 0.55rem; border-radius: 999px; font: 600 0.72rem/1.5 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; background: var(--surface); color: var(--gold-text); border: 1px solid var(--gold); }
.timeline li.is-now > span { color: var(--accent); }
.timeline li.is-now .day-badge { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.map-more { margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.95rem; }

.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.gallery-grid[data-count="1"] { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }
.gallery-grid figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); padding: 0.5rem 0.6rem; }

/* ---------------------------------------------------------------- RSVP ---------------------------------------------------------------- */
.rsvp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 1.25rem; box-shadow: var(--shadow);
  text-align: left;
}
.rsvp-card > h2 { text-align: center; font-size: clamp(2rem, 7vw, 2.6rem); }
.rsvp-deadline { text-align: center; color: var(--ink-soft); margin: 0.5rem 0 1.4rem; }
.rsvp-deadline strong { color: var(--ink); font-weight: 600; }
.household-note {
  display: flex; flex-direction: column; gap: 0.2rem; text-align: center; background: var(--bg); border: 1px dashed var(--gold);
  border-radius: var(--radius-sm); padding: 0.8rem 1rem; margin-bottom: 1.2rem; font-size: 0.95rem; color: var(--ink-soft);
}
.household-note strong { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; }
.household-seats { font-size: 0.85rem; }
.rsvp-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field-label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
/* The prompt over a declining guest's letter (invitation.js). */
.rsvp-letter-hint { display: block; font-size: 0.88rem; font-weight: 400; line-height: 1.45; color: var(--ink-soft); }
.rsvp-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), .rsvp-form select, .rsvp-form textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--field-bg); color: var(--ink); font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rsvp-form textarea { min-height: 96px; resize: vertical; }
.rsvp-form input:not([type="radio"]):not([type="checkbox"]):focus-visible, .rsvp-form select:focus-visible, .rsvp-form textarea:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); outline: none; }
/* Radios and checkboxes: a clear ring around the whole option (their own native ring is kept where :has is missing). */
.choice-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.rsvp-form [aria-invalid="true"] { border-color: var(--error); }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.choice legend { padding: 0; margin-bottom: 0.4rem; }
.choice-option {
  display: flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--field-bg); cursor: pointer; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.choice-option:hover { border-color: var(--gold); }
.choice-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--field-bg)); }
.choice-option input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.rsvp-extra { display: grid; gap: 1.1rem; }
.check-grid { display: grid; gap: 0.55rem; }
.rsvp-form .button { width: 100%; margin-top: 0.3rem; }
.form-status { min-height: 1.5rem; font-weight: 600; text-align: center; }
.form-status[data-tone="success"] { color: var(--success); }
.form-status[data-tone="error"] { color: var(--error); }
.form-status[data-tone="info"] { color: var(--ink-soft); }
.fine-note { font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.rsvp-song-note { display: block; margin-top: 0.3rem; font-size: 0.85rem; color: var(--ink-soft); }
.rsvp-closed { text-align: center; padding: 1rem; border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); }
/* Guest-list depth: who comes (a household's listed names, "+1" beside each) and the family's entry pass. */
.rsvp-who-row { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: center; }
.rsvp-plus-one { font-size: 0.9rem; color: var(--ink-soft); }
.rsvp-pass { margin: 1.2rem auto 0; max-width: 22rem; text-align: center; }
.rsvp-pass-image { display: block; width: 100%; height: auto; margin: 0 auto 0.6rem; background: #FFFFFF; border-radius: var(--radius-sm); }
.rsvp-pass-who { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- add to calendar ---------------------------------------------------------------- */
.add-calendar { margin: 1.2rem auto 0; text-align: center; }
.add-calendar > summary { list-style: none; cursor: pointer; }
.add-calendar > summary::-webkit-details-marker { display: none; }
.add-calendar > summary::after { content: "\25BE"; content: "\25BE" / ""; font-size: 0.85em; transition: transform 0.2s var(--ease); }
.add-calendar[open] > summary::after { transform: rotate(180deg); }
.calendar-links {
  list-style: none; margin: 0.6rem auto 0; padding: 0.35rem 1.1rem; max-width: 24rem; display: grid; justify-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- the hosts' note (added by invitation.js; never part of the stored page) ---------------------------------------------------------------- */
.host-update {
  width: 100%; max-width: 30rem; margin: 0.2rem auto; padding: 0.85rem 1.1rem; display: grid; gap: 0.3rem; text-align: center;
  background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.host-update-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.host-update-text { color: var(--ink); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
/* The live broadcast link (added by invitation.js from the reply state; never part of the stored page). */
.live-stream {
  width: 100%; max-width: 30rem; margin: 0.2rem auto; padding: 0.85rem 1.1rem; display: grid; gap: 0.4rem; justify-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.live-stream-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.live-stream-text { color: var(--ink); font-size: 1rem; line-height: 1.5; }
.live-stream-link { min-height: 44px; }

/* ---------------------------------------------------------------- questions (the page script shows this box) ---------------------------------------------------------------- */
.ask-card {
  max-width: 40rem; margin: 0 auto; text-align: left; display: grid; gap: 0.9rem; padding: 1.4rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.ask-card input, .ask-card textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--field-bg); color: var(--ink); font: 400 1rem/1.4 var(--font-body);
}
.ask-card textarea { min-height: 88px; resize: vertical; }
.ask-card input:focus-visible, .ask-card textarea:focus-visible { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.ask-answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ask-answers:empty { display: none; }
.ask-answer { border-left: 3px solid var(--gold); padding: 0.4rem 0 0.4rem 0.8rem; }
.ask-answer-title { font-weight: 600; color: var(--ink); }
.ask-answer-text { color: var(--ink-soft); overflow-wrap: anywhere; }
.ask-none, .ask-fine { color: var(--ink-soft); font-size: 0.92rem; }
.ask-hosts > summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.ask-hosts[open] { display: grid; gap: 0.8rem; }
html[data-theme="noche-azul"] .ask-hosts > summary, html[data-theme="borgona"] .ask-hosts > summary { color: var(--gold-text); }
.privacy { margin-top: 1.4rem; font-size: 0.82rem; color: var(--ink-soft); text-align: center; }

/* ---------------------------------------------------------------- good wishes and songs (invitation.js reveals it; wishes.ts) ----------------------------------------------------------------
   Two stationery cards (a wish and a song), each with its count, the newest approved words, an open button and its own
   form; the list opens in a dialog: a bottom sheet on phones, a centred card on wider screens. Every colour is a theme
   token, so each palette (and a new design that sets the same tokens) dresses the wall without further rules. */
.wall-intro { max-width: 34rem; margin: 0 auto 1.6rem; color: var(--ink-soft); }
.wall-grid { display: grid; gap: 1.1rem; text-align: center; }
.wall-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; min-width: 0;
  padding: 2.1rem 1.35rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
/* A fine inner rule in the theme's gold, like the border of a printed card. */
.wall-card::before {
  content: ""; position: absolute; inset: 7px; z-index: -1; pointer-events: none;
  border: 1px solid var(--line); border-color: color-mix(in srgb, var(--gold) 36%, transparent); border-radius: calc(var(--radius-lg) - 6px);
}
.wall-medallion {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: var(--gold-text);
  background: var(--bg); background: color-mix(in srgb, var(--gold) 11%, var(--surface));
  border: 1px solid var(--gold); border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 7%, transparent);
}
.wall-glyph { display: block; }
.wall-card-title { font-size: clamp(1.65rem, 6.4vw, 2rem); }
.wall-count { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.wall-empty { max-width: 19rem; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--ink-soft); }
.wall-preview { width: 100%; }
.wall-preview-quote { position: relative; margin: 0.5rem 0 0; padding: 0.9rem 0.6rem 0; }
.wall-preview-quote::before {
  content: "\201C"; content: "\201C" / ""; position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--gold);
}
.wall-preview-quote p {
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.wall-preview-by, .wall-by { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); overflow-wrap: anywhere; }
.wall-preview-by { margin-top: 0.55rem; }
.wall-preview-by::before, .wall-item-wish .wall-by::before { content: "\2014\00a0"; content: "\2014\00a0" / ""; }
.wall-preview-songs { list-style: none; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.45rem; text-align: left; }
.wall-preview-songs li {
  display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); column-gap: 0.55rem; align-items: baseline;
  padding: 0.55rem 0.85rem 0.55rem 0.5rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg); background: color-mix(in srgb, var(--bg-2) 45%, var(--surface));
}
/* A music note, never a number: the newest suggestions come first, which is not a ranking. */
.wall-preview-songs li::before { content: "\266A"; content: "\266A" / ""; grid-row: 1 / span 2; font-size: 1.05rem; line-height: 1.5; color: var(--gold-text); text-align: center; }
.wall-preview-title { grid-column: 2; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.wall-preview-artist { grid-column: 2; font-size: 0.88rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.wall-open { margin-top: 0.35rem; }
.wall-compose { align-self: stretch; margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.wall-compose-toggle {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px;
  padding: 0.4rem 1rem; border-radius: 999px; font-weight: 600; color: var(--accent); transition: background-color 0.2s var(--ease);
}
.wall-compose-toggle::-webkit-details-marker { display: none; }
.wall-compose-toggle::after { content: "\25BE"; content: "\25BE" / ""; font-size: 0.85em; transition: transform 0.2s var(--ease); }
.wall-compose[open] > .wall-compose-toggle::after { transform: rotate(180deg); }
.wall-compose-toggle:hover { background: var(--bg); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.wall-pen { flex: none; }
.wall-form { display: grid; gap: 0.95rem; margin-top: 0.75rem; text-align: left; }
.wall-field input, .wall-field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--field-bg); color: var(--ink); font: 400 1rem/1.45 var(--font-body);
}
.wall-field textarea { min-height: 116px; resize: vertical; }
.wall-field input:focus-visible, .wall-field textarea:focus-visible { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.wall-field [aria-invalid="true"] { border-color: var(--error); }
.wall-counter { justify-self: end; font-size: 0.8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.wall-counter.is-near { color: var(--error); font-weight: 600; }
.wall-submit { width: 100%; }
.wall-status:empty { min-height: 0; }
.wall-fine { font-size: 0.84rem; line-height: 1.5; color: var(--ink-soft); text-align: center; }
.wall-personal { align-self: stretch; padding: 0.85rem 1rem; border-radius: var(--radius-sm); border: 1px dashed var(--line); background: var(--bg); color: var(--ink-soft); font-size: 0.92rem; }
html:is([data-theme="noche-azul"], [data-theme="borgona"], [data-theme="azul-rey"], [data-theme="rojo-rubi"], [data-theme="negro-oro"], [data-theme="linterna"], [data-theme="navidad"]) .wall-compose-toggle { color: var(--gold-text); }
html[data-motif="deco"] .wall-card { box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px var(--line), var(--shadow); }
html[data-motif="deco"] .wall-card::before { display: none; }

/* The list: a native dialog (the page behind it is out of reach while it is open; Escape and the close button close it). */
html.wall-locked, html.wall-locked body { overflow: hidden; }
.wall-dialog {
  position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--ink); font-family: var(--font-body); overflow: hidden;
  display: none; align-items: flex-end; justify-content: center;
}
.wall-dialog[open] { display: flex; }
.wall-dialog::backdrop { background: rgba(16, 10, 20, 0.58); opacity: 0; transition: opacity 0.25s var(--ease); }
.wall-dialog.is-open::backdrop { opacity: 1; }
.wall-dialog[aria-modal="true"] { background: rgba(16, 10, 20, 0.58); }
.wall-sheet {
  position: relative; display: flex; flex-direction: column; width: 100%; max-height: 88vh; max-height: 88dvh; overflow: hidden;
  background: var(--surface); background-image: linear-gradient(180deg, color-mix(in srgb, var(--gold) 6%, var(--surface)), var(--surface) 9rem);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -24px 60px -18px rgba(0, 0, 0, 0.42);
  padding-bottom: env(safe-area-inset-bottom); transform: translateY(104%); transition: transform 0.34s var(--ease);
}
.wall-dialog.is-open .wall-sheet { transform: none; }
.wall-sheet-grip { flex: none; width: 46px; height: 5px; margin: 10px auto 0; border-radius: 999px; background: var(--line); }
.wall-sheet-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.1rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.wall-sheet-heading { min-width: 0; text-align: left; }
.wall-sheet-eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-text); overflow-wrap: anywhere; }
.wall-sheet-title { margin-top: 0.15rem; font-size: clamp(1.85rem, 7.5vw, 2.35rem); }
.wall-sheet-count { margin-top: 0.15rem; font-size: 0.88rem; color: var(--ink-soft); }
.wall-close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-top: 0.15rem; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.wall-close:hover { background: var(--bg); transform: rotate(90deg); }
.wall-list:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: -4px; }
.wall-list { flex: 1 1 auto; min-height: 0; list-style: none; margin: 0; padding: 1.1rem 1.25rem 0.6rem; overflow-y: auto; overscroll-behavior-y: contain; display: grid; align-content: start; gap: 0.85rem; text-align: left; }
.wall-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); background: color-mix(in srgb, var(--bg) 55%, var(--surface)); padding: 1.1rem 1.2rem 1rem; }
.wall-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wall-quote { position: relative; margin: 0; padding-left: 1.7rem; }
.wall-quote::before { content: "\201C"; content: "\201C" / ""; position: absolute; left: -0.1rem; top: -0.6rem; font-family: var(--font-display); font-size: 2.8rem; line-height: 1; color: var(--gold); }
.wall-quote p { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.wall-item-wish .wall-by { margin-top: 0.5rem; padding-left: 1.7rem; }
.wall-item-song { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.wall-song-mark {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.1rem; color: var(--gold-text);
  background: var(--surface); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border: 1px solid var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent);
}
.wall-song-mark::before { content: "\266A"; content: "\266A" / ""; }
.wall-song { display: grid; gap: 0.1rem; padding-top: 0.15rem; }
.wall-song-title { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.wall-song-artist { font-size: 0.95rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.wall-item-song .wall-by { margin-top: 0.3rem; }
.wall-sheet-foot { flex: none; display: grid; justify-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem 1.25rem; }
.wall-sheet-note { font-size: 0.84rem; color: var(--ink-soft); text-align: center; }

@media (min-width: 640px) {
  /* Side by side the cards are as tall as each other, their forms' buttons on one line; an open form lets them part. */
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .wall-grid:has(.wall-compose[open]) { align-items: start; }
  .wall-card { padding: 2.3rem 1.7rem 1.6rem; }
  .wall-dialog { align-items: center; padding: 2rem 1.5rem; }
  .wall-sheet {
    width: min(100%, 580px); max-height: min(82vh, 780px); border-bottom: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(16px) scale(0.985); transition: transform 0.3s var(--ease), opacity 0.22s var(--ease);
  }
  .wall-dialog.is-open .wall-sheet { opacity: 1; transform: none; }
  .wall-sheet-grip { display: none; }
  .wall-sheet-head { padding: 1.4rem 1.4rem 1.1rem 1.8rem; }
  .wall-list { padding: 1.25rem 1.6rem 0.6rem; }
}
/* Stories and living scenes: the cards stay readable over the moving scene, the dialog stays opaque. */
body[data-story-template] .wall-card, html.has-occasion-scene .wall-card {
  background: var(--surface); background: linear-gradient(105deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 80%, transparent));
}
@media (prefers-reduced-motion: reduce) {
  .wall-sheet, .wall-dialog.is-open .wall-sheet { transform: none; transition: none; }
  .wall-dialog::backdrop { transition: none; }
  .wall-close:hover { transform: none; }
}
@media (forced-colors: active) {
  .wall-card, .wall-item, .wall-sheet, .wall-close, .wall-medallion, .wall-song-mark { border: 1px solid CanvasText; }
  .wall-card::before { display: none; }
}
@media print {
  .wall, .wall-dialog { display: none !important; }
}

/* ---------------------------------------------------------------- save the date / thank you ---------------------------------------------------------------- */
.std-occasion { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink-soft); }
.date-block { margin: 0.4rem 0; }
.date-block time { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.date-month { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-text); }
.date-day { font-family: var(--font-display); font-size: clamp(5rem, 26vw, 8rem); color: var(--ink); margin: 0.1rem 0; }
.date-year { font-size: 0.95rem; letter-spacing: 0.4em; color: var(--ink-soft); }
.std-place { color: var(--ink-soft); }
.std-follow { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold-text); }
.hero-std, .hero-thanks { min-height: 92vh; min-height: 92svh; }
.back-link { padding-top: 0; }

/* ---------------------------------------------------------------- footer ---------------------------------------------------------------- */
.footer { text-align: center; padding: 1rem 1.25rem 3rem; color: var(--ink-soft); font-size: 0.85rem; display: grid; gap: 0.5rem; justify-items: center; }
.powered { letter-spacing: 0.08em; }
.powered-brand { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-text); letter-spacing: 0.02em; }
.footer-demo { font-size: 0.78rem; max-width: 28rem; }

/* ---------------------------------------------------------------- decorative art (inline SVG classes) ---------------------------------------------------------------- */
.art-leaf { fill: var(--art-leaf); }
.art-stem { stroke: var(--art-stem); stroke-width: 1.4; fill: none; }
.art-petal { fill: var(--art-petal); stroke: var(--art-gold); stroke-width: 0.6; }
.art-petal-alt { fill: var(--art-petal-alt); }
.art-rose { fill: var(--art-rose); }
.art-rose-deep { fill: var(--art-rose-deep); }
.art-rose-line { stroke: var(--art-rose-line); stroke-width: 1.1; fill: none; }
.art-rose-line-light { stroke: var(--art-rose-line-light); stroke-width: 1; fill: none; }
.art-gold { fill: var(--art-gold); }
.art-star { fill: var(--art-star); }
.art-line { stroke: var(--art-gold); stroke-width: 1; fill: none; }
.monogram-laurel .art-leaf { fill: var(--art-leaf); opacity: 0.9; }

/* ---------------------------------------------------------------- Premium opening reveal ---------------------------------------------------------------- */
.opening-reveal { position: fixed; inset: 0; z-index: 60; pointer-events: none; display: flex; animation: reveal-done 0.01s linear 2.6s forwards; }
.reveal-panel { flex: 1; background: var(--bg-2); background-image: var(--paper); }
.reveal-left { border-right: 1px solid var(--gold); animation: reveal-left 1.3s var(--ease) 0.9s forwards; }
.reveal-right { border-left: 1px solid var(--gold); animation: reveal-right 1.3s var(--ease) 0.9s forwards; }
.reveal-seal {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 55%, transparent), var(--shadow);
  font-family: var(--font-display); font-size: 2.2rem; animation: reveal-seal 0.9s var(--ease) 0.5s forwards;
}
@keyframes reveal-left { to { transform: translateX(-102%); } }
@keyframes reveal-right { to { transform: translateX(102%); } }
@keyframes reveal-seal { 60% { transform: scale(1.08); opacity: 1; } to { transform: scale(0.6); opacity: 0; } }
@keyframes reveal-done { to { visibility: hidden; } }

/* ---------------------------------------------------------------- reveal on scroll (only when the script runs) ---------------------------------------------------------------- */
.js .reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- wider screens ---------------------------------------------------------------- */
@media (min-width: 640px) {
  .venue-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
  .note-grid { grid-template-columns: repeat(2, 1fr); }
  .note-grid > :only-child { grid-column: 1 / -1; }
  /* Getting there spans the row, so a lone card after it (the dress code or the gifts alone) spans it too. */
  .note-grid > .note-wide + :last-child:nth-child(2) { grid-column: 1 / -1; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid[data-count="2"], .gallery-grid[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
  .rsvp-card { padding: 2.6rem 2.4rem; }
  .honor-list { grid-template-columns: repeat(2, 1fr); }
  .honor-list > div { border-bottom: 0; border-top: 1px solid var(--line); }
  .music-title { display: inline; }
  .message-card { padding: 3rem 3rem 2.6rem; }
}
@media (min-width: 1024px) {
  .hero { min-height: 94vh; }
  .section { padding: 4.25rem 1.5rem; }
  .gallery-grid[data-count="6"], .gallery-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------- reduced motion, forced colors, print ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .opening-reveal { display: none; }
  .js .reveal-on-scroll { opacity: 1; transform: none; }
  .music-toggle[data-state="playing"] .music-icon span { animation: none; height: 12px; }
}
@media (forced-colors: active) {
  .button, .lang-toggle, .music-toggle, .choice-option { border: 1px solid ButtonText; }
  .opening-reveal { display: none; }
}
@media print {
  .controls, .opening-reveal, .skip-link, .rsvp-form { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal-on-scroll { opacity: 1; transform: none; }
}

/* ================================================================ More colours and design motifs (2026-09-28) ================================================================
   Eleven more palettes (tokens and contrast also in venture/stages/brand.ts; every text pair is 4.5:1 or more,
   invitations-themes.test.ts and invitations-motifs.test.ts) and the optional ornament sets drawn by motifs.ts. A motif
   applies only under html[data-motif], which the renderer adds only when a family chose one: a page without it is
   styled exactly as before. */
html[data-theme="terracota-deco"] {
  --bg: #F7F4EE; --bg-2: #EEE3D3; --surface: #FCFAF6;
  --ink: #452418; --ink-soft: #6A4535;
  --accent: #9C4A32; --accent-hover: #86402B; --accent-ink: #FFFFFF;
  --gold: #C4826B; --gold-text: #5B6140; --line: #E6D9C5;
  --art-leaf: #A3A77F; --art-stem: #7C835B; --art-petal: #FBF5EE; --art-petal-alt: #EBC2AF;
  --art-rose: #D99A82; --art-rose-deep: #B0563C; --art-rose-line: #8A3F2A; --art-rose-line-light: #FCEDE5;
  --art-gold: #C4826B; --art-star: #F6E2D3;
  --paper: radial-gradient(120% 80% at 50% 0%, #FFFCF7 0%, var(--bg) 55%, var(--bg-2) 100%);
}
html[data-theme="salvia-olivo"] {
  --bg: #F2F4EC; --bg-2: #E3E9D9; --surface: #FBFCF7;
  --ink: #26301F; --ink-soft: #4B5842;
  --accent: #4E5D34; --accent-hover: #414E2B; --accent-ink: #FFFFFF;
  --gold: #A8995C; --gold-text: #665A22; --line: #D3DBC6;
  --art-leaf: #9FB08A; --art-stem: #6E7E55; --art-petal: #FFFFFB; --art-petal-alt: #E4E8D2;
  --art-rose: #E3D8BE; --art-rose-deep: #B4A676; --art-rose-line: #5E6B45; --art-rose-line-light: #FAF8EE;
  --art-gold: #B8A566; --art-star: #FBF6E0;
  --paper: radial-gradient(120% 80% at 50% 0%, #FDFEF8 0%, var(--bg) 55%, var(--bg-2) 100%);
}
html[data-theme="rosa-palo"] {
  --bg: #F9F1F0; --bg-2: #EFDEDC; --surface: #FFFAF9;
  --ink: #42272B; --ink-soft: #6A4A4F;
  --accent: #85505A; --accent-hover: #714450; --accent-ink: #FFFFFF;
  --gold: #BFA07A; --gold-text: #735633; --line: #E8D2D0;
  --art-leaf: #B3BDA8; --art-stem: #879579; --art-petal: #FFF9F8; --art-petal-alt: #EBCBCB;
  --art-rose: #D8AAAB; --art-rose-deep: #AE7C82; --art-rose-line: #85505A; --art-rose-line-light: #FFF0F0;
  --art-gold: #C9A97C; --art-star: #F8EADB;
  --paper: radial-gradient(120% 80% at 50% 0%, #FFFBFA 0%, var(--bg) 55%, var(--bg-2) 100%);
}
html[data-theme="champan"] {
  --bg: #F8F2EA; --bg-2: #EDE1D0; --surface: #FFFCF7;
  --ink: #3A2E24; --ink-soft: #62523F;
  --accent: #7B5B3A; --accent-hover: #684C2F; --accent-ink: #FFFFFF;
  --gold: #C8A97E; --gold-text: #6E5328; --line: #E8DBC7;
  --art-leaf: #BDB597; --art-stem: #958C6A; --art-petal: #FFFCF6; --art-petal-alt: #F0DCCB;
  --art-rose: #E6CCB8; --art-rose-deep: #C09A7E; --art-rose-line: #7B5B3A; --art-rose-line-light: #FFF6EC;
  --art-gold: #CDAE7A; --art-star: #FFF3DF;
  --paper: radial-gradient(120% 80% at 50% 0%, #FFFDF8 0%, var(--bg) 55%, var(--bg-2) 100%);
}
html[data-theme="lila-mariposa"] {
  --bg: #F8F2FA; --bg-2: #EEDFF3; --surface: #FEFBFF;
  --ink: #3A2343; --ink-soft: #62496B;
  --accent: #7B3F8C; --accent-hover: #683477; --accent-ink: #FFFFFF;
  --gold: #B8A6C9; --gold-text: #6A3F78; --line: #E6D5EC;
  --art-leaf: #B3C0A6; --art-stem: #85967A; --art-petal: #FFFFFF; --art-petal-alt: #EBD5F1;
  --art-rose: #D6B3E1; --art-rose-deep: #A77BB6; --art-rose-line: #7B3F8C; --art-rose-line-light: #FBF1FE;
  --art-gold: #BDB2D2; --art-star: #F6F1FC;
  --paper: radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, var(--bg) 55%, var(--bg-2) 100%);
}
html[data-theme="azul-rey"] {
  --success: #9FE0B8; --error: #FFB4AB;
  --bg: #0F2470; --bg-2: #14307F; --surface: #1B3A8F; --field-bg: #0C1E5E;
  --ink: #F4F6FF; --ink-soft: #CBD4F2;
  --accent: #E6CB86; --accent-hover: #F0DA9F; --accent-ink: #0F2470;
  --gold: #D9BE7A; --gold-text: #EBD39A; --line: #2F4A9E; --focus: #FFE08A;
  --art-leaf: #6C84D4; --art-stem: #4E67BA; --art-petal: #EAF0FF; --art-petal-alt: #A9BBF2;
  --art-rose: #8FA6EE; --art-rose-deep: #5B73C9; --art-rose-line: #EAF0FF; --art-rose-line-light: #F4F6FF;
  --art-gold: #D9BE7A; --art-star: #F2F4FF;
  --glow: rgba(64, 96, 210, 0.5);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  --paper:
    radial-gradient(1.4px 1.4px at 14% 20%, rgba(242, 244, 255, 0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 14%, rgba(242, 244, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 70% 70%, rgba(242, 244, 255, 0.6) 50%, transparent 51%),
    radial-gradient(120% 90% at 50% 0%, #2A47A8 0%, var(--bg) 60%, #0A1A55 100%);
}
html[data-theme="rojo-rubi"] {
  --success: #9FE0B8; --error: #FFB4AB;
  --bg: #3D0712; --bg-2: #4D0A19; --surface: #5A0E20; --field-bg: #470A18;
  --ink: #FFF3EE; --ink-soft: #F3D5D0;
  --accent: #F0C87F; --accent-hover: #F6D699; --accent-ink: #3D0712;
  --gold: #E5BC72; --gold-text: #F3D29A; --line: #7A2034; --focus: #FFE08A;
  --art-leaf: #A04D59; --art-stem: #7F3443; --art-petal: #FFE6E2; --art-petal-alt: #F58FA0;
  --art-rose: #E2536C; --art-rose-deep: #B3243F; --art-rose-line: #FFE6E2; --art-rose-line-light: #FFF3EE;
  --art-gold: #E5BC72; --art-star: #FFF1DC;
  --glow: rgba(190, 30, 60, 0.42);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  --paper: radial-gradient(120% 90% at 50% 0%, #6E1226 0%, var(--bg) 60%, #26040B 100%);
}
html[data-theme="negro-oro"] {
  --success: #9FE0B8; --error: #FFB4AB;
  --bg: #0E0D0B; --bg-2: #191713; --surface: #1F1C17; --field-bg: #151310;
  --ink: #F7F1E3; --ink-soft: #D8CEB8;
  --accent: #E2C27A; --accent-hover: #ECD297; --accent-ink: #14120E;
  --gold: #D4AF5F; --gold-text: #E8CC8A; --line: #3A342A; --focus: #FFE08A;
  --art-leaf: #8A7B5C; --art-stem: #6A5E45; --art-petal: #F4E9CF; --art-petal-alt: #E2C27A;
  --art-rose: #C9A962; --art-rose-deep: #9C7F3F; --art-rose-line: #FFF6E0; --art-rose-line-light: #F7F1E3;
  --art-gold: #E2C27A; --art-star: #FFF3D1;
  --glow: rgba(212, 175, 95, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -16px rgba(0, 0, 0, 0.75);
  --paper:
    radial-gradient(1.2px 1.2px at 18% 16%, rgba(255, 236, 190, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 22%, rgba(255, 236, 190, 0.55) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 62% 68%, rgba(255, 236, 190, 0.5) 50%, transparent 51%),
    radial-gradient(120% 90% at 50% 0%, #2A251C 0%, var(--bg) 60%, #070605 100%);
}
html[data-theme="fucsia-fiesta"] {
  --bg: #FDF1F7; --bg-2: #F8DCEA; --surface: #FFFAFD;
  --ink: #3E0F2F; --ink-soft: #6A3858;
  --accent: #AD1760; --accent-hover: #92124F; --accent-ink: #FFFFFF;
  --gold: #D4A64A; --gold-text: #7A4F12; --line: #F2CFE0;
  --art-leaf: #8DBF9E; --art-stem: #5E9A73; --art-petal: #FFF8FC; --art-petal-alt: #FBB9D8;
  --art-rose: #EE62A4; --art-rose-deep: #C22D78; --art-rose-line: #8E1450; --art-rose-line-light: #FFEAF4;
  --art-gold: #D9AE55; --art-star: #FFF2D6;
  --paper: radial-gradient(120% 80% at 50% 0%, #FFFAFD 0%, var(--bg) 55%, var(--bg-2) 100%);
}
html[data-theme="durazno"] {
  --bg: #FEF4EE; --bg-2: #FBE3D5; --surface: #FFFBF8;
  --ink: #46271A; --ink-soft: #6E4A3A;
  --accent: #A4492A; --accent-hover: #8C3E24; --accent-ink: #FFFFFF;
  --gold: #D9A566; --gold-text: #7A4F1E; --line: #F3D6C6;
  --art-leaf: #A9BF95; --art-stem: #7B9868; --art-petal: #FFFBF7; --art-petal-alt: #FCCDB8;
  --art-rose: #F5A383; --art-rose-deep: #E07857; --art-rose-line: #A4492A; --art-rose-line-light: #FFF0E8;
  --art-gold: #DDAA66; --art-star: #FFF1DC;
  --paper: radial-gradient(120% 80% at 50% 0%, #FFFCF9 0%, var(--bg) 55%, var(--bg-2) 100%);
}
html[data-theme="turquesa"] {
  --bg: #EEF8F7; --bg-2: #D6EEEB; --surface: #F9FDFD;
  --ink: #0F393A; --ink-soft: #355859;
  --accent: #0D6A6D; --accent-hover: #0A5759; --accent-ink: #FFFFFF;
  --gold: #C9A45C; --gold-text: #6A5220; --line: #C5E2DF;
  --art-leaf: #8FC5B9; --art-stem: #4F9A8D; --art-petal: #FFFFFF; --art-petal-alt: #BFE8E3;
  --art-rose: #7CCFC9; --art-rose-deep: #2E9B96; --art-rose-line: #0D6A6D; --art-rose-line-light: #EFFBFA;
  --art-gold: #CFAC62; --art-star: #FFF6E0;
  --paper: radial-gradient(120% 80% at 50% 0%, #FBFFFF 0%, var(--bg) 55%, var(--bg-2) 100%);
}
/* Dark palettes draw text links and the "ask the hosts" link in their gold text, like Midnight Blue and Burgundy. */
html[data-theme="azul-rey"] .text-link, html[data-theme="rojo-rubi"] .text-link, html[data-theme="negro-oro"] .text-link,
html[data-theme="azul-rey"] .ask-hosts > summary, html[data-theme="rojo-rubi"] .ask-hosts > summary, html[data-theme="negro-oro"] .ask-hosts > summary { color: var(--gold-text); }

/* ---- motif drawings (classes used by motifs.ts; each takes its colours from the palette above or the theme's own) ---- */
.mo-line { fill: none; stroke: var(--art-gold); }
.mo-wing { fill: var(--art-rose); stroke: var(--art-gold); stroke-width: 0.7; }
.mo-wing-alt { fill: var(--art-petal-alt); stroke: var(--art-gold); stroke-width: 0.7; }
.mo-spot { fill: var(--art-star); opacity: 0.85; }
.mo-body { fill: var(--art-rose-line); }
.mo-feeler { fill: none; stroke: var(--art-rose-line); }
.mo-pearl { fill: var(--art-star); stroke: var(--art-gold); }
.mo-jewel { fill: var(--art-rose-deep); }
.mo-jewel-alt { fill: var(--art-rose); }
/* The relief: shapes in the paper's own colour, tinted by the palette, lit by the #inv-relief filter so they read as
   pressed into the paper. Without color-mix they fall back to the paper's second tone (still lit, never black). */
html[data-motif] { --relief: var(--bg-2); --relief-leaf: var(--bg-2); --relief-line: var(--line); }
@supports (color: color-mix(in srgb, red, blue)) {
  html[data-motif] {
    --relief: color-mix(in srgb, var(--art-rose) 34%, var(--bg-2));
    --relief-leaf: color-mix(in srgb, var(--art-leaf) 30%, var(--bg-2));
    --relief-line: color-mix(in srgb, var(--art-rose-deep) 42%, var(--bg-2));
  }
}
.mo-relief { fill: var(--relief); }
.mo-relief-leaf { fill: var(--relief-leaf); }
.mo-relief-deep { fill: var(--relief-line); }
.mo-relief-line { fill: none; stroke: var(--relief-line); stroke-width: 1.3; }
.mo-relief-stem { fill: none; stroke: var(--relief-leaf); stroke-width: 3; stroke-linecap: round; }
.motif-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.motif-ornament { overflow: visible; }

/* Art Deco: stepped corners framing the opening screen, fine double rules on the cards, spaced capitals. */
.motif-corners { position: absolute; inset: 0.75rem; pointer-events: none; z-index: 0; }
.motif-corner { position: absolute; width: 52px; height: 52px; }
.motif-corner-tl { top: 0; left: 0; }
.motif-corner-tr { top: 0; right: 0; transform: scaleX(-1); }
.motif-corner-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.motif-corner-br { bottom: 0; right: 0; transform: scale(-1, -1); }
html[data-motif="deco"] .message-card { border: 3px double var(--gold); }
html[data-motif="deco"] :is(.venue-card, .note-card, .rsvp-card, .ask-card) { box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px var(--line), var(--shadow); }
html[data-motif="deco"] :is(.section > h2, .rsvp-card > h2) { text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(1.45rem, 5.6vw, 2.05rem); }
html[data-motif="deco"] .eyebrow { letter-spacing: 0.36em; }
html[data-motif="deco"] .hero h1 { letter-spacing: 0.03em; }

/* Crown: the tiara rests just above the monogram (or the name on the save-the-date). */
.motif-crown { display: block; width: 150px; height: auto; margin-bottom: -0.5rem; }
.motif-crown .mo-line { stroke: var(--art-gold); }

/* Butterflies and the crown's sparkles move gently; nothing moves for guests who prefer less motion or on paper. */
.mo-wings-l, .mo-wings-r { transform-box: fill-box; animation: mo-flutter 2.8s ease-in-out infinite; }
.mo-wings-l { transform-origin: 100% 50%; }
.mo-wings-r { transform-origin: 0% 50%; }
.mo-fly-b .mo-wings-l, .mo-fly-b .mo-wings-r { animation-delay: -0.9s; animation-duration: 3.2s; }
.mo-fly-c .mo-wings-l, .mo-fly-c .mo-wings-r { animation-delay: -1.7s; animation-duration: 2.5s; }
@keyframes mo-flutter { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.62); } }
.mo-twinkle { animation: mo-twinkle 3.6s ease-in-out infinite; }
@keyframes mo-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  .mo-wings-l, .mo-wings-r, .mo-twinkle { animation: none; }
}
@media print {
  .mo-wings-l, .mo-wings-r, .mo-twinkle { animation: none; }
  .motif-corners { inset: 0.4rem; }
}
@media (forced-colors: active) {
  .mo-line, .mo-relief-line, .mo-relief-stem, .mo-feeler { stroke: CanvasText; }
}


/* Original seasonal stationery tokens. */
html[data-theme="linterna"] {
  --paper: radial-gradient(120% 90% at 50% 0%, #362139 0%, var(--bg) 60%, #30213A 100%);
  --glow: rgba(244,177,90,.10);
  --bg: #21162B;
  --bg-2: #30213A;
  --surface: #30213A;
  --field-bg: #30213A;
  --ink: #FFF3E4;
  --ink-soft: #E1CFDD;
  --accent: #F4B15A;
  --accent-hover: #FFD395;
  --accent-ink: #28162B;
  --gold: #EBA85D;
  --gold-text: #FFD395;
  --line: #5A3D63;
  --focus: #FFE0AE;
  --error: #FFC5BE;
  --success: #B6E4C7;
  --art-leaf: #91AB91;
  --art-stem: #78987B;
  --art-petal: #AC78AE;
  --art-petal-alt: #DCA4B8;
  --art-rose: #AC78AE;
  --art-rose-deep: #AB748A;
  --art-rose-line: #F1D9BA;
  --art-rose-line-light: #F8E6C8;
  --art-gold: #EBA85D;
  --art-star: #FFD395;
}
html[data-theme="linterna"] .text-link { color: var(--gold-text); }
html[data-theme="navidad"] {
  --paper: radial-gradient(120% 90% at 50% 0%, #3B2334 0%, var(--bg) 60%, #352332 100%);
  --glow: rgba(232,200,130,.10);
  --bg: #231522;
  --bg-2: #352332;
  --surface: #352332;
  --field-bg: #352332;
  --ink: #FFF5E8;
  --ink-soft: #E8D3D8;
  --accent: #E8C882;
  --accent-hover: #F3DDA6;
  --accent-ink: #2A1723;
  --gold: #D8B774;
  --gold-text: #F3DDA6;
  --line: #604454;
  --focus: #FFE5A6;
  --error: #FFC5BE;
  --success: #B6E4C7;
  --art-leaf: #91AB91;
  --art-stem: #78987B;
  --art-petal: #CE8D9C;
  --art-petal-alt: #DCA4B8;
  --art-rose: #CE8D9C;
  --art-rose-deep: #AB748A;
  --art-rose-line: #F1D9BA;
  --art-rose-line-light: #F8E6C8;
  --art-gold: #D8B774;
  --art-star: #F3DDA6;
}
html[data-theme="navidad"] .text-link { color: var(--gold-text); }

/* Occasion-specific artwork keeps event details in real, selectable text. */
.occasion-art { display: block; pointer-events: none; overflow: visible; color: var(--gold); }
.hero > .occasion-art { position: absolute; width: min(100%, 980px); height: auto; left: 50%; transform: translateX(-50%); opacity: .72; }
.hero > .occasion-art-top { top: 0; }
.hero > .occasion-art-bottom { bottom: 0; transform: translateX(-50%) rotate(180deg); }
html[data-occasion] .hero { isolation: isolate; overflow: hidden; }
html[data-occasion] .hero-inner { position: relative; z-index: 1; }
html[data-occasion="corporate"] .hero h1 { font-family: var(--font-display); letter-spacing: -.025em; }
html[data-occasion="halloween"] .hero { background-image: radial-gradient(ellipse at 50% 20%, rgba(244,177,90,.10), transparent 60%); }
html[data-occasion="christmas"] .hero { background-image: radial-gradient(ellipse at 50% 20%, rgba(232,200,130,.12), transparent 60%); }
@media (max-width: 600px) { .hero > .occasion-art { width: 145%; max-width: none; opacity: .50; } }

.collection-return { margin-top: 1.4rem; display: flex; justify-content: center; }

/* Native occasion relief finish. Only classic pages with explicit occasion identity receive this material treatment;
   legacy invitations, VIP pages, form surfaces, text colours and customer-selected palettes retain their own styles. */
html.inv[data-occasion]:not(.vip) {
  --occasion-cotton: repeating-linear-gradient(96deg, rgba(255, 255, 255, .045) 0 .5px, transparent .5px 3px), repeating-linear-gradient(4deg, rgba(0, 0, 0, .018) 0 .5px, transparent .5px 4px);
}
html.inv[data-occasion]:not(.vip) body {
  background-image: var(--occasion-cotton), var(--paper); background-blend-mode: soft-light, normal;
}
html.inv[data-occasion]:not(.vip) .hero > .occasion-art { opacity: .84; }
html.inv[data-occasion]:not(.vip) .hero .occasion-relief-shadow { color: var(--line); }
html.inv[data-occasion]:not(.vip) .hero .occasion-relief-highlight { color: var(--art-petal); }
html.inv[data-occasion]:not(.vip) .hero .occasion-relief-foil { color: var(--gold); }
@supports (color: color-mix(in srgb, red, blue)) {
  html.inv[data-occasion]:not(.vip) .hero .occasion-relief-shadow { color: color-mix(in srgb, var(--gold) 38%, var(--bg-2)); }
  html.inv[data-occasion]:not(.vip) .hero .occasion-relief-highlight { color: color-mix(in srgb, var(--gold) 42%, var(--surface)); }
}
html.inv[data-occasion]:not(.vip) .hero .occasion-relief-foil {
  filter: drop-shadow(-.3px -.35px 0 rgba(255, 255, 255, .4)) drop-shadow(.6px .8px .45px rgba(0, 0, 0, .2));
}
@media (max-width: 600px) {
  html.inv[data-occasion]:not(.vip) .hero > .occasion-art { opacity: .65; }
}
@media (forced-colors: active) {
  html.inv[data-occasion]:not(.vip) .hero .occasion-relief-foil { color: CanvasText; filter: none; }
}

/* Required track attribution is separate from the optional brand credit and remains readable in every layout. */
.footer .music-credits {
  width: min(100%, 36rem); margin-top: .8rem; padding: 1rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 400 .875rem/1.6 var(--font-body);
  text-align: center; overflow-wrap: anywhere;
}
.footer .music-credits h2 { margin: 0 0 .45rem; color: var(--ink); font: 600 1rem/1.45 var(--font-body); letter-spacing: normal; text-transform: none; }
.footer .music-credits p { margin: .35rem 0; max-width: none; }
.footer .music-credits a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.footer .music-credits a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Original continuous occasion cinema. Registered silent films persist outside the cover.
   Readable native content sits above the film; no arbitrary CSS resource URL or inline style is needed. */
html.has-occasion-scene body { isolation: isolate; background: var(--bg); background-image: none; }
.occasion-scene {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100svh;
  z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); isolation: isolate;
}
.scene-ambient, .scene-video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center;
}
.scene-ambient { opacity: 1; filter: saturate(1.05); transform: scale(1.015); }
.scene-video { opacity: 0; transition: opacity .65s ease; background: transparent; }
.occasion-scene:is([data-scene-state="playing"], [data-scene-state="paused"]) .scene-video { opacity: 1; }
.occasion-scene:is([data-scene-state="poster"], [data-scene-state="unavailable"]) .scene-video { opacity: 0; }
.scene-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 20, .04), transparent 25%, transparent 72%, rgba(12, 10, 20, .10));
}
html.has-occasion-scene :is(.hero, main, .footer) { position: relative; z-index: 1; }
html.has-occasion-scene .hero {
  min-height: 100vh; min-height: 100svh; padding: 1.6rem 1rem calc(35vh + 1rem); padding-bottom: calc(35svh + 1rem);
  justify-content: flex-start; overflow: visible; background: none;
}
html.has-occasion-scene .hero > .occasion-art { display: none; }
html.has-occasion-scene .hero-inner {
  width: min(100%, 31rem); padding: 1.35rem 1.3rem 1.2rem; gap: .55rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 25px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .30) inset, 0 16px 55px rgba(15, 10, 24, .18);
}
html.has-occasion-scene .hero-inner::before {
  inset: 8px; z-index: 0; border: 1px solid var(--gold); border-radius: 18px; opacity: .35;
  background: none; pointer-events: none;
}
html.has-occasion-scene .hero-inner > * { position: relative; z-index: 1; }
html.has-occasion-scene .hero h1 { font-size: clamp(2.25rem, 9vw, 3.55rem); }
html.has-occasion-scene .hero .monogram { width: 50px; }
html.has-occasion-scene .hero .hero-date { font-size: clamp(1.05rem, 4.1vw, 1.35rem); }
html.has-occasion-scene .hero .hero-actions { margin-top: .2rem; }
html.has-occasion-scene .hero .button { padding: .7rem 1.1rem; font-size: .9rem; }
html.has-occasion-scene .section {
  width: min(calc(100% - 2rem), 760px); margin: 1.4rem auto; padding: 2.6rem 1.25rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .20) inset, 0 18px 54px rgba(15, 10, 24, .16);
}
html.has-occasion-scene .section[id] { scroll-margin-top: 5.5rem; }
html.has-occasion-scene .section.rsvp { background: none; border: 0; box-shadow: none; padding: 0; }
.scene-summary { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-bottom: 1.75rem; }
html.has-occasion-scene .footer {
  width: min(calc(100% - 2rem), 760px); margin: 1.4rem auto 2rem; padding: 1.65rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
@media (min-aspect-ratio: 4/5) {
  .scene-video { object-fit: contain; }
  .scene-ambient { filter: blur(10px) saturate(1.1); opacity: .65; transform: scale(1.035); }
}
@media (min-width: 1000px) {
  html.has-occasion-scene .hero { padding-top: 2.1rem; }
  html.has-occasion-scene .hero-inner { width: min(100%, 32rem); }
}
@media (prefers-reduced-motion: reduce) {
  .scene-video { display: none; transition: none; }
  .scene-ambient { transform: none; }
}
@media (forced-colors: active) {
  .occasion-scene { display: none; }
  html.has-occasion-scene .hero { min-height: 88svh; padding: 2rem 1rem; }
  html.has-occasion-scene :is(.hero-inner, .section, .footer) { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
}
@media print {
  .occasion-scene { display: none !important; }
  html.has-occasion-scene .hero { min-height: 0; padding: 1rem; }
  html.has-occasion-scene :is(.hero-inner, .section, .footer) { background: white; color: black; box-shadow: none; break-inside: avoid; }
}

/* Progressive date reveal and native folded-paper surprise; the actual date is never hidden from semantics. */
html.has-occasion-scene .section.scene-discover { padding: 2rem 1.25rem; }
.scene-discovery-grid { display: grid; gap: 1.25rem; margin-top: 1.35rem; align-items: start; }
.date-reveal, .surprise-card {
  min-width: 0; padding: 1.05rem; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px rgba(15,10,24,.08);
}
.date-scratch-surface {
  position: relative; min-height: 12.5rem; width: 100%; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2);
}
.date-reveal-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  min-height: 12.5rem; padding: 1.4rem 1rem; text-align: center; color: var(--ink);
}
.date-reveal-label { font: 600 .7rem/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .18em; color: var(--ink-soft); }
.date-reveal-content time { font: 400 clamp(1.4rem, 5vw, 1.9rem)/1.25 var(--font-display); overflow-wrap: anywhere; }
.date-scratch-surface canvas {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  touch-action: none; cursor: crosshair; border-radius: inherit;
}
/* Static copy of the canvas foil shown until the canvas paints; same box, under the canvas, never a pointer target. */
.date-scratch-foil {
  position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%;
  overflow: hidden; border-radius: inherit; pointer-events: none;
}
.date-reveal[data-reveal-state="revealed"] canvas { opacity: 0; pointer-events: none; }
.date-scratch-surface::after {
  content: ""; position: absolute; z-index: 2; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.32) 49%, transparent 65%);
  transform: translateX(-120%);
}
.date-reveal[data-reveal-state="revealed"] .date-scratch-surface::after { animation: date-reveal-glint .8s ease-out 1; }
@keyframes date-reveal-glint {
  0% { opacity: 0; transform: translateX(-120%); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}
.date-reveal-hint { margin: .95rem 0 .7rem; font-size: .825rem; line-height: 1.5; text-align: center; color: var(--ink-soft); }
.date-reveal-button { width: 100%; min-height: 44px; cursor: pointer; }
.date-reveal-button:disabled { cursor: default; }
.date-reveal-button:focus-visible, .surprise-card summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.date-reveal-status { min-height: 1.2rem; margin: .65rem 0 0; font-size: .8rem; text-align: center; color: var(--ink-soft); }
.surprise-card { perspective: 700px; }
.surprise-card summary {
  min-height: 44px; padding: .75rem .35rem; cursor: pointer; font-weight: 600; line-height: 1.45;
  border-radius: 8px; text-align: start; color: var(--ink);
}
.surprise-summary-mark { display: inline-block; margin: 0 .45rem; color: var(--gold); font-size: 1.45rem; vertical-align: middle; }
.surprise-content { padding: .45rem .3rem .85rem; text-align: center; transform-style: preserve-3d; }
.surprise-folded-star { position: relative; width: 112px; height: 112px; margin: .5rem auto 1rem; transform-style: preserve-3d; }
.surprise-star-paper, .surprise-star-fold {
  position: absolute; inset: 0; clip-path: polygon(50% 0,61% 35%,98% 35%,68% 58%,80% 95%,50% 72%,20% 95%,32% 58%,2% 35%,39% 35%);
  background: linear-gradient(135deg, var(--surface), var(--bg-2) 45%, var(--gold));
}
.surprise-star-paper { filter: drop-shadow(0 8px 7px rgba(15,10,24,.18)); transform: rotate(-9deg) rotateY(-12deg); }
.surprise-star-fold {
  clip-path: polygon(50% 0,50% 49%,98% 35%,68% 58%,80% 95%,50% 49%,20% 95%,32% 58%,2% 35%,50% 49%);
  opacity: .65; background: linear-gradient(105deg, var(--gold), var(--surface)); transform: rotate(-9deg) translateZ(3px);
}
.surprise-star-center { position: absolute; width: 14px; height: 14px; left: 49px; top: 45px; border-radius: 50%; background: var(--gold); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 3px 6px rgba(0,0,0,.15); transform: translateZ(5px); }
.surprise-card[open] .surprise-folded-star { animation: surprise-paper-unfold .9s cubic-bezier(.2,.7,.2,1) 1; }
@keyframes surprise-paper-unfold { from { opacity: .25; transform: rotateY(-48deg) rotateX(22deg) scale(.75); } to { opacity: 1; transform: none; } }
.surprise-name { margin-bottom: .6rem; font: 400 1.55rem/1.25 var(--font-display); overflow-wrap: anywhere; color: var(--ink); }
.surprise-note { font-size: .95rem; line-height: 1.65; color: var(--ink-soft); }
@media (min-width: 680px) { .scene-discovery-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) {
  .date-scratch-surface::after, .surprise-card[open] .surprise-folded-star { animation: none; }
}
@media (forced-colors: active) {
  .date-scratch-surface canvas, .date-scratch-foil, .date-reveal-button, .date-reveal-hint, .date-scratch-surface::after, .surprise-folded-star { display: none !important; }
  .date-reveal, .surprise-card, .date-scratch-surface { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
}
@media print {
  .date-scratch-surface canvas, .date-scratch-foil, .date-reveal-button, .date-reveal-hint, .date-scratch-surface::after, .surprise-folded-star { display: none !important; }
  .scene-discovery-grid { display: block; }
  .date-reveal, .surprise-card { break-inside: avoid; background: white; color: black; box-shadow: none; margin-bottom: 1rem; }
  .surprise-content { display: block !important; }
}


/* Original scroll-composed invitation stories: decorative layers never intercept real controls. */
[data-story-design] { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100svh; z-index: 0; pointer-events: none; overflow: hidden; isolation: isolate; background: var(--bg); }
[data-story-design] [data-story-layer] { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.025); transition: opacity 750ms ease, transform 1100ms ease, visibility 750ms; overflow: hidden; }
[data-story-design] [data-story-layer] > svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
[data-story-design][data-story-scene="arrival"] [data-story-layer="arrival"],
[data-story-design][data-story-scene="welcome"] [data-story-layer="welcome"],
[data-story-design][data-story-scene="details"] [data-story-layer="details"],
[data-story-design][data-story-scene="celebration"] [data-story-layer="celebration"],
[data-story-design][data-story-scene="response"] [data-story-layer="response"] { opacity: 1; visibility: visible; transform: scale(1); }
[data-story-design] :is(.story-object,.story-particles,.story-horizon) { transform-box: fill-box; transform-origin: center; }
[data-story-design][data-story-motion="active"] .story-object { animation: story-object-float 7s ease-in-out infinite alternate; }
[data-story-design][data-story-motion="active"] .story-particles { animation: story-particle-drift 11s linear infinite alternate; }
[data-story-design][data-story-motion="active"] .story-horizon { animation: story-horizon-breathe 14s ease-in-out infinite alternate; }
[data-story-design][data-story-motion="still"] :is(.story-object,.story-particles,.story-horizon) { animation-play-state: paused; }
@keyframes story-object-float { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-11px) rotate(1deg); } }
@keyframes story-particle-drift { from { transform: translate(-4px,6px); opacity: .65; } to { transform: translate(8px,-14px); opacity: 1; } }
@keyframes story-horizon-breathe { from { transform: scale(1); } to { transform: scale(1.025); } }
body[data-story-template] { isolation: isolate; background-image: none; }
body[data-story-template] :is(.hero,main,.footer) { position: relative; z-index: 1; }
body[data-story-template] .hero { min-height: 95vh; min-height: 95svh; background: transparent; padding-bottom: 25svh; }
body[data-story-template] :is(.hero-inner,.section,.footer) {
  --story-copy-surface: var(--surface);
  --story-copy-surface: color-mix(in srgb,var(--surface) 88%,transparent);
  background: var(--surface); background: color-mix(in srgb,var(--surface) 24%,transparent);
  -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink);
  text-shadow: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg,24px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset,0 18px 50px rgba(0,0,0,.14);
}
body[data-story-template] .hero-inner { width: min(100%,34rem); margin: 0 auto; padding: 1.6rem 1.25rem; }
body[data-story-template] .section { width: min(calc(100% - 2rem),760px); margin: 2rem auto; }
body[data-story-template] [data-story-chapter] { scroll-margin-top: 5.5rem; }
body[data-story-template] .section.rsvp { background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
body[data-story-template] .rsvp-card { background: var(--surface); background: linear-gradient(100deg,color-mix(in srgb,var(--surface) 82%,transparent),color-mix(in srgb,var(--surface) 66%,transparent) 65%,color-mix(in srgb,var(--surface) 24%,transparent)); border: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-story-template] :is(.message-card,.venue-card,.note-card,.countdown-grid > div,.date-reveal,.surprise-card,.date-scratch-surface,.calendar-links,.host-update,.live-stream,.music-credits,.faq-item) {
  background: var(--surface); background: linear-gradient(105deg,color-mix(in srgb,var(--surface) 80%,transparent),color-mix(in srgb,var(--surface) 62%,transparent) 65%,color-mix(in srgb,var(--surface) 18%,transparent));
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset;
}
body[data-story-template] .controls { z-index: 20; }
body[data-story-template] .music-title { padding: .55rem .75rem; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
/* Compact text scrims leave the large scenic panels and their spacing transparent. */
body[data-story-template] :is(.hero-inner > h1,.hero-inner > .eyebrow,.hero-date,.section > h2:not(.visually-hidden),.section > h3,.section > p,.story-celebration-name) {
  width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto;
  padding: .25em .5em; border-radius: .45em; background: var(--story-copy-surface);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
body[data-story-template] :is(.timeline li,.menu-list,.honor-list,.rsvp-card > p) { background: var(--story-copy-surface); border-radius: .6rem; }
body[data-story-template] .timeline li { margin-bottom: .5rem; }
body[data-story-template] .button-ghost { background: var(--surface); }
/* Phone copy uses the same localized protection; there is no opaque full-width screen veil. */
@media (max-width: 600px) {
  body[data-story-template] :is(.hero-inner,.section,.footer) { background: var(--surface); background: color-mix(in srgb,var(--surface) 20%,transparent); }
  body[data-story-template] .hero-inner { padding: 1.65rem 1.15rem; }
  body[data-story-template] .section { width: calc(100% - 1.5rem); margin: 1.4rem auto; }
  body[data-story-template] .section.rsvp { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body[data-story-template] .hero { padding-bottom: 18svh; }
}
body[data-story-template] :is(input,select,textarea,.choice-option,.button,.lang-toggle,.music-toggle) { text-shadow: none; }
body[data-story-template] :is(input,select,textarea) { background-color: var(--surface); color: var(--ink); }
body[data-story-template] .rsvp-meal .choice-option { position: relative; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; transition: background-color 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
body[data-story-template] .rsvp-meal .choice-option:has(input:checked) { background: color-mix(in srgb,var(--surface) 78%,var(--gold) 22%); border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb,var(--gold) 30%,transparent); }
body[data-story-template] .choice-option:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
body[data-story-template] .rsvp-meal input:checked + span { font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  [data-story-design] [data-story-layer], [data-story-design] * { animation: none !important; transition: none !important; }
  /* Reset only the HTML scene layer scale; SVG placement transforms remain intact. */
  [data-story-design] [data-story-layer] { transform: none !important; }
  body[data-story-template] .choice-option { transition: none !important; }
}
@media (forced-colors: active) {
  [data-story-design] { display: none; }
  body[data-story-template] :is(.hero-inner,.section,.footer) { --story-copy-surface: Canvas; }
  body[data-story-template] :is(.hero-inner,.section,.footer,.rsvp-card,.choice-option,.message-card,.venue-card,.note-card,.countdown-grid > div,.date-reveal,.surprise-card,.date-scratch-surface,.calendar-links,.host-update,.live-stream,.music-credits,.faq-item) { text-shadow: none; background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print {
  [data-story-design] { display: none !important; }
  body[data-story-template] :is(.hero-inner,.section,.footer) { --story-copy-surface: white; }
  body[data-story-template] .hero { min-height: 0; padding-bottom: 0; }
  body[data-story-template] :is(.hero-inner,.section,.footer,.rsvp-card,.message-card,.venue-card,.note-card,.countdown-grid > div,.date-reveal,.surprise-card,.date-scratch-surface,.calendar-links,.host-update,.live-stream,.music-credits,.faq-item) { text-shadow: none; background: white; color: black; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}


/* Authored SVG depth groups: only the selected, lifecycle-eligible chapter animates. */
[data-story-design] [data-story-layer] { --story-play: paused; }
[data-story-design][data-story-motion="active"][data-story-scene="arrival"] [data-story-layer="arrival"],
[data-story-design][data-story-motion="active"][data-story-scene="welcome"] [data-story-layer="welcome"],
[data-story-design][data-story-motion="active"][data-story-scene="details"] [data-story-layer="details"],
[data-story-design][data-story-motion="active"][data-story-scene="celebration"] [data-story-layer="celebration"],
[data-story-design][data-story-motion="active"][data-story-scene="response"] [data-story-layer="response"] { --story-play: running; }
[data-story-design] :is(.story-depth-far,.story-depth-middle,.story-depth-near,.story-orbit,.story-drift,.story-flicker,.story-spark) { transform-box: fill-box; transform-origin: center; }
[data-story-design] .story-depth-far { opacity: .78; }
[data-story-design] .story-depth-near { filter: drop-shadow(0 9px 9px rgba(0,0,0,.23)); }
[data-story-design] .story-orbit { animation: story-orbit 13s ease-in-out infinite alternate; animation-play-state: var(--story-play); }
[data-story-design] .story-drift { animation: story-object-float 8s ease-in-out infinite alternate; animation-play-state: var(--story-play); }
[data-story-design] .story-flicker { animation: story-candle-glow 3.8s ease-in-out infinite alternate; animation-play-state: var(--story-play); }
[data-story-design] .story-spark { animation: story-particle-drift 7s ease-in-out infinite alternate; animation-play-state: var(--story-play); }
[data-story-design] .story-spark-1 { animation-delay: -2.5s; }
[data-story-design] .story-spark-2 { animation-delay: -4.5s; }
[data-story-design] .story-route { stroke-dasharray: 12 15; animation: story-route-travel 9s linear infinite; animation-play-state: var(--story-play); }
@keyframes story-orbit { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes story-candle-glow { from { opacity: .66; } to { opacity: 1; } }
@keyframes story-route-travel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -108; } }
.story-thumbnail { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; }
.story-thumbnail svg { display: block; width: 100%; height: 100%; max-width: none; }
.story-thumbnail *, .story-thumbnail svg { animation: none !important; transition: none !important; }


/* The owned film stays below this partial vector overlay; chapter changes never replace its source. */
[data-story-design].story-with-video { background: transparent; }
[data-story-design].story-with-video .story-depth-far > rect { opacity: .38; }
body[data-story-template] .hero > .occasion-art { display: none; }
body[data-story-template] .story-celebration { min-height: 72vh; min-height: 72svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; text-align: center; }
body[data-story-template] .story-celebration-name { margin: 0; font: 400 clamp(1.6rem,6vw,2.8rem)/1.25 var(--font-display); overflow-wrap: anywhere; }
body[data-story-template] .story-choice-preview { margin-top: 1.25rem; }
@media print { body[data-story-template] .story-celebration { min-height: 0; } }

/* Verified photographic footage: shared readable presentation, with separate one-film and five-film controllers. */
html:is(.has-cinematic-story,.has-photographic-story) body {
  --bg: #090B0D; --surface: #14191C; --ink: #FFF7E9; --muted: #D5C8B5; --gold: #E9C782;
  --line: rgba(233,199,130,.27); --focus: #FFE4A4;
  background: transparent; background-image: none;
}
/* Photo detail copy keeps AA contrast even at the lightest point of the declared section overlay. */
html.has-photographic-story body { --ink-soft: var(--ink); }
:is(.cinematic-scene,.photographic-scene), :is(.cinematic-scene,.photographic-scene)[data-story-design] { background: #090B0D; }
:is(.cinematic-scene,.photographic-scene) :is(.scene-ambient,.scene-video) { object-fit: cover; object-position: center 68%; }
:is(.cinematic-scene,.photographic-scene) .scene-ambient { filter: none; transform: none; }
:is(.cinematic-scene,.photographic-scene) .scene-veil { background: linear-gradient(180deg,rgba(3,7,10,.12),transparent 24%,transparent 76%,rgba(3,7,10,.16)); }
:is(.cinematic-scene,.photographic-scene)[data-scene-state="poster"] .scene-video,
:is(.cinematic-scene,.photographic-scene)[data-scene-state="unavailable"] .scene-video { opacity: 0; }
html:is(.has-cinematic-story,.has-photographic-story) body :is(.hero-inner,.section,.footer) {
  --story-copy-surface: rgba(8,12,16,.70);
  width: min(calc(100% - 2rem),660px); color: var(--ink);
  background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html:is(.has-cinematic-story,.has-photographic-story) body .hero {
  min-height: 100vh; min-height: 100svh; justify-content: center;
  padding: 12svh 1rem 22svh; background: transparent;
}
html:is(.has-cinematic-story,.has-photographic-story) body .hero-inner { padding: 1.5rem 1rem; }
html:is(.has-cinematic-story,.has-photographic-story) body .hero-inner::before { display: none; }
html:is(.has-cinematic-story,.has-photographic-story) body .hero h1 {
  font-family: var(--font-display); font-size: clamp(2.7rem,10vw,5.7rem); line-height: 1.06;
  font-weight: 400; letter-spacing: -.025em; text-shadow: 0 2px 22px rgba(0,0,0,.75);
}
html:is(.has-cinematic-story,.has-photographic-story) body :is(.hero-inner > h1,.hero-inner > .eyebrow,.hero-date,.story-celebration-name) {
  background: transparent; border-radius: 0; padding: .15em 0;
  text-shadow: 0 2px 15px rgba(0,0,0,.85);
}
html:is(.has-cinematic-story,.has-photographic-story) body .eyebrow { color: var(--gold); }
html:is(.has-cinematic-story,.has-photographic-story) body :is(.monogram,.section > .ornament) { display: none; }
html:is(.has-cinematic-story,.has-photographic-story) body .section {
  margin: clamp(3rem,10svh,7rem) auto; padding: clamp(1.35rem,4vw,2.5rem);
  background: linear-gradient(120deg,rgba(7,12,17,.82),rgba(7,12,17,.62));
  border: 1px solid var(--line); border-radius: 18px;
}
html:is(.has-cinematic-story,.has-photographic-story) body .section > :is(h2,h3) {
  font-family: var(--font-display); font-weight: 400; color: var(--ink);
  letter-spacing: -.015em; background: transparent;
}
html:is(.has-cinematic-story,.has-photographic-story) body .section > p { background: transparent; padding: 0; }
html:is(.has-cinematic-story,.has-photographic-story) body .section :is(.message-card,.venue-card,.note-card,.calendar-links,.host-update,.live-stream,.faq-item,.timeline li,.menu-list,.honor-list) {
  color: var(--ink); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html:is(.has-cinematic-story,.has-photographic-story) body .section.rsvp { background: transparent; border: 0; padding: 0; }
html:is(.has-cinematic-story,.has-photographic-story) body .rsvp-card {
  color: var(--ink); background: linear-gradient(120deg,rgba(7,12,17,.88),rgba(7,12,17,.72));
  border: 1px solid var(--line); border-radius: 18px; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html:is(.has-cinematic-story,.has-photographic-story) body .rsvp-card > p { background: transparent; }
html:is(.has-cinematic-story,.has-photographic-story) body .story-celebration {
  min-height: 66vh; min-height: 66svh; background: transparent; border: 0; padding: 3rem 1rem;
}
html:is(.has-cinematic-story,.has-photographic-story) body .footer { padding: 1.2rem; background: rgba(7,12,17,.70); border-radius: 14px; }
html:is(.has-cinematic-story,.has-photographic-story) body :is(input,select,textarea,.choice-option) { color: var(--ink); background-color: rgba(8,12,17,.90); }
html:is(.has-cinematic-story,.has-photographic-story) body .choice-option:has(input:checked) { background: #3D3425; border-color: var(--gold); }
html:is(.has-cinematic-story,.has-photographic-story) body a { color: var(--gold); }
html:is(.has-cinematic-story,.has-photographic-story) body .button { color: #1A1410; background: var(--gold); border-color: var(--gold); }
html:is(.has-cinematic-story,.has-photographic-story) body .button-ghost { color: var(--gold); background: rgba(7,12,17,.72); border-color: var(--line); }
@media (max-width: 600px) {
  html:is(.has-cinematic-story,.has-photographic-story) body :is(.hero-inner,.section,.footer) { width: calc(100% - 1.5rem); }
  html:is(.has-cinematic-story,.has-photographic-story) body .hero { padding-top: 10svh; padding-bottom: 19svh; }
  html:is(.has-cinematic-story,.has-photographic-story) body .section { margin: 3.25rem auto; padding: 1.3rem; }
  html:is(.has-cinematic-story,.has-photographic-story) body .section.rsvp { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.cinematic-scene,.photographic-scene) .scene-video { display: none; transition: none; }
  :is(.cinematic-scene,.photographic-scene) .scene-ambient { filter: none; transform: none; }
}
@media (forced-colors: active) {
  :is(.cinematic-scene,.photographic-scene) { display: none; }
  html:is(.has-cinematic-story,.has-photographic-story) body { --ink: CanvasText; --muted: CanvasText; --gold: LinkText; --surface: Canvas; --line: CanvasText; --focus: Highlight; background: Canvas; }
  html:is(.has-cinematic-story,.has-photographic-story) body :is(a,.button,.button-ghost) { color: LinkText; background: Canvas; border-color: CanvasText; }
  html:is(.has-cinematic-story,.has-photographic-story) body :is(.hero-inner,.section,.footer,.rsvp-card,input,select,textarea,.choice-option) { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; text-shadow: none; }
  html:is(.has-cinematic-story,.has-photographic-story) body :is(h1,h2,h3,.hero-date,.story-celebration-name) { text-shadow: none; }
}
@media print {
  :is(.cinematic-scene,.photographic-scene) { display: none !important; }
  html:is(.has-cinematic-story,.has-photographic-story) body { --ink: black; --muted: black; --gold: black; --surface: white; --line: black; background: white; }
  html:is(.has-cinematic-story,.has-photographic-story) body :is(a,.button,.button-ghost) { color: black; background: white; border-color: black; }
  html:is(.has-cinematic-story,.has-photographic-story) body :is(.hero-inner,.section,.footer,.rsvp-card,input,select,textarea,.choice-option) { background: white; color: black; box-shadow: none; text-shadow: none; }
  html:is(.has-cinematic-story,.has-photographic-story) body .hero { min-height: 0; padding: 1rem; }
  html:is(.has-cinematic-story,.has-photographic-story) body .story-celebration { min-height: 0; }
  html:is(.has-cinematic-story,.has-photographic-story) body :is(h1,h2,h3,.hero-date,.story-celebration-name) { text-shadow: none; }
}

/* One matching original film stays behind every content section; no fabricated chapter switching or vector scenery. */
html.has-photographic-story[data-occasion="quinceanera"] body { --gold: #F8DDEA; --focus: #FFE5F2; }
html.has-photographic-story[data-occasion="wedding"] body { --gold: #FAE7BF; --focus: #FFF2D1; }
html.has-photographic-story[data-occasion="corporate"] body { --gold: #CEE1F8; --focus: #E1EDFF; }
html.has-photographic-story[data-occasion="travel"] body { --gold: #D9E9E5; --focus: #EDFFF9; }
html.has-photographic-story[data-occasion="christmas"] body { --gold: #F4DCAC; --focus: #FFF0CB; }
.photographic-scene :is(.scene-ambient,.scene-video) { object-fit: cover; object-position: center; }
html.has-photographic-story body .hero-inner {
  background: linear-gradient(120deg,rgba(7,12,17,.78),rgba(7,12,17,.55));
  border-radius: 18px; border: 1px solid var(--line);
}
html.has-photographic-story body :is(.date-reveal,.surprise-card,.date-scratch-surface,.countdown-grid > div) {
  color: var(--ink); background: rgba(7,12,17,.76); border-color: var(--line);
}
html.has-photographic-story body :is(.section,.hero-inner,.rsvp-card,.footer) { overflow-wrap: anywhere; }
html.has-photographic-story body :is(.banner-sandbox,.fine-note) { color: var(--muted); }
/* Photographic textures follow the already-validated folio, passport, ribbon-door and seal hinges. */
html.has-photographic-story .photographic-cover { background: #111820; }
html.has-photographic-story .photographic-cover .env-scene-poster { opacity: 1; filter: none; }
.photographic-cover .photographic-cover-image {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center; pointer-events: none;
}
.photographic-cover .experience-panel-left > .photographic-cover-image,
.photographic-cover .experience-panel-right > .photographic-cover-image { width: 200%; }
.photographic-cover .experience-panel-right > .photographic-cover-image { left: -100%; }
.photographic-cover[data-opening-kind="starlight-doors"] :is(.experience-panel-left,.experience-panel-right) > .photographic-cover-image { left: 0; width: 100%; height: 200%; }
.photographic-cover[data-opening-kind="starlight-doors"] .experience-panel-right > .photographic-cover-image { top: -100%; }
.photographic-cover[data-opening-kind="starlight-doors"] :is(.experience-panel-left,.experience-panel-right)::before { z-index: 1; opacity: .68; }
.photographic-cover:is([data-opening-kind="passport-folio"],[data-opening-kind="lantern-portal"]) .experience-panel-left > .photographic-cover-image { width: 100%; }
.photographic-cover .env-flap-front > .photographic-cover-image { height: 192.3077%; }
.photographic-cover :is(.env-back,.env-pocket,.env-flap-front) { overflow: hidden; }
.photographic-cover :is(.env-pocket,.env-back,.env-flap-front)::before,
.photographic-cover :is(.env-pocket,.env-back,.env-flap-front)::after { opacity: .18; }
html.has-photographic-story .photographic-cover :is(.env-greeting,.env-edition,.env-hint,.env-quiet) {
  color: #FFF7E9; background: rgba(7,12,17,.86); border-color: rgba(255,239,207,.36);
  text-shadow: 0 1px 5px rgba(0,0,0,.5);
}
html.has-photographic-story .photographic-cover :is(.env-seal,.experience-seal,.env-quiet):focus-visible { outline: 3px solid #FFF0CB; outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) {
  .photographic-cover .photographic-cover-image { animation: none; transition: none; }
}
@media (forced-colors: active) {
  html.has-photographic-story[data-occasion] body { --gold: LinkText; --focus: Highlight; }
  .photographic-cover .photographic-cover-image, .photographic-cover .env-scene-poster { display: none; }
  html.has-photographic-story body .hero-inner,
  html.has-photographic-story body :is(.date-reveal,.surprise-card,.date-scratch-surface,.countdown-grid > div),
  html.has-photographic-story .photographic-cover :is(.env-greeting,.env-edition,.env-hint,.env-quiet) { color: CanvasText; background: Canvas; border-color: CanvasText; text-shadow: none; }
}
@media print {
  html.has-photographic-story[data-occasion] body { --gold: black; --focus: black; }
  html.has-photographic-story body .hero-inner,
  html.has-photographic-story body :is(.date-reveal,.surprise-card,.date-scratch-surface,.countdown-grid > div) { color: black; background: white; box-shadow: none; }
}

/* Scroll scenography (scene-tracks.ts): two scene layers crossfade behind the sections as the guest scrolls; effects
   are drawn on one canvas above the veil. Sections read through the photographic-story surfaces above. */
.scene-track .track-layer { position: absolute; inset: -4%; opacity: 0; transition: opacity 1.3s ease; will-change: opacity, transform; }
.scene-track .track-layer.is-on { opacity: 1; }
/* The incoming scene fades in above the outgoing one, which stays whole until it has (invitation.js FADE_MS); the veil,
   the effects and the ghost stay above both. */
.scene-track .track-layer.is-front { z-index: 1; }
.scene-track :is(.scene-veil, .track-fx, .track-flash, .track-ghost) { z-index: 2; }
.scene-track .track-layer :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 62%; }
.scene-track .track-layer video { opacity: 0; transition: opacity .8s ease; }
.scene-track .track-layer video.is-playing { opacity: 1; }
.scene-track[data-track-motion="active"] .track-layer.is-on { animation: track-drift 24s ease-in-out infinite alternate; }
@keyframes track-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(0, -1.2%, 0); } }
.scene-track .track-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene-track .track-flash { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 70% 10%, rgba(220, 230, 255, .5), rgba(220, 230, 255, 0) 70%); }
.scene-track .track-flash.is-on { animation: track-flash 900ms ease-out; }
@keyframes track-flash { 0% { opacity: 0; } 8% { opacity: .85; } 18% { opacity: .2; } 26% { opacity: .5; } 100% { opacity: 0; } }
.scene-track .track-ghost { position: absolute; left: 50%; bottom: 6%; width: min(68vw, 400px); max-width: none; opacity: 0; pointer-events: none;
  transform: translate3d(-20%, 6%, 0) scale(.92); transition: opacity 2.2s ease, transform 3.2s ease; mix-blend-mode: screen;
  filter: drop-shadow(0 0 26px rgba(200, 220, 255, .35)); }
.scene-track .track-ghost.is-on { opacity: .8; transform: translate3d(-50%, 0, 0) scale(1); }
.scene-track[data-track-motion="active"] .track-ghost.is-on { animation: track-ghost 6s ease-in-out infinite alternate; }
@keyframes track-ghost { from { translate: 0 0; } to { translate: 0 -16px; } }
@media (prefers-reduced-motion: reduce) {
  .scene-track .track-layer, .scene-track .track-layer video, .scene-track .track-ghost { transition: none; }
  .scene-track .track-layer.is-on, .scene-track .track-ghost.is-on, .scene-track .track-flash.is-on { animation: none; }
}
@media print { .scene-track :is(.track-fx, .track-flash, .track-ghost) { display: none; } }

/* ---------------------------------------------------------------- the guests' poll of a gender reveal invitation ---------------------------------------------------------------- */
/* reveal-poll.ts / render.ts revealPollBlock: the page script fills the card and the banner from the server, as text
   and data attributes only. Each answer's colour is a palette token (data-poll-tone) with its soft swatch here; dark
   text reads on every swatch. */
[data-poll-tone="rosa-dorada"] { --poll-tone: #E7B3BC; }
[data-poll-tone="noche-azul"] { --poll-tone: #9AAEE3; }
[data-poll-tone="jardin-esmeralda"] { --poll-tone: #A8D5BA; }
[data-poll-tone="marfil-oro"] { --poll-tone: #E8D3A8; }
[data-poll-tone="azul-cielo"] { --poll-tone: #A9C8E6; }
[data-poll-tone="lavanda"] { --poll-tone: #C9B0E3; }
[data-poll-tone="borgona"] { --poll-tone: #D48A9B; }
[data-poll-tone="terracota-deco"] { --poll-tone: #D99A82; }
[data-poll-tone="salvia-olivo"] { --poll-tone: #C5D1A8; }
[data-poll-tone="rosa-palo"] { --poll-tone: #F0B7C4; }
[data-poll-tone="champan"] { --poll-tone: #E6CCB8; }
[data-poll-tone="lila-mariposa"] { --poll-tone: #D6B3E1; }
[data-poll-tone="azul-rey"] { --poll-tone: #8FA6EE; }
[data-poll-tone="rojo-rubi"] { --poll-tone: #EA7286; }
[data-poll-tone="negro-oro"] { --poll-tone: #D4B66F; }
[data-poll-tone="fucsia-fiesta"] { --poll-tone: #F07BB1; }
[data-poll-tone="durazno"] { --poll-tone: #F5A383; }
[data-poll-tone="turquesa"] { --poll-tone: #7CCFC9; }
[data-poll-tone="linterna"] { --poll-tone: #F4B15A; }
[data-poll-tone="navidad"] { --poll-tone: #D99AA8; }
.poll-card {
  max-width: 34rem; margin: 0 auto; display: grid; gap: 1rem; padding: 1.4rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.poll-lead { color: var(--ink-soft); margin: 0; }
.poll-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.poll-choice {
  min-height: 104px; padding: 0.8rem; border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer;
  background: var(--poll-tone, var(--bg-2)); color: #1E1A1D; font: 600 clamp(1.35rem, 6vw, 1.8rem)/1.15 var(--font-display);
  box-shadow: 0 12px 26px -16px rgba(30, 26, 29, 0.55); overflow-wrap: anywhere; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.poll-choice:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(30, 26, 29, 0.6); }
.poll-choice:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.poll-choice:disabled { cursor: default; opacity: 0.7; }
.poll-choice[aria-pressed="true"] { border-color: #1E1A1D; opacity: 1; }
.poll-name { text-align: left; display: grid; gap: 0.35rem; }
.poll-name input {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--field-bg); color: var(--ink); font: 400 1rem/1.4 var(--font-body);
}
.poll-name input:focus-visible { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.poll-thanks { margin: 0; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.poll-thanks:focus { outline: none; }
.poll-results { display: grid; gap: 0.6rem; }
.poll-bar { display: block; width: 100%; height: 18px; border-radius: 999px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.poll-bar-part { fill: var(--poll-tone, var(--accent)); }
.poll-legend { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 1rem; }
.poll-legend-item { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink); }
.poll-swatch { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--poll-tone, var(--accent)); border: 1px solid rgba(30, 26, 29, 0.2); }
.poll-legend-pct { font-variant-numeric: tabular-nums; }
.poll-total, .poll-note { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.poll-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; text-align: left; max-height: 16rem; overflow: auto; }
.poll-names li { border-left: 4px solid var(--poll-tone, var(--gold)); padding: 0.2rem 0 0.2rem 0.7rem; color: var(--ink); overflow-wrap: anywhere; }
/* "¡Es niña!" / "¡Es niño!": the hosts marked the answer. The confetti is a few pieces that fall once. */
.reveal-banner {
  position: relative; overflow: hidden; width: min(calc(100% - 2rem), 34rem); margin: 1.4rem auto 0; padding: 1.5rem 1.2rem;
  text-align: center; border-radius: var(--radius-lg); background: var(--poll-tone, var(--surface)); color: #1E1A1D; box-shadow: var(--shadow);
}
.reveal-banner-text { position: relative; z-index: 1; margin: 0; font: 600 clamp(2.2rem, 10vw, 3.3rem)/1.1 var(--font-display); }
.poll-confetti { position: absolute; inset: 0; pointer-events: none; }
/* Gold, white and a deeper shade of the answer's colour, so every piece reads on the banner (which wears that colour). */
.poll-confetti-piece { position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px; opacity: 0; background: var(--gold); }
.poll-confetti-piece:nth-child(3n+2) { background: #FFFFFF; }
.poll-confetti-piece[data-poll-tone] { background: color-mix(in srgb, var(--poll-tone) 60%, #1E1A1D); }
.poll-confetti.is-falling .poll-confetti-piece { animation: poll-fall 3.4s var(--ease) forwards; }
.poll-confetti-piece:nth-child(3n+1) { width: 6px; height: 10px; }
.poll-confetti-piece:nth-child(4n+2) { border-radius: 50%; width: 9px; height: 9px; }
.poll-confetti-piece:nth-child(1) { left: 4%; animation-delay: 0s; }
.poll-confetti-piece:nth-child(2) { left: 10%; animation-delay: 0.35s; }
.poll-confetti-piece:nth-child(3) { left: 16%; animation-delay: 0.1s; }
.poll-confetti-piece:nth-child(4) { left: 22%; animation-delay: 0.55s; }
.poll-confetti-piece:nth-child(5) { left: 28%; animation-delay: 0.2s; }
.poll-confetti-piece:nth-child(6) { left: 34%; animation-delay: 0.7s; }
.poll-confetti-piece:nth-child(7) { left: 40%; animation-delay: 0.05s; }
.poll-confetti-piece:nth-child(8) { left: 46%; animation-delay: 0.45s; }
.poll-confetti-piece:nth-child(9) { left: 52%; animation-delay: 0.25s; }
.poll-confetti-piece:nth-child(10) { left: 58%; animation-delay: 0.6s; }
.poll-confetti-piece:nth-child(11) { left: 64%; animation-delay: 0.15s; }
.poll-confetti-piece:nth-child(12) { left: 70%; animation-delay: 0.5s; }
.poll-confetti-piece:nth-child(13) { left: 76%; animation-delay: 0.3s; }
.poll-confetti-piece:nth-child(14) { left: 82%; animation-delay: 0.65s; }
.poll-confetti-piece:nth-child(15) { left: 88%; animation-delay: 0.12s; }
.poll-confetti-piece:nth-child(16) { left: 94%; animation-delay: 0.4s; }
.poll-confetti-piece:nth-child(17) { left: 31%; animation-delay: 0.8s; }
.poll-confetti-piece:nth-child(18) { left: 67%; animation-delay: 0.9s; }
@keyframes poll-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(12px, 9rem, 0) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) {
  .poll-confetti { display: none; }
  .poll-choice, .poll-choice:hover:not(:disabled) { transition: none; transform: none; }
}
@media (forced-colors: active) {
  .poll-choice, .reveal-banner { border: 1px solid ButtonText; }
  .poll-bar-part { fill: Highlight; }
}
@media print { .poll-confetti, .poll-choices, .poll-name { display: none !important; } }
/* A public gender reveal sample's poll (render.ts revealPollDemoBlock): read-only answers and a still example banner. */
.reveal-poll-demo .poll-choice:disabled { cursor: default; opacity: 1; }
.poll-demo-reveal { max-width: 34rem; margin: 1.4rem auto 0; display: grid; gap: 0.7rem; padding: 1.2rem; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.poll-demo-reveal h3 { margin: 0; font: 600 1.35rem/1.2 var(--font-display); color: var(--ink); }
.poll-demo-reveal p { margin: 0; color: var(--ink-soft); }
.poll-demo-reveal .reveal-banner { width: 100%; margin: 0.3rem 0 0; }
.poll-demo-reveal .reveal-banner-text { color: #1E1A1D; }
/* Celebration designs (celebration-designs.ts): five portrait scenes, each a still moved by its pack's camera move
   (data-motion on the layer; anchor and zoom arrive as --cam-* through CSSOM). A 6 s ease-in-out alternate is the
   pack's 12 s cosine ping-pong. A hero with an opening plays it once and rests on its last frame. Phones fill the
   screen; wide screens frame the portrait on a stage over a blurred copy of the same frame. No video loops here. */
.scene-track[data-track-celebration] .track-layer { inset: 0; }
.scene-track[data-track-celebration] .track-layer :is(img, video), .scene-track[data-track-celebration] .scene-ambient { object-position: center 50%; }
.scene-track[data-track-celebration][data-track-motion="active"] .track-layer.is-on { animation: none; }
.scene-track .track-stage { position: absolute; inset: 0; overflow: hidden; }
.scene-track .track-layer .track-fill { display: none; }
.scene-track .track-frame { transform-origin: var(--cam-ox, 50%) var(--cam-oy, 50%); }
.scene-track .track-layer:is([data-motion="drift-left"], [data-motion="drift-right"], [data-motion="rise"]) .track-frame { transform-origin: 50% 50%; }
.scene-track[data-track-motion="active"] .track-layer[data-motion="push-in"] .track-frame { animation: cam-push 6s ease-in-out infinite alternate; }
.scene-track[data-track-motion="active"] .track-layer[data-motion="pull-out"] .track-frame { animation: cam-pull 6s ease-in-out infinite alternate; }
.scene-track[data-track-motion="active"] .track-layer[data-motion="drift-left"] .track-frame { animation: cam-drift-l 6s ease-in-out infinite alternate; }
.scene-track[data-track-motion="active"] .track-layer[data-motion="drift-right"] .track-frame { animation: cam-drift-r 6s ease-in-out infinite alternate; }
.scene-track[data-track-motion="active"] .track-layer[data-motion="rise"] .track-frame { animation: cam-rise 6s ease-in-out infinite alternate; }
/* Zoom always starts at --cam-z0, so a hero that rests on its opening's last frame starts its move from exactly that frame.
   A pull-out carries its zoom reversed (1.07 to 1). Drifts (about ±2.5% on screen) and the rise (about ±2%) always run at
   a zoom of 1.07 or more, so no edge ever shows (scene-tracks.ts holds them to it). */
@keyframes cam-push { from { transform: scale(var(--cam-z0, 1)); } to { transform: scale(var(--cam-z1, 1.06)); } }
@keyframes cam-pull { from { transform: scale(var(--cam-z0, 1.06)); } to { transform: scale(var(--cam-z1, 1)); } }
@keyframes cam-drift-l { from { transform: scale(var(--cam-z0, 1.1)) translate3d(-2.3%, 0, 0); } to { transform: scale(var(--cam-z1, 1.1)) translate3d(2.3%, 0, 0); } }
@keyframes cam-drift-r { from { transform: scale(var(--cam-z0, 1.1)) translate3d(2.3%, 0, 0); } to { transform: scale(var(--cam-z1, 1.1)) translate3d(-2.3%, 0, 0); } }
@keyframes cam-rise { from { transform: scale(var(--cam-z0, 1.1)) translate3d(0, -1.8%, 0); } to { transform: scale(var(--cam-z1, 1.1)) translate3d(0, 1.8%, 0); } }
/* The portrait stage: wider than 4:5, the 9:16 frame is centred at full height over a blurred, darkened copy of itself. */
@media (min-aspect-ratio: 4/5) {
  .scene-track[data-track-frame="portrait"] .track-stage {
    inset: 0 auto; left: calc(50% - 28.125vh); width: 56.25vh; left: calc(50% - 28.125svh); width: 56.25svh;
    box-shadow: 0 0 70px rgba(0, 0, 0, .5);
  }
  .scene-track[data-track-frame="portrait"] .track-layer .track-fill { display: block; object-fit: cover; filter: blur(32px) brightness(.55); transform: scale(1.12); }
  .scene-track[data-track-frame="portrait"] .scene-ambient { object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-track[data-track-motion] .track-layer[data-motion] .track-frame { animation: none; }
  .scene-track[data-track-celebration] .track-layer video { display: none; }
}
@media print { .scene-track .track-frame { animation: none; } }

/* Each celebration style's link/eyebrow gold (4.5:1 or more) and focus ring (3:1 or more) over the glass card. The
   small gold labels (hosts, places, program times, honor roles) take the same gold: a light theme's dark gold text would
   sit on the dark glass. */
html.has-scene-track[data-celebration-style="elegante"] body { --gold: #F2E3C2; --focus: #FFF4DA; }
html.has-scene-track[data-celebration-style="magico"] body { --gold: #E6CD8F; --focus: #FFF0CB; }
html.has-scene-track[data-celebration-style="cielito"] body { --gold: #F3E9DA; --focus: #C9DCEF; }
html.has-scene-track[data-celebration-style] body { --gold-text: var(--gold); }
/* The scenery is drawn behind the card, never the theme's own ornaments. */
html.has-scene-track .hero > .hero-art { display: none; }
/* A celebration opens on the theme's own envelope: its "skip to the details" link keeps the envelope's ink, not the
   scenic page's light link gold (which would vanish on light paper). */
html.has-scene-track[data-celebration-style] .env-cover .env-quiet { color: var(--env-text-soft); }
html.has-scene-track[data-celebration-style] .env-cover .env-quiet:hover { color: var(--env-text); }
/* The fifth scene's moment on pages without a story template: the celebration's name over its scene. */
html.has-scene-track body .scene-interlude {
  min-height: 70vh; min-height: 70svh; display: grid; align-content: end; justify-items: center; gap: 1rem;
  padding: 3rem 1rem 3.5rem; text-align: center; border: 0;
  background: radial-gradient(130% 62% at 50% 100%, rgba(7, 12, 17, .74), rgba(7, 12, 17, 0) 74%);
}
html.has-scene-track body .scene-interlude > h2 { margin: 0; font-size: clamp(1.5rem, 6vw, 2.2rem); text-shadow: 0 2px 15px rgba(0, 0, 0, .85); }
html.has-scene-track body .scene-interlude .story-celebration-name {
  margin: 0; font: 400 clamp(2.8rem, 12vw, 5rem)/1.08 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .8);
}
@media (forced-colors: active) {
  html.has-scene-track[data-celebration-style] body { --gold: LinkText; --focus: Highlight; --gold-text: CanvasText; }
  html.has-scene-track body .scene-interlude { min-height: 0; background: Canvas; color: CanvasText; }
  html.has-scene-track body .scene-interlude > h2 { text-shadow: none; }
}
@media print {
  html.has-scene-track[data-celebration-style] body { --gold: black; --focus: black; --gold-text: black; }
  html.has-scene-track body .scene-interlude { display: none; }
}

/* Original illustrative backgrounds. Every motion layer remains a visible still until the shared observer enables it. */
svg.background-scene { --background-float-duration: 10s; --background-sway-duration: 12s; --background-drift-duration: 16s; --background-light-duration: 7s; display: block; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
svg.background-scene [data-motion-part] { transform-box: fill-box; transform-origin: center; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: paused; }
svg.background-scene [data-motion-part="float"] { animation-name: vf-background-float; animation-duration: var(--background-float-duration); }
svg.background-scene [data-motion-part="sway"] { animation-name: vf-background-sway; animation-duration: var(--background-sway-duration); }
svg.background-scene [data-motion-part="drift"] { animation-name: vf-background-drift; animation-duration: var(--background-drift-duration); }
svg.background-scene [data-motion-part="twinkle"] { animation-name: vf-background-light; animation-duration: var(--background-light-duration); }
svg.background-scene [data-motion-part]:nth-of-type(2n) { animation-delay: -3s; }
svg.background-scene [data-motion-part]:nth-of-type(3n) { animation-delay: -5s; }
svg.background-scene[data-motion-active="true"] [data-motion-part] { animation-play-state: running; }
@keyframes vf-background-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -6px, 0); } }
@keyframes vf-background-sway { from { transform: rotate(-1deg); } to { transform: rotate(1.5deg); } }
@keyframes vf-background-drift { from { transform: translate3d(-3px, 0, 0); } to { transform: translate3d(5px, -2px, 0); } }
@keyframes vf-background-light { from { opacity: .62; } to { opacity: 1; } }
.background-motion-control { position: relative; z-index: 2; max-width: 100%; min-height: 44px; padding: .55rem .85rem; border: 1px solid var(--line, #C8B98E); border-radius: 999px; background: var(--surface, #FFFFFF); color: var(--ink, #293458); font: inherit; font-size: .85rem; line-height: 1.25; cursor: pointer; }
.background-motion-control:hover { border-color: var(--gold, #A28045); }
.background-motion-control:focus-visible { outline: 3px solid var(--focus, #A28045); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  svg.background-scene [data-motion-part], svg.background-scene[data-motion-active="true"] [data-motion-part] { animation: none !important; transform: none !important; opacity: 1; }
}
@media print {
  svg.background-scene [data-motion-part], svg.background-scene[data-motion-active="true"] [data-motion-part] { animation: none !important; transform: none !important; opacity: 1; }
  .background-motion-control { display: none; }
}
/* The decorative layer sits above the body's own paint and behind all stable invitation content. */
body.has-classic-background { position: relative; isolation: isolate; }
.has-classic-background .classic-background-stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.classic-background-stage > svg.background-scene { width: 100%; height: 100%; }
@media print { .has-classic-background .classic-background-stage { position: absolute; } }
