:root {
  --wine: #3a0711;
  --mulberry: #540a17;
  --runner: #b9272d;
  --runner-dark: #8f1722;
  --garnet: #7c1022;
  --blush: #f7dfe0;
  --paper: #fff0ed;
  --ink: #3a2020;
  --red: #b91825;
  --gold: #aa6e28;
  --soft-gold: #d3a465;
  --runner-y: 0px;
  --intro-lift: 0px;
  --intro-drop: 0px;
  --intro-opacity: 1;
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  --shadow: 0 24px 56px rgba(26, 0, 5, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--wine); font-family: var(--sans); overflow-x: hidden; }
body.invitation-locked { height: 100svh; overflow: hidden; }
button, input { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 100; top: 0; left: 1rem; transform: translateY(-120%); padding: .7rem 1rem; background: #fff; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.opening-screen {
  position: fixed; z-index: 100; inset: 0 auto 0 50%; width: min(100%,430px); min-height: 100svh; overflow: hidden; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 30%, rgba(145,23,35,.22), transparent 22rem), linear-gradient(90deg,#280308,var(--wine) 22%,#4c0914 50%,var(--wine) 78%,#280308);
  box-shadow: 0 0 70px rgba(15,0,3,.55); opacity: 1; visibility: visible; filter: blur(0); transition: opacity .72s ease, filter .72s ease, transform .72s cubic-bezier(.22,.61,.36,1), visibility 0s linear .72s;
}
.opening-screen::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 47%, transparent 28%, rgba(21,0,4,.22) 100%); }
.opening-runner { position: absolute; z-index: 0; inset: 0 auto 0 50%; width: 56%; transform: translateX(-50%); background: linear-gradient(90deg,rgba(100,4,16,.25),transparent 8%,transparent 92%,rgba(100,4,16,.3)),url("./assets/cinnabar-brocade.jpg") center/330px auto repeat; box-shadow: inset 1px 0 rgba(255,205,183,.28),inset -1px 0 rgba(76,2,12,.45); }
.opening-floral, .opening-props { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 14px 16px rgba(25,0,4,.38)); }
.opening-floral--left { width: 15.5rem; left: -7.4rem; top: 13%; transform: rotate(-16deg); }
.opening-props { width: 28rem; top: -2.2rem; left: -3.1rem; }
.petal-field { position: fixed; inset: 0 auto 0 50%; width: min(100%,430px); pointer-events: none; transform: translateX(-50%); overflow: hidden; }
.petal-field--opening { z-index: 3; }
.petal-field--journey { z-index: 4; }
.petal { --petal-x: 10%; --petal-size: 2.4rem; --petal-drift: 5rem; --petal-turn: 340deg; position: absolute; top: -14vh; left: var(--petal-x); width: var(--petal-size); aspect-ratio: 1; display: block; opacity: 0; background-image: url("./assets/peony-petals.png"); background-repeat: no-repeat; background-size: 200% 300%; filter: drop-shadow(0 5px 5px rgba(38,0,7,.18)); will-change: transform, opacity; }
.petal--1 { --petal-x: 8%; --petal-size: 2.8rem; --petal-drift: 7rem; --petal-turn: 410deg; background-position: left top; animation-delay: -2s; animation-duration: 13s; }
.petal--2 { --petal-x: 76%; --petal-size: 2.1rem; --petal-drift: -6rem; --petal-turn: -330deg; background-position: right top; animation-delay: -8.5s; animation-duration: 16s; }
.petal--3 { --petal-x: 35%; --petal-size: 2.35rem; --petal-drift: 4rem; --petal-turn: 290deg; background-position: left center; animation-delay: -11s; animation-duration: 18s; }
.petal--4 { --petal-x: 88%; --petal-size: 2.65rem; --petal-drift: -8rem; --petal-turn: -440deg; background-position: right center; animation-delay: -4s; animation-duration: 14.5s; }
.petal--5 { --petal-x: 57%; --petal-size: 1.85rem; --petal-drift: 6rem; --petal-turn: 360deg; background-position: left bottom; animation-delay: -13.5s; animation-duration: 19s; }
.petal--6 { --petal-x: 18%; --petal-size: 2.15rem; --petal-drift: -5rem; --petal-turn: -300deg; background-position: right bottom; animation-delay: -6s; animation-duration: 17s; }
.petal--7 { --petal-x: 68%; --petal-size: 2.45rem; --petal-drift: -3rem; --petal-turn: 390deg; background-position: left top; animation-delay: -16s; animation-duration: 21s; }
.opening-screen.is-opening .petal, body.motion-ready .petal-field--journey .petal { animation-name: petal-fall; animation-timing-function: linear; animation-iteration-count: infinite; }
body.motion-paused .petal, body.motion-paused .floral[data-ambient] { animation-play-state: paused !important; }
.opening-brand { position: absolute; z-index: 4; top: max(1.15rem,env(safe-area-inset-top)); left: 1.15rem; color: #fff3e4; font: 500 1.08rem/1 var(--serif); letter-spacing: .18em; }
.opening-brand span { color: #e2a26d; }
.opening-card { position: absolute; z-index: 5; inset: 8.5% 0 auto; width: 100%; height: 88%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; color: #f5d9ca; background: transparent; border: 0; cursor: pointer; }
.opening-envelope-stage { position: relative; width: min(92%,24.5rem); aspect-ratio: .75; display: block; perspective: 1100px; transform: rotate(-.7deg); filter: drop-shadow(0 24px 26px rgba(20,0,4,.4)); }
.opening-envelope-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.opening-envelope-inner { position: absolute; z-index: 1; top: 33%; left: 9%; width: 82%; height: 16%; background: linear-gradient(180deg,#7d3538,#bc7771 72%,#e3afa3); clip-path: polygon(2% 0,98% 0,88% 100%,12% 100%); box-shadow: inset 0 9px 18px rgba(30,0,5,.28); }
.opening-letter { position: absolute; z-index: 2; top: 28%; left: 14%; width: 72%; height: 52%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #4c2221; background: radial-gradient(circle at 15% 20%,rgba(119,51,42,.06) 0 .7px,transparent .9px),linear-gradient(145deg,#fff4f1,#f4d8d6); background-size: 8px 8px,100% 100%; border: 1px solid rgba(133,50,43,.14); box-shadow: 0 12px 24px rgba(30,0,5,.22); transform: translate3d(0,18%,0) scale(.92); transition: transform .9s cubic-bezier(.2,.75,.2,1) .38s; }
.opening-letter b { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; margin-bottom: 1rem; color: var(--red); border: 2px solid currentColor; font: 600 1.7rem/1 "Songti SC",serif; }
.opening-letter small { color: var(--gold); font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.opening-letter strong { margin-top: .75rem; font: 400 1.65rem/.95 var(--serif); letter-spacing: -.03em; text-transform: uppercase; }
.opening-envelope-base { z-index: 3; clip-path: inset(39% 0 0 0); transform: translate3d(0,0,0); transition: transform .7s cubic-bezier(.2,.7,.2,1) .26s; }
.opening-envelope-flap { z-index: 4; clip-path: inset(0 0 60% 0); transform-origin: 50% 40%; transform: rotateX(0deg); backface-visibility: hidden; transition: transform .74s cubic-bezier(.3,.02,.2,1), opacity .18s ease .54s; }
.opening-hint { margin-top: -.35rem; font: 400 .93rem/1 var(--serif); letter-spacing: .13em; text-shadow: 0 2px 12px rgba(30,0,4,.65); transition: opacity .3s ease, transform .3s ease; }
.opening-card > i { margin-top: .25rem; font: normal 1.9rem/1 var(--serif); animation: opening-nudge 1.55s ease-in-out infinite; transition: opacity .3s ease; }
.opening-card:focus-visible { outline-offset: -8px; }
.opening-screen.is-opening .opening-envelope-flap { transform: rotateX(-112deg); opacity: 0; }
.opening-screen.is-opening .opening-envelope-base { transform: translate3d(0,4%,0); }
.opening-screen.is-rising .opening-letter { z-index: 5; transform: translate3d(0,-48%,0) scale(1); }
.opening-screen.is-opening .opening-hint, .opening-screen.is-opening .opening-card > i { opacity: 0; transform: translateY(-1rem); }
.opening-screen.is-dissolving { opacity: 0; filter: blur(16px); transform: translateX(-50%) scale(1.045); }
.opening-screen.is-revealing { visibility: hidden; }
.scroll-progress { position: fixed; z-index: 60; top: 0; left: 50%; width: min(100%, 430px); height: 2px; transform: translateX(-50%); transform-origin: left; background: rgba(255,255,255,.1); }
.scroll-progress i { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #f4b3b9, #e6bd78); box-shadow: 0 0 8px rgba(255,196,175,.65); will-change: transform; }

.topbar {
  position: fixed; z-index: 30; top: 0; left: 50%; width: min(100%, 430px); height: 4.3rem; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between;
  padding: max(.75rem, env(safe-area-inset-top)) 1rem .5rem;
  color: #fff6ee; background: linear-gradient(180deg, rgba(45,2,9,.9), rgba(45,2,9,0));
}
.monogram { color: inherit; text-decoration: none; font: 500 1.08rem/1 var(--serif); letter-spacing: .12em; }
.monogram span { color: #f29aa4; }
.menu-button { display: flex; align-items: center; gap: .55rem; padding: .6rem .2rem .6rem .6rem; border: 0; color: inherit; background: none; cursor: pointer; }
.menu-button i, .menu-button i::before { display: block; width: 1.2rem; height: 1px; background: currentColor; transition: .2s ease; }
.menu-button i { position: relative; }
.menu-button i::before { content: ""; position: absolute; top: -.38rem; }
.menu-button[aria-expanded="true"] i { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] i::before { top: 0; transform: rotate(90deg); }
.menu {
  position: absolute; top: 4rem; right: .8rem; min-width: 10.5rem; display: grid; padding: .55rem;
  visibility: hidden; opacity: 0; transform: translateY(-.4rem);
  color: var(--ink); background: rgba(255,240,237,.98); box-shadow: var(--shadow); transition: .2s ease;
}
.menu.is-open { visibility: visible; opacity: 1; transform: none; }
.menu a { padding: .75rem; color: inherit; text-decoration: none; font-size: .82rem; letter-spacing: .08em; }
.soundtrack { position: fixed; z-index: 28; right: max(1rem, calc((100vw - 430px) / 2 + 1rem)); bottom: max(1rem, env(safe-area-inset-bottom)); }
.soundtrack audio { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: .001; pointer-events: none; }
.music-button { display: flex; align-items: center; gap: .55rem; min-height: 2.65rem; padding: .65rem .85rem; color: #fff3ea; background: rgba(55,3,13,.86); border: 1px solid rgba(245,184,171,.36); border-radius: 99px; box-shadow: 0 10px 28px rgba(20,0,4,.3); backdrop-filter: blur(10px); cursor: pointer; }
.music-button > span:last-child { font-size: .68rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.music-bars { height: .8rem; display: flex; align-items: flex-end; gap: 2px; }
.music-bars i { width: 2px; height: 35%; display: block; background: #f2b4a7; transform-origin: bottom; }
.music-button[aria-pressed="true"] .music-bars i { animation: music-pulse .75s ease-in-out infinite alternate; }
.music-button[aria-pressed="true"] .music-bars i:nth-child(2) { animation-delay: -.3s; }
.music-button[aria-pressed="true"] .music-bars i:nth-child(3) { animation-delay: -.5s; }

.table-scene {
  position: relative; min-height: 100svh; overflow: hidden;
  background:
    radial-gradient(circle at 17% 8%, rgba(215,80,92,.12), transparent 25rem),
    linear-gradient(90deg, #260308, var(--wine) 22%, #4b0914 50%, var(--wine) 78%, #260308);
}
.runner {
  position: absolute; z-index: 0; inset: 0 auto 0 50%; width: min(56vw, 230px); transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(100,4,16,.35), transparent 8%, transparent 92%, rgba(100,4,16,.35)),
    url("./assets/cinnabar-brocade.jpg");
  background-size: 100% 100%, 330px auto;
  background-position: 0 0, center var(--runner-y);
  background-repeat: no-repeat, repeat;
  box-shadow: inset 1px 0 rgba(255,205,183,.28), inset -1px 0 rgba(76,2,12,.45), 0 0 40px rgba(25,0,4,.25);
}
.runner::before, .runner::after { content: ""; position: absolute; top: 0; bottom: 0; width: .55rem; opacity: .5; background: repeating-linear-gradient(180deg, #db655d 0 2px, #892028 2px 5px); }
.runner::before { left: .45rem; }
.runner::after { right: .45rem; }
.screen { position: relative; z-index: 2; width: min(100%, 430px); min-height: 100svh; margin: 0 auto; padding: 6rem 1.2rem 3.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.floral, .props { position: absolute; z-index: 1; pointer-events: none; }
.floral { width: 17rem; filter: drop-shadow(0 14px 15px rgba(27,0,5,.3)); }
.floral--hero { top: -1.2rem; left: calc(50% - 14rem); }
.floral--story { --floral-angle: 84deg; top: 4.5rem; right: -6.7rem; width: 15rem; transform: rotate(var(--floral-angle)); }
.floral--garden { --floral-angle: -18deg; left: -7.5rem; bottom: -2.5rem; width: 17rem; transform: rotate(var(--floral-angle)); }
.floral--schedule { --floral-angle: -26deg; left: -6.2rem; bottom: -2rem; width: 15rem; transform: rotate(var(--floral-angle)); }
.floral--venue { --floral-angle: 102deg; top: 2.5rem; right: -6rem; width: 14rem; transform: rotate(var(--floral-angle)); }
.floral--closing { --floral-angle: 132deg; right: -8rem; bottom: -2.5rem; width: 18rem; transform: rotate(var(--floral-angle)); }
.floral[data-ambient].is-ambient { animation: floral-breathe 6.8s ease-in-out infinite; transform-origin: 50% 70%; will-change: transform; }
.floral--story[data-ambient].is-ambient, .floral--venue[data-ambient].is-ambient { animation-delay: -2.7s; }
.props { width: 29rem; filter: drop-shadow(0 13px 12px rgba(25,0,4,.28)); }
.props--welcome { top: .1rem; left: calc(50% - 14.5rem); }
.props--schedule { right: -8rem; top: 2rem; width: 23rem; transform: rotate(13deg); }
.screen > .paper, .screen > .photo-card, .screen > .countdown, .screen > .scroll-open { z-index: 2; }

.paper {
  position: relative; width: 100%; color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(115,52,39,.055) 0 .7px, transparent .9px),
    radial-gradient(circle at 82% 60%, rgba(115,52,39,.045) 0 .6px, transparent .8px),
    linear-gradient(145deg, #fff4f1, var(--blush));
  background-size: 8px 8px, 11px 11px, 100% 100%;
  border: 1px solid rgba(133,50,43,.14);
  box-shadow: var(--shadow);
  clip-path: polygon(.5% 1%, 4% .2%, 8% .8%, 13% .25%, 19% .7%, 25% .15%, 33% .65%, 41% .1%, 49% .7%, 57% .2%, 65% .75%, 73% .15%, 82% .65%, 91% .2%, 99.5% 1%, 99% 9%, 99.6% 18%, 99% 28%, 99.5% 39%, 99% 50%, 99.6% 61%, 99% 72%, 99.5% 84%, 99% 99%, 91% 99.4%, 82% 98.9%, 73% 99.5%, 64% 98.9%, 55% 99.6%, 46% 99%, 37% 99.5%, 27% 99%, 17% 99.6%, 8% 99%, .5% 99%, 1% 89%, .4% 77%, 1% 66%, .4% 54%, 1% 42%, .4% 30%, 1% 18%);
}
.paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 28px rgba(126,48,36,.05); }
.paper--title { z-index: 2; width: 80%; max-width: 20rem; padding: 1.8rem 1rem 2rem; text-align: center; transform: translate3d(0,var(--intro-lift),0) rotate(-1.5deg); opacity: var(--intro-opacity); will-change: transform, opacity; }
.seal { width: 3.6rem; height: 3.6rem; display: grid; place-items: center; margin: 0 auto 1.2rem; color: var(--red); border: 2px solid currentColor; font: 600 2.35rem/1 "Songti SC", serif; }
.kicker { margin: 0 0 .75rem; color: var(--gold); font-size: .68rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; }
.paper--title h1 { margin: 0; font: 400 clamp(2.3rem, 10vw, 2.85rem)/.94 var(--serif); letter-spacing: -.045em; text-transform: uppercase; }
.paper--note { z-index: 3; width: 74%; max-width: 18.5rem; margin: -1rem 0 2.1rem; padding: 1.15rem .8rem; text-align: center; transform: translate3d(0,var(--intro-drop),0) rotate(1.8deg); opacity: var(--intro-opacity); will-change: transform, opacity; }
.paper--note p, .paper--place p, .script { margin: 0; color: #632c31; font: italic 400 1.35rem/1.3 var(--serif); }
.scroll-open { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: #f7d2c9; text-decoration: none; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-open i { font: normal 1.25rem/1 var(--serif); animation: float-down 1.8s ease-in-out infinite; }

.invitation { gap: 1rem; padding-top: 6rem; }
.photo-pair { position: relative; z-index: 2; width: 100%; height: 20.5rem; }
.photo-card { --base-rotate: -5deg; position: absolute; margin: 0; padding: .42rem .42rem 1.55rem; background: #fff7ee; box-shadow: 0 16px 35px rgba(40,0,7,.3); }
.photo-card--portrait { left: 1%; top: 0; width: 57%; }
.photo-card--closeup { --base-rotate: 4deg; z-index: 2; right: 0; top: 5.2rem; width: 49%; }
.photo-window { display: block; width: 100%; aspect-ratio: 1 / 1.05; overflow: hidden; background: #eee; }
.photo-card--portrait .photo-window { aspect-ratio: .71; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.photo-card--closeup img { object-position: 50% 36%; }
.photo-card figcaption { display: block; margin-top: .55rem; color: #704f48; font: italic .74rem/1 var(--serif); text-align: center; }
.paper--message { --base-rotate: 2.5deg; align-self: flex-end; width: 58%; margin: -2.7rem 0 .7rem; padding: 1.15rem .7rem; text-align: center; }
.mini-seal { display: block; margin-bottom: .45rem; color: var(--red); font: 600 1.15rem/1 "Songti SC", serif; }
.paper--invitation { width: 94%; padding: 2rem 1.1rem 1.7rem; text-align: center; }
.chinese { margin: 0 0 1rem; color: #74552f; font: 400 .9rem/1.75 var(--serif); letter-spacing: .12em; }
.tiny-title { margin: 1rem 0 .5rem; color: #7c5140; font: 600 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.paper--invitation h2 { margin: 0; font: 400 2.4rem/.94 var(--serif); }
.paper--invitation h2 span, .paper--invitation h2 strong { display: block; }
.paper--invitation h2 span { color: var(--red); font: 500 .98em/1.15 "Songti SC", "STSong", serif; letter-spacing: .16em; }
.paper--invitation h2 strong { font-size: .38em; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.paper--invitation h2 i { display: block; margin: .6rem 0; color: var(--gold); font-size: .58em; font-weight: 400; }
.date-lockup { margin: 1.5rem auto .8rem; padding: 1rem 0; display: grid; grid-template-columns: 1fr 4rem 1fr; align-items: center; border-block: 1px solid rgba(170,110,40,.45); color: var(--red); }
.date-lockup span { font: 600 .65rem/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.date-lockup strong { font: 400 2.7rem/1 var(--serif); border-inline: 1px solid rgba(170,110,40,.45); }
.date-chinese { margin-bottom: 0; font-size: .78rem; }

.story { min-height: 112svh; justify-content: flex-start; gap: 1.2rem; padding-top: 8rem; }
.story::before { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at 5% 42%, rgba(245,137,143,.16), transparent 14rem); pointer-events: none; }
.story-heading { position: relative; z-index: 3; align-self: flex-start; width: 78%; margin-left: 8%; color: #fff1e8; }
.story-heading .kicker { color: #eab7a7; }
.story-heading h2 { margin: 0; font: 400 2.75rem/.98 var(--serif); letter-spacing: -.04em; }
.story-heading i { display: block; width: 3rem; margin-top: 1rem; border-top: 1px solid #e1a291; }
.memory-card { --base-rotate: 3.1deg; position: relative; z-index: 2; width: 79%; margin: 2.5rem 0 0 7%; padding: .55rem .55rem 2rem; color: #684840; background: #fff6ef; box-shadow: 0 24px 50px rgba(25,0,4,.4); }
.memory-window { aspect-ratio: .78; overflow: hidden; background: #c9c6c0; }
.memory-window img { width: 100%; height: 112%; object-fit: cover; object-position: center 47%; will-change: transform; }
.memory-card figcaption { margin: .8rem .4rem 0; font: italic 1rem/1.25 var(--serif); text-align: center; }
.paper--story-note { --base-rotate: -3deg; z-index: 3; align-self: flex-end; width: 62%; margin: -2.6rem 3% 0 0; padding: 1.1rem .8rem; text-align: center; }
.paper--story-note p { margin: 0; color: #672f34; font: italic 1.08rem/1.35 var(--serif); }

.garden { min-height: 112svh; justify-content: center; padding-block: 6.5rem; }
.garden::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 28%,rgba(239,153,153,.15),transparent 16rem); }
.garden-polaroid { --base-rotate: 1.8deg; position: relative; z-index: 2; width: 84%; margin: 0; padding: .58rem .58rem 1.65rem; color: #68413d; background: #fff6ef; box-shadow: 0 26px 58px rgba(20,0,4,.43); }
.garden-window { position: relative; aspect-ratio: .7; overflow: hidden; background: #536048; }
.garden-window::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 28px rgba(22,20,9,.12); pointer-events: none; }
.garden-window img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.garden-polaroid figcaption { display: grid; gap: .42rem; margin: .9rem .4rem 0; text-align: center; }
.garden-polaroid figcaption span { color: var(--red); font: 500 .82rem/1 var(--serif); letter-spacing: .28em; }
.garden-polaroid figcaption em { color: #68413d; font: italic 1.16rem/1.2 var(--serif); }

.sparkler { min-height: 108svh; justify-content: center; }
.sparkler-polaroid { --base-rotate: -2.6deg; position: relative; z-index: 2; width: 90%; margin: 0; padding: .58rem .58rem 1.45rem; color: #68413d; background: #fff6ef; box-shadow: 0 26px 60px rgba(20,0,4,.46); }
.sparkler-window { position: relative; aspect-ratio: .83; overflow: hidden; background: #2c2826; }
.sparkler-window::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 30px rgba(25,0,4,.14); pointer-events: none; }
.sparkler-window img { width: 100%; height: 100%; object-fit: cover; object-position: 49% center; }
.sparkler-polaroid figcaption { display: grid; gap: .45rem; margin: .85rem .35rem 0; text-align: center; }
.sparkler-polaroid figcaption span { color: var(--red); font: 500 .82rem/1 var(--serif); letter-spacing: .28em; }
.sparkler-polaroid figcaption em { font: italic 1.18rem/1.2 var(--serif); }
.sparkler-caption { z-index: 2; margin: 1.5rem 0 0; color: #ecc2b6; font-size: .63rem; letter-spacing: .2em; text-transform: uppercase; }

.schedule { gap: 1.2rem; }
.paper--schedule { width: 91%; padding: 2rem 1rem 1.2rem; text-align: center; }
.paper--schedule h2 { margin: 0; color: var(--red); font: 400 3.4rem/.95 var(--serif); letter-spacing: -.05em; }
.blessing { margin: .7rem 0 1.6rem; color: var(--gold); font-family: var(--serif); letter-spacing: .12em; }
.paper--schedule ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(170,110,40,.45); }
.paper--schedule li { display: grid; grid-template-columns: 5.4rem 1fr; gap: 1rem; align-items: center; padding: 1.15rem .25rem; text-align: left; border-bottom: 1px solid rgba(170,110,40,.38); }
.paper--schedule time { color: var(--red); border-right: 1px solid rgba(170,110,40,.38); }
.paper--schedule time strong, .paper--schedule time small { display: block; }
.paper--schedule time strong { font: 400 1.6rem/1 var(--serif); }
.paper--schedule time small { margin-top: .25rem; font-size: .62rem; letter-spacing: .15em; }
.paper--schedule li span { color: var(--gold); font-family: var(--serif); letter-spacing: .13em; }
.paper--schedule h3 { margin: .2rem 0 0; font: 400 1.2rem/1.1 var(--serif); }
.countdown { width: 88%; display: grid; grid-template-columns: repeat(3,1fr); color: #fff5ec; background: rgba(59,5,15,.86); border: 1px solid rgba(255,188,167,.25); box-shadow: 0 14px 30px rgba(30,0,5,.25); }
.countdown div { padding: .85rem .3rem; text-align: center; }
.countdown div + div { border-left: 1px solid rgba(255,188,167,.2); }
.countdown strong, .countdown span { display: block; }
.countdown strong { font: 400 1.65rem/1 var(--serif); }
.countdown span { margin-top: .3rem; color: #f1b6aa; font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; }

.venue { gap: 1rem; }
.paper--fold { width: 92%; overflow: hidden; }
.fold-mark { height: 7rem; display: grid; place-items: center; color: var(--red); border-bottom: 1px solid rgba(170,110,40,.3); font: 600 2rem/1 "Songti SC", serif; }
.venue-copy { padding: 2.2rem 1.1rem 1.6rem; text-align: center; }
.venue-copy h2 { margin: 0; color: var(--ink); font: 400 2.75rem/.95 var(--serif); }
.venue-copy h2 i { color: var(--red); font-weight: 400; }
.venue-copy address { margin: 1.4rem 0 .6rem; font: normal 400 1rem/1.7 var(--serif); }
.nearest { margin: 0 0 1.3rem; color: var(--gold); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.actions { display: grid; gap: .65rem; }
.actions a { display: flex; justify-content: space-between; padding: .9rem 1rem; color: #fff; background: var(--garnet); text-decoration: none; font-size: .84rem; font-weight: 600; }
.actions a:last-child { color: var(--garnet); background: transparent; border: 1px solid rgba(124,16,34,.35); }
.fold-bottom { height: 6rem; display: grid; place-items: center; color: var(--red); background: #f0cbc9; border-top: 1px solid rgba(170,110,40,.28); box-shadow: inset 0 15px 30px rgba(102,31,27,.06); font: 600 1.4rem/1 "Songti SC", serif; }
.paper--place { --base-rotate: 3deg; width: 67%; padding: 1rem .65rem; text-align: center; }
.paper--place p { font-size: 1.05rem; }

.keepsake { padding-bottom: max(7rem, env(safe-area-inset-bottom)); }
.paper--closing { padding: 2.6rem 1.3rem; text-align: center; }
.paper--closing h2 { margin: 0; color: var(--red); font: 400 3rem/.95 var(--serif); letter-spacing: -.04em; }
.paper--closing .script { margin: 2rem 0 .5rem; }
.paper--closing h3 { margin: 0 0 1.4rem; font: italic 400 2.1rem/1.1 var(--serif); }

:focus-visible { outline: 3px solid #f4b4bb; outline-offset: 4px; }
@keyframes float-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.45rem); } }
@keyframes music-pulse { from { height: 28%; } to { height: 100%; } }
@keyframes opening-nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(.4rem); } }
@keyframes petal-fall {
  0% { opacity: 0; transform: translate3d(0,-12vh,0) rotate(0deg) scale(.82); }
  9%, 82% { opacity: .82; }
  46% { transform: translate3d(calc(var(--petal-drift) * .72),54vh,0) rotate(calc(var(--petal-turn) * .55)) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--petal-drift),116vh,0) rotate(var(--petal-turn)) scale(.88); }
}
@keyframes floral-breathe {
  0%,100% { transform: translate3d(0,0,0) rotate(var(--floral-angle,0deg)); }
  50% { transform: translate3d(4px,-7px,0) rotate(calc(var(--floral-angle,0deg) + 1.2deg)); }
}
[data-reveal] { opacity: 0; transform: translate3d(0,2.2rem,0) rotate(var(--base-rotate, 0deg)) scale(.97); transition: opacity .75s ease, transform .9s cubic-bezier(.18,.74,.2,1); }
[data-reveal="tilt-left"] { transform: translate3d(-2rem,2.2rem,0) rotate(calc(var(--base-rotate, 0deg) - 3deg)) scale(.96); }
[data-reveal="tilt-right"] { transform: translate3d(2rem,2.2rem,0) rotate(calc(var(--base-rotate, 0deg) + 3deg)) scale(.96); }
[data-reveal="cinematic"] { transform: translate3d(0,3rem,0) scale(.9); transition-duration: 1.15s; }
[data-reveal].is-visible { opacity: 1; transform: translate3d(0,0,0) rotate(var(--base-rotate, 0deg)) scale(1); }
[data-parallax] { transform: translate3d(0,var(--parallax-y,0px),0) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: rotate(var(--base-rotate, 0deg)); }
  [data-parallax] { transform: scale(1.08); }
  .paper--title { transform: rotate(-1.5deg); opacity: 1; }
  .paper--note { transform: rotate(1.8deg); opacity: 1; }
  .opening-envelope-flap, .opening-envelope-base, .opening-letter, .opening-screen { transition-duration: .15s !important; transition-delay: 0s !important; }
}

@media (min-width: 720px) {
  .runner { width: 230px; }
  .screen { width: 430px; padding-inline: 1.2rem; }
  .paper--title { width: 80%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
