/* ink world landing and legal pages. Tokens come from /shared/tokens.css (light and dark).
   Layout: one calm column on rice paper; ink washes sit behind whole bands, never behind body text at full strength.
   Built into www/assets/site.css by site/build.mjs. No inline styles anywhere (CSP). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; position: relative; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:target { scroll-margin-top: 24px; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; border-radius: 4px; }

/* Mist across the top of every page: a mask, so it takes the ink colour in both themes. */
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 320px; z-index: -1; pointer-events: none; background: var(--ink); opacity: .7;
  -webkit-mask: url("/assets/tx/wash_mist.svg") top center / max(1200px, 100%) 100% no-repeat; mask: url("/assets/tx/wash_mist.svg") top center / max(1200px, 100%) 100% no-repeat; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-inline: max(32px, env(safe-area-inset-left, 0px)) max(32px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r-full); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */
.top { display: flex; align-items: center; gap: 16px; min-height: 76px; padding-block: 12px; }
.brand { font: 400 34px/1 var(--font-display); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top nav { flex: 1; min-width: 0; }
.links { list-style: none; padding: 0; display: flex; justify-content: center; gap: 4px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; font-size: 15px; color: var(--ink-soft); text-decoration: none; border-radius: var(--r-full); }
.links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (hover: hover) { .links a:hover { color: var(--ink); background: var(--wash); } }
@media (max-width: 879px) { .links { display: none; } .top { justify-content: space-between; } .top nav { flex: 0; } }

/* ---------- Buttons ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--ink); font: 800 16px/1.2 var(--font-ui); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn .ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn.seal { color: var(--on-seal); }
.btn.seal::before, .btn.ink::before { content: ""; position: absolute; inset: -5px -10px; z-index: -1; background: var(--seal);
  -webkit-mask: url("/assets/tx/mask_button.svg") center / 100% 100% no-repeat; mask: url("/assets/tx/mask_button.svg") center / 100% 100% no-repeat; }
.btn.ink { color: var(--paper); } .btn.ink::before { background: var(--ink); }
.btn.line { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn:disabled { cursor: default; opacity: .55; }
@media (hover: hover) { .btn.seal:hover::before { background: var(--seal-deep); } .btn.line:hover { background: var(--wash); } }
@media (prefers-reduced-motion: no-preference) { .btn { transition: scale 150ms var(--ease); } .btn:not(:disabled):active { scale: .96; } }
.textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.textlink .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
h2 { font: 400 clamp(38px, 5.4vw, 56px)/1 var(--font-display); padding-bottom: 14px; position: relative; }
h2::after { content: ""; position: absolute; left: -2px; bottom: 0; width: 104px; height: 10px; background: var(--ink); opacity: .85;
  -webkit-mask: url("/assets/tx/mask_underline.svg") left / 100% 100% no-repeat; mask: url("/assets/tx/mask_underline.svg") left / 100% 100% no-repeat; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; }
.sec-head p { color: var(--ink-soft); font-size: 18px; }
.note { font-size: 14px; color: var(--ink-faint); }

/* ---------- Bands ---------- */
.band { padding-block: 72px; }
@media (min-width: 720px) { .band { padding-block: 104px; } }
.wash-river, .wash-ember { position: relative; isolation: isolate; }
.wash-river::before, .wash-ember::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: var(--wash); }
.wash-river::after, .wash-ember::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; z-index: -1; pointer-events: none; background: url("/assets/tx/wash_river.svg") bottom center / 100% 100% no-repeat; opacity: .35; }
.wash-ember::after { inset: 0 0 auto auto; width: min(1100px, 100%); height: 80%; background: url("/assets/tx/wash_ember.svg") top right / 100% 100% no-repeat; opacity: .8; }
.two { display: grid; gap: 40px; }
@media (min-width: 880px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 24px; align-items: center; padding-block: 8px 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero h1 { font: 400 clamp(76px, 15vw, 148px)/.86 var(--font-display); letter-spacing: -.01em; padding-top: 6px; }
.hero .lede { font: 400 clamp(19px, 2.3vw, 23px)/1.55 var(--font-reading); color: var(--ink); max-width: 31ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding-top: 8px; }
.hero-art { position: relative; width: min(100%, 340px); aspect-ratio: 1; justify-self: center; order: -1; }
@media (min-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; padding-block: 40px 88px; }
  .hero-art { width: min(100%, 470px); order: 0; }
}
.moonring { position: absolute; inset: 9% 9% 7% 11%; }
.moonring .ring, .numring .ring { position: absolute; inset: 0; background: var(--ink); pointer-events: none;
  -webkit-mask: url("/assets/rings/bd_brush.svg") center / 100% 100% no-repeat; mask: url("/assets/rings/bd_brush.svg") center / 100% 100% no-repeat; }
