/* Tāst — the gallery language, as tokens (web #140).
   Mirrors the app: white ground, black ink, hairline rules, no accent
   colour, system face for everything but the wordmark (Times, like the app).
   Zero external requests — fonts are the viewer's own. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --text: #111111;
  --muted: #8a8a86;
  --faint: #b5b5b1;
  --rule: #e0e0e0;
  --wash: #f6f6f4;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Times New Roman", Times, serif;
  --measure: 66ch;
  --gutter: 24px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d0d0c;
    --ink: #f4f4f1;
    --text: #ececea;
    --muted: #8f8f8a;
    --faint: #5c5c58;
    --rule: #272726;
    --wash: #161615;
  }
}
:root[data-theme="dark"] {
  --paper: #0d0d0c;
  --ink: #f4f4f1;
  --text: #ececea;
  --muted: #8f8f8a;
  --faint: #5c5c58;
  --rule: #272726;
  --wash: #161615;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; display: block; }

/* ── page frame ─────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.site-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 16px 0; border-bottom: 1px solid var(--ink);
}
/* Primary nav: the five hubs. Same weight grammar as the app's category
   tabs - muted, current one black + 600 - no boxes, no uppercase. */
.site-nav { display: flex; align-items: center; gap: 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; font-size: 15px; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: 6px 0; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.on { color: var(--ink); font-weight: 600; }
.site-actions { flex: none; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--ink); text-decoration: none; letter-spacing: 0.005em; }
.site-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-actions a { color: var(--muted); text-decoration: none; }
.site-actions a:hover { color: var(--ink); }
/* "Get the app" is the same object here as at the foot of the page - one
   button, two placements. Restated because `.site-actions a` above outranks
   `.btn-solid` on specificity and would grey the label out. */
/* People search in the bar: an inline field on a laptop (Enter submits),
   a plain "People" link on a phone where the bar has no room for a field.
   Both lead to /people, which carries the same form full-size. */
.site-search input { font: inherit; font-size: 13.5px; width: 150px; padding: 7px 10px; border: 1px solid var(--rule); background: var(--paper); color: var(--text); border-radius: 0; -webkit-appearance: none; }
.site-search input:focus { outline: none; border-color: var(--ink); }
.site-search input::placeholder { color: var(--muted); }
.site-people { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-actions .btn-solid { color: var(--paper); padding: 8px 14px; font-size: 13.5px; }
.site-actions .btn-solid:hover { color: var(--paper); opacity: 0.85; }
main.wrap { padding-top: 40px; padding-bottom: 72px; } /* class-qualified so it outranks .wrap's shorthand; .wrap keeps the gutter */
.site-footer {
  border-top: 1px solid var(--rule); padding-top: 28px; padding-bottom: 48px;
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 18px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer p { margin: 0 0 8px; max-width: 80ch; }
.site-footer .credit { color: var(--faint); }

/* ── buttons (the app's grammar: outline = save intent, solid = rank) ── */
.btn, .btn-solid {
  display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 10px 16px; border: 1px solid var(--ink); color: var(--ink); background: transparent;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--wash); }

/* ── type ───────────────────────────────────────────────────── */
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.15; font-weight: 600; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 14px; max-width: var(--measure); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.tabular { font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }

/* ── documents (terms, privacy, support) ────────────────────── */
.doc { max-width: 680px; }
.doc .updated { color: var(--muted); font-size: 13px; margin: 6px 0 28px; }
.doc h1 { font-size: 26px; }
.doc h2 { font-size: 17px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 20px; margin: 0 0 14px; max-width: var(--measure); }
.doc li { margin-bottom: 6px; }
.doc .doc-lede { font-size: 19px; line-height: 1.5; color: var(--text); margin: 0 0 20px; }
.doc .doc-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; }
.doc .disclaimer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; font-style: italic; }
.doc strong { font-weight: 600; }

/* ── the deep-link / not-found page (compact, centered) ─────── */
.note-page { max-width: 480px; margin: 40px auto 0; text-align: center; }
.note-page h1 { font-size: 22px; margin-bottom: 8px; }
.note-page p { margin: 0 auto 14px; }
.note-page .cta-row { margin-top: 24px; }

