/* Must-Read 50: warm paper and ink, claret accent, brass for the top ranks. */
:root {
  color-scheme: light;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #f5efe4; --surface: #fffcf6; --surface-2: #faf5ec;
  --ink: #1f1a15; --ink-2: #463e36; --ink-3: #685e54; --muted: #857a6e; --faint: #b0a597;
  --line: #e6dccd; --line-2: #efe7da; --control-line: #d6c9b6;
  --accent: #8a2b35; --accent-ink: #8a2b35; --accent-soft: #f5e6e4; --on-accent: #fff8ef;
  --brass: #b8913f; --brass-ink: #8a6420; --brass-line: #e5d3a8;
  --on-bg: #1f1a15; --on-ink: #fff8ef;
  --star: #c98a1b; --link: #8a2b35;
  --top-bar: rgba(245,239,228,.9);
  --shadow: 0 1px 2px rgba(60,40,20,.06), 0 6px 18px rgba(60,40,20,.06);
  --chip-new: #e3edef; --chip-new-ink: #2b5b68; --chip-classic: #f2e7cf; --chip-classic-ink: #7a5815; --chip-modern: #e6eedf; --chip-modern-ink: #3d6132;
  --fit: #f5e6e4; --fit-ink: #8a2b35; --want: #fbecd9; --want-ink: #87480f;
  --pos: #2f6a3c; --neg: #a3313b;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #14110e; --surface: #1d1915; --surface-2: #191511;
    --ink: #f2eadc; --ink-2: #d8cebe; --ink-3: #b3a897; --muted: #908676; --faint: #6c6357;
    --line: #2f2922; --line-2: #27221c; --control-line: #3e362c;
    --accent: #b8424e; --accent-ink: #eb9097; --accent-soft: rgba(235,144,151,.13); --on-accent: #fff8ef;
    --brass: #d8b25e; --brass-ink: #e0bd6c; --brass-line: #4a3e25;
    --on-bg: #f2eadc; --on-ink: #17130f;
    --star: #e9b04a; --link: #eb9097;
    --top-bar: rgba(20,17,14,.9);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.25);
    --chip-new: rgba(110,180,200,.14); --chip-new-ink: #9fd0dc; --chip-classic: rgba(216,178,94,.15); --chip-classic-ink: #e5c47a;
    --chip-modern: rgba(130,180,110,.14); --chip-modern-ink: #a9d394;
    --fit: rgba(235,144,151,.13); --fit-ink: #eb9097; --want: rgba(233,160,80,.14); --want-ink: #efbb80;
    --pos: #8fd19e; --neg: #f0959b;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
button { font: inherit; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 22px; height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 20px 0; background: var(--top-bar); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--accent);
  color: var(--on-accent); font-family: var(--serif); font-size: 14px; font-weight: 700; font-style: italic; box-shadow: inset -3px 0 0 rgba(0,0,0,.18); }
.brand-name { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; letter-spacing: -.2px; }
.brand-light { color: var(--accent-ink); font-style: italic; }
.nav { display: flex; gap: 2px; height: 100%; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: flex; align-items: center; color: var(--ink-3); text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 0 11px;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.beta-pill { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--brass-ink);
  border: 1px solid var(--brass-line); border-radius: 20px; padding: 3px 8px; flex-shrink: 0; }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; height: auto; gap: 0; padding: env(safe-area-inset-top) 16px 0; }
  .brand { height: 50px; }
  .beta-pill { align-self: center; }
  .nav { order: 3; flex-basis: calc(100% + 32px); margin: 0 -16px; padding: 0 8px; height: 42px; border-top: 1px solid var(--line-2); justify-content: space-between; }
  .nav a { padding: 0 6px; font-size: 13px; }
}
.nav .sm { display: none; }
@media (max-width: 520px) { .nav .lg { display: none; } .nav .sm { display: inline; } }

