/* Palette sampled from the cover (see ART-DIRECTION.md). The title's pink-red
   is the one accent: key story moments and the reader's actions. */
:root {
  --sky: #85DCFF;
  --sky-pale: #C3E7FB;
  --snow: #F2F7FD;
  --lavender: #A9B7E8;
  --lodge: #E8855A;
  --holly: #2E7A3C;
  --pine: #2F5E46;
  --accent: #FF054F;
  --accent-deep: #D8003F;
  --plum: #4A1E31;
  --navy: #1F3A66;
  --paper: #F7F1E6;
  --cream: #EFE7D6;
  --her: #F250CF;
  --his: #5287D1;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Cabin", "Helvetica Neue", Arial, sans-serif;
  --fun: "Chewy", "Cabin", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 70px; }
body { margin: 0; background: var(--paper); color: var(--plum); font: 400 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.eyebrow { font-family: var(--fun); color: var(--accent-deep); font-size: 21px; letter-spacing: .04em; margin: 0 0 6px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* the bar floats over the story, then turns her pink over the calm sections */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: 60px; padding: 0 clamp(14px, 3vw, 34px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .4s ease, box-shadow .4s ease;
}
.bar.solid { background: var(--her); box-shadow: 0 2px 0 rgba(74,30,49,.08); }
.wordmark {
  font-family: var(--fun); color: #fff; font-size: 25px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 10px rgba(31,58,102,.35);
}
.bar nav { display: flex; align-items: center; gap: 18px; }
.skip { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; text-shadow: 0 1px 8px rgba(31,58,102,.4); }
.skip:hover { text-decoration: underline; text-underline-offset: 4px; }
.room {
  background: var(--accent); color: #fff; text-decoration: none; white-space: nowrap;
  font: 700 14px var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; box-shadow: 0 4px 0 #A1002F;
}
.room:hover { background: var(--accent-deep); }

/* ---------------- the story stage ---------------- */
.story { position: relative; height: 1500vh; background: var(--sky-pale); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.viewport { position: absolute; inset: 0; overflow: hidden; }
.scene { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
#sc-valley { opacity: 1; }
.frame { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.plate { width: 100%; height: 100%; object-fit: cover; }
.cut { position: absolute; left: 0; top: 0; height: 40%; width: auto; max-width: none; opacity: 0; transform-origin: 50% 100%; will-change: transform, opacity; }
#sc-valley .plate { will-change: filter; }

#sc-lodge .glows { position: absolute; inset: 0; }
#sc-lodge .glows b {
  position: absolute; border-radius: 3px; opacity: 0;
  background: radial-gradient(closest-side, #FFE8A8, #FFC46B 60%, rgba(255,170,80,.75));
  box-shadow: 0 0 30px 10px rgba(255,190,100,.55);
}
.sign {
  position: absolute; left: 37.4%; top: 32%; width: 23.8%; height: 11%;
  display: flex; align-items: center; justify-content: center; gap: .05em;
  font-family: var(--fun); font-size: calc(var(--fw, 1440px) * .042); letter-spacing: .02em;
}
.sign span { color: #5B3A26; transition: color .35s ease, text-shadow .35s ease; }
.sign span.lit { color: #FFE9B0; text-shadow: 0 0 .25em #FFB347, 0 0 .6em rgba(255,140,60,.9); }
.sign i { width: .35em; }

#sc-fire .smile { position: absolute; left: 55.6%; top: 39%; width: 1.8%; opacity: 0; filter: drop-shadow(0 0 4px #FFB347); }
.flicker { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(255,170,80,.22), transparent 60%); animation: flicker 2.6s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes flicker { 0% { opacity: .55; } 30% { opacity: .9; } 55% { opacity: .65; } 80% { opacity: 1; } 100% { opacity: .7; } }

#sc-window .glass { position: absolute; left: 41.4%; top: 3.9%; width: 54.7%; height: 74.2%; overflow: hidden; }
#sc-window .glass .cut { opacity: 1; left: 50%; top: auto; bottom: 0; height: 56%; transform: translateX(-50%); }
#sc-window .frost { position: absolute; inset: 0; width: 100%; height: 100%; }
#sc-window .inside { opacity: 1; }

.fog {
  position: absolute; inset: -10%; opacity: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 20% 70%, rgba(236,241,248,.95), transparent 70%),
    radial-gradient(55% 45% at 80% 60%, rgba(226,233,244,.9), transparent 70%),
    linear-gradient(to top, rgba(232,238,246,.85), rgba(200,210,226,.4) 55%, rgba(150,160,185,.35));
  animation: fogdrift 18s ease-in-out infinite alternate;
}
@keyframes fogdrift { to { transform: translateX(4%); } }
.washes { position: absolute; inset: 0; pointer-events: none; }
.wash { position: absolute; top: 0; bottom: 0; width: 50%; opacity: 0; }
.wash-l { left: 0; background: linear-gradient(90deg, rgba(242,80,207,.32), rgba(242,80,207,.06)); }
.wash-r { right: 0; background: linear-gradient(270deg, rgba(82,135,209,.36), rgba(82,135,209,.06)); }
.seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 3px dashed rgba(255,255,255,.9); opacity: 0; transform-origin: 50% 0; }
.pines { position: absolute; left: 0; bottom: -7%; width: 100%; height: auto; max-width: none; pointer-events: none; will-change: transform; }
.glow { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, #FFE2A0, #FFB25E 45%, rgba(255,150,70,0)); transform: translate(-50%, -50%) scale(0); }
.stage .snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* a gust of snow sweeps across between the opening and the story */
.gust {
  position: absolute; top: -10%; bottom: -10%; left: -40%; right: -40%; opacity: 0; pointer-events: none;
  background:
    radial-gradient(30% 45% at 30% 40%, #fff 0, rgba(255,255,255,.9) 45%, transparent 75%),
    radial-gradient(28% 40% at 55% 65%, #fff 0, rgba(250,252,255,.92) 45%, transparent 75%),
    radial-gradient(32% 50% at 75% 35%, #fff 0, rgba(245,250,255,.9) 45%, transparent 75%),
    linear-gradient(90deg, transparent 8%, rgba(255,255,255,.9) 30%, rgba(255,255,255,.95) 70%, transparent 92%);
}
.cards { position: absolute; inset: 0; pointer-events: none; }
.card {
  position: absolute; bottom: 5%; margin: 0; opacity: 0;
  background: #FFFDF8; border-radius: 6px; padding: 10px 22px 12px; text-align: center;
  box-shadow: 0 10px 0 -4px #E9DFCC, 0 18px 30px -14px rgba(74,30,49,.5);
  font: 400 clamp(20px, 2vw, 28px)/1.1 var(--serif); color: var(--plum); white-space: nowrap;
  transform: translateX(-50%);
}
.card small { display: block; font: 400 15px var(--fun); letter-spacing: .06em; color: var(--accent-deep); margin-bottom: 2px; }
.card-l { left: 19%; bottom: 9%; border-top: 5px solid var(--her); }
.card-r { left: 81%; bottom: 9%; border-top: 5px solid var(--his); }

/* the opening */
.hero {
  position: absolute; z-index: 4; left: 5vw; top: 13vh;
  width: min(560px, 42vw);
  will-change: opacity, transform;
}
.hero h1 img { width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(31,58,102,.2)); }
.tagline { margin: 10px 0 2px; font: italic 400 clamp(20px, 1.9vw, 27px)/1.25 var(--serif); color: var(--navy); text-shadow: 0 0 6px #fff, 0 0 14px #fff, 0 0 24px rgba(255,255,255,.9); }
.byline { margin: 6px 0 14px; font-family: var(--fun); color: var(--pine); font-size: clamp(22px, 2.2vw, 32px); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 0 6px #fff, 0 0 16px #fff; }
.soon { margin: 0; display: inline-block; background: rgba(255,255,255,.82); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; color: var(--navy); }
.soon a { color: var(--accent-deep); font-weight: 700; }
.hero-book { position: absolute; z-index: 4; right: 4vw; top: 50%; transform: translateY(-50%); width: clamp(320px, 32vw, 480px); height: min(80svh, 740px); margin: 0; will-change: opacity; }

/* the spinning paperback (ported from Blood Code); the flat cover shows until WebGL is ready */
.spin-book { cursor: grab; touch-action: pan-y pinch-zoom; }
.spin-book:active { cursor: grabbing; }
.spin-book::before { content: ""; position: absolute; inset: 20% 10% -2%; background: radial-gradient(ellipse 50% 40% at 50% 64%, rgba(255,214,150,.45), transparent 70%); filter: blur(18px); pointer-events: none; }
.spin-book__flat { position: absolute; inset: 0; margin: auto; height: 80%; width: auto; max-width: 90%; object-fit: contain; border-radius: 3px; box-shadow: 0 26px 50px -14px rgba(31,58,102,.5); transition: opacity .4s ease; }
.spin-book__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.spin-book__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.spin-book.is-ready .spin-book__canvas { opacity: 1; }
.spin-book.is-ready .spin-book__flat { opacity: 0; }
.spin-book__toggle {
  position: absolute; z-index: 2; right: 4px; bottom: 6px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(31,58,102,.25); border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--navy); cursor: pointer; opacity: 0; transition: opacity .3s ease;
}
.spin-book.is-ready .spin-book__toggle { opacity: 1; }
.spin-book__toggle svg { fill: currentColor; }
.spin-book__toggle .i-play, .spin-book__toggle.is-paused .i-pause { display: none; }
.spin-book__toggle.is-paused .i-play { display: inline; }

/* story lines live in the open space of each scene */
.lines { list-style: none; margin: 0; padding: 0; }
.line {
  position: absolute; z-index: 5; margin: 0; opacity: 0; visibility: hidden;
  font: 400 clamp(22px, 2.15vw, 34px)/1.3 var(--serif); color: var(--navy);
  text-shadow: 0 1px 14px rgba(255,255,255,.95), 0 0 2px rgba(255,255,255,.8);
  will-change: opacity, transform;
}
.line.split { left: 0; right: 0; top: 15vh; }
.half { position: absolute; top: 0; width: min(440px, 36vw); }
.half.her { left: 5vw; }
.half.his { right: 5vw; text-align: right; }
.l1 .half { color: var(--plum); }
.l2 { left: 50%; top: 11vh; width: min(860px, 84vw); transform: translateX(-50%); text-align: center; color: var(--navy); text-shadow: 0 0 8px #fff, 0 0 18px rgba(255,255,255,.95), 0 0 30px rgba(255,255,255,.8); }
.l2b { top: 30vh; font-size: clamp(30px, 3.4vw, 54px); }
.l2b .half { color: var(--plum); text-shadow: 0 0 8px #fff, 0 0 18px rgba(255,255,255,.95), 0 0 30px rgba(255,255,255,.8); }
.l3 { left: 50%; top: 9vh; width: min(640px, 80vw); transform: translateX(-50%); text-align: center; font-style: italic; font-size: clamp(19px, 1.7vw, 26px); color: #FBE6CC; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.l4 { left: 46vw; top: 7vh; width: min(600px, 44vw); padding: 18px 22px; border-radius: 30px; color: #fff; text-shadow: 0 2px 12px rgba(10,20,60,.9); background: radial-gradient(closest-side, rgba(14,24,62,.5), rgba(14,24,62,.25) 70%, transparent); }
.l5 { left: 50%; top: 8vh; width: min(900px, 86vw); transform: translateX(-50%); text-align: center; color: var(--navy); text-shadow: 0 0 8px #fff, 0 0 18px #fff, 0 0 32px rgba(255,255,255,.9); }
.l6 { left: 50%; top: 9vh; width: min(900px, 86vw); transform: translateX(-50%); text-align: center; color: var(--navy); }
.ornot { display: block; font-style: normal; font-family: var(--serif); color: var(--accent); font-size: clamp(64px, 9vw, 150px); line-height: 1; margin-top: .15em; text-shadow: 0 3px 0 #fff, 0 0 30px rgba(255,255,255,.9); transform-origin: 50% 0; }

.progress { position: absolute; z-index: 6; left: 0; bottom: 0; width: 100%; height: 4px; background: rgba(255,255,255,.35); }
.progress-fill { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* No script, or reduced motion: one still picture, then the story as a list. */
.story.static { height: auto; }
.story.static .stage { position: relative; height: auto; overflow: visible; }
.story.static .viewport { position: relative; height: 100svh; }
.story.static #sc-lodge, .story.static #sc-fire, .story.static #sc-window,
.story.static .washes, .story.static .cards, .story.static .glow, .story.static .fog, .story.static .progress { display: none; }
.story.static .hero { position: absolute; }
.story.static .lines { display: grid; gap: 22px; padding: 56px max(20px, 8vw) 72px; background: var(--paper); }
.story.static .line, .story.static .half { position: static; opacity: 1; visibility: visible; transform: none; width: auto; max-width: 760px; color: var(--plum); text-shadow: none; text-align: left; font-size: 23px; font-style: normal; }
.story.static .ornot { font-size: 46px; text-shadow: none; }
.story.static .l4 { background: none; padding: 0; }
.story.static .hero-book { top: 50vh; top: 50svh; }
@media (max-width: 760px) { .story.static .hero-book { top: auto; bottom: auto; top: calc(100svh - 240px); } }

/* ---------------- the 3D book: the real cover, a plain spine and back ---------------- */
.book-scene { perspective: 1800px; position: relative; padding: 18px 0 38px; }
.book-scene::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 12px; height: 26px; background: radial-gradient(closest-side, rgba(31,58,102,.35), transparent); }
.book3d {
  --w: 260px; --t: calc(var(--w) * .12); --h: calc(var(--w) * 1.596);
  position: relative; z-index: 1; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, 24deg));
  cursor: grab; touch-action: pan-y; outline: none;
}
.book3d:active { cursor: grabbing; }
.book3d:focus-visible { outline: 3px solid var(--navy); outline-offset: 10px; }
.book3d .face { position: absolute; backface-visibility: hidden; }
.book3d .front { inset: 0; transform: translateZ(calc(var(--t) / 2)); }
.book3d .front img { width: 100%; height: 100%; border-radius: 2px 6px 6px 2px; }
.book3d .front::after { content: ""; position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; background: linear-gradient(90deg, rgba(0,0,0,.2) 0, rgba(255,255,255,.2) 3%, transparent 7%); }
.book3d .back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: linear-gradient(#A9DCF6, #E6F5FD); border-radius: 6px 2px 2px 6px; display: grid; place-content: center; text-align: center; padding: 12%; font-family: var(--serif); color: var(--navy); font-size: calc(var(--w) * .07); line-height: 1.3; }
.book3d .back b { display: block; font-family: var(--fun); font-weight: 400; color: var(--accent); font-size: 1.4em; margin-bottom: .6em; }
.book3d .spine, .book3d .pages { top: 0; height: 100%; width: var(--t); left: calc(50% - var(--t) / 2); }
.book3d .spine { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: linear-gradient(90deg, #8ECBEE, #CDEBFA 50%, #8ECBEE); writing-mode: vertical-rl; display: flex; align-items: center; justify-content: space-between; padding: 10% 0; font-family: var(--fun); color: var(--accent); font-size: calc(var(--t) * .5); letter-spacing: .04em; }
.book3d .spine small { font-family: var(--sans); font-weight: 700; color: var(--pine); font-size: .7em; letter-spacing: .12em; }
.book3d .pages { transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 2px)); background: repeating-linear-gradient(90deg, #fffdf7 0 2px, #e9e4d8 2px 3px); }
.book3d .edge { left: 0; width: 100%; height: var(--t); top: calc(50% - var(--t) / 2); background: repeating-linear-gradient(0deg, #fffdf7 0 2px, #e9e4d8 2px 3px); }
.book3d .edge-top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.book3d .edge-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }

/* ---------------- the calm sections ---------------- */
.btn {
  display: inline-block; padding: 15px 26px; border-radius: 999px; text-decoration: none;
  font: 700 16px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 0 #A1002F; }
.btn-quiet { border: 2px solid var(--navy); color: var(--navy); padding: 13px 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.check-in {
  position: relative; padding: clamp(70px, 10vw, 130px) 0;
  background: radial-gradient(60% 70% at 25% 50%, rgba(255,196,107,.35), transparent 70%), var(--paper);
}
.hook-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.book-holder-big { justify-self: center; }
.book-holder-big .book3d { --w: clamp(220px, 25vw, 360px); }
.check-in h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.08; }
.chilly { color: #5C8DC4; display: block; }
.heat { color: var(--accent); display: block; }
.hook-sub { font-family: var(--fun); font-size: 26px; letter-spacing: .03em; color: var(--plum); margin: 22px 0 4px; }
.status { font: 700 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pine); margin: 0 0 24px; }
.drag-hint { margin: 20px 0 0; font-size: 15px; color: #7a6a66; }

.praise { padding: clamp(60px, 8vw, 100px) 0; background: var(--cream); }
.praise h2 { color: var(--navy); font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 34px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
blockquote { margin: 0; padding: 28px 26px; background: #FFFDF8; border-radius: 18px; border-top: 5px solid var(--sky); }
blockquote:nth-child(2) { border-top-color: var(--lavender); }
blockquote:nth-child(3) { border-top-color: var(--holly); }
blockquote p { margin: 0 0 14px; font: 400 20px/1.4 var(--serif); color: var(--plum); }
blockquote footer { font-size: 15px; font-weight: 600; color: #75625f; }

.guest-book { padding: clamp(60px, 9vw, 110px) 0; background: linear-gradient(#DCEFFB, var(--paper)); }
.ledger {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 0 auto;
  background: #FFFDF6; border-radius: 10px; border: 10px solid #6E2F43;
  box-shadow: 0 30px 50px -28px rgba(74,30,49,.6);
}
.page { padding: clamp(28px, 4vw, 50px); }
.page-l { border-right: 2px solid #E9DFCC; display: flex; flex-direction: column; justify-content: center; gap: 30px; background: linear-gradient(90deg, #FFFDF6 85%, #F1E8D6); }
.page-l span { display: block; height: 0; border-bottom: 1.5px solid #D9CDB6; }
.page-r h2 { font-size: clamp(32px, 3.6vw, 46px); color: var(--navy); margin-bottom: 12px; }
.page-r p { margin: 0 0 24px; }

.author { padding: clamp(60px, 9vw, 110px) 0; background: var(--paper); }
.author-grid { display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: center; }
.headshot { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 9px solid #fff; box-shadow: 0 0 0 4px var(--sky), 0 24px 40px -18px rgba(31,58,102,.5); }
.author h2 { color: var(--navy); font-size: clamp(34px, 4vw, 50px); margin-bottom: 14px; }
.author p { margin: 0 0 24px; }

.site-footer { background: var(--navy); color: var(--cream); text-align: center; padding: 40px 20px 46px; }
.site-footer .wordmark { text-shadow: none; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 14px 0; }
.site-footer nav a { text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; font-size: 14px; opacity: .8; }

/* Concept-preview tape. The server adds it to the page (lib/preview-notice.mjs).
   Slim and translucent at the bottom so it never takes space from the story;
   only its controls take clicks. Adapted from The Butcher of Lilies. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.preview-notice {
  position: fixed; z-index: 45; inset: auto 0 0;
  height: calc(44px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  pointer-events: none;
  background: #f3cf45ed; color: #111;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #111;
}
.preview-notice::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: repeating-linear-gradient(115deg, #111 0 12px, transparent 12px 22px);
}
.preview-tape {
  position: absolute; inset: 4px 280px auto 0; height: 39px; overflow: hidden; /* room for this font's wider button */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 25px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 25px), transparent);
}
.preview-notice[data-preview-notice="neutral"] .preview-tape { right: 64px; }
.preview-tape-track { display: flex; width: max-content; animation: preview-tape-flow 34s linear infinite; }
.preview-tape-group { display: flex; flex-shrink: 0; }
.preview-tape-group > span {
  display: flex; align-items: center; gap: 1.8rem; padding-right: 1.8rem; height: 39px; white-space: nowrap;
  font: 700 0.74rem/1 var(--serif); letter-spacing: 0.16em; text-transform: uppercase;
}
.preview-tape-group i { font-style: normal; font-size: 0.9rem; }
@keyframes preview-tape-flow { to { transform: translateX(-50%); } }
.preview-tape-controls {
  position: absolute; top: 0; right: max(12px, env(safe-area-inset-right));
  display: flex; gap: 0.5rem; align-items: center; pointer-events: auto;
}
.preview-tape-controls a, .preview-tape-pause {
  display: inline-flex; justify-content: center; gap: 0.65rem; align-items: center;
  min-height: 44px; padding: 0.4rem 0.65rem; border: 0; background: transparent; color: #111;
  text-decoration: none; font: 700 0.78rem/1 var(--serif); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.preview-tape-controls a { border-left: 1px solid #1115; }
.preview-cta-copy { display: flex; flex-direction: column; gap: 4px; }
.preview-cta-copy small { font: 500 0.66rem/1 var(--serif); letter-spacing: 0.08em; }
.preview-tape-controls a:hover, .preview-tape-pause:hover { background: #1111; }
.preview-tape-controls a:focus-visible, .preview-tape-pause:has(input:focus-visible) { outline: 2px solid #111; outline-offset: -4px; }
.preview-tape-pause { position: relative; width: 44px; }
.preview-tape-pause svg { fill: currentColor; }
.preview-tape-pause input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.preview-tape-pause .i-play, .preview-notice:has(input:checked) .i-pause { display: none; }
.preview-notice:has(input:checked) .i-play { display: inline; }
.preview-notice:has(input:checked) .preview-tape-track { animation-play-state: paused; }
/* Keep the story's progress line, the book's pause button and the footer clear of the tape. */
.has-preview-notice .progress { bottom: calc(44px + env(safe-area-inset-bottom)); }
.has-preview-notice .spin-book__toggle { bottom: 14px; }
.has-preview-notice .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

@media (min-width: 761px) {
  .hero-info {
    display: inline-block; margin-top: 12px; padding: 16px 22px 18px;
    background: rgba(255,255,255,.86); border-radius: 22px;
    box-shadow: 0 14px 30px -18px rgba(31,58,102,.45);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .hero-info .tagline { margin: 0; text-shadow: none; color: var(--navy); }
  .hero-info .byline { margin: 6px 0 12px; text-shadow: none; }
  .hero-info .soon { background: none; padding: 0; display: flex; align-items: center; gap: 12px; font-size: 16px; }
  .hero-info .soon .dot { display: none; }
  .hero-info .soon a {
    display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
    font: 700 16px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
    padding: 13px 22px; border-radius: 999px; box-shadow: 0 5px 0 #A1002F;
  }
  .hero-info .soon a:hover { background: var(--accent-deep); }
}
@media (max-width: 980px) {
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wordmark { font-size: 19px; }
  .skip { display: none; }
  .room { font-size: 12px; padding: 8px 12px; }
  .hero { left: 7vw; right: 7vw; top: 76px; width: auto; text-align: center; }
  .hero h1 img { width: min(320px, 82vw); margin: 0 auto; }
  .soon { font-size: 13px; padding: 6px 12px; }
  .hero-book { right: auto; left: 50%; top: auto; bottom: 1vh; transform: translateX(-50%); width: 220px; height: 220px; }
  .spin-book__toggle { width: 38px; height: 38px; }
  .has-preview-notice .hero-book { bottom: calc(1vh + 46px + env(safe-area-inset-bottom)); }
  .preview-tape { right: 205px; }
  .preview-notice[data-preview-notice="neutral"] .preview-tape { right: 52px; }
  .preview-tape-group > span { font-size: 0.66rem; gap: 1.2rem; padding-right: 1.2rem; }
  .preview-tape-controls { right: max(4px, env(safe-area-inset-right)); gap: 0; }
  .preview-tape-controls a { font-size: 0.7rem; padding-inline: 0.5rem; }
  .line { font-size: 19px; }
  .line.split, .l2b { top: 72px; }
  .half { position: static; width: auto; display: block; margin: 0 6vw; }
  .half.his { margin-top: 6px; }
  .l2, .l3, .l5, .l6 { top: 72px; width: 88vw; }
  .l4 { left: 6vw; top: 72px; width: 88vw; }
  .l2b { font-size: 26px; }
  .ornot { font-size: 58px; }
  .card { font-size: 17px; padding: 8px 12px 9px; }
  .card small { font-size: 12px; }
  .card-l { left: 27%; bottom: 3%; } .card-r { left: 73%; bottom: 3%; }
  #sc-window .glass .cut { left: 30%; }
  .hook-grid, .author-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hook-grid .actions { justify-content: center; }
  .headshot { width: min(240px, 70%); margin: 0 auto; }
  .ledger { grid-template-columns: 1fr; }
  .page-l { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flicker, .fog { animation: none; }
  .preview-tape-track { animation: none; }
  .preview-tape-pause { display: none; }
  .btn { transition: none; }
}