.moon { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 64% 64%, rgba(200, 55, 31, .17), rgba(200, 55, 31, 0) 58%), #FDFDFB; }
.moon .mo { position: absolute; width: 70%; left: 15%; top: 2%; height: auto; }
.fan { position: absolute; width: 38%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1.5px #141414, var(--shadow); background: #FDFDFB; }
.fan-a { left: 0; bottom: 2%; rotate: -9deg; }
.fan-b { right: 0; top: 0; rotate: 7deg; }
@media (prefers-reduced-motion: no-preference) { .mo .lamp { transform-origin: 101px 98px; animation: sway 4.8s ease-in-out infinite; } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.cards3 { aspect-ratio: 1.3 / 1; }
.cards3 .fan { width: 46%; }
.cards3 .fan-a { left: 0; top: 14%; bottom: auto; rotate: -8deg; }
.cards3 .fan-c { left: 27%; top: 0; rotate: 1deg; z-index: 1; }
.cards3 .fan-b { right: 0; top: 18%; rotate: 9deg; z-index: 2; }

.hero + .band { padding-top: 24px; }

/* ---------- Shelves ---------- */
.shelves { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding-block: 4px 12px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
.shelves::-webkit-scrollbar { display: none; }
.shelves li { scroll-snap-align: start; min-width: 0; }
@media (min-width: 720px) { .shelves { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; overflow: visible; margin-inline: 0; padding-inline: 0; } }
@media (min-width: 720px) and (max-width: 1039px) { .shelf .nm { font-size: 21px; } .shelf .bl { font-size: 14px; } }
@media (min-width: 1040px) { .shelves { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; } .shelf .nm { font-size: 23px; } }
.shelf { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); border-radius: var(--r-md); }
.shelf .art { display: block; aspect-ratio: 200 / 222; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1.5px var(--ink); background: #FDFDFB; margin-bottom: 6px; }
.shelf .art img, .shelf .art svg { width: 100%; height: 100%; object-fit: cover; }
.shelf .nm { font: 400 25px/1.05 var(--font-display); }
.shelf .bl { font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .shelf .art img, .shelf .art svg { transition: scale 400ms var(--ease); } .shelf:hover .art img, .shelf:hover .art svg { scale: 1.03; } }
@media (hover: hover) { .shelf:hover .nm { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; } }
.more { margin-top: 24px; }

/* ---------- Steps (how reading works, how writing works) ---------- */
.steps { list-style: none; padding: 0; margin-top: 48px; display: grid; gap: 36px 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font: 800 19px/1.3 var(--font-ui); margin-top: 6px; }
.steps p { color: var(--ink-soft); }
.numring { position: relative; width: 76px; height: 76px; display: grid; place-items: center; flex: none; }
.numring .n { font: 400 34px/1 var(--font-display); color: var(--seal); position: relative; top: 2px; }

/* ---------- Prices ---------- */
.prices { margin-top: 64px; display: grid; gap: 32px; }
@media (min-width: 880px) { .prices { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; } }
.price-note { display: flex; flex-direction: column; gap: 16px; color: var(--ink-soft); }
.example { display: flex; gap: 14px; align-items: flex-start; font: 400 21px/1.5 var(--font-reading); color: var(--ink) !important; }
.example .ic { width: 22px; height: 28px; flex: none; margin-top: 5px; fill: none; stroke: var(--seal); stroke-width: 1.8; }
.table-wrap { background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1.5px var(--ink); padding: 8px 20px 18px; min-width: 0; }
.packs { width: 100%; border-collapse: collapse; font-size: 16px; }
.packs caption { text-align: left; font: 400 28px/1 var(--font-display); padding: 14px 0 8px; }
.packs th, .packs td { padding: 12px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.packs th:first-child, .packs td:first-child { padding-left: 0; }
.packs th:last-child, .packs td:last-child { padding-right: 0; }
.packs thead th { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.packs .num { text-align: right; }
.packs tbody th { font-weight: 800; }
.packs td .sub { display: block; font-size: 12px; color: var(--ink-faint); }
.table-wrap .note { margin-top: 12px; }
@media (max-width: 479px) { .packs { font-size: 15px; } .packs th, .packs td { padding-inline: 4px; } .table-wrap { padding-inline: 14px; } }

/* ---------- Grown-ups ---------- */
.grown { display: grid; gap: 40px; align-items: start; }
@media (min-width: 880px) { .grown { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 72px; } }
.grown-art { max-width: 300px; justify-self: center; width: 60%; }
@media (min-width: 880px) { .grown-art { width: 100%; position: sticky; top: 32px; } }
.framed { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: 0 0 0 1.5px var(--ink); background: #FDFDFB; rotate: -2deg; }
.promise { list-style: none; padding: 0; margin-top: 40px; display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promise li { position: relative; padding-left: 26px; display: flex; flex-direction: column; gap: 4px; }
.promise li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border-radius: 2px; background: var(--seal); rotate: -6deg; }
.promise b { font-weight: 800; font-size: 18px; }
.promise span { color: var(--ink-soft); }

/* ---------- Writers band ---------- */
.writers { display: grid; gap: 48px; }
.writers .actions { margin-top: 28px; }
@media (min-width: 880px) { .writers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.facts { display: grid; gap: 0; }
.fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--line); }
.fact:first-child { padding-top: 0; }
.fact dt { font: 400 42px/1 var(--font-display); color: var(--seal); font-variant-numeric: tabular-nums; }
.fact dd { color: var(--ink-soft); }
.ai-note { margin-top: 24px; padding: 18px 20px; border-radius: var(--r-md); background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); color: var(--ink-soft); }
@media (max-width: 479px) { .fact { grid-template-columns: 124px minmax(0, 1fr); gap: 12px; } .fact dt { font-size: 34px; } }

/* ---------- Waitlist ---------- */
.waitlist { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); box-shadow: 0 0 0 1.5px var(--ink); padding: 40px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; background: var(--paper); }
.waitlist::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/tx/wash_aurora.svg") bottom center / 100% 75% no-repeat; opacity: .8; }
.waitlist h2::after { left: 50%; translate: -50% 0; }
.waitlist > p { color: var(--ink-soft); max-width: 46ch; }
@media (min-width: 720px) { .waitlist { padding: 64px 48px; } }
.wl { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; text-align: left; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row input { flex: 1 1 220px; }
input[type=email], input[type=text], input[type=url], select { width: 100%; min-width: 0; height: 52px; padding: 0 18px; border-radius: var(--r-full); border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 16px var(--font-ui); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 22px center, right 16px center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
input::placeholder { color: var(--ink-faint); opacity: 1; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding-block: 10px; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--seal); }
.msg { min-height: 1.6em; font-size: 15px; color: var(--ink-soft); }
.msg.ok { font: 400 24px/1.25 var(--font-display); color: var(--ink); }
.msg.err { color: var(--seal); font-weight: 700; }
:root[data-theme="dark"] .msg.err { color: #F08A73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg.err { color: #F08A73; } }

/* ---------- Writers page ---------- */
.deal { margin-top: 40px; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.deal > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .deal > div { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: baseline; } }
.deal dt { font-weight: 800; font-size: 18px; display: flex; align-items: baseline; gap: 16px; }
.deal .big { font: 400 48px/1 var(--font-display); color: var(--seal); min-width: 2.6ch; font-variant-numeric: tabular-nums; }
.deal dd { color: var(--ink-soft); }
.formula { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink); color: var(--ink-soft); }
.formula .sum { font: 400 clamp(24px, 3vw, 30px)/1.25 var(--font-display); color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tiles { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tiles > div { padding: 22px 20px; border-radius: var(--r-md); background: var(--wash); display: flex; flex-direction: column; gap: 8px; }
.tiles dt { font: 400 30px/1 var(--font-display); }
.tiles dd { color: var(--ink-soft); font-size: 16px; }
.ticks { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--seal); border-bottom: 2.5px solid var(--seal); rotate: -45deg; }
.apply { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; border-radius: var(--r-lg); box-shadow: 0 0 0 1.5px var(--ink); background: var(--paper); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.cta h2::after { left: 50%; translate: -50% 0; }
.cta p { color: var(--ink-soft); max-width: 44ch; }
.moonring.small { position: relative; inset: auto; width: 210px; height: 210px; }

/* ---------- Footer ---------- */
.foot { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 48px max(40px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); margin-top: 24px; }
.foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; }
.foot-brand p { color: var(--ink-soft); font-size: 15px; }
.foot-col h2 { font: 800 13px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding: 0 0 6px; }
.foot-col h2::after { display: none; }
.foot-col ul { list-style: none; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
@media (hover: hover) { .foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }
.rights { grid-column: 1 / -1; font-size: 14px; color: var(--ink-faint); }
@media (min-width: 720px) { .foot { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: auto; } }

/* ---------- Legal ---------- */
.doc { max-width: 700px; margin: 0 auto; padding-block: 24px 72px; display: flex; flex-direction: column; gap: 16px; }
.doc h1 { font: 400 clamp(56px, 9vw, 84px)/.95 var(--font-display); }
.doc h2 { font: 800 21px/1.3 var(--font-ui); padding: 0; margin-top: 20px; }
.doc h2::after { display: none; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc b { color: var(--ink); }
.doc a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc code { font-size: .92em; background: var(--wash); border-radius: 6px; padding: 1px 6px; }
.doc .draft { background: var(--wash); border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding-block: 40px 72px; }
.lost h1 { font: 400 clamp(44px, 8vw, 72px)/1 var(--font-display); }
.lost p { color: var(--ink-soft); }
.lost .actions { justify-content: center; }

/* ---------- Catalogue pages: /tropes/, /shelves/, /series/ (site/seo.mjs) ---------- */
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; color: var(--ink-faint); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--ink-faint); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }
.cat-head, .series { display: grid; gap: 28px; align-items: center; padding-block: 8px 32px; }
.cat-copy, .series-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cat-head h1, .series h1 { font: 400 clamp(52px, 11vw, 104px)/.92 var(--font-display); overflow-wrap: anywhere; }
.series h1 { font-size: clamp(46px, 8vw, 84px); }
.cat-head .lede, .series .lede { font: 400 clamp(18px, 2.2vw, 21px)/1.55 var(--font-reading); color: var(--ink); max-width: 46ch; }
.cat-head .lede + .lede { color: var(--ink-soft); font: 400 16px/1.6 var(--font-ui); }
.eyebrow a { color: inherit; text-decoration: none; }
@media (hover: hover) { .eyebrow a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }
.cat-art, .series-art { width: min(64%, 260px); justify-self: center; order: -1; }
@media (min-width: 720px) {
  .cat-head { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 56px; }
  .cat-art { width: 100%; order: 0; }
  .series { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; align-items: start; }
  .series-art { width: 100%; position: sticky; top: 32px; }
}
.by { font-size: 15px; color: var(--ink-soft); }
.series .by a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.meta { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-block: 14px; border-block: 1px solid var(--line); }
.meta dt { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.meta dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.cat-sec { padding-block: 40px; }
@media (min-width: 720px) { .cat-sec { padding-block: 56px; } }
.cat-sec .sec-head h2, .trope-group h2 { font-size: clamp(32px, 4.4vw, 44px); }
.empty { margin-top: 24px; color: var(--ink-soft); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-sec .chips, .trope-group .chips { margin-top: 24px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-full); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.chips .n { font-weight: 600; font-size: 13px; color: var(--ink-faint); }
.chips a[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) { .chips a:hover { background: var(--wash); box-shadow: inset 0 0 0 1.5px var(--ink); } }
.stories { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; } }
@media (min-width: 1040px) { .stories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 720px) { .story { grid-template-columns: 120px minmax(0, 1fr); } }
.story .art { display: block; aspect-ratio: 200 / 222; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1.5px var(--ink); background: #FDFDFB; }
.story .art img { width: 100%; height: 100%; object-fit: cover; }
.story-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.story h3 { font: 400 26px/1.05 var(--font-display); }
.story h3 a { text-decoration: none; }
@media (hover: hover) { .story h3 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; } }
.story .by { font-size: 13px; color: var(--ink-faint); }
.story .bl { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.textlink.sm { font-size: 15px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .story .art img { transition: scale 400ms var(--ease); } .story:hover .art img { scale: 1.03; } }
.chlist { list-style: none; padding: 0; margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
@media (min-width: 720px) { .chlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chlist a { display: flex; align-items: baseline; gap: 14px; min-height: 52px; padding-block: 12px; border-bottom: 1px solid var(--line); text-decoration: none; }
.chlist .n { font: 400 24px/1 var(--font-display); color: var(--seal); min-width: 2ch; font-variant-numeric: tabular-nums; }
.chlist .t { font: 400 17px/1.4 var(--font-reading); }
@media (hover: hover) { .chlist a:hover .t { text-decoration: underline; text-underline-offset: 4px; } }
.trope-groups { display: grid; gap: 40px; padding-block: 16px 72px; }
@media (min-width: 880px) { .trope-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; } }
.trope-group h2 a { text-decoration: none; }
@media (hover: hover) { .trope-group h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; } }
@media (max-width: 719px) { .shelves.grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; } }
.shelves.grid { margin-top: 8px; }

/* ---------- Peaceful entrance: opacity with a 12px rise, 100ms apart. Reduced motion: a plain fade. ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 640ms var(--ease) both; }
  .pending > * { opacity: 0; transform: translateY(12px); }
  .pending.in > * { opacity: 1; transform: none; transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: fade 400ms linear both; }
  .pending > * { opacity: 0; }
  .pending.in > * { opacity: 1; transition: opacity 400ms linear; }
}
.rise.d1 { animation-delay: 100ms; } .rise.d2 { animation-delay: 200ms; } .rise.d3 { animation-delay: 300ms; } .rise.d4 { animation-delay: 400ms; }
.pending.in > :nth-child(2) { transition-delay: 100ms; } .pending.in > :nth-child(3) { transition-delay: 200ms; }
.pending.in > :nth-child(4) { transition-delay: 300ms; } .pending.in > :nth-child(5) { transition-delay: 400ms; }
.pending.in > :nth-child(n+6) { transition-delay: 500ms; }

/* ---------- OG image (build only) ---------- */
.og { width: 1200px; height: 630px; margin: 0; overflow: hidden; }
.og::before { height: 630px; }
.og-card { display: grid; grid-template-columns: 1fr 520px; align-items: center; gap: 24px; height: 100%; padding: 0 56px 0 88px; }
.og-copy { display: flex; flex-direction: column; gap: 18px; }
.og h1 { font: 400 168px/.85 var(--font-display); }
.og .lede { font: 400 28px/1.45 var(--font-reading); max-width: 24ch; }
.og-url { font-weight: 800; font-size: 22px; color: var(--seal); }
.og-art { width: 500px; order: 0; }

@media print { body::before, .wash-river::before, .wash-ember::before, .wash-river::after, .wash-ember::after, .waitlist::before { display: none; } .top nav, .skip { display: none; } }

/* =================================================================================================
   Glass flow: Revolut-style chrome on the ink language. Paper, sumi ink, the one cinnabar seal, the brush
   fonts, Mo and the ink cards stay as they are. Added: a floating frosted nav pill that firms up on scroll,
   frosted cards with hairline ink borders, glass pill buttons and fields, a soft ink-wash tint at the top,
   and cards that rise in once. Every frosted surface has a paper-tint fallback, and motion respects
   prefers-reduced-motion.
   ================================================================================================= */
:root {
  --glass: color-mix(in oklab, var(--paper) 62%, transparent);
  --glass-hi: color-mix(in oklab, var(--paper) 80%, transparent);
  --glass-line: color-mix(in oklab, var(--ink) 10%, transparent);
  --glass-blur: blur(22px) saturate(1.4);
  --glass-shadow: 0 1px 0 color-mix(in oklab, var(--paper) 60%, transparent) inset, 0 10px 30px color-mix(in oklab, var(--ink) 9%, transparent);
  --r-card: 24px;
  --soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: color-mix(in oklab, var(--paper) 94%, var(--ink) 2%); --glass-hi: color-mix(in oklab, var(--paper) 96%, var(--ink) 2%); }
}

/* a soft ink-wash tint behind the mist, like a watercolour bleed at the top of the page */
html { background: var(--paper); }
body { background: radial-gradient(130% 520px at 50% 0%, color-mix(in oklab, var(--ink) 9%, var(--paper)) 0%, color-mix(in oklab, var(--ink) 3%, var(--paper)) 50%, var(--paper) 100%) top / 100% 760px no-repeat, var(--paper); }

/* ---------- floating glass nav pill ---------- */
.top { position: sticky; top: 10px; z-index: 40; width: calc(100% - 24px); max-width: 1096px; min-height: 60px; margin: 10px auto 18px; padding: 8px 8px 8px 22px;
  border-radius: var(--r-full); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: 0 6px 20px color-mix(in oklab, var(--ink) 5%, transparent);
  transition: background-color 300ms var(--soft), box-shadow 300ms var(--soft); }
html.scrolled .top { background: var(--glass-hi); box-shadow: 0 14px 34px color-mix(in oklab, var(--ink) 12%, transparent); }
@media (min-width: 720px) { .top { width: calc(100% - 48px); padding-left: 26px; } }
.top .brand { font-size: 30px; }
.links a { transition: background-color 200ms, color 200ms; }
@media (hover: hover) { .links a:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); } }
.links a[aria-current="page"] { text-decoration: none; background: var(--paper); box-shadow: 0 1px 4px color-mix(in oklab, var(--ink) 14%, transparent); }
:target { scroll-margin-top: 96px; }

/* ---------- pill buttons ---------- */
.btn.line { box-shadow: none; background: var(--glass-hi); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); }
.btn { transition: scale 220ms var(--spring); }
.btn:not(:disabled):active { scale: .96; }

/* ---------- frosted surfaces ---------- */
.glass-card, .steps li, .promise li, .facts, .ai-note, .table-wrap, .tiles > div, .formula, .apply, .story, .meta, .shelf {
  background: var(--glass-hi); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); border-radius: var(--r-card); }
.steps li { padding: 22px 22px 24px; }
.promise li { padding: 18px 20px 18px 44px; }
.promise li::before { left: 20px; top: calc(18px + .5em); }
.facts { padding: 8px 22px; }
.fact { border-bottom-color: var(--glass-line); }
.fact:last-child { border-bottom: 0; }
.ai-note { box-shadow: var(--glass-shadow); }
.table-wrap { padding: 8px 22px 18px; }
.packs th, .packs td { border-bottom-color: var(--glass-line); }
.tiles > div { padding: 22px 20px; }
.formula, .apply { padding: 28px 26px; }
.shelf { padding: 8px 8px 14px; transition: scale 260ms var(--spring), box-shadow 260ms var(--soft); }
.shelf .art { box-shadow: none; border-radius: 18px; }
.shelf .nm, .shelf .bl { padding-inline: 8px; }
.shelf:active { scale: .97; }
@media (hover: hover) { .shelf:hover { box-shadow: 0 14px 34px color-mix(in oklab, var(--ink) 13%, transparent); } }
.story { padding: 12px; }
.story .art { box-shadow: none; border-radius: 16px; }
.meta { padding: 14px 20px; border-block: 1px solid var(--glass-line); }
.waitlist { box-shadow: var(--glass-shadow); border: 1px solid var(--glass-line); border-radius: 28px; }
.framed { box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-line); }
.chips a { background: var(--glass-hi); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); transition: scale 200ms var(--spring); }
.chips a:active { scale: .95; }
.chips a[aria-current="page"] { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.doc .draft, .doc code { background: color-mix(in oklab, var(--ink) 5%, transparent); }
@media (min-width: 760px) {
  .doc { background: var(--glass-hi); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); border-radius: 28px; padding: 40px 48px 56px; margin-bottom: 48px; }
}
.foot { border-top: 1px solid var(--glass-line); }

