/* ═══════════════════════════════════════════════════════════════════════════
   Illiterati — web
   Translucent polycarbonate over ordinary page structure, exactly as the app
   does it: the flavour is the only accent, content sits in frosted wells, and
   readouts are rounded and heavy while body copy stays on the system face.
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ── flavours ───────────────────────────────────────────────────────────── */
:root {
  --f-light: #7fd4e6;  --f-mid: #0095b6;  --f-deep: #026175;
}
[data-flavour="bondi"]      { --f-light:#7fd4e6; --f-mid:#0095b6; --f-deep:#02697e; }
[data-flavour="strawberry"] { --f-light:#ffb0be; --f-mid:#e84a68; --f-deep:#a71f3c; }
[data-flavour="blueberry"]  { --f-light:#a9b8ee; --f-mid:#4a63c8; --f-deep:#2b3c8e; }
[data-flavour="grape"]      { --f-light:#c6aee4; --f-mid:#7f56b3; --f-deep:#54317e; }
[data-flavour="lime"]       { --f-light:#c6e88a; --f-mid:#74a81f; --f-deep:#4a6d10; }
[data-flavour="tangerine"]  { --f-light:#ffc48a; --f-mid:#e8720d; --f-deep:#a44a00; }
[data-flavour="indigo"]     { --f-light:#a7b0e8; --f-mid:#4a55b8; --f-deep:#2c3480; }
[data-flavour="ruby"]       { --f-light:#f4a7a7; --f-mid:#c62f38; --f-deep:#8a151c; }
[data-flavour="sage"]       { --f-light:#a8d6bd; --f-mid:#3f8f68; --f-deep:#215c41; }
[data-flavour="snow"]       { --f-light:#cddae1; --f-mid:#6f8794; --f-deep:#3f5460; }
[data-flavour="graphite"]   { --f-light:#c3cbd0; --f-mid:#5f6e77; --f-deep:#37444b; }

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;

  --ink:        #12262e;
  --ink-soft:   #48626d;
  --ink-faint:  #7c929c;
  --rule:       #d5e1e6;

  --ground:     #eef4f6;
  --ground-2:   #e2ecf0;
  --well:       #ffffff;
  --well-tint:  rgba(255,255,255,.72);

  --plastic-top:    rgba(255,255,255,.86);
  --plastic-bottom: rgba(255,255,255,.42);
  --plastic-edge:   rgba(255,255,255,.9);
  --plastic-shadow: 0 1px 2px rgba(12,42,52,.06), 0 10px 30px -12px rgba(12,42,52,.28);
  --plastic-shadow-lift: 0 2px 4px rgba(12,42,52,.08), 0 22px 46px -16px rgba(12,42,52,.34);

  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  28px;

  --pad:        clamp(1.25rem, 4vw, 2.5rem);
  --gutter:     clamp(1rem, 5vw, 3rem);
  --measure:    68ch;
  --page:       1180px;

  --wash-1:     40%;
  --wash-2:     12%;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Varela Round", var(--sans);

  --step--1: clamp(.8125rem, .78rem + .16vw, .875rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.05rem + .38vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.22rem + .74vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.45vw, 2.5rem);
  --step-4:  clamp(2.125rem, 1.5rem + 3vw, 3.75rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #eaf3f6;
    --ink-soft:   #a6bcc6;
    --ink-faint:  #7b939e;
    --rule:       rgba(255,255,255,.13);

    --ground:     #0d171c;
    --ground-2:   #111f26;
    --well:       #17262d;
    --well-tint:  rgba(255,255,255,.05);

    --plastic-top:    rgba(255,255,255,.10);
    --plastic-bottom: rgba(255,255,255,.03);
    --plastic-edge:   rgba(255,255,255,.16);
    --plastic-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -16px rgba(0,0,0,.7);
    --plastic-shadow-lift: 0 2px 6px rgba(0,0,0,.45), 0 26px 54px -18px rgba(0,0,0,.8);

    --wash-1: 15%;
    --wash-2: 8%;
  }
  /* Deep flavour shades are tuned for white type on light ground; lift them for dark. */
  [data-flavour] { --f-deep: var(--f-light); }
  .flavours__swatch, .character__swatches span { --f-deep: initial; }
}

/* ── ground ─────────────────────────────────────────────────────────────── */
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  background-image:
    radial-gradient(120vw 70vh at 78% -12%, color-mix(in oklab, var(--f-light) var(--wash-1), transparent), transparent 62%),
    radial-gradient(90vw 60vh at 4% 8%, color-mix(in oklab, var(--f-mid) var(--wash-2), transparent), transparent 58%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--round); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: var(--step-4); letter-spacing: -.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

a { color: color-mix(in oklab, var(--f-deep) 92%, var(--ink)); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--f-mid); }

:focus-visible { outline: 3px solid var(--f-mid); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--well); padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

main > section, main > article, main > nav { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  font-family: var(--round); font-weight: 800; font-size: var(--step--1);
  letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in oklab, var(--f-deep) 78%, var(--ink-faint));
  margin-bottom: .6rem;
}

/* ── plastic ────────────────────────────────────────────────────────────── */
.plastic, .card, .source, .cat, .faq__item, .book__facts > div, .phone__frame, .flavours {
  background:
    linear-gradient(180deg, var(--plastic-top), var(--plastic-bottom));
  border: 1px solid var(--plastic-edge);
  box-shadow: var(--plastic-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* ── nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--ground) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 70%, transparent);
}
.nav__inner {
  max-width: var(--page); margin-inline: auto; padding: .6rem var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.nav__brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--round); font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; flex: none;
}
.nav__mark { border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.nav__links { display: flex; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.nav__link {
  padding: .4rem .7rem; border-radius: 999px; text-decoration: none;
  color: var(--ink-soft); font-size: var(--step--1); font-weight: 500; white-space: nowrap;
}
.nav__link:hover { background: var(--well-tint); color: var(--ink); }
.nav__link.is-current { color: var(--f-deep); background: color-mix(in oklab, var(--f-light) 30%, transparent); font-weight: 650; }
.nav__end { flex: none; }

.flavours__toggle {
  width: 34px; height: 34px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--plastic-edge); background: var(--well-tint);
  display: grid; place-items: center;
}
.flavours__chip {
  width: 18px; height: 18px; border-radius: 999px;
  background: radial-gradient(circle at 32% 28%, color-mix(in oklab, var(--f-light) 90%, white), var(--f-mid) 70%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06);
}
.flavours {
  max-width: var(--page); margin: 0 auto .5rem; padding: .85rem var(--gutter);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.flavours[hidden] { display: none; }
.flavours__label { font-family: var(--round); font-weight: 700; font-size: var(--step--1); color: var(--ink-soft); }
.flavours__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.flavours__swatch {
  width: 28px; height: 28px; border-radius: 999px; cursor: pointer; padding: 0;
  border: 1px solid rgba(0,0,0,.12);
  background: radial-gradient(circle at 32% 28%, color-mix(in oklab, var(--f-light) 92%, white), var(--f-mid) 72%);
  box-shadow: inset 0 -3px 5px rgba(0,0,0,.22);
  transition: transform .12s ease;
}
.flavours__swatch:hover { transform: scale(1.12); }
.flavours__swatch[aria-pressed="true"] { box-shadow: inset 0 -3px 5px rgba(0,0,0,.22), 0 0 0 3px var(--ground), 0 0 0 5px var(--f-mid); }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--round); font-weight: 700; font-size: var(--step-0);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn--primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0) 52%),
    linear-gradient(180deg, var(--f-mid), color-mix(in oklab, var(--f-deep) 88%, black));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 3px rgba(12,42,52,.14), 0 12px 24px -10px color-mix(in oklab, var(--f-deep) 70%, transparent);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 5px rgba(12,42,52,.16), 0 18px 32px -12px color-mix(in oklab, var(--f-deep) 76%, transparent); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost {
  color: var(--ink); background: var(--well-tint);
  border-color: var(--plastic-edge); box-shadow: var(--plastic-shadow);
}
.btn--ghost:hover { background: var(--well); transform: translateY(-1px); }
.btn.is-disabled { opacity: .62; cursor: default; pointer-events: none; }

.cta { margin-top: 1.75rem; }
.cta__row { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta__fine { margin-top: .85rem; font-size: var(--step--1); color: var(--ink-faint); }
.cta--center .cta__row, .cta--center .cta__fine { justify-content: center; text-align: center; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid; gap: var(--pad); align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2rem, 6vw, 4rem);
}
.hero h1 { max-width: 17ch; text-wrap: balance; }
.hero__sub {
  margin-top: 1.1rem; font-size: var(--step-1); color: var(--ink-soft);
  max-width: 46ch; line-height: 1.5; text-wrap: pretty;
}
.hero__art { display: grid; place-items: center; }

/* ── phone ──────────────────────────────────────────────────────────────── */
.phone { width: min(300px, 76vw); }
.phone__frame {
  border-radius: 44px; padding: 10px;
  box-shadow: var(--plastic-shadow-lift);
  transform: rotate(-2.2deg);
}
.feature--flip .phone__frame { transform: rotate(2.2deg); }
.phone__screen {
  width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 34px; object-fit: cover;
  background: var(--ground-2);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
}
.phone__screen--placeholder {
  display: grid; place-items: center; padding: 1.5rem; text-align: center;
  color: var(--ink-faint); font-family: var(--round); font-weight: 700; font-size: var(--step--1);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in oklab, var(--f-light) 24%, transparent) 12px 13px),
    var(--ground-2);
}

/* ── section heads ──────────────────────────────────────────────────────── */
.section-head { max-width: 52ch; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head p:not(.kicker) { color: var(--ink-soft); margin-top: .6rem; }
.section-more { margin-top: 1.5rem; font-family: var(--round); font-weight: 700; }

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 3vw, 2rem); max-width: 62ch; }
.page-head h1 { text-wrap: balance; }
.page-head__sub { margin-top: 1rem; font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; text-wrap: pretty; }
.page-prose .page-head, .page-book .crumbs { margin-inline: auto; }

/* ── sources ────────────────────────────────────────────────────────────── */
.sources { padding-block: clamp(2rem, 5vw, 4rem); }
.sources__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.source { padding: 1.4rem; border-radius: var(--radius); }
.source h3 { font-size: var(--step-1); }
.source__line { margin-top: .35rem; font-weight: 600; color: color-mix(in oklab, var(--f-deep) 80%, var(--ink)); }
.source__detail { margin-top: .6rem; font-size: var(--step--1); color: var(--ink-soft); }

/* ── features ───────────────────────────────────────────────────────────── */
.feature {
  display: grid; gap: var(--pad); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.feature--flip { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.feature--flip .feature__text { order: 2; }
.feature--flip .feature__art { order: 1; }
.feature h2 { max-width: 18ch; text-wrap: balance; }
.feature__body { margin-top: 1rem; color: var(--ink-soft); max-width: var(--measure); text-wrap: pretty; }
.feature__art { display: grid; place-items: center; }

.ticks { margin-top: 1.4rem; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--ink); font-size: var(--step--1); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 1.05rem; height: 1.05rem; border-radius: 999px;
  background: radial-gradient(circle at 34% 30%, color-mix(in oklab, var(--f-light) 92%, white), var(--f-mid) 72%);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.2);
}
.ticks li::after {
  content: ""; position: absolute; left: .29rem; top: .62em;
  width: .46rem; height: .24rem; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg);
}

/* ── band ───────────────────────────────────────────────────────────────── */
.band { padding-block: clamp(2rem, 5vw, 3.5rem); }
.band__inner {
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3.25rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 60%),
    linear-gradient(150deg, var(--f-mid), color-mix(in oklab, var(--f-deep) 92%, black));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), var(--plastic-shadow-lift);
}
.band__inner .kicker { color: rgba(255,255,255,.72); }
.band__inner h2 { max-width: 20ch; text-wrap: balance; }
.band__inner p { margin-top: 1rem; max-width: 58ch; color: rgba(255,255,255,.9); text-wrap: pretty; }
.band__row { margin-top: 1.75rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.band__inner .btn--primary {
  color: var(--f-deep); background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 14px 28px -12px rgba(0,0,0,.5);
}
.band__inner .btn--ghost { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); box-shadow: none; }
.band__inner .btn--ghost:hover { background: rgba(255,255,255,.22); }
.band--tight { padding-block: clamp(2rem, 4vw, 3rem); }