/* ── content primitives the four page types share ───────────── */
.cover { background: var(--wash); border: 1px solid var(--rule); object-fit: cover; }
.cover-portrait { width: 84px; height: 120px; }
.cover-square { width: 84px; height: 84px; }
.score { font-variant-numeric: tabular-nums; font-weight: 600; }
.hair-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hair-table th { text-align: left; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 16px 8px 0; border-bottom: 1px solid var(--ink); }
.hair-table td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.scroll-x { overflow-x: auto; }

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  main.wrap { padding-top: 28px; }
  /* Wordmark + Get the app on the first row; the five hubs on their own
     scrollable row beneath (order: -1 keeps the markup order for readers). */
  .site-bar { padding: 12px 0 0; flex-wrap: wrap; gap: 0 16px; }
  .site-nav { order: 3; flex-basis: 100%; gap: 18px; padding: 8px 0 10px; font-size: 14px; }
  .site-actions { order: 2; margin-left: auto; gap: 14px; }
  .site-search { display: none; }
  .site-people { display: inline; color: var(--muted); }
  .wordmark { font-size: 23px; order: 1; }
  h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ── profile (web #141) ─────────────────────────────────────── */
/* The landing header. Bigger than the app's 96pt because this page is a
   destination (a bio link lands here), not a tab - but still left-aligned
   and hairlined like everything else; no banner, no wash, no centring. The
   compare CTA lives here, where the eye lands, not after five columns. */
.p-head { display: flex; gap: 28px; align-items: flex-start; }
.p-avatar { width: 160px; height: 160px; flex: none; object-fit: cover; border: 1px solid var(--rule); }
.p-id { min-width: 0; }
.p-cta { margin-top: 18px; }
.p-avatar-empty { display: flex; align-items: center; justify-content: center; font-size: 64px; color: var(--ink); background: var(--wash); }
.p-name { font-size: 40px; line-height: 1.05; }
.p-meta { margin: 6px 0 0; font-size: 14px; }
.p-bio { margin: 12px 0 0; max-width: 60ch; font-size: 17px; }
.p-stats { margin: 22px 0 0; font-size: 14px; }
.p-private { margin-top: 28px; max-width: 48ch; }
/* Three columns on a laptop rather than five: room for a cover and a
   title that wraps instead of truncating (Nico, 2026-09-06). */
.p-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 28px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ink);
}
.p-col-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.p-list { list-style: none; margin: 0; padding: 0; }
.p-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 14.5px; border-bottom: 1px solid var(--rule); }
.p-cover { width: 32px; flex: none; }
.cover-portrait.p-cover { height: 46px; }
.cover-square.p-cover { height: 32px; }
/* Rows hold the poster height whatever the art, as on the home cards. */
.p-row-art { min-height: 59px; }
.p-row:last-child { border-bottom: 0; }
.p-rank { color: var(--faint); width: 22px; flex: none; text-align: right; font-size: 12.5px; }
.p-title { flex: 1; min-width: 0; text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.3; }
.p-title:hover { text-decoration: underline; }
.p-score { color: var(--muted); }
.p-more { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 13px; }
/* The per-column subtype toggle (Movies | Directors). Same grammar as the
   rankings page's segmented control, but the segments are labels for
   hidden radio inputs, and CSS shows the checked subtype's list - no
   script. One rule per subtype because CSS can't read the value. */
