/* Keepsake: every colour comes from config.js through these tokens. */
:root {
  --wine: #6e1224;
  --wine-deep: #3a0a14;
  --gold: #b8904f;
  --gold-soft: #e6cf9f;
  --paper: #f3ead9;
  --paper-deep: #e7dac2;
  --ink: #35121a;
  --muted: #74545a;
  --tex-velvet: none;
  --tex-paper: none;
  --script: 'Imperial Script', 'Snell Roundhand', cursive;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--wine-deep); }
html.locked, html.locked body { overflow: hidden; height: 100%; }
body { margin: 0; font-family: var(--serif); color: var(--ink); background: var(--wine-deep); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.center { display: flex; justify-content: center; }
.center-text { text-align: center; }

/* ---------- opening ---------- */

.opening { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: var(--wine-deep); transition: opacity .9s ease; }
.opening.leaving { opacity: 0; pointer-events: none; }
.opening.clear { background: transparent; pointer-events: none; transition: none; }
.opening.clear .opening-blur, .opening.clear .skip-btn { display: none; }
.opening-3d, .opening-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.opening-blur { position: absolute; inset: -10%; background-size: cover; background-position: center 70%; filter: blur(60px) brightness(.34) saturate(1.2); }
.opening-video {
  position: absolute; left: 50%; top: 50%; width: var(--film-w, 100%); max-width: none; aspect-ratio: 9 / 16;
  transform: translate(-50%, -50%); object-fit: cover; transition: transform 1s var(--ease);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 2.500%, #000 97.500%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 2.500%, #000 97.500%, transparent);
  mask-composite: intersect;
}
.opening.leaving .opening-video { transform: translate(-50%, -50%) scale(var(--end-scale, 1)); }

/* The couple's initials, set in the empty oval on the lid. */
.lid-mark {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .02em;
  font-family: var(--script); line-height: .86; color: var(--gold-soft); pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 234, 190, .35), 0 -1px 1px rgba(0, 0, 0, .75), 0 2px 10px rgba(0, 0, 0, .35);
  transition: opacity .35s ease;
}
.lid-amp { font-size: .42em; opacity: .85; }
.playing .lid-mark { opacity: 0; }

