/* Swetha & Anurag — "Our Story" night theme */
:root {
  color-scheme: dark;
  --bg: #0b1026;
  --bg-2: #0f1633;
  --panel: #141c42;
  --panel-2: #1b2552;
  --paper: #fbf3df;
  --ink: #f8f2e4;
  --muted: #cfd2e3;
  --soft: #aab1cf;
  --faint: #7f88ad;
  --accent: #f3c35a;
  --gold: #e3aa3e;
  --gold-soft: #f7d98f;
  --heart: #e2455f;
  --button: #fbf6ea;
  --button-ink: #141a3a;
  --note-ink: #2b2440;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .3);
  --error: #ff9d9d;
  /* Frosted panels over photos and the page (as "r, g, b"), and faint tints of the text colour */
  --glass: 11, 16, 38;
  --tint: 255, 255, 255;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
  --script: 'Caveat', 'Segoe Print', cursive;
  --radius: 26px;
  --hero-zoom: 1.04;
  --hero-shift: 0%;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V18C1290 42 1130 4 960 20C790 36 640 6 470 24C300 42 150 12 0 30Z'/%3E%3C/svg%3E");
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { font-size: 11px; letter-spacing: 2.2px; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--heart); margin: 0 8px 1px 0; }
.eyebrow-line { display: inline-block; width: 34px; height: 1px; background: var(--accent); margin: 0 0 4px 8px; }
.micro-label { font-size: 10px; letter-spacing: 1.8px; font-weight: 700; color: var(--soft); text-transform: uppercase; }
.wishes-heading h2, .wedding-heading h2, .travel-wrap h2, .rsvp-copy h2, .story-intro h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.5px; margin: 16px 0 16px;
}
.wishes-heading h2 em, .wedding-heading h2 em, .travel-wrap h2 em, .rsvp-copy h2 em, .story-intro h2 em { color: var(--accent); font-style: italic; }

/* Buttons */
.pill-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 46px;
  padding: 11px 18px 11px 22px; border: 0; border-radius: 999px; background: var(--button); color: var(--button-ink);
  font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.pill-button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, .36); }