/* ---------- glass fields ---------- */
input[type=email], input[type=text], input[type=url], select { background-color: var(--glass-hi); border-radius: 16px; }
.waitlist input[type=email] { border-radius: var(--r-full); }

/* ---------- cards rise in once, 70 ms apart, when their group comes into view ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-rise].in .steps > li, [data-rise].in .promise > li, [data-rise].in .tiles > div, .steps.in > li, .promise.in > li, .tiles.in > div { animation: glassRise 520ms var(--soft) backwards; }
  [data-rise].in li:nth-child(2), [data-rise].in .tiles > div:nth-child(2), .steps.in > li:nth-child(2), .promise.in > li:nth-child(2) { animation-delay: 70ms; }
  [data-rise].in li:nth-child(3), [data-rise].in .tiles > div:nth-child(3), .steps.in > li:nth-child(3), .promise.in > li:nth-child(3) { animation-delay: 140ms; }
  [data-rise].in li:nth-child(4), [data-rise].in .tiles > div:nth-child(4), .steps.in > li:nth-child(4), .promise.in > li:nth-child(4) { animation-delay: 210ms; }
}
@keyframes glassRise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .top, .btn, .shelf, .chips a { transition: none; }
  .btn:not(:disabled):active, .shelf:active, .chips a:active { scale: 1; }
}
/* shelf cards in a row share one height */
.shelves li { display: flex; }
.shelves li > .shelf { flex: 1; }