.open-btn {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px;
  padding: 0 20px calc(var(--film-bottom, 0px) + clamp(16px, 3.200vh, 36px)); text-align: center; color: var(--gold-soft);
  transition: opacity .35s ease;
}
.playing .open-btn { opacity: 0; pointer-events: none; }
.cover-kicker { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.cover-names { display: block; width: max-content; font-family: var(--script); font-size: clamp(38px, 6.200vh, 58px); line-height: 1.08; white-space: nowrap; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.cover-names.two span { display: block; }
.cover-tap { margin-top: 4px; font-size: 15px; font-style: italic; animation: breathe 2.600s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .5; } }

.skip-btn {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; padding: 8px 14px; border-radius: 99px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em; color: var(--gold-soft);
  background: rgba(20, 3, 7, .45); opacity: 0; pointer-events: none; transition: opacity .4s ease .6s;
}
.playing .skip-btn { opacity: 1; pointer-events: auto; }

/* ---------- hero ---------- */

.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--wine-deep); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hero-panel { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--gold-soft); }
.hero-kicker { font-family: var(--sans); font-size: 10.500px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.800vh; max-width: 90%; opacity: 0; transition: opacity 1s ease .3s; }
.hero-names { font-family: var(--script); font-weight: 400; line-height: 1.02; display: flex; flex-direction: column; align-items: center; text-shadow: 0 2px 16px rgba(30, 4, 10, .6); }
.write { display: block; }
.write span { display: inline-block; white-space: nowrap; padding: 0 .12em; clip-path: inset(-20% 105% -20% -5%); transition: clip-path 1.500s cubic-bezier(.45, .05, .3, 1) .45s; }
.write:last-child span { transition-delay: 1.450s; }
.hero-names.wrap { line-height: .98; }
.hero-names.wrap .write span { display: block; width: min-content; margin: 0 auto; white-space: normal; text-align: center; }
.hero-and { font-family: var(--serif); font-style: italic; font-size: .34em; line-height: 1.3; opacity: 0; transition: opacity .8s ease 1.150s; }
.hero-rule { width: 56%; height: 1px; margin: 2.400vh 0 2vh; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); transform: scaleX(0); transition: transform 1.100s var(--ease) 2.300s; }
.hero-date, .hero-venue { max-width: 94%; opacity: 0; transition: opacity 1s ease 2.500s; }
.hero-date { font-size: clamp(14px, 2vh, 18px); line-height: 1.35; }
.hero-venue { margin-top: .6em; font-size: clamp(12.500px, 1.700vh, 15px); font-style: italic; opacity: 0; }
.opened .write span { clip-path: inset(-20% -5% -20% -5%); }
.opened .hero-kicker, .opened .hero-and { opacity: .9; }
.opened .hero-date { opacity: 1; }
.opened .hero-venue { opacity: .85; }
.opened .hero-rule { transform: scaleX(1); }
.hero-scroll { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); text-align: center; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); opacity: 0; transition: opacity 1s ease 3.200s; }
.hero-scroll::after { content: ''; display: block; width: 1px; height: 26px; margin: 8px auto 0; background: var(--gold-soft); transform-origin: top; animation: drip 2.200s ease-in-out infinite; }
.opened .hero-scroll { opacity: .9; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- sections ---------- */

.sec { position: relative; padding: clamp(72px, 12vh, 124px) 24px; overflow: hidden; }
.sec-in { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.paper { background-color: var(--paper); background-image: var(--tex-paper); background-size: 640px; background-blend-mode: multiply; color: var(--ink); }
.velvet { background-color: var(--wine); background-image: var(--tex-velvet); background-size: 980px; background-blend-mode: multiply; color: var(--paper); }
.velvet::before, .velvet::after { content: ''; position: absolute; left: 0; right: 0; height: 5px; border-block: 1px solid var(--gold); opacity: .55; }
.velvet::before { top: 12px; }
.velvet::after { bottom: 12px; }

.head { text-align: center; margin-bottom: clamp(32px, 6vh, 52px); }
.orn { width: 150px; height: 14px; margin: 0 auto 16px; color: var(--gold); }
.velvet .orn { color: var(--gold-soft); }
.head h2 { font-family: var(--script); font-weight: 400; font-size: clamp(50px, 13vw, 72px); line-height: 1.05; color: var(--wine); }
.velvet .head h2 { color: var(--gold-soft); }
.head p { margin-top: 10px; font-size: 16px; font-style: italic; line-height: 1.5; color: var(--muted); }
.velvet .head p { color: var(--paper); opacity: .85; }
.hint { margin-top: 18px; text-align: center; font-size: 14px; font-style: italic; color: var(--muted); }

.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 2px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .04em; text-decoration: none; text-align: center; transition: background-color .25s, color .25s, transform .25s; }
.btn:active { transform: scale(.98); }
.btn-wine { background: var(--wine); color: var(--paper); }
.btn-wine:hover { background: var(--wine-deep); }
.btn-gold { background: var(--gold-soft); color: var(--wine-deep); }
.btn-gold:hover { background: var(--paper); }
.btn-line { border: 1px solid var(--wine); color: var(--wine); }
.btn-line:hover { background: var(--wine); color: var(--paper); }
.btn-ghost { border: 1px solid var(--gold-soft); color: var(--gold-soft); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--wine-deep); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.wide { width: 100%; }
.wide-sm { min-width: 220px; margin-top: 8px; }
.linkish { font-size: 14px; font-style: italic; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; padding: 8px; }

/* ---------- the letter in the petals ---------- */

.pouch-stage { position: relative; width: min(100%, 400px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pouch { position: relative; z-index: 2; width: 100%; height: auto; margin-top: -64px; pointer-events: none; filter: drop-shadow(0 18px 22px rgba(53, 18, 26, .32)); }
.letter { position: relative; z-index: 1; width: 86%; perspective: 1400px; transform: translateY(var(--y, 0)); will-change: transform; color: var(--ink); }
.letter:disabled { cursor: default; }
.flip { position: relative; display: grid; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.3, .8, .25, 1); }
.flipped .flip { transform: rotateY(180deg); }
.flip-face { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-color: #fbf5e9; background-image: var(--tex-paper); background-size: 500px; background-blend-mode: multiply; box-shadow: 0 8px 26px rgba(53, 18, 26, .22); outline: 1px solid var(--gold); outline-offset: -9px; }
.flip-front { padding: 34px 26px 72px; min-height: 340px; text-align: center; gap: 14px; }
.flip-back { transform: rotateY(180deg); padding: 16px 16px 72px; justify-content: flex-start; gap: 10px; overflow: hidden; }
.flip-back img { width: 100%; flex: 1 1 0; min-height: 0; object-fit: cover; }
.flip-back span { font-family: var(--script); font-size: 28px; color: var(--wine); }
.letter-greet { font-family: var(--script); font-size: 32px; line-height: 1.15; color: var(--wine); }
.letter-body { font-size: 16.500px; line-height: 1.6; }
.letter-sign { font-size: 14px; font-style: italic; color: var(--muted); }
.letter-sign em { display: block; margin-top: 2px; font-family: var(--script); font-style: normal; font-size: 30px; color: var(--wine); }
.letter-thanks { font-family: var(--script); font-size: 54px; line-height: 1.05; color: var(--wine); }
.thanks .flip-front { min-height: 260px; }
.thanks-sign { margin-top: 26px; text-align: center; font-size: 16px; font-style: italic; color: var(--muted); }

/* ---------- brush the date ---------- */

.scratch { position: relative; width: min(100%, 420px); aspect-ratio: 5 / 4; margin: 0 auto; background: var(--paper); box-shadow: 0 16px 40px rgba(20, 3, 7, .4); }
.scratch-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); outline: 1px solid var(--gold); outline-offset: -10px; text-align: center; }
.sc-weekday { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.sc-day { font-size: clamp(72px, 22vw, 104px); line-height: 1.05; color: var(--wine); }
.sc-month { font-family: var(--script); font-size: clamp(32px, 9vw, 42px); line-height: 1.1; color: var(--wine); }
.sc-time { margin-top: 4px; font-size: 14px; font-style: italic; color: var(--muted); }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; cursor: grab; touch-action: pan-y; transition: opacity .7s ease; }
.scratch.is-open canvas { opacity: 0; pointer-events: none; }
.scratch + .sr + .center { margin-top: 16px; color: var(--gold-soft); }

/* ---------- calendar ---------- */

.cal { width: min(100%, 420px); margin: 0 auto 24px; padding: 28px 22px 26px; background: #fbf5e9; outline: 1px solid var(--gold); outline-offset: -8px; box-shadow: 0 12px 34px rgba(53, 18, 26, .14); text-align: center; }
.cal-top { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 14px; }
.cal-month { font-family: var(--script); font-size: 38px; line-height: 1.1; color: var(--wine); }
.cal-year { font-size: 14px; color: var(--muted); font-variant-numeric: lining-nums; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 36px; align-items: center; font-size: 14px; font-variant-numeric: lining-nums; }
.cal-grid.turn { animation: turn .34s var(--ease); }
@keyframes turn { from { opacity: .15; transform: translateY(8px); } }
.cal-wd { grid-auto-rows: 24px; font-family: var(--sans); font-size: 10.500px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.is-day { position: relative; color: var(--wine); }
.is-day b { position: relative; font-weight: 400; transition: color .4s ease .5s; }
.is-day svg { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%) rotate(-90deg); overflow: visible; }
.is-day circle { fill: var(--wine); fill-opacity: 0; stroke: var(--gold); stroke-width: 1.500; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease), fill-opacity .4s ease .5s; }
.landed .is-day circle { stroke-dashoffset: 0; fill-opacity: 1; }
.landed .is-day b { color: var(--paper); }
.cal-line { margin-top: 12px; font-size: 14.500px; font-style: italic; color: var(--muted); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--paper-deep); }
.count b { display: block; font-weight: 400; font-size: 27px; line-height: 1.15; color: var(--wine); font-variant-numeric: lining-nums tabular-nums; }
.count span { font-family: var(--sans); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.count-msg { margin-top: 16px; font-size: 18px; font-style: italic; color: var(--wine); }

/* ---------- programme: gold thread ---------- */

.thread { position: relative; padding: 8px 0 28px; }
.thread-svg { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; }
.thread-ghost, .thread-gold { fill: none; stroke-linecap: round; }
.thread-ghost { stroke: var(--gold-soft); stroke-width: 1; opacity: .22; }
.thread-gold { stroke: var(--gold-soft); stroke-width: 1.600; }
.moms { position: relative; display: flex; flex-direction: column; gap: 66px; }
.mom { display: flex; align-items: center; gap: 16px; min-height: 84px; }
.mom-r { flex-direction: row-reverse; text-align: right; }
.mom-l { padding-left: 5%; }
.mom-r { padding-right: 5%; }
.mom-node { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--gold-soft); background: var(--wine-deep); color: var(--gold-soft); transition: background-color .5s ease, color .5s ease, transform .6s var(--ease); }
.ico { width: 26px; height: 26px; }
.mom.lit .mom-node { background: var(--gold-soft); color: var(--wine-deep); transform: scale(1.06); }
.mom-text { min-width: 0; flex: 1; opacity: .45; transform: translateY(6px); transition: opacity .6s ease, transform .7s var(--ease); }
.mom.lit .mom-text { opacity: 1; transform: none; }
.mom-text time { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--gold-soft); }
.mom-text strong { display: block; margin-top: 3px; font-weight: 400; font-size: 20px; line-height: 1.25; }
.mom-text span { display: block; margin-top: 3px; font-size: 14px; font-style: italic; opacity: .8; }