.page { max-width: 920px; margin: 0 auto; padding: 30px 20px 40px; }
.footer { max-width: 920px; margin: 0 auto; padding: 24px 20px calc(30px + env(safe-area-inset-bottom)); font-size: 11.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); }
.footer a { color: var(--ink-3); }
h1 { font-family: var(--serif); font-size: 38px; font-weight: 600; letter-spacing: -.6px; line-height: 1.08; }
h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.3px; }
.sub { color: var(--ink-3); font-size: 15px; line-height: 1.6; margin-top: 8px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px; margin-top: 18px; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 24px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--control-line); }
.btn-ghost:hover { border-color: var(--ink-3); filter: none; }
.input { border: 1px solid var(--control-line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.error { color: var(--neg); font-size: 13px; margin-top: 10px; }

/* ---- landing ---- */
.hero { text-align: center; padding: 26px 0 6px; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--brass-ink); }
.hero h1 { font-size: 52px; font-weight: 600; letter-spacing: -1.2px; margin-top: 10px; }
.hero h1 em { color: var(--accent-ink); font-weight: 500; }
.hero .sub { max-width: 560px; margin: 14px auto 0; font-size: 16.5px; }
.cta-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.cta-row .btn { padding: 12px 22px; font-size: 15px; }
.perks { margin-top: 30px; text-align: center; }
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; text-align: left; }
.perk { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 13px; color: var(--ink-3); line-height: 1.55; box-shadow: var(--shadow); }
.perk b { display: block; font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.25; margin-bottom: 6px; }
.perk-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.make-yours { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: var(--accent-soft); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.make-yours b { color: var(--ink); }
#upload { scroll-margin-top: 110px; }
@media (max-width: 860px) { .perk-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .perk-grid { grid-template-columns: 1fr; } }
.collage { isolation: isolate; overflow: hidden; margin: 30px -20px 0; padding: 14px 0 22px; display: grid; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.collage-row { display: flex; justify-content: center; gap: 16px; }
.collage-row:nth-child(2) { transform: translateX(48px); }
.collage .cover { width: 80px; height: 120px; transform: rotate(var(--r)); transition: transform .25s; }
.collage .cover:hover { transform: rotate(0) scale(1.06); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.step { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.step b { display: block; color: var(--ink); margin-bottom: 3px; font-weight: 600; }
.drop { display: block; margin-top: 18px; border: 1.5px dashed var(--brass-line); border-radius: 16px; padding: 32px 20px; text-align: center; background: var(--surface-2);
  cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-title { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.drop .muted { font-size: 13px; margin-top: 6px; }
.tabs { display: inline-flex; border: 1px solid var(--control-line); border-radius: 22px; padding: 3px; margin-top: 16px; }
.tabs button { border: 0; background: transparent; color: var(--ink-3); padding: 6px 14px; border-radius: 18px; cursor: pointer; font-size: 13.5px; }
.tabs button.on { background: var(--on-bg); color: var(--on-ink); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.pillar { padding-top: 14px; border-top: 2px solid var(--ink); font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.pillar b { display: block; color: var(--ink); font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.progress { margin-top: 22px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
@media (max-width: 700px) {
  .hero h1 { font-size: 36px; letter-spacing: -.8px; }
  .collage { margin: 22px -16px 0; gap: 10px; padding: 10px 0 16px; }
  .collage-row { gap: 10px; }
  .collage-row:nth-child(2) { transform: translateX(32px); }
  .collage .cover { width: 56px; height: 84px; }
  .steps, .pillars { grid-template-columns: 1fr; }
  .pillars { gap: 18px; }
}

/* ---- list ---- */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 18px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.control { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.control input[type=range], .control input[type=checkbox] { accent-color: var(--accent); }
.control input[type=range] { width: 150px; }
.control label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.mixline { font-size: 12px; color: var(--muted); margin-top: 10px; }
.book { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 12px; box-shadow: var(--shadow); }
.book.top { border-color: var(--brass-line); }
.rank { width: 44px; flex-shrink: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; font-style: italic; color: var(--faint); text-align: center; line-height: 1; }
.book.top .rank { color: var(--brass-ink); font-size: 40px; }
.cover { width: 68px; height: 102px; flex-shrink: 0; border-radius: 2px 4px 4px 2px; overflow: hidden; background: linear-gradient(150deg, #8a2b35, #4d1820); position: relative;
  box-shadow: 0 2px 4px rgba(30,20,10,.2), 0 8px 16px rgba(30,20,10,.18); display: flex; align-items: flex-end; padding: 6px; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.22) 0, rgba(255,255,255,.12) 3px, transparent 7px); pointer-events: none; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover span { font-family: var(--serif); color: #fff8ef; font-size: 9.5px; font-weight: 600; line-height: 1.15; }
.binfo { flex: 1; min-width: 0; }
.btitle { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -.2px; }
.bauthor { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.chip-n { background: var(--chip-new); color: var(--chip-new-ink); }
.chip-m { background: var(--chip-modern); color: var(--chip-modern-ink); }
.chip-c { background: var(--chip-classic); color: var(--chip-classic-ink); }
.chip-score { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 2px 8px; font-variant-numeric: tabular-nums; }
.bhead { display: flex; align-items: flex-start; gap: 12px; }
.bhead > div { flex: 1; min-width: 0; }
.mscore { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 8px 5px;
  border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink); text-decoration: none; line-height: 1; }
.mscore b { font-family: var(--serif); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mscore span { font-size: 9px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-3); text-align: center; margin-top: 3px; line-height: 1.15; }
.book.top .mscore { border-color: var(--brass); }
.book.top .mscore b { color: var(--brass-ink); font-size: 30px; }
.book.compact .mscore { min-width: 48px; padding: 4px 6px; }
.book.compact .mscore b { font-size: 20px; }
.book.compact .mscore span { font-size: 8px; }
.chip-fit { background: var(--fit); color: var(--fit-ink); }
.chip-want { background: var(--want); color: var(--want-ink); }
.stars { font-size: 12px; color: var(--muted); }
.stars b { color: var(--star); }
.why { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin-top: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.badges-label { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.badge-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 8px; }
.badge-group-name { font-size: 12.5px; color: var(--ink-3); padding-top: 2px; }
.badge-group .badges { margin-top: 0; }
@media (max-width: 480px) { .badge-group { grid-template-columns: 1fr; gap: 4px; } }
.badge { font-size: 10.5px; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 2px 8px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; }
.links a { color: var(--link); text-decoration: none; font-weight: 600; }
.links a:hover { text-decoration: underline; }
.links { align-items: center; }
.getit { position: relative; }
.getit summary { list-style: none; cursor: pointer; }
.getit summary::-webkit-details-marker { display: none; }
.getit-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; }
.links .getit-menu a { display: grid; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 400; }
.links .getit-menu a:hover { background: var(--surface-2); text-decoration: none; }
.getit-menu b { font-size: 13.5px; font-weight: 600; }
.getit-menu span { font-size: 11.5px; color: var(--muted); }
.links a.gr-link { color: var(--ink-3); font-weight: 500; }
.book.compact { padding: 12px 16px; gap: 14px; }
.book.compact .rank { font-size: 21px; width: 32px; }
.book.compact .cover { width: 42px; height: 63px; }
.book.compact .btitle { font-size: 16px; }
@media (max-width: 700px) {
  h1 { font-size: 32px; }
  .book { gap: 12px; padding: 14px; }
  .rank { width: 28px; font-size: 24px; }
  .book.top .rank { font-size: 30px; }
  .cover { width: 54px; height: 81px; }
  .btitle { font-size: 17.5px; }
  .control input[type=range] { width: 120px; }
}

/* ---- taste / next / how ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tile-label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.tile-value { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-top: 2px; }
.tile-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }
.row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.row:last-child { border-bottom: 0; }
.pos { color: var(--pos); font-weight: 700; } .neg { color: var(--neg); font-weight: 700; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chipbtn { border: 1px solid var(--control-line); background: var(--surface); color: var(--ink-3); border-radius: 18px; padding: 6px 13px; font-size: 13px; cursor: pointer; }
.chipbtn.on { background: var(--on-bg); color: var(--on-ink); border-color: var(--on-bg); }
.prose { font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 680px; }
.prose h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); margin: 24px 0 6px; }
.prose ul { padding-left: 20px; } .prose li { margin: 5px 0; }
.prose table { border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.prose details.fine { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; }
.prose details.fine > summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); padding: 6px 0; }
.prose details.fine > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.prose details.fine[open] > summary { margin-bottom: 4px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 7px 14px 7px 0; text-align: left; }

/* ---- freshness + install ---- */
.btn-small { padding: 7px 14px; font-size: 13px; }
.updated { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.updated.stale span { color: var(--want-ink); }
.a2hs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--brass-line); background: var(--surface-2); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.a2hs b:first-child { display: block; color: var(--ink); font-family: var(--serif); font-size: 15.5px; font-weight: 600; }
.a2hs-actions { display: flex; gap: 8px; }

/* ---- accounts ---- */
.save-card > div:first-child { flex: 1 1 260px; }
.signin { flex: 1 1 300px; display: grid; gap: 8px; }
.signin .error { margin-top: 0; }
.signin-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signin-row .input { flex: 1 1 180px; min-width: 0; }
.signin-opt { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.signin-opt input { margin-top: 2px; }
.linkbtn { justify-self: start; background: none; border: 0; padding: 0; color: var(--link); font-size: 12.5px; cursor: pointer; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn-ghost.danger { color: var(--neg); }
.acct-note { font-size: 12.5px; line-height: 1.5; margin-top: 12px; }

/* ---- slider feedback ---- */
.change-note { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); }
.chip-added { background: var(--accent); color: var(--on-accent); }
.book.just-added { border-color: var(--accent); }

/* ---- up next ---- */
.notice { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.holiday-notice { border-color: var(--brass-line); }
.picker { margin-top: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; }
.picker-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.picker-label { width: 46px; flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.chip-holiday { border-color: var(--brass-line); color: var(--brass-ink); font-weight: 600; }
.chip-holiday.on { background: var(--brass); border-color: var(--brass); color: #1a1407; }
.picks { display: grid; gap: 12px; margin-top: 16px; }
.pick { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.picks .pick:first-child { border-color: var(--brass-line); }
.pick .cover { width: 92px; height: 138px; }
.pick-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.pick-facts { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.pick-facts b { color: var(--fit-ink); }
.holiday-fits { font-size: 12.5px; color: var(--brass-ink); margin-top: 6px; font-weight: 600; }
.surprise { margin-top: 14px; }
#surprise-out .pick { margin-top: 12px; border-color: var(--accent); }
.section-label { margin-top: 26px; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.also { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.also-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: 13.5px; }
.also-row:last-child { border-bottom: 0; }
.also-row:hover { background: var(--surface-2); }
.also-rank { width: 30px; flex-shrink: 0; font-family: var(--serif); font-style: italic; color: var(--faint); }
.also-title { font-weight: 600; }
.also-author { color: var(--ink-3); font-size: 12.5px; flex: 1; }
.also-main { flex: 1; min-width: 0; }
.also-fit { color: var(--fit-ink); font-weight: 700; font-size: 13px; }
.popular-why { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 700px) {
  .pick { gap: 14px; padding: 14px; }
  .pick .cover { width: 66px; height: 99px; }
  .picker-label { width: 100%; }
  .also-row:not(.popular) { flex-wrap: wrap; }
  .also-row:not(.popular) .also-author { flex-basis: 100%; padding-left: 40px; order: 3; }
}

.howto { list-style: none; padding: 0 !important; display: grid; gap: 8px; margin-top: 8px; }
.howto li { margin: 0 !important; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.howto b { color: var(--ink); }
.prose h1 { color: var(--ink); }

/* ---- book pages (/book/<id>/) ---- */
a.btitle { display: block; color: var(--ink); text-decoration: none; }
a.btitle:hover { color: var(--accent-ink); }
.bp-back { display: inline-block; font-size: 13px; color: var(--ink-3); text-decoration: none; margin-bottom: 16px; }
.bp-back:hover { color: var(--ink); }
.bp-head { display: flex; gap: 26px; align-items: flex-start; }
.bp-head h1 { margin-top: 6px; }
.cover.bp-cover { width: 150px; height: 225px; border-radius: 3px 6px 6px 3px; }
.cover.bp-cover span { font-size: 16px; padding: 10px; }
.bp-author { font-family: var(--serif); font-size: 19px; color: var(--ink-2); margin-top: 6px; }
.bp-facts { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }
.bp-series { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; font-style: italic; }
.bp-doors { font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--accent-ink); margin-top: 10px; }
.bp-time { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.bp-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.bp-actions .links { margin-top: 0; }
.bp-share { background: none; border: 0; color: var(--ink-3); font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 0; }
.bp-share:hover { color: var(--ink); text-decoration: underline; }
.foryou { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-top: 20px; padding: 12px 16px; border-radius: 14px;
  background: var(--fit); color: var(--fit-ink); font-size: 14px; }
.foryou .eyebrow { color: var(--fit-ink); }
.foryou a { color: inherit; }
.bookpage .card h2 { font-size: 22px; }
.bp-story h2 { font-size: 20px; margin-top: 22px; }
.bp-story h2:first-child { margin-top: 0; }
.bp-story p { font-size: 16px; line-height: 1.65; color: var(--ink); margin-top: 8px; max-width: 68ch; }
.bookpage h3 { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.bp-score { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.bp-big { font-family: var(--serif); font-size: 54px; font-weight: 600; line-height: 1; display: grid; text-align: center; }
.bp-big small { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.bp-breakdown { flex: 1; min-width: 240px; }
.stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line-2); }
.stack i { display: block; height: 100%; }
.seg-consensus { background: var(--brass); }
.seg-reader { background: var(--accent); }
.seg-bestseller { background: var(--chip-modern-ink); }
.seg-momentum { background: var(--chip-new-ink); }
.bp-parts { list-style: none; display: grid; gap: 6px; margin-top: 12px; font-size: 13.5px; }
.bp-parts li { display: grid; grid-template-columns: 10px 76px 1fr auto; gap: 8px; align-items: baseline; }
.bp-parts .dot { width: 9px; height: 9px; border-radius: 50%; align-self: center; }
.bp-parts .muted { font-size: 12.5px; }
.bp-parts .pts { font-weight: 600; font-variant-numeric: tabular-nums; }
.bp-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.bookpage .card > .sub { margin-top: 14px; }
.bp-ranks { list-style: none; margin-top: 6px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.bp-ranks b { color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.bp-honors { list-style: none; margin-top: 6px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.bp-honors li::before { content: '◆'; color: var(--brass); font-size: 9px; margin-right: 8px; vertical-align: 2px; }
.bp-moods { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.bp-how { font-size: 13px; }
.bookpage .make-yours { margin-top: 18px; }
.bp-sub { font-size: 20px; margin-top: 30px; }
.minis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 12px; }
.mini { text-decoration: none; color: var(--ink); display: grid; gap: 3px; font-size: 12.5px; line-height: 1.3; align-content: start; }
.mini .cover { width: 100%; height: auto; aspect-ratio: 2 / 3; margin-bottom: 5px; }
.mini b { font-weight: 600; }
.mini span { color: var(--muted); font-size: 11.5px; }
.mini:hover b { color: var(--accent-ink); }
.buybar { display: none; }
@media (max-width: 700px) {
  .bp-head { gap: 16px; }
  .cover.bp-cover { width: 104px; height: 156px; }
  .bp-author { font-size: 16.5px; }
  .minis { grid-template-columns: repeat(3, 1fr); }
  .bp-big { font-size: 44px; }
  .buybar:not([hidden]) { display: flex; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; gap: 12px; align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--top-bar); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); }
  .buybar .cover { width: 30px; height: 45px; }
  .buybar .cover span { display: none; }
  .buybar-t { flex: 1; min-width: 0; display: grid; font-size: 13px; line-height: 1.25; }
  .buybar-t b, .buybar-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar-t span { color: var(--muted); font-size: 12px; }
  .buybar .links { margin-top: 0; }
  .buybar .gr-link { display: none; }
  .buybar .getit-menu { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
  .bookpage { padding-bottom: 90px; }
}

/* Quick answers on book pages, and the static Top 50 page (site/top-50/) */
.t50 h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 42px); font-weight: 600; margin: 8px 0 6px; }
.t50 > .sub { max-width: 68ch; }
.t50-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.t50-row { display: grid; grid-template-columns: 34px 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.t50-n { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brass-ink); text-align: center; font-variant-numeric: tabular-nums; }
.t50-cover .cover { width: 64px; height: 96px; }
.t50-main { min-width: 0; }
.t50-main h2 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0; text-wrap: balance; }
.t50-main h2 a { color: var(--ink); text-decoration: none; }
.t50-main h2 a:hover { color: var(--accent-ink); }
.t50-main p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.t50-score { display: grid; justify-items: center; color: var(--ink-3); }
.t50-score b { font-family: var(--serif); font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.t50-score small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 560px) {
  .t50-row { grid-template-columns: 26px 48px minmax(0, 1fr); }
  .t50-cover .cover { width: 48px; height: 72px; }
  .t50-score { grid-column: 3; justify-items: start; grid-template-columns: auto auto; gap: 6px; align-items: baseline; }
}
.hub-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 6px 18px; }
.hub-links li { margin: 0; }
.hub-links .muted { color: var(--muted); font-size: 12.5px; }

/* ---- a whole book row or card opens its page; the title's link stretches over it ---- */
.book, .pick, .t50-row { position: relative; transition: border-color .15s, box-shadow .15s; }
.row-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.book .mscore, .book .links, .pick .links, .t50-main a:not(.row-link) { position: relative; z-index: 2; }
.getit[open] { z-index: 30; }
.book:hover, .pick:hover, .t50-row:hover { border-color: var(--brass-line); }
.book:hover .btitle, .pick:hover .btitle, .t50-row:hover h2 a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.row-link:focus-visible { outline: none; }
.row-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.more-link { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--link); }
.book:hover .more-link, .pick:hover .more-link, .t50-row:hover .more-link { text-decoration: underline; }
.t50-main .more-link { margin-top: 6px; }

/* ---- best-of list tiles ---- */
.shelf { margin-top: 36px; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.shelf h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; }
.shelf-all { font-size: 13px; font-weight: 600; text-decoration: none; }
.shelf-all:hover { text-decoration: underline; }
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin-top: 14px; }
.hub-tile { display: grid; gap: 2px; align-content: start; padding: 14px 14px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.hub-tile:hover { transform: translateY(-2px); border-color: var(--brass-line); }
.hub-tile:hover b { color: var(--accent-ink); }
.hub-covers { display: flex; height: 84px; margin: 2px 0 12px 6px; }
.hub-covers img { width: 56px; height: 84px; object-fit: cover; border-radius: 2px 4px 4px 2px; background: var(--surface-2);
  box-shadow: 0 2px 6px rgba(30,20,10,.28); margin-left: -16px; }
.hub-covers img:first-child { margin-left: 0; transform: rotate(-5deg); }
.hub-covers img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-3px); }
.hub-covers img:nth-child(3) { transform: rotate(5deg); }
.hub-tile b { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.25; }
.hub-tile > span:last-child { font-size: 12px; color: var(--muted); }
@media (max-width: 520px) {
  .hub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hub-tile { padding: 12px; }
  .hub-covers { height: 72px; }
  .hub-covers img { width: 48px; height: 72px; margin-left: -14px; }
  .shelf h2 { font-size: 20px; }
}
@media (max-width: 400px) { .nav a { padding: 0 4px; font-size: 12.5px; } }
@media (max-width: 520px) {
  /* on phones a shelf is one swipeable row, so it doesn't push the rest of the page down */
  .shelf-row .hub-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -16px 0; padding: 2px 16px 10px; scrollbar-width: none; }
  .shelf-row .hub-tiles::-webkit-scrollbar { display: none; }
  .shelf-row .hub-tile { flex: 0 0 42%; scroll-snap-align: start; }
}

/* ---- book page: liked books as covers, quick answers as a compact accordion ---- */
.minis.bp-like { grid-template-columns: repeat(3, minmax(0, 120px)); gap: 16px; }
.bp-qa { margin-top: 30px; }
.bp-qa details { border-bottom: 1px solid var(--line); }
.bp-qa details:first-of-type { border-top: 1px solid var(--line); margin-top: 10px; }
.bp-qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 2px; }
.bp-qa summary::-webkit-details-marker { display: none; }
.bp-qa summary::after { content: '+'; flex: none; font-size: 20px; line-height: 1; color: var(--ink-3); transition: transform .15s; }
.bp-qa details[open] summary::after { transform: rotate(45deg); }
.bp-qa summary:hover h3 { color: var(--accent-ink); }
.bp-qa summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.bp-qa h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.bp-qa details p { color: var(--ink-2); line-height: 1.6; margin: 0 2px 14px; font-size: 14.5px; }