/* ── character ──────────────────────────────────────────────────────────── */
.character {
  display: grid; gap: var(--pad); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.character h2 { max-width: 16ch; text-wrap: balance; }
.character p { margin-top: 1rem; color: var(--ink-soft); max-width: var(--measure); text-wrap: pretty; }
.character__hint { font-family: var(--round); font-weight: 700; color: var(--f-deep) !important; }
.character__swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.character__swatches span {
  aspect-ratio: 1; border-radius: 22px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--f-light) 88%, white), var(--f-mid));
  box-shadow: inset 0 2px 6px rgba(255,255,255,.7), inset 0 -8px 14px rgba(0,0,0,.16), var(--plastic-shadow);
}

/* ── shelves ────────────────────────────────────────────────────────────── */
.shelf { padding-block: clamp(1.5rem, 4vw, 2.75rem); }
.shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.shelf__title { font-size: var(--step-2); }
.shelf__blurb { margin-top: .3rem; color: var(--ink-soft); font-size: var(--step--1); max-width: 46ch; }
.shelf__all { font-family: var(--round); font-weight: 700; font-size: var(--step--1); text-decoration: none; white-space: nowrap; }
.shelf__all:hover { text-decoration: underline; }

/* The row bleeds to the viewport edge on small screens so covers don't get a cramped gutter. */
.shelf__scroller {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; scrollbar-width: thin;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  padding-bottom: .75rem;
}
.shelf__row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 42vw, 176px); gap: 1rem; }