/* ---------- venue ---------- */

.arch { width: min(78%, 320px); aspect-ratio: 3 / 4; margin: 0 auto 28px; padding: 7px; border: 1px solid var(--gold); border-radius: 999px 999px 0 0; }
.arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.arch-dark { border-color: var(--gold-soft); margin-bottom: 0; }
.venue-name { font-weight: 400; font-size: clamp(26px, 7vw, 34px); line-height: 1.2; text-align: center; color: var(--wine); }
.venue-addr { margin-top: 8px; font-size: 16px; line-height: 1.5; text-align: center; }
.venue-when { margin: 6px 0 24px; font-size: 14.500px; font-style: italic; text-align: center; color: var(--muted); }
.map { margin-top: 28px; border: 1px solid var(--gold); padding: 6px; }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; margin-top: 32px; text-align: center; }
.how .ico { margin: 0 auto 8px; color: var(--wine); }
.how strong { display: block; font-weight: 400; font-size: 18px; color: var(--wine); }
.how p { margin-top: 5px; font-size: 14.500px; line-height: 1.55; color: var(--muted); }
.how-dark strong { color: var(--gold-soft); }
.how-dark p { color: var(--paper); opacity: .85; }

/* ---------- dress ---------- */

.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 14px; }
.swatches li { width: 74px; text-align: center; font-size: 12.500px; line-height: 1.3; }
.swatches i { display: block; width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; border: 1px solid var(--gold-soft); box-shadow: 0 0 0 3px rgba(0, 0, 0, .14); }

