/* starter-book: literary editorial look. Ink-teal cover colour, fog paper, one gold accent drawn from the cover. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); }

:root {
  --ink: #0b2527;
  --ink-2: #123a3b;
  --ink-3: #1c4d4d;
  --chalk: #eae7dc;
  --fog: #eceee9;
  --paper: #f7f8f5;
  --text: #0b2527;
  --muted: #475d5d;
  --line: #c4cdc8;
  --gold: #e9b84a;
  --gold-ink: #6e5000;
  --focus: #0a6a6a;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--fog); color: var(--text); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.bar--ink :focus-visible, .hero :focus-visible, .sec--ink :focus-visible, .foot :focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
code { font: .9em ui-monospace, "SF Mono", Menlo, monospace; background: rgba(11, 37, 39, .07); padding: .1em .35em; border-radius: 4px; }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 450; letter-spacing: -.015em; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .6em; }
h3 { font-size: 1.35rem; line-height: 1.2; }
.prose p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; margin: 0 0 1em; max-width: 62ch; }
.prose .lede { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.45; font-weight: 420; }
.page-title { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 28px 0 14px; }
.tag { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .02em; padding: .32em .6em; border-radius: 999px; background: rgba(11, 37, 39, .08); color: var(--muted); vertical-align: .15em; white-space: nowrap; }
.note { font-size: .92rem; color: var(--muted); max-width: 62ch; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: .92rem; }
.btn--wide { width: 100%; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #f4cb6a; }
.btn--ink { background: var(--ink); color: var(--chalk); }
.btn--ink:hover { background: var(--ink-3); }
.btn--ghost { border-color: rgba(234, 231, 220, .5); color: var(--chalk); }
.btn--ghost:hover { border-color: var(--chalk); background: rgba(234, 231, 220, .08); }
.btn--ghost-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost-ink:hover { background: var(--ink); color: var(--chalk); }

/* ---- header ---- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--fog); border-bottom: 1px solid var(--line); }
.bar--ink { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; color: var(--chalk); }
.bar__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.mark { font: italic 500 1.25rem/1 var(--serif); text-decoration: none; margin-right: auto; padding: 12px 0; }
.bar__nav { display: none; }
.bar__nav ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.bar__nav ul { display: flex; gap: 6px; }
.bar__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: .95rem; border-radius: 8px; }
.bar__nav a:hover, .bar__nav a[aria-current] { text-decoration: underline; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; font-weight: 500; font-size: .95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: 48px; min-width: 200px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px rgba(11, 37, 39, .18); }
.menu li a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; border-radius: 8px; }
.menu li a:hover { background: var(--fog); }
@media (min-width: 860px) { .bar__nav { display: block; } .menu { display: none; } .bar__in { gap: 10px; } .mark { margin-right: auto; } }

/* ---- hero ---- */
.hero { position: relative; background: radial-gradient(120% 90% at 78% 40%, var(--ink-3) 0%, var(--ink-2) 38%, var(--ink) 100%); color: var(--chalk); padding: 108px 0 56px; overflow: hidden; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__book { order: -1; display: flex; justify-content: center; }
.hero__title { font-weight: 380; font-size: clamp(3.4rem, 15vw, 8rem); line-height: .92; letter-spacing: -.03em; margin: 0; }
.hero__title span { display: block; }
.hero__title span:last-child { font-weight: 520; }
.hero__by { font: italic 400 1.2rem/1.3 var(--serif); margin: 14px 0 0; color: rgba(234, 231, 220, .82); }
.hero__hook { font: 400 clamp(1.25rem, 3.4vw, 1.6rem)/1.4 var(--serif); margin: 20px 0 28px; max-width: 30ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.launch { margin-top: 36px; min-height: 108px; }
.launch__line { margin: 0 0 12px; color: rgba(234, 231, 220, .82); font-size: .98rem; }
.count { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.count li { display: flex; flex-direction: column; align-items: flex-start; min-width: 62px; padding: 10px 12px 8px; border-left: 2px solid var(--gold); }
.count b { font: 500 2rem/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; min-width: 2ch; }
.count span { font-size: .78rem; color: rgba(234, 231, 220, .75); margin-top: 4px; }
.outnow { font: italic 500 2.2rem/1 var(--serif); color: var(--gold); margin: 0 0 8px; }
@media (min-width: 860px) {
  .hero { padding: 136px 0 88px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero__book { order: 0; }
}
@media (max-width: 859px) { .hero__title span { display: inline; } .hero__title { font-size: clamp(3rem, 14vw, 4.4rem); line-height: 1; } }

/* ---- 3D book ---- */
.stage { --w: 190px; --d: 30px; position: relative; width: var(--w); aspect-ratio: 2 / 3; perspective: 1400px; transform: translate3d(0, var(--py, 0px), 0); }
.book { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, 24deg)); transition: transform .35s var(--ease); }
.book > * { position: absolute; }
.book__face { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: inset 4px 0 6px -2px rgba(255, 255, 255, .18), inset -2px 0 4px rgba(0, 0, 0, .25); background: var(--ink); }
.book__face svg { width: 100%; height: 100%; }
.book__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 22%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .22) 100%); pointer-events: none; }
.book__spine { top: 0; left: 0; width: var(--d); height: 100%; background: linear-gradient(90deg, #07191b, var(--ink-2)); transform: translateX(calc(var(--d) / -2)) rotateY(-90deg); transform-origin: center; }
.book__pages { top: 3px; right: 0; width: var(--d); height: calc(100% - 6px); background: repeating-linear-gradient(90deg, #e9e6da 0 1px, #cfcbbc 1px 2px); transform: translateX(calc(var(--d) / 2)) rotateY(90deg); transform-origin: center; }
.book__back { inset: 0; background: var(--ink); transform: translateZ(calc(var(--d) / -2)); }
.stage__shadow { position: absolute; left: 6%; right: -10%; bottom: -34px; height: 40px; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); filter: blur(6px); transform: rotate(-3deg); z-index: -1; }
@media (min-width: 860px) { .stage { --w: min(340px, 30vw); --d: 44px; } }
@media (prefers-reduced-motion: no-preference) {
  .stage { animation: book-in 1.2s var(--ease) both; }
  @keyframes book-in { from { transform: translate3d(0, 26px, 0) rotateZ(-4deg); } to { transform: translate3d(0, var(--py, 0px), 0) rotateZ(0); } }
  .book { animation: book-turn 1.5s var(--ease) both; }
  @keyframes book-turn { from { transform: rotateX(8deg) rotateY(66deg); } to { transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, 24deg)); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .book { transition: none; } * { animation: none !important; } }

/* ---- sections ---- */
.sec { padding: clamp(64px, 10vw, 120px) 0; }
.sec--tint { background: #e1e6e1; }
.sec--ink { background: var(--ink); color: var(--chalk); }
.two { display: grid; gap: 40px; }
.facts { align-self: start; border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 24px; }
.facts h3 { margin-bottom: 12px; }
.facts dl { margin: 0; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.inside { margin-top: clamp(48px, 7vw, 80px); }
.h-inside { margin-bottom: 20px; }
.chapters { list-style: none; counter-reset: ch; margin: 0; padding: 0; display: grid; gap: 0 48px; }
.chapters li { counter-increment: ch; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.chapters li::before { content: counter(ch); grid-row: span 2; font: 400 1.1rem/1.3 var(--serif); font-variant-numeric: lining-nums; color: var(--gold-ink); }
.ch__t { font: 500 1.2rem/1.3 var(--serif); }
.ch__l { color: var(--muted); font-size: .95rem; }
@media (min-width: 860px) { .two { grid-template-columns: 1.5fr 1fr; gap: 72px; } .chapters { grid-template-columns: 1fr 1fr; } }

.fmts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fmt { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.fmt__n { font-size: 1.5rem; }
.fmt__d { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.fmt__p { font: 500 1.8rem/1 var(--serif); margin: 0; font-variant-numeric: lining-nums; }
.fmt .btn { grid-column: 1 / -1; }
.shops { margin-top: 36px; }
.shops h3 { font-size: 1.1rem; margin-bottom: 10px; }
.shops ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.shop--soon { color: var(--muted); }
@media (min-width: 860px) { .fmts { grid-template-columns: repeat(3, 1fr); } .fmt { grid-template-columns: 1fr; align-content: space-between; gap: 18px; padding: 28px; } .fmt__p { font-size: 2.4rem; } }

.sample { display: grid; gap: 36px; align-items: center; }
.sample__side p { font-size: 1.1rem; color: var(--muted); max-width: 40ch; margin: 0 0 24px; }
.sample__page { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 4px 14px 14px 4px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 1px 0 var(--line), 12px 14px 0 -2px #d9dfd9; max-height: 16.5rem; overflow: hidden; }
.sample__page p { margin: 0; font: 400 1.3rem/1.65 var(--serif); }
.sample__page p::first-letter { font: 500 3.6rem/.8 var(--serif); float: left; padding: .06em .1em 0 0; color: var(--ink); }
.sample__page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to bottom, rgba(247, 248, 245, 0), var(--paper) 85%); }
@media (min-width: 860px) { .sample { grid-template-columns: 1fr 1.2fr; gap: 72px; } }

.author { display: grid; gap: 36px; align-items: start; }
.author__art { max-width: 300px; border-radius: 4px; overflow: hidden; }
.author__tag { font: italic 400 1.35rem/1.4 var(--serif); color: var(--muted); max-width: 34ch; margin: 0 0 24px; }
@media (min-width: 860px) { .author { grid-template-columns: 340px 1fr; gap: 80px; } .author__art { max-width: none; } }

.empty { border: 1.5px dashed #9aa9a4; border-radius: 14px; padding: 36px clamp(20px, 4vw, 40px); background: rgba(247, 248, 245, .6); }
.empty__t { font: 450 1.6rem/1.25 var(--serif); margin: 0 0 8px; }
.empty__d { margin: 0; color: var(--muted); }
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.quotes blockquote { margin: 0; font: italic 400 1.4rem/1.5 var(--serif); }
.quotes footer { font: 500 .95rem var(--sans); font-style: normal; margin-top: 8px; color: var(--muted); }

.events { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 78px 1fr; gap: 6px 18px; align-items: center; padding: 18px 0; border-top: 1px solid #aebbb5; }
.event:last-child { border-bottom: 1px solid #aebbb5; }
.event__date { display: flex; flex-direction: column; }
.event__d { font: 500 2.2rem/1 var(--serif); font-variant-numeric: lining-nums; }
.event__m { font-size: .82rem; color: var(--muted); }
.event__t { font-size: 1.3rem; }
.event__p { margin: 3px 0 0; color: var(--muted); }
.event .tag { grid-column: 2; justify-self: start; }
@media (min-width: 700px) { .event { grid-template-columns: 110px 1fr auto; } .event .tag { grid-column: auto; } }

.news { display: grid; gap: 28px; align-items: center; }
.news h2 { margin-bottom: .3em; }
.news p { color: rgba(234, 231, 220, .82); font-size: 1.1rem; max-width: 42ch; margin: 0; }
.signup label { display: block; font-weight: 600; margin-bottom: 8px; }
.signup__row { display: flex; flex-direction: column; gap: 10px; }
input[type=text], input[type=email], input[type=number], textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #8ea09a; border-radius: 10px; }
textarea { resize: vertical; }
input[aria-invalid=true] { border-color: #a4262c; }
.msg { min-height: 1.4em; margin: 10px 0 0 !important; font-size: .95rem !important; }
.msg--bad { color: #ffb4a8 !important; }
.msg--ok { color: var(--gold) !important; }
.plain .msg--bad { color: #a4262c !important; }
.plain .msg--ok { color: #14624a !important; }
.payload { margin-top: 14px; border: 1px solid rgba(234, 231, 220, .3); border-radius: 12px; padding: 14px 16px; background: rgba(0, 0, 0, .2); }
.payload__t { font-size: .92rem !important; margin: 0 0 8px !important; color: var(--gold) !important; }
.payload pre { margin: 0; font: .82rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.plain .payload { border-color: var(--line); background: var(--paper); }
.plain .payload__t { color: var(--gold-ink) !important; }
@media (min-width: 860px) { .news { grid-template-columns: 1fr 1fr; gap: 72px; } .signup__row { flex-direction: row; } .signup__row input { flex: 1; } }

.faq { display: grid; gap: 24px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; font: 450 1.3rem/1.3 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 300 1.8rem/1 var(--sans); color: var(--gold-ink); transition: transform .25s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0 0 18px; max-width: 60ch; color: var(--muted); }
@media (min-width: 860px) { .faq { grid-template-columns: 1fr 1.6fr; gap: 72px; } }

.foot { background: var(--ink); color: var(--chalk); padding: 56px 0 40px; }
.foot__in { display: grid; gap: 32px; }
.foot__title { font: italic 500 1.8rem/1.1 var(--serif); margin: 0 0 10px; }
.foot p { margin: 0 0 6px; }
.foot__small { font-size: .85rem; color: rgba(234, 231, 220, .7); max-width: 56ch; }
.foot__links { list-style: none; margin: 0; padding: 0; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 860px) { .foot__in { grid-template-columns: 1.6fr 1fr; } }

/* ---- plain pages: checkout, press, 404 ---- */
.plain main { padding-bottom: 72px; min-height: 60vh; }
.testbanner { background: #fff3cf; border: 1.5px solid var(--gold); color: #3d2e00; border-radius: 10px; padding: 12px 16px; margin: 0 0 28px; font-size: .98rem; }
.co__grid { display: grid; gap: 28px; }
.fs { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.fs legend { font: 450 1.35rem/1.2 var(--serif); margin-bottom: 14px; padding: 0; }
.opts { display: grid; gap: 10px; }
.opt { display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__in { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); min-height: 64px; transition: border-color .2s, background-color .2s; }
.opt__n { font: 500 1.15rem/1.2 var(--serif); }
.opt__p { grid-row: span 2; align-self: center; font: 500 1.3rem var(--serif); }
.opt__d { color: var(--muted); font-size: .9rem; }
.opt input:checked + .opt__in { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + .opt__in { outline: 3px solid var(--focus); outline-offset: 3px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #8ea09a; border-radius: 999px; background: #fff; overflow: hidden; }
.qty__b { width: 48px; height: 48px; border: 0; background: transparent; font: 400 1.5rem/1 var(--sans); cursor: pointer; color: var(--ink); }
.qty__b:hover { background: var(--fog); }
.qty input { width: 64px; min-height: 48px; border: 0; text-align: center; border-radius: 0; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field-row { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.err { color: #a4262c; font-size: .9rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.co__sum { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; align-self: start; }
.co__sum h2 { font-size: 1.6rem; margin-bottom: 12px; }
.sum { margin: 0; }
.sum div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.sum__total dt, .sum__total dd { color: var(--ink); font: 500 1.4rem/1.2 var(--serif); }
.confirm { padding-top: 8px; }
.receipt { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 36px); max-width: 640px; }
.receipt h2 { margin-bottom: 8px; }
.confirm__no { margin: 0 0 12px; }
.confirm__who { color: var(--muted); margin: 14px 0 0; }
.payload--open { max-width: 640px; margin-top: 20px; }
.confirm__cta, .nf__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 860px) { .co__grid { grid-template-columns: 1.4fr 1fr; gap: 56px; } .co__sum { position: sticky; top: 92px; } .opts { grid-template-columns: repeat(3, 1fr); } .opt__in { grid-template-columns: 1fr; } .opt__p { grid-row: auto; } }

.pk section { margin-top: 56px; }
.pk h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.pk__lede { font: 400 1.3rem/1.5 var(--serif); max-width: 54ch; color: var(--muted); }
.copy { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; }
.copy__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.copy__h h3 { font-size: 1.2rem; }
.copy__t p { font: 400 1.1rem/1.6 var(--serif); margin: 0 0 .8em; max-width: 68ch; }
.copy__n { margin: 0; font-size: .85rem; color: var(--muted); }
.facts-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts-table th, .facts-table td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.facts-table tr:first-child > * { border-top: 0; }
.facts-table th { width: 40%; font-weight: 500; color: var(--muted); }
.dls { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dl { display: flex; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.dl__img { flex: none; width: 80px; display: flex; justify-content: center; }
.dl__img img { width: auto; max-height: 120px; border-radius: 3px; }
.dl h3 { font-size: 1.15rem; margin-bottom: 4px; }
.dl p { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
@media (min-width: 760px) { .dls { grid-template-columns: 1fr 1fr; } }
.nf { padding-top: 24px; }

/* ---- reader ---- */
.reader { --bg: #f8f9f6; --fg: #14201f; --mut: #55696a; --rule: #d3dbd6; --chipbg: #e7ebe6; --rs: 1.2rem; background: var(--bg); color: var(--fg); }
html[data-theme="sepia"] .reader, html[data-theme="sepia"] { --bg: #f2e8d2; --fg: #3b2f1d; --mut: #6d5a3d; --rule: #d9c9a6; --chipbg: #e8dbbd; }
html[data-theme="dark"] .reader, html[data-theme="dark"] { --bg: #101b1b; --fg: #d8dccf; --mut: #93a39f; --rule: #263634; --chipbg: #1b2b2b; }
html[data-theme="sepia"] body.reader { background: #f2e8d2; }
html[data-theme="dark"] body.reader { background: #101b1b; }
html[data-size="0"] .reader { --rs: 1.02rem; } html[data-size="1"] .reader { --rs: 1.12rem; } html[data-size="2"] .reader { --rs: 1.22rem; } html[data-size="3"] .reader { --rs: 1.36rem; } html[data-size="4"] .reader { --rs: 1.52rem; }
.reader { transition: background-color .3s, color .3s; }
.progress { position: fixed; z-index: 40; left: 0; right: 0; top: 0; height: 3px; background: transparent; }
.progress__bar { height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.rbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--rule); }
.rbar__in { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; max-width: 920px; margin: 0 auto; padding: 6px var(--pad); min-height: 60px; }
.rbar__back { font: italic 500 1.1rem/1 var(--serif); text-decoration: none; padding: 12px 0; }
.rbar__tools { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; border-radius: 999px; background: var(--chipbg); padding: 2px; }
.chip { min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--chipbg); color: var(--fg); font: 600 .9rem/1 var(--sans); cursor: pointer; }
.seg .chip { background: transparent; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.chip--big { font-size: 1.15rem; }
.chip small { font-size: .7em; margin-left: 1px; }
.chapter { max-width: 40rem; margin: 0 auto; padding: 40px var(--pad) 40px; outline: none; }
.chapter__meta { color: var(--mut); font-size: .92rem; margin: 0 0 40px; }
.prose--book h1 { font: 450 clamp(2.3rem, 7vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.02em; margin: 0 0 1.1em; }
.prose--book p { font-size: var(--rs); line-height: 1.7; max-width: none; margin: 0; color: var(--fg); hyphens: auto; -webkit-hyphens: auto; }
.prose--book p + p { text-indent: 1.5em; }
.prose--book h1 + p::first-letter { font: 500 3.9em/.78 var(--serif); float: left; padding: .06em .08em 0 0; }
.prose--book h1 + p { text-indent: 0; }
.prose--book hr { border: 0; height: 3.4rem; margin: 0; display: flex; align-items: center; justify-content: center; }
.prose--book hr::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mut); box-shadow: -16px 0 var(--mut), 16px 0 var(--mut); }
.prose--book hr + p { text-indent: 0; }
.endcard { margin-top: 72px; padding: 36px clamp(22px, 5vw, 40px); border-radius: 16px; background: var(--ink); color: var(--chalk); }
.endcard h2 { font-size: 2rem; margin-bottom: 8px; }
.endcard p { margin: 0 0 22px; color: rgba(234, 231, 220, .85); }
.endcard__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.endcard .btn--ghost-ink { border-color: rgba(234, 231, 220, .5); color: var(--chalk); }
.endcard .btn--ghost-ink:hover { background: rgba(234, 231, 220, .1); }
.keys { max-width: 40rem; margin: 0 auto; padding: 0 var(--pad) 56px; color: var(--mut); font-size: .88rem; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; margin: 0; background: var(--ink); color: var(--chalk); padding: 10px 14px 10px 18px; border-radius: 999px; font-size: .92rem; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); width: max-content; max-width: calc(100vw - 24px); }
.linkbtn { background: none; border: 0; color: var(--gold); font: 600 .92rem var(--sans); cursor: pointer; text-decoration: underline; min-height: 44px; padding: 0 8px; }
@media (max-width: 520px) { .toast { border-radius: 14px; } }

/* ---- fact sheet and print ---- */
.sheet { background: #d9dfd9; }
.sheet__page { max-width: 820px; margin: 24px auto; background: #fff; padding: 48px; font: 400 1rem/1.55 var(--serif); }
.sheet__tools { font-family: var(--sans); display: flex; gap: 16px; align-items: center; }
.sheet__head { display: grid; grid-template-columns: 150px 1fr; gap: 28px; margin: 24px 0; align-items: start; }
.sheet__head h1 { font-size: 2.6rem; }
.sheet__by { font-style: italic; font-size: 1.2rem; margin: 6px 0 14px; }
.sheet h2 { font: 600 .85rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin: 22px 0 8px; color: var(--muted); }
.sheet table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sheet th { text-align: left; font-weight: 500; color: var(--muted); padding: 5px 12px 5px 0; vertical-align: top; width: 42%; }
.sheet td { padding: 5px 0; }
.sheet__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sheet p { margin: 0 0 .7em; }
.sheet__foot { font: .8rem var(--sans); color: var(--muted); margin-top: 28px !important; }
@media (max-width: 640px) { .sheet__page { padding: 22px; margin: 0; } .sheet__head, .sheet__cols { grid-template-columns: 1fr; } .sheet__cover { max-width: 140px; } }
@media print {
  @page { margin: 16mm; }
  body, .sheet { background: #fff !important; }
  .bar, .foot, .skip, .co__form, .co__sum, .confirm__cta, .payload, .sheet__tools, .testbanner--page, .btn { display: none !important; }
  .plain main { min-height: 0; padding: 0; }
  .sheet__page { margin: 0; padding: 0; max-width: none; box-shadow: none; }
  body.plain .page-title, body.plain .testbanner:not(.receipt .testbanner) { display: none; }
  .receipt { border: 0; padding: 0; }
  .confirm { display: block !important; }
}

.rbar__short { display: none; }
@media (max-width: 560px) {
  .rbar__full { display: none; }
  .rbar__short { display: inline; }
  .rbar__in { flex-wrap: nowrap; padding: 6px 12px; gap: 6px; }
  .rbar__tools { gap: 6px; }
  .chip { min-width: 44px; padding: 0 9px; font-size: .86rem; }
  .rbar__back::before { content: "\2039\00a0"; }
}
