/* Prolific Prudence: night sky above, parchment below. Brand palette and fonts
   from the style guide; everything is self-hosted. */

@font-face { font-family: "Cinzel"; font-weight: 400; font-display: swap; src: url("../fonts/cinzel-400.f5ce3a129f40.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url("../fonts/cinzel-600.0f05040eaabb.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("../fonts/cinzel-700.228136324c76.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-display: swap; src: url("../fonts/ebgaramond-400.a8ca3669b50f.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/ebgaramond-400i.6ef4f58c2571.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-display: swap; src: url("../fonts/ebgaramond-500.260fe0d2284e.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/imfell-400i.3d8780bcd359.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-400.c4a102f20b81.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-700.352860269164.woff2") format("woff2"); }

:root {
  --aubergine: #1f1131; --plum: #534056; --heather: #654e69; --brass: #9a8064;
  --pbrass: #b09477; --candle: #e0d1bf; --parch: #f7f3ec; --parch-2: #efe7da;
  --night-1: #170c25; --night-2: #2a1a3d;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
  --fell: "IM Fell English", Georgia, serif;
  --ui: "Atkinson Hyperlegible", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night-1); color: var(--aubergine); font: 400 1.18rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .02em; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--parch); color: var(--aubergine); padding: 8px 14px; border-radius: 6px; z-index: 100; font-family: var(--ui); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--pbrass); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font: 600 .82rem/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--pbrass); margin-bottom: 1rem; }
.eyebrow.dark { color: var(--brass); }
.lede { font-size: 1.3rem; color: var(--plum); }
.lede.light { color: var(--candle); }
.kicker { font: italic 1.1rem var(--fell); color: var(--brass); margin-top: -.3em; }

/* ── night sky (fixed behind everything) ───────────────────────────── */
.sky { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 80% 60% at 50% 25%, #3a2552 0%, transparent 60%),
  radial-gradient(ellipse 60% 50% at 85% 90%, #2c1c3f 0%, transparent 70%),
  linear-gradient(180deg, var(--night-2) 0%, var(--night-1) 60%, #120a1c 100%); }
.stars { position: absolute; inset: 0; overflow: hidden; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff7e8; opacity: .2; animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite; }
.star.big { width: 3px; height: 3px; box-shadow: 0 0 6px 1px rgba(255, 240, 210, .5); }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.8); } 50% { opacity: .9; transform: scale(1.15); } }