.pill-button:disabled { opacity: .6; cursor: progress; transform: none; }
.pill-button span { font-size: 17px; line-height: 1; }
.pill-ghost { background: rgba(var(--tint), .08); color: var(--ink); border: 1px solid rgba(var(--tint), .45); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pill-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.pill-outline:hover { background: rgba(var(--tint), .06); }
.pill-outline span { color: var(--accent); }

/* Top bar: transparent over the hero, solid once the page scrolls */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(32px, 6vw, 110px); border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.is-scrolled .topbar, .nav-open .topbar { background: rgba(var(--glass), .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.wordmark-mark { font-family: var(--serif); font-size: 27px; color: var(--ink); letter-spacing: -.5px; }
.wordmark-mark span { color: var(--accent); font-style: italic; padding: 0 2px; font-size: 20px; }
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a { font-size: 14px; color: var(--ink); opacity: .88; transition: color .2s, opacity .2s; }
.site-nav a:hover { color: var(--accent); opacity: 1; }
.nav-toggle { display: none; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; background: var(--button); color: var(--button-ink); border-radius: 999px; padding: 0 20px; font-size: 13px; font-weight: 700; }
.nav-cta span { margin-left: 12px; color: var(--heart); }
/* Top bar buttons: light/dark mode and the piano music (site-controls.js) */
.topbar-tools { display: flex; gap: 8px; }
.icon-button {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(var(--tint), .3); border-radius: 50%;
  background: rgba(var(--glass), .35); color: var(--ink); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, color .2s;
}
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.icon-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon, [data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.music-toggle[aria-pressed="false"] .music-waves, .music-toggle[aria-pressed="true"] .music-off { display: none; }
.music-toggle[aria-pressed="true"] .music-waves { animation: musicWaves 1.8s ease-in-out infinite; }
@keyframes musicWaves { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
/* Waiting for a tap: a soft ring ripples out from the button */
.music-toggle.is-waiting::after { content: ""; position: absolute; inset: -1px; border: 1.5px solid var(--accent); border-radius: 50%; pointer-events: none; animation: musicPulse 2.2s ease-out infinite; }
@keyframes musicPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }

/* Wavy bottom edge shared by the hero and the story chapters */
.wave-bottom {
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 46px) no-repeat, var(--wave) bottom / 100% 48px no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 46px) no-repeat, var(--wave) bottom / 100% 48px no-repeat;
}

/* Fade-and-zoom reveal on scroll */
.js .reveal { opacity: 0; transform: translate3d(0, 30px, 0) scale(.97); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero: college photo with vignette, dolly-in entrance and layered parallax */
.hero { position: relative; z-index: 30; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; isolation: isolate; background: #05081a; }
.hero-media { position: absolute; inset: 0; z-index: -4; transform: translate3d(0, calc(var(--hero-p, 0) * 18%), 0) scale(calc(1 + var(--hero-p, 0) * .16)); transform-origin: 50% 42%; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 40%; transform: scale(var(--hero-zoom)) translateX(var(--hero-shift)); }
.js .hero-media img { opacity: 0; transform: scale(1.28); }
.js .hero.is-ready .hero-media img { animation: heroDolly 2.8s cubic-bezier(.19, .72, .24, 1) forwards; }
/* After the opening fade-in, photos keep its end state without the animation, so a photo added later never blurs in */
.js .hero.intro-done .hero-media img { animation: none; opacity: 1; transform: scale(var(--hero-zoom)) translateX(var(--hero-shift)); }
@keyframes heroDolly {
  from { opacity: 0; transform: scale(1.28); filter: blur(8px) brightness(.7); }
  to { opacity: 1; transform: scale(var(--hero-zoom)) translateX(var(--hero-shift)); filter: none; }
}
@keyframes heroDollyPhone {
  from { opacity: 0; transform: scale(1.2); }
  to { opacity: 1; transform: scale(var(--hero-zoom)) translateX(var(--hero-shift)); }
}

/* Hero slideshow: photos cross-fade and the incoming one settles from a slight zoom */
/* A photo that has faded out is also hidden, so only the one or two on screen are drawn while scrolling */
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.05); transition: opacity 1.4s ease, transform 7s cubic-bezier(.2, .7, .2, 1), visibility 0s 1.4s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 1.4s ease, transform 7s cubic-bezier(.2, .7, .2, 1), visibility 0s; }

/* Slideshow controls: the current dot's gold bar fills until the next photo */
.hero-controls {
  position: absolute; z-index: 2; top: 50%; right: clamp(10px, 1.8vw, 26px); display: flex; flex-direction: column; align-items: center; padding: 6px 0 2px; transform: translateY(-50%);
  border-radius: 999px; background: rgba(var(--glass), .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-controls[hidden] { display: none; }
.hero-dots { display: flex; flex-direction: column; }
.hero-dots button { position: relative; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
/* The bar is a real element (not ::after) so its animationend reliably reaches the script in every browser */
.hero-dots button::before, .hero-dots button i { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 14px; margin: -7px 0 0 -1.5px; border-radius: 3px; background: rgba(var(--tint), .4); transition: height .4s ease, width .4s ease, margin .4s ease; }
.hero-dots button i { background: var(--accent); transform: scaleY(0); transform-origin: top; }
.hero-dots button[aria-current="true"]::before, .hero-dots button[aria-current="true"] i { height: 28px; margin-top: -14px; }
.hero-dots button[aria-current="true"] i { transform: scaleY(1); }
.hero.is-ready .hero-dots button[aria-current="true"] i { transform: scaleY(0); animation: heroProgress 6.5s linear forwards; }
.hero.is-ready .hero-controls:is(.is-paused, .is-offscreen) .hero-dots button[aria-current="true"] i { animation-play-state: paused; }
@keyframes heroProgress { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes heroProgressX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-pause { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.hero-pause svg { width: 12px; height: 12px; fill: currentColor; }
.hero-pause .icon-play, .is-paused .hero-pause .icon-pause { display: none; }
.is-paused .hero-pause .icon-play { display: block; }
.hero-dots button:focus-visible, .hero-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }
.hero-light {
  position: absolute; inset: -10%; z-index: -3; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle at 24% 14%, rgba(255, 214, 140, .45), transparent 34%), radial-gradient(circle at 82% 8%, rgba(255, 240, 200, .22), transparent 30%);
  transform: translate3d(0, calc(var(--hero-p, 0) * -10%), 0); animation: lightDrift 9s ease-in-out infinite alternate;
}
@keyframes lightDrift { from { opacity: .7; } to { opacity: 1; } }
.hero-vignette {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 85% 78% at 50% 44%, transparent 48%, rgba(0, 0, 0, .62) 100%),
    linear-gradient(to bottom, rgba(5, 8, 26, .6) 0%, transparent 20%),
    linear-gradient(to top, rgba(8, 11, 32, .96) 0%, rgba(8, 11, 32, .55) 30%, transparent 58%),
    linear-gradient(90deg, rgba(8, 11, 32, .74) 0%, rgba(8, 11, 32, .25) 44%, transparent 64%);
}
.hero-inner { position: relative; display: grid; grid-template-rows: 1fr auto; width: calc(100% - 2 * clamp(32px, 6vw, 110px)); min-height: 100%; padding: 130px 0 96px; }
.hero-content { align-self: end; max-width: 470px; transform: translate3d(0, calc(var(--hero-p, 0) * -70px), 0); opacity: calc(1 - var(--hero-p, 0) * 1.4); }
.hero-content h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 4.8vw, 72px); line-height: 1; letter-spacing: -1px; margin: 22px 0 18px; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero-content h1 em { color: var(--accent); font-style: italic; font-weight: 600; }
.hero-invite { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 420px; margin: 0; }
.hero-names { font: 600 40px/1.1 var(--script); margin: 18px 0 4px; }
.hero-names span { color: var(--accent); padding: 0 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.js .hero-content > * { opacity: 0; transform: translate3d(0, 26px, 0); }
.js .hero.is-ready .hero-content > * { animation: rise .95s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero:not(.is-ready) .hero-content > * { animation: rise .95s 2.6s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero.is-ready .hero-content > :nth-child(1) { animation-delay: .7s; }
.js .hero.is-ready .hero-content > :nth-child(2) { animation-delay: .85s; }
.js .hero.is-ready .hero-content > :nth-child(3) { animation-delay: 1s; }
.js .hero.is-ready .hero-content > :nth-child(4) { animation-delay: 1.1s; }
.js .hero.is-ready .hero-content > :nth-child(5) { animation-delay: 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-stamp {
  position: absolute; top: 104px; right: clamp(32px, 6vw, 110px); width: 86px; height: 86px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 4px; background: rgba(251, 246, 234, .92); color: var(--button-ink);
  transform: rotate(8deg) translate3d(0, calc(var(--hero-p, 0) * -90px), 0); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.hero-stamp span { font: 600 34px var(--serif); }
.hero-stamp small { font-size: 9px; line-height: 1.3; letter-spacing: 1px; font-weight: 700; }
.hero-script {
  position: absolute; right: clamp(32px, 6vw, 110px); bottom: 190px; margin: 0; font: 600 34px/1.1 var(--script); color: var(--ink); text-align: right;
  transform: rotate(-6deg) translate3d(0, calc(var(--hero-p, 0) * -130px), 0); text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}
.hero-script span { display: block; font: 700 10px var(--sans); letter-spacing: 2px; color: var(--gold-soft); margin-bottom: 4px; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 34px; }
.hero-foot { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--muted); }
.tiny-flower { color: var(--accent); font-size: 16px; }
.hero-note {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; border-radius: 20px; border: 1px solid var(--line);
  background: rgba(var(--glass), .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.note-icon { color: var(--accent); font-size: 22px; }
.hero-note > div { display: grid; gap: 2px; }
.hero-note strong { font: 600 18px var(--serif); }
.hero-note small { color: var(--muted); font-size: 12px; }
.hero-note > a { flex: none; margin-left: 8px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--button); color: var(--button-ink); }

/* Song banner and countdown: "Starts With You" is released on the wedding day */
.countdown-band { position: relative; z-index: 29; margin-top: -46px; padding-top: 46px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.song-band { overflow: hidden; background: radial-gradient(ellipse 45% 140% at 8% 60%, rgba(226, 69, 95, .24), transparent 70%), radial-gradient(ellipse 40% 140% at 92% 50%, rgba(243, 195, 90, .16), transparent 70%), var(--bg-2); }
.countdown-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.song-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; min-height: 150px; padding-block: 20px; }
.song-disc { position: relative; width: 88px; height: 88px; border-radius: 50%; background: repeating-radial-gradient(circle, #1c2247 0 2px, #0b0f27 2px 4px); box-shadow: 0 0 0 1px var(--line-strong), 0 14px 34px rgba(0, 0, 0, .5); animation: discSpin 7s linear infinite; }
.song-disc::after { content: ""; position: absolute; inset: 8px 12px auto auto; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
.song-disc span { position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle, var(--bg) 0 16%, var(--accent) 18% 100%); }
@keyframes discSpin { to { transform: rotate(360deg); } }
.song-label { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-soft); }
.song-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.song-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--heart); transform-origin: bottom; animation: songEq 1.1s ease-in-out infinite; }
.song-eq i:nth-child(2) { animation-delay: -.45s; }
.song-eq i:nth-child(3) { animation-delay: -.8s; }
.song-eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes songEq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.song-copy h2 { margin: 6px 0 2px; font: 600 clamp(30px, 3.6vw, 46px)/1.08 var(--serif); letter-spacing: -.3px; }
.song-copy h2 em { color: var(--accent); font-style: italic; }
.song-inner .song-copy p { margin: 0; font: 500 14px/1.6 var(--sans); color: var(--muted); }
.song-copy b { color: var(--ink); font-weight: 700; }
.song-timer { display: grid; justify-items: end; gap: 8px; }
.when-out, .song-out .when-soon { display: none; }
.song-out .when-out { display: inline; }
.countdown { display: flex; align-items: center; gap: 14px; }
.countdown > span { display: grid; justify-items: center; gap: 2px; min-width: 48px; }
.countdown b { font: 600 36px var(--serif); color: var(--accent); }
.countdown small { font-size: 10px; letter-spacing: 1.6px; color: var(--soft); }
.countdown i { color: var(--gold-soft); font-style: normal; font-size: 24px; margin-top: -14px; }

/* Story intro and chapter timeline */
.story { position: relative; }
.story-intro { max-width: 760px; text-align: center; padding: 110px 0 90px; }
.story-script { font: 600 44px var(--script); color: var(--accent); margin: 0 0 6px; }
.story-script span { color: var(--heart); }
.story-intro p { color: var(--muted); font-size: 17px; margin: 0 auto 10px; max-width: 600px; }
.signature { display: inline-block; margin-top: 12px; font: 600 30px var(--script); color: var(--accent); }
.story-timeline {
  position: fixed; top: 50%; right: 14px; z-index: 40; display: flex; flex-direction: column; gap: 18px; padding: 16px 14px;
  border-radius: 18px; background: rgba(var(--glass), .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transform: translate(20px, -50%); transition: opacity .4s ease, transform .4s ease;
}
.in-story .story-timeline { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.story-timeline::before { content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 1px; background: var(--line-strong); }
.story-timeline a { position: relative; display: grid; padding-left: 24px; min-height: 22px; font-size: 12px; line-height: 1.25; color: var(--soft); }
.story-timeline a b { color: var(--ink); font-size: 12px; }
.story-timeline a::before { content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--bg); transition: background .3s, border-color .3s, box-shadow .3s; }
.story-timeline a.active { color: var(--ink); }
.story-timeline a.active::before { background: var(--heart); border-color: var(--heart); box-shadow: 0 0 0 4px rgba(226, 69, 95, .25); }

/* Chapters */
.chapter {
  position: relative; z-index: calc(20 - var(--i, 1)); margin-top: -46px; min-height: clamp(560px, 80vh, 760px);
  display: flex; align-items: center; overflow: hidden; padding: 110px 0 130px; background: var(--bg);
}
.chapter-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 40px; align-items: center; }
.chapter-no { position: absolute; left: -46px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-size: 12px; letter-spacing: 3px; color: var(--soft); }
.chapter-no::after { content: ""; display: inline-block; width: 1px; height: 60px; margin-top: 12px; background: var(--line-strong); }
.chapter-year { display: block; font: 700 clamp(54px, 6.4vw, 88px)/1 var(--serif); letter-spacing: -1px; margin-bottom: 8px; }
.chapter-copy h3 { font: 600 clamp(32px, 3.9vw, 54px)/1.08 var(--serif); letter-spacing: -.4px; margin: 0 0 18px; }
.chapter-copy h3 em { color: var(--accent); font-style: italic; }
.chapter-copy p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 470px; margin: 0 0 26px; }
.chapter-side { position: relative; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }

/* Chapters 01–06: one section, story on the left and a photo collage on the right */
.chapter-journey {
  display: block; min-height: 0; margin-top: 0; padding: 110px 0 150px; overflow: visible; overflow: clip;
  background: radial-gradient(ellipse at 85% 8%, rgba(98, 160, 92, .24), transparent 50%), radial-gradient(ellipse at 8% 55%, rgba(243, 195, 90, .12), transparent 50%), radial-gradient(ellipse at 85% 92%, rgba(214, 72, 140, .2), transparent 50%), var(--bg-2);
}
.journey { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.journey-text { position: relative; padding: 6px 0; }
.journey-text::before { content: ""; position: absolute; left: 18px; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(to bottom, transparent, var(--line-strong) 6%, var(--line-strong) 94%, transparent); }
.journey-item { position: relative; padding-left: 66px; }
.journey-item + .journey-item { margin-top: clamp(72px, 13vh, 130px); }
.journey-no {
  position: absolute; left: 0; top: 2px; width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--bg-2); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--soft);
  transition: background .4s, border-color .4s, color .4s, box-shadow .4s;
}
.journey-item.is-current .journey-no { background: var(--heart); border-color: var(--heart); color: #fff; box-shadow: 0 0 0 6px rgba(226, 69, 95, .2); }
.journey-item .chapter-year { font-size: clamp(46px, 5.2vw, 76px); }
.journey-item h3 { font: 600 clamp(28px, 3.2vw, 44px)/1.1 var(--serif); letter-spacing: -.3px; margin: 0 0 14px; }
.journey-item h3 em { color: var(--accent); font-style: italic; }
.journey-item p { max-width: 500px; margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.journey-item p + p { margin-top: 12px; }
.journey-item .journey-tags { margin-top: 14px; font: 600 24px/1.3 var(--script); color: var(--gold-soft); }
.journey-tags i { padding: 0 3px; font-style: normal; color: var(--faint); }
.journey-tags b, .journey-script b { color: var(--heart); font-weight: 600; }
.journey-item .journey-script { margin-top: 16px; font: 600 32px/1.15 var(--script); color: var(--ink); transform: rotate(-2deg); transform-origin: left center; }

/* The collage stays beside the story while it scrolls; the photo for the chapter being read comes forward */
.journey-side { position: sticky; top: 104px; }
.collage { position: relative; container-type: inline-size; width: min(100%, calc((100vh - 150px) * .72)); aspect-ratio: 5 / 7; margin-left: auto; }
.polaroid { position: absolute; margin: 0; background: #fffdf6; padding: 1.9cqw 1.9cqw 6.6cqw; border-radius: 4px; box-shadow: 0 20px 44px rgba(0, 0, 0, .5); }
.polaroid-photo { display: block; aspect-ratio: 1; overflow: hidden; }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 6px; right: 6px; bottom: .9cqw; overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis; font: 600 clamp(14px, 4cqw, 22px) var(--script); color: var(--note-ink); }
.collage > * { transform: rotate(var(--r, 0deg)) scale(var(--s, 1)); transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .6s ease, box-shadow .6s ease; }
.collage-college { --r: -5deg; z-index: 1; left: 0; top: 0; width: 54%; }
.collage-college .polaroid-photo img { object-position: 45% 55%; }
.collage-birthday { --r: 6deg; z-index: 2; right: 0; top: 3%; width: 44%; }
.collage-birthday .polaroid-photo { aspect-ratio: 4 / 3; }
.collage-together { --r: -4deg; z-index: 3; left: 2%; top: 42%; width: 38%; }
.collage-together .polaroid-photo { aspect-ratio: 4 / 5; }
.collage-together .polaroid-photo img { object-position: 50% 30%; }
.collage-cafe { --r: 4deg; z-index: 3; right: 0; top: 35%; width: 58%; }
.collage-sunset { --r: -3deg; z-index: 4; right: 4%; top: 68%; width: 52%; }
.collage-travel { --r: -4deg; z-index: 5; left: 2%; bottom: -3.5%; width: 42%; }
.collage-cafe .polaroid-photo, .collage-sunset .polaroid-photo, .collage-travel .polaroid-photo { aspect-ratio: 3 / 2; }
.collage-cafe .polaroid-photo img { object-position: 52% 50%; }
.collage-sunset .polaroid-photo img { object-position: 62% 50%; }
.collage[data-active="college"] > :not([data-photo="college"]), .collage[data-active="cafe"] > :not([data-photo="cafe"]), .collage[data-active="sunset"] > :not([data-photo="sunset"]),
.collage[data-active="surprises"] > :not([data-photo="surprises"]), .collage[data-active="travels"] > :not([data-photo="travels"]), .collage[data-active="growing"] > :not([data-photo="growing"]) { filter: brightness(.7) saturate(.8); }
.collage[data-active="college"] > [data-photo="college"], .collage[data-active="cafe"] > [data-photo="cafe"], .collage[data-active="sunset"] > [data-photo="sunset"],
.collage[data-active="surprises"] > [data-photo="surprises"], .collage[data-active="travels"] > [data-photo="travels"], .collage[data-active="growing"] > [data-photo="growing"] { --s: 1.05; z-index: 6; box-shadow: 0 28px 60px rgba(0, 0, 0, .6); }

/* Scenes for chapters without photos */
.scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.chapter-forever { background: radial-gradient(ellipse at 72% 30%, rgba(255, 255, 255, .92), transparent 55%), linear-gradient(160deg, #fbeee6, #f6d9d3 50%, #f3e3cf); color: #2a1c2e; }
.chapter-forever .chapter-copy h3 { color: #2a1c2e; }
.chapter-forever .chapter-copy h3 em { color: #b0405b; }
.chapter-forever .chapter-copy p { color: #5a4450; }
.chapter-forever .chapter-no { color: #8a6f7a; }
.chapter-forever .chapter-no::after { background: rgba(42, 28, 46, .25); }
.chapter-forever .pill-button { background: var(--button-ink); color: var(--button); }
.forever-photo { margin: 0; width: min(100%, 440px); padding: 12px; border-radius: 22px; background: #fffaf5; box-shadow: 0 30px 70px rgba(120, 50, 70, .28); transform: rotate(2.5deg); }
.forever-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 14px; }
.petal { position: absolute; top: -30px; width: 12px; height: 16px; border-radius: 60% 0 60% 0; background: #f2a3b3; opacity: .85; animation: petalFall 11s linear infinite; }
.petal:nth-child(1) { left: 8%; animation-delay: 0s; }
.petal:nth-child(2) { left: 22%; animation-delay: 3s; animation-duration: 13s; background: #f7c1cb; }
.petal:nth-child(3) { left: 38%; animation-delay: 6s; }
.petal:nth-child(4) { left: 52%; animation-delay: 1.5s; animation-duration: 14s; background: #e98aa0; }
.petal:nth-child(5) { left: 66%; animation-delay: 4.5s; }
.petal:nth-child(6) { left: 78%; animation-delay: 8s; animation-duration: 12s; background: #f7c1cb; }
.petal:nth-child(7) { left: 88%; animation-delay: 2.5s; }
.petal:nth-child(8) { left: 95%; animation-delay: 7s; animation-duration: 15s; background: #e98aa0; }
@keyframes petalFall { 0% { transform: translate3d(0, 0, 0) rotate(0); } 100% { transform: translate3d(-60px, 980px, 0) rotate(540deg); } }

/* Footer: "All our moments… led us here", the families and the chapter links */
.footer-closing { position: relative; z-index: 1; display: grid; justify-items: center; gap: 30px; padding-bottom: 70px; text-align: center; }
.closing-script { margin: 0; font: 600 clamp(38px, 4.6vw, 56px)/1.1 var(--script); }
.closing-script span { color: var(--heart); }
.family-note { position: relative; width: min(560px, 100%); padding: 26px 30px; border-radius: 22px; border: 1px solid var(--line); background: rgba(20, 28, 66, .7); }
.family-note .micro-label { display: block; text-align: center; }
.family-names { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 16px; text-align: center; }
.family-names b { display: block; font: 600 28px var(--serif); }
.family-names small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.family-amp { font: 600 40px var(--script); color: var(--accent); }
.family-flower { position: absolute; right: 18px; bottom: 14px; color: var(--accent); }
.lanterns span { position: absolute; bottom: -60px; width: 22px; height: 30px; border-radius: 8px 8px 10px 10px; background: radial-gradient(circle at 50% 60%, #ffe0a0, #f08a3a 70%); box-shadow: 0 0 22px rgba(255, 170, 80, .7); animation: lantern 18s linear infinite; }
.lanterns span:nth-child(1) { left: 10%; }
.lanterns span:nth-child(2) { left: 28%; animation-delay: 5s; animation-duration: 22s; }
.lanterns span:nth-child(3) { left: 70%; animation-delay: 2s; }
.lanterns span:nth-child(4) { left: 84%; animation-delay: 9s; animation-duration: 20s; }
.lanterns span:nth-child(5) { left: 50%; animation-delay: 13s; animation-duration: 24s; }
@keyframes lantern { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate3d(30px, -900px, 0); opacity: 0; } }

/* Video wishes */
.wishes-section { padding: 100px 0 90px; background: var(--bg); overflow: hidden; }
.wishes-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.wishes-heading > p { max-width: 300px; color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.video-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; }
.video-rail::-webkit-scrollbar { display: none; }
.empty-wishes { position: relative; flex: 0 0 100%; min-height: 230px; display: flex; align-items: center; gap: 26px; padding: 30px 40px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; scroll-snap-align: start; }
.empty-flower { flex: none; font-size: 62px; color: var(--accent); }
.empty-wishes h3 { font: 600 28px var(--serif); margin: 8px 0 6px; }
.empty-wishes p { max-width: 420px; margin: 0; color: var(--muted); font-size: 15px; }
.empty-count { position: absolute; right: 28px; bottom: 20px; font-size: 10px; letter-spacing: 1.6px; font-weight: 700; color: var(--soft); }
.video-card { position: relative; flex: 0 0 230px; height: 300px; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #2a2f5a; color: #fff; text-align: left; cursor: pointer; isolation: isolate; scroll-snap-align: start; }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.video-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 11, 32, .9), rgba(8, 11, 32, .05) 72%); }
.video-card:hover img { transform: scale(1.05); }
.play-circle { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding-left: 2px; background: var(--button); color: var(--button-ink); font-size: 13px; }
.video-card-meta { position: absolute; left: 18px; right: 16px; bottom: 18px; }
.video-card-meta small { display: block; margin-bottom: 5px; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .8; }
.video-card-meta b { display: block; font: 600 22px var(--serif); }
.video-card-meta p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; opacity: .85; }
.rail-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: 13px; color: var(--soft); }
.rail-controls { display: flex; gap: 10px; }
.rail-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s; }
.rail-arrow:hover { background: rgba(var(--tint), .08); }

/* The wedding day */
.section { padding-top: 100px; padding-bottom: 100px; }
.panel { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.wedding-grid { display: grid; grid-template-columns: .8fr 1.1fr 1fr; gap: 18px; align-items: stretch; }
.wedding-heading { padding: 20px 6px 10px 0; }
.wedding-heading p { max-width: 260px; color: var(--muted); font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line-strong); }
.text-link span, .event-map span { color: var(--accent); }
.text-link:hover { color: var(--accent); }
.event-card { display: flex; flex-direction: column; min-height: 340px; padding: 26px; background: var(--panel); }
.event-card-top { display: flex; justify-content: space-between; align-items: center; }
.event-spark { color: var(--accent); font-size: 22px; }
.event-date { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.event-date > span:first-child { align-self: flex-start; padding-top: 10px; font-size: 11px; letter-spacing: 1.6px; font-weight: 700; color: var(--soft); }
.event-date b { font: 600 70px/.9 var(--serif); color: var(--accent); }
.event-date > span:last-child { font-size: 11px; letter-spacing: 1.6px; line-height: 1.6; font-weight: 700; color: var(--soft); }
.event-divider { height: 1px; margin: 20px 0; background: var(--line); }
.event-details { display: grid; gap: 16px; }
.event-details > span { display: flex; align-items: flex-start; gap: 12px; }
.event-details i { width: 18px; font-style: normal; font-size: 16px; color: var(--accent); }
.event-details span span { display: grid; gap: 3px; }
.event-details small { font-size: 11px; letter-spacing: 1px; color: var(--soft); }
.event-details b { font: 600 17px var(--serif); }
.event-map { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.event-photo { position: relative; min-height: 340px; background: #2a2f5a; }
.event-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 11, 32, .75), transparent 62%); }
.event-photo-note { position: absolute; z-index: 1; left: 22px; bottom: 22px; color: #fff; }
.event-photo-note > span { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: 1.6px; }
.event-photo-note b { font: 600 32px/1.1 var(--serif); }

/* Live stream on YouTube */
.live-card { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 28px; background: radial-gradient(ellipse 45% 160% at 0% 50%, rgba(255, 0, 51, .2), transparent 70%), var(--panel); }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: #ff0033; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; white-space: nowrap; box-shadow: 0 8px 22px rgba(255, 0, 51, .3); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.live-copy h3 { margin: 0 0 4px; font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--serif); }
.live-copy h3 em { color: var(--accent); font-style: italic; }
.live-copy p { max-width: 640px; margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.live-button { white-space: nowrap; }
.live-button .live-label { font-size: 14px; }
.live-button span[aria-hidden] { font-size: 13px; color: #ff0033; }
.live-button[aria-disabled="true"] { opacity: .72; cursor: default; box-shadow: none; }
.live-button[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

/* Travel */
.travel-section { padding: 90px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.travel-wrap > div:first-child { max-width: 560px; }
.travel-wrap > div:first-child > p { color: var(--muted); font-size: 15px; max-width: 440px; }
.travel-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.travel-card { min-height: 190px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.travel-icon { display: block; margin-bottom: 14px; font-size: 22px; color: var(--accent); }
.travel-card h3 { font: 600 21px var(--serif); margin: 8px 0; }
.travel-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.travel-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line-strong); }
.travel-link span { color: var(--accent); }
.travel-link:hover { color: var(--accent); }
.travel-stay { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin-top: 14px; padding: 26px 28px; border-radius: 20px; border: 1px solid rgba(243, 195, 90, .55); background: linear-gradient(120deg, rgba(243, 195, 90, .16), rgba(243, 195, 90, .04) 60%), var(--panel); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.travel-stay .travel-icon { margin: 0; font-size: 28px; }
.travel-stay h3 { font: 600 22px/1.3 var(--serif); margin: 8px 0 6px; color: var(--ink); }
.travel-stay p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 620px; }
.travel-explore { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel-2); transition: border-color .25s, transform .25s; }
.travel-explore:hover { border-color: var(--accent); transform: translateY(-2px); }
.travel-explore b { display: block; margin: 4px 0 2px; font: 600 24px var(--serif); }
.travel-explore small { display: block; font-size: 14px; color: var(--muted); }
.travel-explore-arrow { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--button); color: var(--button-ink); font-size: 20px; }

/* RSVP */
.rsvp-section { display: grid; grid-template-columns: 1fr .9fr; gap: 70px; align-items: center; padding-top: 100px; padding-bottom: 110px; }
.rsvp-copy > p { max-width: 380px; color: var(--muted); font-size: 15px; }
.rsvp-date { margin-top: 26px; font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--soft); }
.rsvp-date span { margin: 0 10px; color: var(--accent); }
.rsvp-form { display: flex; flex-direction: column; padding: 32px; background: var(--panel); }
.rsvp-form > label, .rsvp-coming > label, .admin-form > label:not(.upload-drop) { margin: 0 0 6px; font-size: 11px; letter-spacing: 1.4px; font-weight: 700; color: var(--soft); }
.rsvp-form > input, .rsvp-form > select, .rsvp-coming > input, .rsvp-coming > select, .rsvp-form > textarea, .admin-form > input {
  height: 46px; margin-bottom: 20px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--ink); font-size: 16px; outline: none;
}
.rsvp-form > input:focus, .rsvp-form > select:focus, .rsvp-coming > input:focus, .rsvp-coming > select:focus, .rsvp-form > textarea:focus, .admin-form > input:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.rsvp-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 24px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f3c35a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center / 12px 8px;
}
.rsvp-form select option { color: #141a3a; background: #fbf6ea; }
.rsvp-form > textarea { height: auto; min-height: 80px; padding: 12px 2px; resize: vertical; line-height: 1.6; }
.rsvp-coming { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 0; }
.optional { margin-left: 4px; font-weight: 400; color: var(--faint); }
.attendance { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 18px; }
.attendance label input { position: absolute; opacity: 0; }
.attendance label span { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; font-size: 14px; color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
.attendance label input:checked + span { border-color: var(--accent); background: rgba(243, 195, 90, .12); color: var(--ink); }
.attendance label input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.attendance i { font-style: normal; color: var(--accent); }
.rsvp-submit { align-self: flex-start; }
.privacy-note { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--soft); }
.form-feedback { min-height: 16px; margin: 10px 0 0; font-size: 14px; color: var(--gold-soft); }

/* Footer */
.footer { position: relative; overflow: hidden; padding: 120px 0 0; border-top: 1px solid var(--line); color: var(--ink); background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(80, 90, 190, .32), transparent 70%), linear-gradient(180deg, #141c4a, #070b1d 75%); }
.footer-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 1.4px; color: var(--soft); }
.admin-open { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--soft); font-size: 12px; letter-spacing: .6px; cursor: pointer; }
.admin-open:hover { color: var(--ink); }

/* Dialogs */
.admin-dialog, .player-dialog { border: 1px solid var(--line); padding: 0; background: var(--bg-2); color: var(--ink); box-shadow: 0 24px 90px rgba(0, 0, 0, .6); }
.admin-dialog { width: min(540px, calc(100% - 28px)); max-height: min(90vh, 880px); border-radius: 28px; }
.admin-dialog::backdrop, .player-dialog::backdrop { background: rgba(3, 5, 16, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.admin-shell { position: relative; max-height: inherit; overflow: auto; padding: 34px 36px 32px; }
.dialog-close, .player-close { position: absolute; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--button); color: var(--button-ink); font-size: 22px; cursor: pointer; }
.dialog-close { top: 18px; right: 18px; }
.admin-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 30px; }
.admin-dialog h2 { font: 600 36px var(--serif); margin: 12px 0 6px; }
.admin-dialog h2 em, .admin-dialog h3 em { color: var(--accent); }
.admin-dialog #adminSignedOut > p { color: var(--muted); font-size: 15px; }
.admin-form { display: flex; flex-direction: column; margin-top: 22px; }
.admin-form > .pill-button { align-self: flex-start; margin-top: 4px; }
.admin-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-heading-row h2 { font-size: 30px; margin-bottom: 0; }
.signout { min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.admin-rsvp { margin-top: 18px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.admin-rsvp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.admin-rsvp-stats div { display: grid; gap: 3px; }
.admin-rsvp-stats b { font: 600 28px/1 var(--serif); color: var(--accent); }
.admin-rsvp-stats span { font-size: 10px; letter-spacing: 1px; font-weight: 700; color: var(--soft); text-transform: uppercase; }
.admin-rsvp-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.admin-export { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-section-heading { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.admin-dialog h3 { font: 600 28px var(--serif); margin: 10px 0 0; }
.upload-form { margin-top: 18px; }
.upload-drop { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; margin: 2px 0 10px; padding: 16px 14px 14px 54px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--panel); cursor: pointer; }
.upload-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-drop b { font-size: 14px; font-weight: 600; }
.upload-drop small { font-size: 12px; color: var(--soft); }
.upload-icon { position: absolute; left: 16px; top: 28px; font-size: 22px; color: var(--accent); }
.upload-thumb { min-height: 76px; }
.upload-thumb .upload-icon { top: 20px; }
.upload-form .pill-button { margin-top: 8px; }
.upload-progress { height: 4px; margin-top: 14px; border-radius: 3px; overflow: hidden; background: var(--panel-2); }
.upload-progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .3s; }
.admin-list-heading { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--soft); }
.admin-video-list { display: grid; gap: 8px; margin-top: 12px; }
.admin-video-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--panel); }
.admin-video-row img { width: 42px; height: 50px; border-radius: 8px; object-fit: cover; }
.admin-video-row > span { flex: 1; font: 600 16px var(--serif); }
.admin-video-row button { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--error); font-size: 13px; cursor: pointer; }
.admin-empty { color: var(--muted); font-size: 14px; }

/* Admin: hero images */
.admin-hint { margin: 8px 0 14px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.hero-drop { min-height: 84px; margin-bottom: 0; }
.hero-admin-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.hero-admin-item { display: grid; grid-template-columns: auto 104px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px 8px 2px; border: 1px solid transparent; border-radius: 16px; background: var(--panel); transition: opacity .2s, border-color .2s; }
.hero-admin-item.is-hidden img { opacity: .45; filter: grayscale(.6); }
.hero-admin-item.is-dragging { opacity: .55; border-color: var(--accent); }
.hero-admin-handle { display: grid; place-items: center; width: 26px; height: 44px; color: var(--faint); font-size: 18px; cursor: grab; }
.hero-admin-item img { width: 104px; height: 66px; border-radius: 10px; object-fit: cover; background: var(--panel-2); cursor: grab; }
.hero-admin-body { display: grid; gap: 6px; min-width: 0; }
.hero-admin-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hero-admin-meta b { font: 600 16px var(--serif); }
.hero-admin-badge { padding: 2px 8px; border-radius: 999px; background: rgba(243, 195, 90, .16); color: var(--gold-soft); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.hero-admin-badge.is-muted { background: rgba(var(--tint), .08); color: var(--soft); }
.hero-admin-badge.is-warn { background: rgba(226, 69, 95, .16); color: var(--error); }
.hero-admin-alt { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--ink); font: inherit; font-size: 13px; }
.hero-admin-alt:focus { outline: none; border-color: var(--accent); }
/* "Framing on phones": a phone-shaped preview of the crop beside its slider */
.hero-admin-focus { display: flex; align-items: center; gap: 10px; }
.hero-admin-phone { flex: none; width: 28px; height: 40px; overflow: hidden; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--panel-2); }
.hero-admin-item .hero-admin-phone img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; cursor: default; }
.hero-admin-focus label { flex: 1; display: grid; min-width: 0; color: var(--soft); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.hero-admin-focus input { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.hero-admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.hero-admin-tools button, .hero-admin-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 12px; cursor: pointer; }
.hero-admin-tools button:hover, .hero-admin-toggle:hover { border-color: var(--line-strong); }
.hero-admin-tools button:disabled { opacity: .35; cursor: default; }
.hero-admin-tools .is-danger { color: var(--error); }
.hero-admin-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.hero-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.hero-admin-actions .pill-button:disabled { cursor: default; }

/* Admin: story photos. Each thumbnail has the shape of the photo's frame on the page. */
.story-admin-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.story-admin-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; background: var(--panel); }
.story-admin-frame { display: grid; place-items: center; height: 96px; }
.story-admin-frame img { display: block; width: 96px; aspect-ratio: var(--ratio); border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.story-admin-frame img.is-portrait { width: auto; height: 96px; }
.story-admin-name { font-size: 13px; color: var(--muted); }
.player-dialog { width: min(760px, calc(100% - 24px)); border-radius: 24px; overflow: visible; }
.player-close { top: -16px; right: -12px; }
.player-dialog video { display: block; width: 100%; max-height: min(65vh, 620px); border-radius: 24px 24px 0 0; background: #000; }
.player-meta { padding: 20px 24px 22px; }
.player-meta > b { display: block; margin-top: 6px; font: 600 26px var(--serif); }
.player-meta > p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 20px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 24px; background: var(--button); color: var(--button-ink); font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .25s, transform .25s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Timeline labels only fit beside the content on wide screens */
@media (max-width: 1599px) {
  .story-timeline a, .story-timeline a.active { width: 16px; height: 22px; padding-left: 0; overflow: hidden; color: transparent; }
  .story-timeline a b { color: transparent; }
}

/* Mid-size screens: zoom the hero photo slightly and move the couple right, away from the text */
@media (min-width: 901px) and (max-width: 1439px) {
  :root { --hero-zoom: 1.14; --hero-shift: 5%; }
}

/* Tablet */
@media (max-width: 900px) {
  .hero { min-height: 0; background: var(--bg); }
  /* No scroll parallax here (app.js stops driving it too), so scrolling stays smooth on phones */
  .hero-media { bottom: auto; height: 66vh; height: 66svh; transform: none; will-change: auto; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 97%); mask-image: linear-gradient(to bottom, #000 58%, transparent 97%); }
  /* Each photo is centred where the admin set "Framing on phones", so nobody is cropped out */
  .hero-media img { object-position: var(--focus-x, 50%) 40%; }
  /* Blurring a full-screen photo every frame stutters on phones: the opening fade skips the blur */
  .js .hero.is-ready:not(.intro-done) .hero-media img { animation-name: heroDollyPhone; }
  /* Slideshow controls: a small horizontal bar at the foot of the photo, clear of the faces and the date stamp */
  .hero-controls { top: calc(56vh - 58px); top: calc(56svh - 58px); right: 12px; max-width: calc(100% - 24px); flex-direction: row; padding: 0 2px 0 8px; transform: none; }
  .hero-dots { flex-direction: row; min-width: 0; }
  .hero-dots button { flex: 0 1 30px; min-width: 18px; width: 30px; height: 44px; }
  .hero-dots button::before, .hero-dots button i { width: 12px; height: 3px; margin: -1.5px 0 0 -6px; }
  .hero-dots button i { transform: scaleX(0); transform-origin: left; }
  .hero-dots button[aria-current="true"]::before, .hero-dots button[aria-current="true"] i { width: 24px; height: 3px; margin: -1.5px 0 0 -12px; }
  .hero-dots button[aria-current="true"] i { transform: scaleX(1); }
  .hero.is-ready .hero-dots button[aria-current="true"] i { transform: scaleX(0); animation-name: heroProgressX; }
  .hero-pause { flex: none; width: 44px; height: 44px; }
  .hero-light { bottom: auto; height: 70svh; transform: none; }
  .hero-stamp { transform: rotate(8deg); }
  .hero-vignette { bottom: auto; height: 66vh; height: 66svh; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 97%); mask-image: linear-gradient(to bottom, #000 58%, transparent 97%); background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 50%, rgba(0, 0, 0, .55) 100%), linear-gradient(to bottom, rgba(5, 8, 26, .6) 0%, transparent 18%), linear-gradient(to top, var(--bg) 0%, rgba(11, 16, 38, .6) 22%, transparent 48%); }
  .hero-inner { width: calc(100% - 44px); padding: 56vh 0 90px; padding-top: 56svh; }
  /* The text sits below the photo here, so it stays put and fully visible while scrolling */
  .hero-content { max-width: 560px; transform: none; opacity: 1; }
  .hero-script { position: static; margin: 26px 0 0; text-align: left; transform: rotate(-3deg); }
  .wrap { width: calc(100% - 44px); }
  .topbar { padding-inline: 22px; }
  .site-nav { gap: 20px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .story-timeline { display: none; }
  .chapter-no { display: none; }
  .chapter-inner { grid-template-columns: 1fr; gap: 30px; }
  .chapter-side { justify-self: start; align-items: flex-start; }
  .forever-photo { width: min(92%, 440px); margin-left: 4%; }
  .journey { gap: 36px; }
  .journey-item { padding-left: 54px; }
  .wedding-grid { grid-template-columns: 1fr 1fr; }
  .wedding-heading { grid-column: 1 / -1; padding-bottom: 0; }
  .wedding-heading p { max-width: 460px; }
  .live-card { grid-template-columns: 1fr auto; row-gap: 14px; }
  .live-badge { grid-column: 1 / -1; justify-self: start; }
  .rsvp-section { grid-template-columns: 1fr; gap: 30px; }
  .travel-cards { grid-template-columns: 1fr 1fr; }
  .travel-cards .travel-card:first-child { grid-column: 1 / -1; min-height: 0; }
  .travel-stay { grid-template-columns: auto 1fr; }
  .travel-stay .pill-button { grid-column: 1 / -1; justify-self: start; }
  .hero-admin-tools button, .hero-admin-toggle, .hero-admin-alt { min-height: 44px; }
  .hero-admin-focus input { height: 40px; }
}

/* Leave room for the fixed chapter dots on the right */
@media (min-width: 901px) and (max-width: 1300px) {
  .journey-side { padding-right: 40px; }
}

/* Narrow tablets and phones: the collage sits above the story */
@media (max-width: 720px) {
  .journey { grid-template-columns: 1fr; gap: 52px; }
  .journey-side { position: static; order: -1; }
  .collage { width: min(100%, 520px); margin: 0 auto; }
  .song-inner { grid-template-columns: auto minmax(0, 1fr); row-gap: 18px; }
  .song-timer { grid-column: 1 / -1; justify-items: start; }
}

/* Phones */
@media (max-width: 600px) {
  :root { --radius: 22px; }
  .wrap { width: calc(100% - 32px); }
  html { scroll-padding-top: 70px; }
  .topbar { height: 64px; padding-inline: 16px; gap: 10px; }
  .wordmark { gap: 8px; }
  .wordmark-mark { font-size: 23px; }
  .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 16px; border: 1px solid rgba(var(--tint), .45); border-radius: 999px; background: rgba(var(--glass), .35); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
  .topbar-tools { margin-left: auto; gap: 6px; }
  .nav-toggle { margin-left: 0; }
  .nav-cta { padding: 0 14px; font-size: 12px; }
  .nav-cta span { margin-left: 8px; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 6px 16px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .4); }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--line); opacity: 1; }
  .site-nav a:last-child { border-bottom: 0; }

  .hero-inner { width: calc(100% - 32px); }
  .hero-content h1 { font-size: clamp(40px, 12vw, 54px); margin: 16px 0 14px; }
  .hero-invite { font-size: 15px; }
  .hero-names { font-size: 34px; }
  .hero-actions .pill-button { flex: 1 1 auto; }
  .hero-stamp { top: 80px; right: 16px; width: 70px; height: 70px; }
  .hero-stamp span { font-size: 27px; }
  .hero-stamp small { font-size: 8px; }
  .hero-script { font-size: 28px; }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px; }
  .hero-foot { justify-content: space-between; font-size: 10px; letter-spacing: 1.4px; }
  .hero-note { padding: 12px 12px 12px 16px; }

  .countdown-inner { display: grid; gap: 12px; min-height: auto; padding-block: 22px; }
  .song-inner { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 18px; padding-block: 24px 26px; }
  .song-disc { width: 62px; height: 62px; }
  .song-label { gap: 8px; font-size: 9px; letter-spacing: 1.4px; }
  .song-copy h2 { font-size: 30px; }
  .song-inner .song-copy p { font-size: 13px; }
  .song-timer { grid-column: 1 / -1; justify-items: stretch; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
  .song-timer .countdown { justify-content: space-between; }
  .countdown { gap: 10px; }
  .countdown b { font-size: 28px; }

  .story-intro { padding: 80px 0 60px; }
  .story-script { font-size: 38px; }
  .story-intro p { font-size: 16px; }

  .chapter { display: block; min-height: 0; padding: 90px 0 120px; }
  .chapter-year { font-size: 52px; }
  .chapter-journey { padding: 64px 0 110px; }
  .journey { gap: 44px; }
  .journey-text::before { left: 15px; }
  .journey-item { padding-left: 50px; }
  .journey-item + .journey-item { margin-top: 56px; }
  .journey-no { width: 31px; height: 31px; font-size: 10px; }
  .journey-item .chapter-year { font-size: 44px; }
  .journey-item h3 { font-size: 30px; }
  .journey-item p { font-size: 16px; }
  .journey-item .journey-tags { font-size: 22px; }
  .journey-item .journey-script { font-size: 28px; }
  .polaroid { padding: 7px 7px 28px; }
  .polaroid figcaption { font-size: clamp(15px, 4.6cqw, 17px); bottom: 3px; }
  .collage-sunset { right: 1%; width: 57%; }
  .collage-travel { bottom: -6%; width: 40%; }
  .chapter-copy h3 { font-size: 34px; }
  .chapter-copy p { font-size: 16px; }
  .forever-photo { padding: 9px; }
  .family-note { padding: 22px 18px; }
  .family-names { gap: 18px; }
  .family-names b { font-size: 24px; }

  .wishes-section { padding: 70px 0 60px; }
  .wishes-heading { display: block; margin-bottom: 22px; }
  .wishes-heading > p { margin-top: 10px; }
  .video-card { flex-basis: 70vw; }
  .empty-wishes { display: block; min-height: 250px; padding: 26px 22px 44px; }
  .empty-flower { display: block; margin-bottom: 8px; font-size: 38px; }
  .empty-wishes h3 { font-size: 24px; }
  .empty-count { right: 18px; bottom: 16px; }

  .section { padding-block: 70px; }
  .wedding-grid { grid-template-columns: 1fr; gap: 12px; }
  .event-card, .event-photo { min-height: 300px; }
  .live-card { grid-template-columns: 1fr; padding: 22px 20px; }
  .live-button { justify-self: stretch; }
  .travel-section { padding: 70px 0; }
  .travel-cards { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .travel-card { min-height: 0; padding: 18px; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-items: center; }
  .travel-icon { grid-row: 1 / 4; margin: 0; font-size: 20px; }
  .travel-card h3 { font-size: 19px; margin: 3px 0; }
  .travel-card p { grid-column: 2; }
  .travel-link { grid-column: 2; justify-self: start; }
  .travel-stay { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; }
  .travel-stay h3 { font-size: 20px; }
  .travel-stay .pill-button { justify-self: stretch; }
  .travel-explore { padding: 18px 20px; }
  .travel-explore b { font-size: 21px; }
  .rsvp-section { padding-block: 70px; }
  .rsvp-form { padding: 24px 20px; }
  .attendance { gap: 6px; }
  .attendance label span { padding-inline: 10px; font-size: 13px; }

  .footer { padding-top: 90px; }
  .footer-closing { gap: 24px; padding-bottom: 50px; }
  .footer-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding-block: 12px; font-size: 10px; }
  .footer-bottom > span:nth-child(2) { text-align: right; }
  .admin-open { grid-column: 1 / -1; justify-self: center; }

  .admin-shell { padding: 28px 20px 24px; }
  .admin-brand { margin-bottom: 22px; }
  .admin-dialog h2 { font-size: 30px; }
  .admin-heading-row h2 { font-size: 25px; }
  .admin-export .pill-button { flex: 1 1 140px; }
  .hero-admin-item { grid-template-columns: auto 76px minmax(0, 1fr); gap: 8px; }
  .hero-admin-item img { width: 76px; height: 56px; }
  .hero-admin-actions .pill-button { flex: 1 1 140px; }
  .story-admin-item { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .story-admin-frame { height: 76px; }
  .story-admin-frame img { width: 76px; }
  .story-admin-frame img.is-portrait { width: auto; height: 76px; }
  .player-meta { padding: 16px 18px 18px; }
}

/* Narrow tablets: tighter spacing so the links, the two buttons and RSVP fit in the top bar */
@media (min-width: 601px) and (max-width: 780px) {
  .topbar, .site-nav { gap: 14px; }
}

/* The smallest phones */
@media (max-width: 360px) {
  .topbar { gap: 6px; }
  .topbar-tools { gap: 4px; }
  .icon-button { width: 40px; height: 40px; }
  .nav-toggle { padding: 0 12px; }
  .nav-cta { padding: 0 11px; }
}

/* Respect "reduce motion": keep the design, drop the movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-media, .hero-content, .hero-script, .hero-light, .hero-stamp { transform: none !important; }
  .hero-media img { transform: scale(var(--hero-zoom)) translateX(var(--hero-shift)) !important; }
  .hero-stamp { transform: rotate(8deg) !important; }
  .js .hero-content > *, .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .hero-media img { opacity: 1 !important; }
  .hero-pause { display: none; }
  .hero-content { opacity: 1 !important; }
  .petal, .lanterns span { display: none; }
}

/* Light mode: a warm daytime version of the night design, switched on with the sun button */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf5ea;
  --bg-2: #f4ead9;
  --panel: #fffaf2;
  --panel-2: #efe3cf;
  --ink: #1d2348;
  --muted: #474c6b;
  --soft: #5d6280;
  --faint: #6f748c;
  --accent: #98650f;
  --gold-soft: #8a5a0c;
  --heart: #d23a55;
  --button: #1d2348;
  --button-ink: #fbf6ea;
  --line: rgba(29, 35, 72, .14);
  --line-strong: rgba(29, 35, 72, .28);
  --error: #b3261e;
  --glass: 251, 245, 234;
  --tint: 29, 35, 72;
}
[data-theme="light"] .pill-button { box-shadow: 0 10px 24px rgba(29, 35, 72, .16); }
[data-theme="light"] .pill-button:hover { box-shadow: 0 14px 30px rgba(29, 35, 72, .22); }
[data-theme="light"] .pill-ghost { background: rgba(255, 250, 242, .55); }
[data-theme="light"] .chapter-forever .pill-button { background: var(--button); color: var(--button-ink); }

/* Hero: the photo fades into cream instead of night, so the navy text stays readable */
[data-theme="light"] .hero { background: var(--bg-2); }
[data-theme="light"] .hero-vignette {
  background:
    radial-gradient(ellipse 85% 78% at 50% 44%, transparent 55%, rgba(251, 245, 234, .35) 100%),
    linear-gradient(to bottom, rgba(251, 245, 234, .8) 0%, transparent 20%),
    linear-gradient(to top, rgba(251, 245, 234, .97) 0%, rgba(251, 245, 234, .62) 30%, transparent 58%),
    linear-gradient(90deg, rgba(251, 245, 234, .94) 0%, rgba(251, 245, 234, .74) 34%, rgba(251, 245, 234, .22) 54%, transparent 66%);
}
[data-theme="light"] .hero-content h1 { text-shadow: 0 2px 24px rgba(251, 245, 234, .7); }
[data-theme="light"] .hero-script { text-shadow: 0 0 14px rgba(251, 245, 234, .95), 0 0 3px rgba(251, 245, 234, .9); }
[data-theme="light"] .hero-note { background: rgba(255, 250, 242, .8); }
[data-theme="light"] .hero-stamp { color: var(--ink); box-shadow: 0 10px 26px rgba(29, 35, 72, .2); }

/* Story, collage and footer */
[data-theme="light"] .song-band { background: radial-gradient(ellipse 45% 140% at 8% 60%, rgba(226, 69, 95, .14), transparent 70%), radial-gradient(ellipse 40% 140% at 92% 50%, rgba(243, 195, 90, .2), transparent 70%), var(--bg-2); }
[data-theme="light"] .story-timeline { background: rgba(255, 250, 242, .85); box-shadow: 0 10px 30px rgba(29, 35, 72, .12); }
[data-theme="light"] .chapter-journey { background: radial-gradient(ellipse at 85% 8%, rgba(98, 160, 92, .12), transparent 50%), radial-gradient(ellipse at 8% 55%, rgba(243, 195, 90, .16), transparent 50%), radial-gradient(ellipse at 85% 92%, rgba(214, 72, 140, .1), transparent 50%), var(--bg-2); }
[data-theme="light"] .polaroid { box-shadow: 0 16px 36px rgba(70, 50, 30, .22); }
[data-theme="light"] .collage[data-active="college"] > :not([data-photo="college"]), [data-theme="light"] .collage[data-active="cafe"] > :not([data-photo="cafe"]), [data-theme="light"] .collage[data-active="sunset"] > :not([data-photo="sunset"]),
[data-theme="light"] .collage[data-active="surprises"] > :not([data-photo="surprises"]), [data-theme="light"] .collage[data-active="travels"] > :not([data-photo="travels"]), [data-theme="light"] .collage[data-active="growing"] > :not([data-photo="growing"]) { filter: saturate(.6) opacity(.72); }
[data-theme="light"] .collage[data-active="college"] > [data-photo="college"], [data-theme="light"] .collage[data-active="cafe"] > [data-photo="cafe"], [data-theme="light"] .collage[data-active="sunset"] > [data-photo="sunset"],
[data-theme="light"] .collage[data-active="surprises"] > [data-photo="surprises"], [data-theme="light"] .collage[data-active="travels"] > [data-photo="travels"], [data-theme="light"] .collage[data-active="growing"] > [data-photo="growing"] { box-shadow: 0 24px 50px rgba(70, 50, 30, .3); }
[data-theme="light"] .event-photo { background: var(--panel-2); }
[data-theme="light"] .travel-stay { box-shadow: 0 16px 36px rgba(29, 35, 72, .1); }
[data-theme="light"] .rsvp-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2398650f' stroke-width='1.5'/%3E%3C/svg%3E"); }
[data-theme="light"] .footer { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(243, 195, 90, .3), transparent 70%), linear-gradient(180deg, #f6ead6, #efdfc4 75%); }
[data-theme="light"] .family-note { background: rgba(255, 250, 242, .72); }
[data-theme="light"] .admin-dialog, [data-theme="light"] .player-dialog { box-shadow: 0 24px 80px rgba(29, 35, 72, .3); }
[data-theme="light"] .admin-dialog::backdrop, [data-theme="light"] .player-dialog::backdrop { background: rgba(29, 35, 72, .5); }

@media (max-width: 900px) {
  [data-theme="light"] .hero { background: var(--bg); }
  [data-theme="light"] .hero-vignette { background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 55%, rgba(251, 245, 234, .3) 100%), linear-gradient(to bottom, rgba(251, 245, 234, .75) 0%, transparent 18%), linear-gradient(to top, var(--bg) 0%, rgba(251, 245, 234, .55) 22%, transparent 48%); }
}
@media (max-width: 600px) {
  [data-theme="light"] .site-nav { box-shadow: 0 18px 30px rgba(29, 35, 72, .14); }
}