.card { border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; transition: transform .14s ease, box-shadow .14s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--plastic-shadow-lift); }
.card__link { display: grid; gap: .7rem; padding: .7rem; text-decoration: none; color: inherit; height: 100%; align-content: start; }
.card__art { position: relative; display: block; }
/* Audible's covers are usually square but not always — "cover art coming soon" plates are wide.
   Contain, so a title never gets cropped off the side of its own artwork. */
.cover {
  width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius-sm); object-fit: contain;
  background: color-mix(in oklab, var(--ground-2) 70%, var(--ink-faint) 6%);
  box-shadow: 0 1px 2px rgba(12,42,52,.16), 0 8px 18px -8px rgba(12,42,52,.4);
}
.cover--blank { display: block; }
.cover--hero { border-radius: var(--radius); box-shadow: 0 3px 6px rgba(12,42,52,.18), 0 26px 50px -18px rgba(12,42,52,.55); }
.card__rank {
  position: absolute; left: -.35rem; top: -.35rem; min-width: 1.85rem; height: 1.85rem;
  display: grid; place-items: center; padding-inline: .35rem;
  border-radius: 999px; font-family: var(--round); font-weight: 800; font-size: .8125rem; color: #fff;
  background: linear-gradient(180deg, var(--f-mid), var(--f-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 6px rgba(12,42,52,.35);
}
.card__body { display: grid; gap: .18rem; align-content: start; }
.card__title {
  font-family: var(--round); font-weight: 700; font-size: .9375rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__author { font-size: .8125rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__meta { display: grid; gap: .1rem; font-size: .75rem; color: var(--ink-faint); margin-top: .15rem; }
.card__narrator { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stars { display: inline-flex; align-items: baseline; gap: .3rem; font-size: .75rem; color: var(--ink-faint); }
.stars__value { font-family: var(--round); font-weight: 700; color: color-mix(in oklab, var(--f-deep) 70%, var(--ink)); }
.stars__star { color: #e0a21c; }

/* ── categories ─────────────────────────────────────────────────────────── */
.cats { padding-block: clamp(2rem, 5vw, 3.5rem); }
.cats__grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cat {
  position: relative; display: block; padding: 1.15rem 2.4rem 1.15rem 1.15rem;
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--plastic-shadow-lift); }
.cat h3 { font-size: var(--step-0); }
.cat p { margin-top: .3rem; font-size: .8125rem; color: var(--ink-soft); }
.cat__go { position: absolute; right: 1.1rem; top: 1.15rem; color: var(--f-mid); font-weight: 700; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-block; padding: .35rem .8rem; border-radius: 999px;
  background: var(--well-tint); border: 1px solid var(--plastic-edge);
  font-size: var(--step--1); text-decoration: none; color: var(--ink-soft);
}
.pill:hover { color: var(--ink); background: var(--well); }
.pill--static { color: var(--ink-faint); }
.cats--pills { padding-block: clamp(1.5rem, 4vw, 2.5rem); }

/* ── crumbs ─────────────────────────────────────────────────────────────── */
.crumbs {
  padding-top: 1.5rem; font-size: var(--step--1); color: var(--ink-faint);
  display: flex; gap: .45rem; flex-wrap: wrap;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ── book page ──────────────────────────────────────────────────────────── */
.book {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(2rem, 5vw, 3.5rem);
}
.book__art { display: grid; gap: 1rem; }
.book h1 { font-size: var(--step-3); text-wrap: balance; }
.book__subtitle { margin-top: .4rem; font-size: var(--step-1); color: var(--ink-soft); font-weight: 500; }
.book__author { margin-top: .6rem; font-size: var(--step-1); color: color-mix(in oklab, var(--f-deep) 80%, var(--ink)); font-family: var(--round); font-weight: 700; }
.book__badges { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .9rem; }
.badge {
  padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: color-mix(in oklab, var(--f-light) 30%, transparent);
  color: color-mix(in oklab, var(--f-deep) 90%, var(--ink));
}
.book__summary { margin-top: 2rem; max-width: var(--measure); }
.book__summary h2 { font-size: var(--step-1); margin-bottom: .6rem; }
.book__summary p + p { margin-top: .9rem; }
.book__summary p { color: var(--ink-soft); text-wrap: pretty; }
.book__facts { margin-top: 2rem; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.book__facts > div { padding: .8rem 1rem; border-radius: var(--radius-sm); }
.book__facts dt { font-size: .6875rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.book__facts dd { margin: .2rem 0 0; font-size: var(--step--1); font-weight: 600; }
.book__genres { margin-top: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.book__own {
  margin-top: 2rem; padding: 1.25rem 1.4rem; border-radius: var(--radius);
  border-left: 4px solid var(--f-mid);
  background: color-mix(in oklab, var(--f-light) 18%, transparent);
}
.book__own h2 { font-size: var(--step-0); }
.book__own p { margin-top: .5rem; font-size: var(--step--1); color: var(--ink-soft); }

/* ── buy ────────────────────────────────────────────────────────────────── */
.buy { margin-top: 1.5rem; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.buy__link {
  display: grid; gap: .2rem; padding: .85rem 1.15rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
  background: var(--well-tint); border: 1px solid var(--plastic-edge);
  box-shadow: var(--plastic-shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.buy__link:hover { transform: translateY(-2px); box-shadow: var(--plastic-shadow-lift); }
.buy__link--primary {
  color: #fff; border-color: transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--f-mid), color-mix(in oklab, var(--f-deep) 90%, black));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 24px -12px color-mix(in oklab, var(--f-deep) 70%, transparent);
}
.buy__label { font-family: var(--round); font-weight: 700; }
.buy__note { font-size: .75rem; opacity: .78; }
.buy--compact { grid-template-columns: none; }

.disclosure {
  margin-top: 1rem; font-size: .8125rem; color: var(--ink-faint); max-width: 62ch;
  padding-left: .8rem; border-left: 2px solid var(--rule);
}
.disclosure--inline { margin-top: .8rem; }

/* ── faq / prose ────────────────────────────────────────────────────────── */
.faq { padding-block: clamp(2.5rem, 6vw, 4rem); }
.faq > h2 { margin-bottom: 1.25rem; }
.faq__list { display: grid; gap: .6rem; max-width: 74ch; }
.faq__item { border-radius: var(--radius-sm); padding: 0 1.15rem; }
.faq__item summary {
  cursor: pointer; list-style: none; padding: .95rem 0;
  font-family: var(--round); font-weight: 700; font-size: var(--step-0);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--f-mid); font-size: 1.4em; line-height: 1; flex: none; }
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding-bottom: 1rem; color: var(--ink-soft); max-width: var(--measure); }

.prose { max-width: 70ch; margin-inline: auto; padding-bottom: clamp(3rem, 8vw, 5rem); }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; margin-bottom: .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: .9rem; color: var(--ink-soft); text-wrap: pretty; }
.prose ul { margin-top: .9rem; display: grid; gap: .5rem; }
.prose ul li { position: relative; padding-left: 1.2rem; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: .4rem; height: .4rem; border-radius: 999px; background: var(--f-mid); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em;
  background: var(--well-tint); border: 1px solid var(--rule); border-radius: 5px; padding: .1em .35em;
}
.prose .note { padding: .8rem 1rem; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--f-light) 20%, transparent); color: var(--ink-soft); }
.prose__cta { margin-top: 2.5rem; }

.closer { text-align: center; padding-block: clamp(3rem, 8vw, 5.5rem); }
.closer h2 { max-width: 20ch; margin-inline: auto; text-wrap: balance; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot {
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
  background: color-mix(in oklab, var(--ground-2) 60%, transparent);
}
.foot__inner {
  max-width: var(--page); margin-inline: auto; padding: clamp(2rem, 5vw, 3rem) var(--gutter) 1.5rem;
  display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start;
}
.foot__brand { display: flex; gap: .8rem; align-items: flex-start; }
.foot__brand img { border-radius: 10px; flex: none; }
.foot__brand strong { font-family: var(--round); font-size: var(--step-0); }
.foot__brand p { font-size: var(--step--1); color: var(--ink-faint); margin-top: .15rem; max-width: 26ch; }
.foot__cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.foot__cols h2 {
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .55rem; font-weight: 700;
}
.foot__cols a { display: block; padding: .18rem 0; font-size: var(--step--1); color: var(--ink-soft); text-decoration: none; }
.foot__cols a:hover { color: var(--ink); text-decoration: underline; }
.foot__fine {
  max-width: var(--page); margin-inline: auto; padding: 1.25rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--rule); font-size: .75rem; color: var(--ink-faint);
  display: grid; gap: .4rem;
}
.foot__fine a { color: var(--ink-faint); }

/* ── narrow ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero, .feature, .feature--flip, .character { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__text, .feature--flip .feature__art { order: initial; }
  /* Text first on a narrow screen — a full-height phone shot above the headline buries the pitch. */
  .hero__art, .feature__art { order: 2; }
  .hero { padding-block: clamp(2rem, 8vw, 3rem) 1rem; }
  .character__swatches { grid-template-columns: repeat(6, 1fr); }
  .book { grid-template-columns: minmax(0, 1fr); }
  .book__art { width: min(240px, 60vw); }
  .foot__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* The links stay reachable — they scroll sideways rather than disappearing behind a menu. */
  .nav__inner { flex-wrap: wrap; row-gap: .35rem; padding-bottom: .35rem; }
  .nav__links {
    order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__end { margin-left: auto; }
  .character__swatches { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover, .cat:hover, .btn:hover, .buy__link:hover { transform: none; }
}

@media print {
  .nav, .foot__cols, .flavours, .buy, .shelf__scroller { display: none; }
  body { background: #fff; }
}