/* ── header ────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100% - 1120px) / 2)); transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease); }
.site-header.scrolled { background: rgba(23, 12, 37, .88); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(176, 148, 119, .25); padding-block: 8px; }
.brand img { width: 168px; transition: width .4s var(--ease); }
.site-header.scrolled .brand img { width: 140px; }
.site-nav { display: flex; gap: 6px; font: 600 .82rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.site-nav a { color: var(--candle); text-decoration: none; padding: 10px 14px; border-radius: 999px; position: relative; transition: color .3s; }
.site-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 1px; background: var(--pbrass); transition: left .35s var(--ease), right .35s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { left: 14px; right: 14px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(176, 148, 119, .5); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--candle); margin: auto; position: relative; transition: transform .3s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }

/* ── hero ──────────────────────────────────────────────────────────── */
.hero { min-height: calc(100svh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 16px 90px; color: var(--candle); position: relative; }
.hero-lantern { position: relative; width: min(230px, 52vw, 30svh); margin-bottom: 6px; }
.hero-emblem { position: relative; z-index: 1; animation: floaty 7s ease-in-out infinite, rise 1.6s var(--ease) both; filter: drop-shadow(0 0 18px rgba(224, 196, 150, .25)); }
.glow { position: absolute; left: 50%; top: 56%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 208, 150, .38) 0%, rgba(176, 148, 119, .16) 30%, transparent 62%); animation: breathe 5s ease-in-out infinite; }
.motes { position: absolute; inset: -20% -40%; z-index: 2; pointer-events: none; }
.mote { position: absolute; bottom: 20%; width: 4px; height: 4px; border-radius: 50%; background: #ffe6b0; box-shadow: 0 0 8px 2px rgba(255, 220, 150, .6); opacity: 0; animation: drift var(--d, 9s) linear var(--delay, 0s) infinite; }
@keyframes drift { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translate(var(--x, 20px), -260px); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-title { margin: 0; width: min(420px, 80vw, 52svh); animation: rise 1.6s .25s var(--ease) both; }
.hero-tag { font: italic clamp(1.35rem, 2.6vw, 1.8rem)/1.3 var(--fell); color: var(--pbrass); margin: 1.1rem 0 .6rem; animation: rise 1.6s .45s var(--ease) both; }
.hero-sub { max-width: 34em; color: var(--candle); opacity: .9; animation: rise 1.6s .6s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 1rem; animation: rise 1.6s .75s var(--ease) both; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(176, 148, 119, .6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--pbrass); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.btn { max-width: 100%; overflow-wrap: anywhere; display: inline-block; font: 700 .85rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 16px 26px; border-radius: 999px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.btn-brass { color: var(--aubergine); background: linear-gradient(135deg, #d9c19c, var(--pbrass) 45%, var(--brass)); box-shadow: 0 6px 24px rgba(176, 148, 119, .25); }
.btn-brass:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(224, 196, 150, .35); }
.btn-ghost { color: var(--candle); border: 1px solid rgba(224, 209, 191, .45); }
.btn-ghost:hover { background: rgba(224, 209, 191, .08); transform: translateY(-2px); }

/* ── parchment & night bands ──────────────────────────────────────── */
.parchment { background: var(--parch); position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.parchment + .parchment { padding-top: 0; }
.night { padding: clamp(70px, 10vw, 120px) 0; color: var(--candle); position: relative; }
.night h2 { color: var(--parch); }
.ornament { margin: 0 auto 18px; }
.intro .lede { font-size: 1.4rem; }

.pair-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }
.pair-card { text-align: center; padding: 34px 28px; background: #fbf8f2; border: 1px solid #e6dccb; border-radius: 18px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pair-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31, 17, 49, .08); }
.pair-card img { margin: 0 auto 14px; }
.pair-divider { display: grid; place-items: center; color: var(--brass); font-size: 1.6rem; }
.pair-divider span { animation: spinslow 18s linear infinite; display: inline-block; }
@keyframes spinslow { to { transform: rotate(360deg); } }
.pair-note { text-align: center; font: italic 1.4rem var(--fell); color: var(--heather); margin: 46px 0 0; }

.series-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.series-card { text-decoration: none; text-align: center; padding: 30px 20px; border-radius: 18px; border: 1px solid rgba(176, 148, 119, .3);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); transition: transform .4s var(--ease), border-color .4s, background .4s; }
.series-card img { margin: 0 auto 14px; transition: transform .6s var(--ease); }
.series-card h3 { color: var(--parch); }
.series-card p { color: var(--candle); opacity: .85; font-size: 1.05rem; margin: 0; }
.series-card:hover { transform: translateY(-6px); border-color: rgba(224, 196, 150, .7); background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); }
.series-card:hover img { transform: rotate(-8deg) scale(1.06); }

.hand-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.constellation { width: 100%; max-width: 300px; margin: auto; }
.constellation circle { fill: var(--brass); }
.c-line { fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .8; }
.c-line { animation: dashmove 30s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -300; } }
.text-link { font: 600 .9rem var(--display); letter-spacing: .1em; color: var(--heather); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ── inner page heroes ─────────────────────────────────────────────── */
.page-hero { text-align: center; color: var(--candle); padding: 48px 16px 70px; display: flex; flex-direction: column; align-items: center; }
.page-hero.tall { min-height: 70svh; justify-content: center; }
.page-hero h1 { color: var(--parch); font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18em; animation: rise 1.4s .15s var(--ease) both; }
.page-hero-emblem { width: 120px; margin-bottom: 18px; animation: floaty 7s ease-in-out infinite, rise 1.4s var(--ease) both; filter: drop-shadow(0 0 14px rgba(224, 196, 150, .3)); }
.page-hero .lede { max-width: 34em; animation: rise 1.4s .3s var(--ease) both; }

.prose p { font-size: 1.28rem; }
.dropcap::first-letter { float: left; font: 700 4.2rem/.82 var(--display); color: var(--heather); padding: 8px 10px 0 0; }
.symbol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 34px; }
.symbol { text-align: center; padding: 26px 18px; background: #fbf8f2; border: 1px solid #e6dccb; border-radius: 16px; }
.symbol img { margin: 0 auto 12px; }
.symbol p { font-size: 1.05rem; color: var(--plum); margin: 0; }

.book-list { display: grid; gap: 22px; }
.book { display: grid; grid-template-columns: 96px 1fr; gap: 28px; align-items: center; padding: 30px 34px; background: #fbf8f2; border: 1px solid #e6dccb; border-radius: 18px; scroll-margin-top: 100px; }
.book h2 { font-size: 1.7rem; }
.book p:last-child { margin: 0; color: var(--plum); }
.status { display: inline-block; font: 700 .7rem/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--heather); background: #ece3f0; padding: 6px 10px; border-radius: 999px; margin-bottom: 10px; }
.promise-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.promise-list li { padding: 18px 22px 18px 52px; background: #fbf8f2; border: 1px solid #e6dccb; border-radius: 14px; position: relative; }
.promise-list li::before { content: "✦"; position: absolute; left: 22px; top: 18px; color: var(--brass); }

/* ── footer ────────────────────────────────────────────────────────── */
.site-footer { color: var(--candle); text-align: center; padding: 70px 16px 40px; border-top: 1px solid rgba(176, 148, 119, .2); }
.footer-emblem { width: 70px; margin: 0 auto 12px; opacity: .9; }
.footer-tag { font: italic 1.3rem var(--fell); color: var(--pbrass); }
.footer-symbols { display: flex; gap: 12px; justify-content: center; margin: 18px 0; }
.footer-nav { font: 600 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-nav a { text-decoration: none; color: var(--candle); }
.footer-nav a:hover { color: #fff; }
.footer-nav span { color: var(--brass); }
.legal { font-size: .88rem; opacity: .6; margin-top: 26px; }


/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .series-grid, .symbol-grid { grid-template-columns: repeat(2, 1fr); }
  .hand-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hand-art { max-width: 220px; margin: auto; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; background: rgba(23, 12, 37, .97); border: 1px solid rgba(176, 148, 119, .3); border-radius: 16px; padding: 10px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px; }
  .pair-grid { grid-template-columns: 1fr; }
  .pair-divider { padding: 4px 0; }
  .book { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; }
  .book img { margin: auto; }
  body { font-size: 1.1rem; }
}
@media (max-width: 480px) { .series-grid, .symbol-grid { grid-template-columns: 1fr; } .brand img { width: 140px; } }

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

/* ── shooting stars (rare) ─────────────────────────────────────────── */
.shooting { position: fixed; z-index: 0; top: var(--y, 15%); left: var(--x, 20%); width: 140px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 244, 220, 0), rgba(255, 244, 220, .95)); border-radius: 2px; transform: rotate(var(--a, 18deg));
  filter: drop-shadow(0 0 6px rgba(255, 230, 180, .8)); opacity: 0; animation: shoot 1.4s ease-out forwards; }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 10% { opacity: 1; } 100% { opacity: 0; translate: 420px 150px; } }

/* ── Story hero: a crescent and a constellation drawing itself ──────── */
.sky-draw { width: min(460px, 86vw); margin-top: 26px; overflow: visible; }
.sky-draw .moon { fill: var(--pbrass); filter: drop-shadow(0 0 10px rgba(224, 196, 150, .45)); animation: breathe-moon 6s ease-in-out infinite; }
.sky-draw .c-draw { fill: none; stroke: var(--pbrass); stroke-width: 1.4; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 4.5s .4s var(--ease) forwards; opacity: .85; }
.sky-draw .c-stars circle { fill: #f4e6cc; opacity: 0; transform-box: fill-box; transform-origin: center; animation: starpop .6s var(--ease) forwards, twinkle 4s ease-in-out 5s infinite; }
.sky-draw .c-stars circle:nth-child(1) { animation-delay: .4s, 5s; } .sky-draw .c-stars circle:nth-child(2) { animation-delay: 1s, 5.6s; }
.sky-draw .c-stars circle:nth-child(3) { animation-delay: 1.6s, 6.2s; } .sky-draw .c-stars circle:nth-child(4) { animation-delay: 2.2s, 6.8s; }
.sky-draw .c-stars circle:nth-child(5) { animation-delay: 2.8s, 7.4s; } .sky-draw .c-stars circle:nth-child(6) { animation-delay: 3.4s, 8s; }
.sky-draw .c-stars circle:nth-child(7) { animation-delay: 4s, 8.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes starpop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes breathe-moon { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }

/* ── Books hero: a word search whose hidden word lights up ─────────── */
.ws-hero { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 28px; width: min(320px, 82vw);
  font: 700 clamp(1rem, 3.6vw, 1.3rem)/2.1 var(--ui); color: rgba(224, 209, 191, .4); }
.ws-hero span { border-radius: 999px; transition: color .6s, background .6s, box-shadow .6s; }
.ws-hero span.lit { color: var(--aubergine); background: var(--pbrass); box-shadow: 0 0 14px rgba(224, 196, 150, .45); }

/* ── Contact / 404 hero: a rising moon ─────────────────────────────── */
.moon-rise { width: 70px; height: 70px; margin: 24px auto 0; position: relative; }
.moon-disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f7ead2, #c9ae86 70%);
  box-shadow: 0 0 30px 8px rgba(242, 208, 150, .25); animation: rise 2s var(--ease) both, floaty 8s ease-in-out 2s infinite; }
.moon-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 62% 60%, rgba(154, 128, 100, .35) 0 7%, transparent 8%), radial-gradient(circle at 40% 70%, rgba(154, 128, 100, .3) 0 5%, transparent 6%), radial-gradient(circle at 55% 32%, rgba(154, 128, 100, .25) 0 4%, transparent 5%); }
.page-hero.tall .moon-rise { margin: 0 auto 22px; }

/* ── book cover mock-ups ───────────────────────────────────────────── */
.cover { margin: 0; perspective: 900px; }
.cover-book { position: relative; width: 220px; aspect-ratio: 6 / 9; transform: rotateY(-14deg); transform-style: preserve-3d; transition: transform .6s var(--ease); box-shadow: 18px 20px 30px rgba(20, 10, 30, .35); border-radius: 3px 6px 6px 3px; }
.cover:hover .cover-book, a:focus-visible .cover-book { transform: rotateY(-4deg) translateY(-4px); }
.cover-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .08) 60%, rgba(0, 0, 0, .25)); border-radius: 3px 0 0 3px; z-index: 2; }
.cover-face { position: absolute; inset: 0; border-radius: 3px 6px 6px 3px; padding: 12px 12px 12px 22px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .08), transparent 60%), var(--cover, #1f1131); }
.cover-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 245, 225, .14) 50%, transparent 60%); transform: translateX(-120%); animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.cover-frame { height: 100%; border: 1px solid rgba(176, 148, 119, .75); outline: 1px solid rgba(176, 148, 119, .35); outline-offset: -5px; border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 14px 10px; color: var(--candle); }
.cover-series { font: 600 .62rem/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--pbrass); margin: 0; }
.cover-symbol { width: 46px; height: 46px; margin: 4px 0; }
.cover-title { font: 700 1.25rem/1.15 var(--display); color: var(--parch); margin: 0; }
.cover-sub { font: italic .9rem/1.2 var(--fell); color: var(--pbrass); margin: 0; }
.cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 62px; font: 700 .62rem/1.5 var(--ui); color: rgba(224, 209, 191, .55); }
.cover-grid span:nth-child(odd) { color: var(--pbrass); }
.cover-imprint { font: 600 .5rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: rgba(224, 209, 191, .75); margin: 0; }
.cover-ribbon { position: absolute; top: -11px; right: 14px; z-index: 3; font: 700 .58rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase;
  background: var(--pbrass); color: var(--aubergine); padding: 6px 10px; border-radius: 999px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.theme-aubergine { --cover: linear-gradient(160deg, #2a1840, #1f1131 60%, #170c25); }
.theme-plum { --cover: linear-gradient(160deg, #5c4560, #3e2b44 60%, #2d1c34); }
.theme-midnight { --cover: linear-gradient(160deg, #1d2140, #151735 60%, #0e0f26); }
.theme-heather { --cover: linear-gradient(160deg, #7a6280, #654e69 55%, #4b384f); }
.cover.small .cover-book { width: 168px; }
.cover.small .cover-title { font-size: 1rem; }
.cover.small .cover-symbol { width: 36px; height: 36px; }
.cover.small .cover-grid { display: none; }

.series-covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 46px; justify-items: center; }
.series-covers a { text-decoration: none; }
.shelf { display: grid; gap: 54px; }
.shelf-item { display: grid; grid-template-columns: 240px 1fr; gap: 46px; align-items: center; scroll-margin-top: 100px; }
.shelf-item .cover { justify-self: center; }
.shelf-text h2 { font-size: 1.8rem; }
.shelf-text p { color: var(--plum); margin: 0; }
.mock-note { text-align: center; font-size: .95rem; color: var(--heather); font-style: italic; margin: 48px 0 0; }

/* ── forms ─────────────────────────────────────────────────────────── */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.letter { background: #fbf8f2; border: 1px solid #e6dccb; border-radius: 18px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 18px 50px rgba(31, 17, 49, .07); }
.letter.sent { text-align: center; }
.letter.sent img { margin: 0 auto 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font: 600 .78rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin-bottom: 8px; }
.field .opt { text-transform: none; letter-spacing: 0; font: italic .95rem var(--body); color: var(--heather); }
.field input, .field textarea, .notify-form input { width: 100%; font: 400 1.05rem/1.4 var(--ui); color: var(--aubergine); background: #fff; border: 1px solid #d8cbb6; border-radius: 10px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus, .notify-form input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 148, 119, .25); }
.field [aria-invalid="true"] { border-color: #a3364a; }
.field-error { color: #a3364a; font: .92rem/1.4 var(--ui); margin: 6px 0 0; }
.form-error { background: #f7e4e7; border: 1px solid #ebc5cc; color: #7d2638; border-radius: 10px; padding: 12px 16px; font: .95rem/1.4 var(--ui); margin-bottom: 18px; }
.form-error p { margin: 0; }
.form-ok { color: var(--candle); font: italic 1.3rem var(--fell); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fine { font-size: .95rem; color: var(--heather); margin: 0; }
.btn-ink { color: var(--parch); background: var(--aubergine); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31, 17, 49, .25); }
button.btn { border: 0; cursor: pointer; }
.notify-form { display: flex; gap: 12px; max-width: 520px; margin: 26px auto 0; }
.notify-form .btn { white-space: nowrap; flex-shrink: 0; }
.notify-form input { border-radius: 999px; padding: 14px 20px; background: rgba(255, 255, 255, .95); }
.night .form-error { margin-top: 16px; }

@media (max-width: 960px) {
  .series-covers { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}
@media (max-width: 760px) {
  .shelf-item { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .notify-form { flex-direction: column; }
  .cover-book { transform: rotateY(-8deg); }
}
@media (max-width: 420px) {
  .cover.small .cover-book { width: 140px; }
  .series-covers { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .shooting { display: none; }
  .sky-draw .c-draw { stroke-dashoffset: 0; }
  .sky-draw .c-stars circle { opacity: 1; }
}

/* ── newsletter ────────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.news-grid h2 { font-size: 1.5rem; }
.fine.gap { margin-top: 14px; }
.btn-ghost-ink { color: var(--aubergine); border: 1px solid #cdbfa8; background: transparent; }
.btn-ghost-ink:hover { background: rgba(31, 17, 49, .05); transform: translateY(-2px); }
.footer-news { max-width: 520px; margin: 22px auto 6px; }
.footer-news-label { display: block; font: italic 1.05rem var(--body); color: var(--candle); opacity: .85; margin-bottom: 10px; }
.footer-news-row { display: flex; gap: 10px; }
.footer-news-row input { flex: 1; min-width: 0; font: 400 1rem/1.4 var(--ui); color: var(--aubergine); background: rgba(255, 255, 255, .95); border: 1px solid #d8cbb6; border-radius: 999px; padding: 12px 18px; }
.footer-news-row input:focus { outline: none; box-shadow: 0 0 0 3px rgba(176, 148, 119, .35); }
.footer-news-row .btn { white-space: nowrap; padding: 12px 20px; }
@media (max-width: 760px) { .news-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .footer-news-row { flex-direction: column; } }

/* ── scroll reveals & hero depth ───────────────────────────────────────
   Only active once site.js adds .rv to <html>. Opacity arrives quickly so nothing
   reads as blank; the movement keeps settling a little longer, which is what makes
   it feel unhurried. Uses translate/scale (not transform) so hover effects still work. */
.rv [data-rv]:not(.in) { opacity: 0; }
.rv [data-rv].in { animation: rv-up 1.15s var(--rv-ease) var(--rv-delay, 0ms) both; }
.rv [data-rv="left"].in { animation-name: rv-left; }
.rv [data-rv="right"].in { animation-name: rv-right; }
.rv [data-rv="cover"].in { animation-name: rv-cover; animation-duration: 1.3s; }
.rv [data-rv="title"].in { animation-name: rv-title; animation-duration: 1.4s; }
:root { --rv-ease: cubic-bezier(.16, 1, .3, 1); }
@keyframes rv-up { 0% { opacity: 0; translate: 0 34px; filter: blur(5px); } 30% { opacity: 1; filter: blur(0); } 100% { opacity: 1; translate: 0 0; filter: none; } }
@keyframes rv-left { 0% { opacity: 0; translate: -46px 0; filter: blur(5px); } 30% { opacity: 1; filter: blur(0); } 100% { opacity: 1; translate: 0 0; filter: none; } }
@keyframes rv-right { 0% { opacity: 0; translate: 46px 0; filter: blur(5px); } 30% { opacity: 1; filter: blur(0); } 100% { opacity: 1; translate: 0 0; filter: none; } }
@keyframes rv-cover { 0% { opacity: 0; translate: 0 48px; scale: .94; } 30% { opacity: 1; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes rv-title { 0% { opacity: 0; letter-spacing: .14em; filter: blur(4px); } 30% { opacity: 1; filter: blur(0); } 100% { opacity: 1; filter: none; } }

.hero { --p: 0; overflow: clip; }
.hero-lantern { translate: 0 calc(var(--p) * 90px); }
.hero-title, .hero-tag { translate: 0 calc(var(--p) * 40px); }
.page-hero { --p: 0; overflow: clip; }
.page-hero .sky-draw, .page-hero .ws-hero { translate: 0 calc(var(--p) * 60px); }

@media print { .rv [data-rv] { opacity: 1 !important; animation: none !important; } }