/* ---------- good to know ---------- */

.notes-sec { padding-inline: 0; }
.notes-sec .head { padding-inline: 24px; }
.notes-sec .sec-in { max-width: 980px; }
.notes { display: flex; gap: 14px; overflow-x: auto; padding: 8px max(24px, calc(50% - 140px)) 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.notes::-webkit-scrollbar { display: none; }
.note { position: relative; flex: 0 0 min(78vw, 280px); scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 22px 36px; min-height: 300px; text-align: center; background: #fbf5e9; outline: 1px solid var(--gold); outline-offset: -7px; box-shadow: 0 8px 24px rgba(53, 18, 26, .12); }
.note .ico { width: 30px; height: 30px; color: var(--wine); }
.note h3 { font-weight: 400; font-size: 21px; line-height: 1.25; color: var(--wine); }
.note p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.note .linkish { color: var(--wine); }
.note-num { position: absolute; bottom: 15px; left: 0; right: 0; font-family: var(--sans); font-size: 10.500px; letter-spacing: .1em; color: var(--muted); }
.note-dots { display: flex; justify-content: center; gap: 8px; }
.note-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .35; transition: opacity .3s, transform .3s; }
.note-dots i.on { opacity: 1; transform: scale(1.3); }

/* ---------- reply form ---------- */

.form { display: flex; flex-direction: column; gap: 24px; width: min(100%, 460px); margin: 0 auto; }
.extra { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .fs legend, .stepper-row > span { font-size: 16px; line-height: 1.35; color: var(--gold-soft); }
.fs legend { margin-bottom: 10px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; font-family: var(--serif); font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid transparent; border-radius: 2px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.field input[aria-invalid='true'] { border-color: #ffb7a8; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills.stack { flex-direction: column; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill span { display: flex; align-items: center; min-height: 44px; padding: 10px 16px; font-size: 15px; line-height: 1.3; border: 1px solid var(--gold-soft); border-radius: 2px; color: var(--paper); transition: background-color .2s, color .2s; }
.pill input:checked + span { background: var(--gold-soft); color: var(--wine-deep); }
.pill input:focus-visible + span { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.stepper-row { flex-direction: row; align-items: center; justify-content: space-between; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 44px; height: 44px; border: 1px solid var(--gold-soft); border-radius: 50%; font-size: 20px; color: var(--gold-soft); }
.stepper output { min-width: 22px; text-align: center; font-size: 18px; font-variant-numeric: lining-nums; }
.err { font-family: var(--sans); font-size: 13px; color: #ffcabd; margin-top: 6px; }
.help { font-size: 13.500px; font-style: italic; color: var(--paper); opacity: .78; }
.done { outline: 0; text-align: center; }
.ticket { width: min(100%, 360px); margin: 0 auto 22px; padding: 30px 24px; color: var(--gold-soft); border: 1px solid var(--gold-soft); outline: 1px solid var(--gold-soft); outline-offset: -7px; background: rgba(20, 3, 7, .3); }
.ticket-kicker { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.ticket-name { margin: 10px 0 18px; font-family: var(--script); font-size: 44px; line-height: 1.1; overflow-wrap: anywhere; }
.ticket dl { display: grid; gap: 10px; padding: 16px 0; border-block: 1px solid rgba(230, 207, 159, .4); }
.ticket dt { font-family: var(--sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.ticket dd { font-size: 16px; }
.ticket-foot { margin-top: 16px; font-family: var(--script); font-size: 28px; }
.done-msg { margin-bottom: 18px; font-family: var(--script); font-size: 40px; line-height: 1.1; color: var(--gold-soft); }
.done-msg.plain { font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.45; }

/* ---------- questions ---------- */

.faq { border-top: 1px solid var(--gold); }
.faq details { border-bottom: 1px solid var(--gold); }
.faq summary { position: relative; padding: 18px 34px 18px 0; font-size: 18px; line-height: 1.35; color: var(--wine); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 8px 20px 0; font-size: 15.500px; line-height: 1.6; color: var(--muted); }

/* ---------- closing ---------- */

.closing .sec-in { text-align: center; }
.end-pic { position: relative; margin-bottom: 66px; }
.end-seal { margin-bottom: 26px; }
.seal { display: block; position: relative; width: 112px; height: 112px; margin: 0 auto; }
.end-pic .seal { position: absolute; left: 50%; bottom: -54px; transform: translateX(-50%); }
.seal img { width: 100%; height: 100%; filter: drop-shadow(0 8px 12px rgba(20, 3, 7, .5)); }
.seal b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .02em; font-family: var(--script); font-weight: 400; font-size: 36px; line-height: 1; color: var(--wine-deep); text-shadow: 0 1px 0 rgba(255, 190, 180, .3), 0 -1px 1px rgba(0, 0, 0, .55); }
.seal i { font-style: normal; }
.closing h2 { font-family: var(--script); font-weight: 400; font-size: clamp(54px, 14vw, 78px); line-height: 1.05; color: var(--gold-soft); }
.closing-names { margin-top: 10px; font-size: 22px; }
.closing-date { margin-top: 8px; font-size: 16px; }
.closing-venue { margin-top: 4px; font-size: 15px; font-style: italic; opacity: .85; }

/* ---------- floating bits ---------- */

.reply-dock { position: fixed; z-index: 20; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); padding: 13px 24px; border-radius: 99px; white-space: nowrap; font-family: var(--sans); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--wine-deep); background: var(--gold-soft); box-shadow: 0 8px 26px rgba(20, 3, 7, .4); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .4s ease, transform .4s var(--ease); }
.reply-dock.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.music-btn { position: fixed; z-index: 20; top: max(14px, env(safe-area-inset-top)); right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--gold-soft); background: rgba(20, 3, 7, .55); }
.music-btn:not(.on) svg { opacity: .55; }
.burst { position: fixed; inset: 0; z-index: 30; width: 100%; height: 100%; max-width: none; pointer-events: none; display: none; }

@media (min-width: 900px) {
  .notes { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; overflow: visible; padding-inline: 24px; }
  .notes-sec .head p, .note-dots { display: none; }
}

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