.p-seg-input { position: absolute; opacity: 0; width: 0; height: 0; }
.p-segs { display: inline-flex; border: 1px solid var(--ink); margin: 2px 0 10px; }
.p-seg { font-size: 12px; color: var(--ink); padding: 4px 11px; cursor: pointer; white-space: nowrap; }
.p-seg + .p-seg { border-left: 1px solid var(--ink); }
.p-seg:hover { background: var(--wash); }
.p-seg-input:focus-visible ~ .p-segs { outline: 2px solid var(--ink); outline-offset: 2px; }
.p-sub { display: none; }
.p-sub.on { display: block; }
.p-col input[value="film"]:checked ~ .p-sub-film { display: block; }
.p-col input[value="director"]:checked ~ .p-sub-director { display: block; }
.p-col input[value="tv"]:checked ~ .p-sub-tv { display: block; }
.p-col input[value="creator"]:checked ~ .p-sub-creator { display: block; }
.p-col input[value="book"]:checked ~ .p-sub-book { display: block; }
.p-col input[value="author"]:checked ~ .p-sub-author { display: block; }
.p-col input[value="music"]:checked ~ .p-sub-music { display: block; }
.p-col input[value="album"]:checked ~ .p-sub-album { display: block; }
.p-col input[value="song"]:checked ~ .p-sub-song { display: block; }
.p-col input[value="podcast"]:checked ~ .p-sub-podcast { display: block; }
.p-col input[value="film"]:checked ~ .p-segs .p-seg[data-sub="film"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.p-col input[value="director"]:checked ~ .p-segs .p-seg[data-sub="director"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.p-col input[value="tv"]:checked ~ .p-segs .p-seg[data-sub="tv"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.p-col input[value="creator"]:checked ~ .p-segs .p-seg[data-sub="creator"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.p-col input[value="book"]:checked ~ .p-segs .p-seg[data-sub="book"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.p-col input[value="author"]:checked ~ .p-segs .p-seg[data-sub="author"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.p-col input[value="music"]:checked ~ .p-segs .p-seg[data-sub="music"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.p-col input[value="album"]:checked ~ .p-segs .p-seg[data-sub="album"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.p-col input[value="song"]:checked ~ .p-segs .p-seg[data-sub="song"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.p-col input[value="podcast"]:checked ~ .p-segs .p-seg[data-sub="podcast"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.p-more a { color: var(--muted); }
.p-crumb { margin: 26px 0 0; font-size: 14px; }
.p-full { margin-top: 24px; max-width: 640px; }
.p-full h2, .p-lists h2, .p-compare h2 { font-size: 18px; margin-bottom: 10px; }
.p-own { font-size: 18px; margin: 28px 0 -12px; }
/* Badges: the highest rung held on each ladder, as quiet cards. Tier is
   words, not colour - the site has none; platinum/gold get a solid rule. */
.p-badges { margin-top: 18px; }
.p-badge-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
/* Small pills, name only ("Silver · Film"); the description rides on the
   title attribute. Nico: the first cut was far too big. */
.p-badge { border: 1px solid var(--rule); padding: 3px 9px; font-size: 12px; line-height: 1.4; white-space: nowrap; color: var(--text); }
.p-badge-gold, .p-badge-platinum { border-color: var(--ink); font-weight: 600; }
.p-list-full .p-row { padding: 9px 0; }
.p-lists { margin-top: 40px; max-width: 640px; }
.p-compare { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--ink); max-width: 56ch; }
.p-compare .cta-row + .cta-row { margin-top: 10px; }
.cta-row { margin-top: 18px; }
.cta-row .btn-solid, .cta-row .btn { max-width: 100%; text-align: center; }
@media (max-width: 600px) {
  .p-head { gap: 16px; }
  .p-avatar { width: 120px; height: 120px; }
  .p-avatar-empty { font-size: 48px; }
  .p-name { font-size: 30px; }
  .p-bio { font-size: 16px; }
  .p-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── definitive rankings (web #142) ─────────────────────────── */
/* The reading measure applies to the PROSE, not the whole header: the chip
   rows used to inherit a 720px cap from here and wrapped at two-thirds of
   the page while the table beneath ran full width. */
.r-head { max-width: none; }
.r-sub, .r-summary { max-width: 720px; }
.r-title { font-size: 34px; margin-top: 8px; }
.r-sub { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
/* The subtype toggle: WHAT is ranked (Movies | Directors), as distinct from
   the filter chips below it, which narrow WITHIN a ranking. So it borrows
   the app's segmented control - joined segments, one hairline border,
   active segment filled - rather than the chips' outlined-and-separate
   grammar, and nobody reads "Directors" as a filter on movies. */
.r-subtypes { display: inline-flex; margin-top: 14px; border: 1px solid var(--ink); }
.r-seg { font-size: 13px; color: var(--ink); text-decoration: none; padding: 6px 14px; white-space: nowrap; }
.r-seg + .r-seg { border-left: 1px solid var(--ink); }
.r-seg:hover { background: var(--wash); }
.r-seg.on, .r-seg.on:hover { background: var(--ink); color: var(--paper); font-weight: 600; }
/* The one quotable sentence a facet page makes ("The most divisive film
   on Tāst is X: 7 rankings spread from 4.1 to 9.2") - in ink, not muted,
   because it is the claim, not the caption. */
.r-summary { margin-top: 6px; font-size: 15.5px; color: var(--text); }
.r-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.r-filters-genres { margin-top: 8px; }
.r-filter { font-size: 13px; color: var(--muted); text-decoration: none; padding: 5px 11px; border: 1px solid var(--rule); }
.r-filter.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
/* Fixed layout with explicit column widths. Under the browser's automatic
   layout every page sized its own columns - the position column by digit
   count, the title column by the longest title, the spread column by what
   was left - so moving between Movies, Directors and Artists shifted every
   column. Now only the title column flexes, and it is the same column on
   every page. */
.r-table { margin-top: 24px; min-width: 620px; table-layout: fixed; }
.r-table .c-n { width: 46px; }
.r-table .c-cover { width: 62px; }
.r-table .c-score { width: 64px; }
.r-table .c-count { width: 90px; }
.r-table .c-spread { width: 190px; }
.r-table td { padding-right: 18px; }
.r-n { color: var(--faint); }
/* A constant row height whatever the artwork: square album art (40px) is
   shorter than a poster (56px), which made music rows shorter than film
   rows. The cell holds the poster height; square art centres in it. */
.r-cover { height: 76px; } /* border-box: 56px poster + 10px padding top and bottom; collapsed border makes the row 77 */
.r-img { width: 40px; height: 56px; }
.cover-square.r-img { height: 40px; }
.r-work { overflow-wrap: anywhere; }
.r-work a { text-decoration: none; font-weight: 500; }
.r-work a:hover { text-decoration: underline; }
.r-work small { display: block; font-size: 12px; margin-top: 1px; }
.r-score { font-size: 15px; }

.spread { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; margin-right: 12px; vertical-align: middle; }
.spread i { display: block; width: 3px; background: var(--ink); }
.verdict { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.verdict-none { color: var(--faint); }
.r-empty { margin-top: 28px; }
.r-pager { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; font-size: 14px; }
.r-pager a { text-decoration: none; }
.r-pager a:hover { text-decoration: underline; }
.r-pager + .scroll-x .r-table { margin-top: 12px; }
.r-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; max-width: 720px; }
.r-foot a + a { margin-left: 14px; }
@media (max-width: 600px) { .r-title { font-size: 28px; } }

/* ── item page (web #143) ───────────────────────────────────── */
/* The page is one two-column grid: cover on the left, EVERYTHING else in
   the right column - so About, Ranked by and More by line up under the
   title rather than wrapping beneath the cover (Nico, 2026-09-06). The
   header is display: contents so its two children place themselves. */
.i-page { display: grid; grid-template-columns: 180px 1fr; column-gap: 32px; align-items: start; }
.i-head { display: contents; }
.i-cover-col { grid-column: 1; grid-row: 1 / span 20; }
/* min-width: 0 is load-bearing: a grid track's default min-width is
   "auto", so the horizontally scrolling shelf would widen the column to
   fit all twelve cards and push the whole page sideways. */
.i-identity, .i-about, .i-rankers, .i-moreby, .i-lists, .i-cta, .i-foot { grid-column: 2; min-width: 0; }
.i-cta { margin-top: 32px; }
.i-page { min-width: 0; }
.i-cover { width: 180px; height: 260px; }
.i-cover-square { height: 180px; }
.i-cover-empty { display: flex; align-items: center; justify-content: center; font-size: 56px; color: var(--ink); }
.i-credit { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.i-credit a { color: var(--muted); }
.i-title { font-size: 34px; margin-top: 6px; }
.i-sub, .i-genres { margin: 6px 0 0; font-size: 14.5px; }
.i-sub a, .i-genres a { color: inherit; text-decoration: none; }
.i-sub a:hover, .i-genres a:hover { text-decoration: underline; }
.i-stats { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.i-stat .ctx { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.i-stat .k, .i-dist .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.i-stat .v { font-size: 30px; line-height: 1.15; margin-top: 2px; }
.i-stat .v small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.i-stat .v.i-verdict { font-family: var(--sans); font-size: 18px; font-weight: 600; padding-top: 6px; }
.i-dist { margin-top: 20px; max-width: 520px; }
/* The spread of opinion as a smoothed density: a line over a faint area,
   the axis as the bottom edge. non-scaling-stroke keeps the line 1.5px
   however the box is stretched. */
.i-density { display: block; width: 100%; height: 44px; margin-top: 10px; border-bottom: 1px solid var(--ink); overflow: visible; }
.i-density .area { fill: var(--ink); fill-opacity: 0.12; }
.i-density .line { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.i-axis-labels { display: flex; justify-content: space-between; font-size: 11px; margin-top: 4px; }
.i-none { margin-top: 22px; max-width: 46ch; }
.i-about { margin-top: 36px; max-width: 680px; }
.i-about h2, .i-rankers h2, .i-moreby h2 { font-size: 18px; margin-bottom: 10px; }
.i-rankers { margin-top: 36px; max-width: 640px; }
/* The heading is the disclosure. A chevron marks it; the list of written
   reviews beneath disappears while the full list is open, so no name shows
   twice. */
.i-all > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.i-all > summary::-webkit-details-marker { display: none; }
.i-all > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform 0.15s; }
.i-all[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.i-all > summary h2 { margin: 0; }
.i-all > summary:hover h2 { text-decoration: underline; }
.i-all[open] ~ .i-noted { display: none; }
.i-all > ul, .i-noted { margin-top: 10px; }
.i-ranker { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.i-ranker-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.i-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); max-width: 60ch; }
.i-moreby { margin-top: 36px; }
.i-shelf-note { margin: -4px 0 12px; font-size: 13px; }
.i-shelf { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.i-shelf-item { flex: none; width: 84px; text-decoration: none; }
.i-shelf-title { display: block; font-size: 12.5px; margin-top: 6px; line-height: 1.3; color: var(--ink); }
.i-shelf-sub { display: block; font-size: 11.5px; margin-top: 2px; color: var(--muted); }
/* A work Tāst hasn't ranked yet: present but quiet. Not-in-catalog works
   are a span, not a link - there is no page to go to. */
.i-shelf-item.unranked .cover { opacity: 0.45; }
.i-shelf-item.unranked .i-shelf-title { color: var(--muted); }
.i-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; }
@media (max-width: 600px) {
  .i-page { grid-template-columns: 1fr; }
  .i-cover-col { grid-row: auto; margin-bottom: 20px; }
  .i-identity, .i-about, .i-rankers, .i-moreby, .i-lists, .i-cta, .i-foot { grid-column: 1; }
  .i-cover { width: 132px; height: 190px; }
  .i-cover-square { height: 132px; }
  .i-title { font-size: 28px; }
  .i-stat .v { font-size: 26px; }
}

/* ── list pages (web #144) ──────────────────────────────────── */
.l-head { max-width: 720px; }
.l-title-h { font-size: 34px; margin-top: 8px; }
.l-by { margin-top: 8px; font-size: 14.5px; }
.l-desc { margin-top: 14px; font-size: 16px; }
.l-grid { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; }
.l-head + .r-pager { margin-top: 24px; }
.r-pager + .l-grid { margin-top: 12px; }
.l-link { text-decoration: none; display: block; }
/* display: block matters: a missing cover renders as an empty <span>, and
   an inline span ignores aspect-ratio and collapses to a 21px sliver. */
.l-cover { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; }
.cover-square.l-cover { aspect-ratio: 1 / 1; }
.l-meta { display: block; margin-top: 8px; }
.l-pos { color: var(--faint); font-size: 12px; margin-right: 6px; }
.l-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.l-sub { display: block; font-size: 12.5px; margin-top: 3px; }
.l-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
@media (max-width: 600px) { .l-title-h { font-size: 28px; } .l-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 20px 14px; } }

/* ── home (the front door) ─────────────────────────────────────────────── */
.h-hero { max-width: 640px; padding-bottom: 36px; }
/* The headline is the app's tagline, which is a sentence rather than a
   slogan - so it is sized to read as a sentence (three lines here), not to
   shout at 40px. */
.h-h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.01em; margin: 6px 0 14px; }
.h-sub { font-size: 19px; line-height: 1.4; color: var(--ink); margin: 0; }
.h-sub-2 { font-size: 15px; margin-top: 10px; }
.h-grid { display: grid; grid-template-columns: 1fr; gap: 0 28px; border-top: 1px solid var(--ink); }
/* Five cards: one per row until there is room for all five side by side -
   auto-fill would strand Podcasts alone on a second row at laptop widths. */
@media (min-width: 1040px) { .h-grid { grid-template-columns: repeat(5, 1fr); } }
.h-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 0 20px; border-bottom: 1px solid var(--hair); }
.h-card-label, .h-card-more { color: inherit; text-decoration: none; }
.h-card-label:hover, .h-card-more:hover { text-decoration: underline; }
.h-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.h-card-label { font-weight: 600; font-size: 15px; }
.h-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* The row is one link to its item. min-height holds the poster height so
   square album/podcast art (36px) doesn't make Music and Podcasts cards
   shorter than the other three - same rhythm on all five. */
.h-row-link { display: grid; grid-template-columns: 18px 36px 1fr auto; align-items: center; gap: 10px; min-height: 52px; color: inherit; text-decoration: none; }
.h-row-link:hover .h-title { text-decoration: underline; }
.h-n { color: var(--muted); font-size: 13px; }
.h-cover { width: 36px; }
.cover-portrait.h-cover { height: 52px; }
.cover-square.h-cover { height: 36px; }
.h-title { font-size: 14px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.h-score { font-size: 14px; }
.h-empty { margin: 0; font-size: 14px; }
.h-card-more { margin-top: auto; font-size: 13px; color: var(--muted); }
.h-card-more:hover { color: var(--ink); }
.h-how { max-width: 640px; padding-top: 44px; }
.h-how h2 { font-size: 20px; margin: 0 0 14px; }
.h-steps { margin: 0 0 24px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.i-lists { margin: 24px 0 0; font-size: 14px; }
.p-col-head a { color: inherit; text-decoration: none; }
.p-col-head a:hover { text-decoration: underline; }
.eyebrow a { color: inherit; }

/* ── home: Discover's browse rows ───────────────────────────── */
/* Horizontal scrollers, like the app's carousels. Overflow is the point:
   the row should read as "there is more this way", so the tiles are a fixed
   width and the last one is allowed to be cut off by the viewport. */
.h-row-sec { margin-top: 40px; }
.h-row-h { font-size: 18px; margin-bottom: 14px; }
.h-scroll {
  list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.h-tile { flex: 0 0 128px; scroll-snap-align: start; }
.h-tile a { display: block; text-decoration: none; color: inherit; }
.h-tile-cover { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.cover-square.h-tile-cover { aspect-ratio: 1 / 1; }
/* Clamped to two lines, like the app's cards: a long title would otherwise
   push its own subtitle out of line with the rest of the row. */
.h-tile-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; font-size: 13.5px; font-weight: 500; line-height: 1.3;
  margin-top: 8px; min-height: 2.6em;
}
.h-tile-sub { display: block; font-size: 12px; margin-top: 3px; }
.h-tile-list { flex-basis: 200px; }
.h-list-card {
  border: 1px solid var(--rule); padding: 14px; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.h-list-card:hover { background: var(--wash); }
.h-list-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; }

@media (max-width: 600px) {
  .h-h1 { font-size: 25px; }
  .h-row-sec { margin-top: 32px; }
  .h-tile { flex-basis: 110px; }
  .h-tile-list { flex-basis: 170px; }
}

/* ── people search (/people) ────────────────────────────────── */
.pp-page { max-width: 640px; }
.pp-page h1 { font-size: 28px; }
.people-form-big { display: flex; gap: 8px; margin-top: 16px; }
.people-form-big input { flex: 1; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper); color: var(--text); border-radius: 0; -webkit-appearance: none; }
.people-form-big input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.people-form-big button { font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.pp-list { list-style: none; margin: 24px 0 0; padding: 0; }
.pp-row { border-bottom: 1px solid var(--rule); }
.pp-link { display: flex; gap: 14px; align-items: center; padding: 12px 0; text-decoration: none; color: inherit; }
.pp-avatar { width: 44px; height: 44px; flex: none; object-fit: cover; border: 1px solid var(--rule); }
.pp-avatar-empty { display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--ink); background: var(--wash); }
.pp-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pp-name { font-weight: 600; }
.pp-handle, .pp-bio { font-size: 13px; }
.pp-bio { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-none { margin-top: 24px; }
