/* =============================================================================
   techchecklist.io / base.css                                  owner: F (shell)

   The quiet frame around four loud rooms. Everything here is structural and
   runs on the theme tokens of SPEC 5.6, so a theme can start as a pure token
   override on [data-persona="<key>"] and add flourishes on top. Nothing here
   uses !important except [hidden], reduced motion and print.

   Contract tokens  --bg --bg-2 --fg --fg-muted --accent --accent-2 --rule
                    --font-display --font-body --font-mono --radius --measure
                    color-scheme
   Optional tokens  (never defined on :root, so each panel/card resolves its own)
     --font-ui      switchboard, chips, kickers, meta lines  (default --font-body)
     --texture      background layer list under body and the hub desk panel
     --link         prose link text colour                   (default --fg)
     --accent-ink   accent used as small text  (default: accent mixed with --fg)
     --switch-bg    switchboard background                   (default --bg)
     --focus        focus ring colour                        (default --fg)

    1 fonts       2 tokens      3 reset        4 page        5 utilities
    6 switchboard 7 desk hero   8 list, chips, cards         9 review article
   10 prose      11 author card, pager        12 footer     13 motion, print
   ========================================================================== */

/* 1. Fonts: Geist (shell grotesque), self-hosted, latin + latin-ext ------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/hub/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/hub/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  /* fixed writer accents (SPEC 5.1): switchboard dots, hub, themes */
  --accent-nicholas: #E8A33D;
  --accent-ava: #CF7A6E;
  --accent-ryan: #1F3A5F;
  --accent-jason: #7A1F2B;

  --font-shell: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* fluid type scale, 360px to 1440px */
  --step--2: clamp(0.72rem, 0.70rem + 0.09vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.14vw, 1.09rem);
  --step-1: clamp(1.13rem, 1.06rem + 0.33vw, 1.38rem);
  --step-2: clamp(1.33rem, 1.19rem + 0.62vw, 1.75rem);
  --step-3: clamp(1.6rem, 1.36rem + 1.07vw, 2.32rem);
  --step-4: clamp(1.95rem, 1.55rem + 1.78vw, 3.15rem);
  --step-5: clamp(2.35rem, 1.73rem + 2.76vw, 4.2rem);

  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.25rem;
  --space-xl: 3.25rem;
  --space-2xl: 5rem;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --sb-h: 56px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);

  /* step spacing scale and page width shared with hub.css */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --page-max: 75rem;
}

/* Neutral shell (hub, about, search, 404). Zero specificity on purpose. */
:where(:root) {
  color-scheme: light;
  --bg: #F3F3F2;
  --bg-2: #FFFFFF;
  --fg: #111111;
  --fg-muted: #5C5C5C;
  --accent: #111111;
  --accent-2: #6B6B6B;
  --rule: #DADADA;
  --font-display: var(--font-shell);
  --font-body: var(--font-shell);
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --radius: 10px;
  --measure: 68ch;
  --tint-2: color-mix(in srgb, var(--fg) 12%, transparent);
}
@media (prefers-color-scheme: dark) {
  :where(:root) {
    color-scheme: dark;
    --bg: #111111;
    --bg-2: #1A1A1A;
    --fg: #EDEDED;
    --fg-muted: #A3A3A3;
    --accent: #EDEDED;
    --accent-2: #A3A3A3;
    --rule: #2D2D2D;
  }
}

/* Per-writer fallbacks. Zero specificity: any theme token wins, in any order.
   They keep writer pages and hub panels sane before a theme lands. */
:where([data-persona="nicholas"]) {
  color-scheme: dark;
  --bg: #0D1014;
  --bg-2: #141A21;
  --fg: #DCE2EA;
  --fg-muted: #8F9AAA;
  --accent: var(--accent-nicholas);
  --accent-ink: var(--accent-nicholas);
  --accent-2: #7F8EA3;
  --rule: #242C37;
  --font-display: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "DejaVu Sans Mono", monospace;
  --font-body: "IBM Plex Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "DejaVu Sans Mono", monospace;
  --font-ui: var(--font-mono);
  --radius: 3px;
  --measure: 70ch;
}
:where([data-persona="ava"]) {
  color-scheme: light;
  --bg: #F6EFE4;
  --bg-2: #FCF8F1;
  --fg: #3A2F29;
  --fg-muted: #6E6057;
  --accent: var(--accent-ava);
  --accent-2: #B08D57;
  --rule: #E5D8C5;
  --font-display: "Fraunces", Georgia, "DejaVu Serif", serif;
  --font-body: "DM Sans", "Karla", "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "DejaVu Sans Mono", monospace;
  --radius: 14px;
  --measure: 64ch;
}
:where([data-persona="ryan"]) {
  color-scheme: light;
  --bg: #FAFAF7;
  --bg-2: #FFFFFF;
  --fg: #15181C;
  --fg-muted: #4C5560;
  --accent: var(--accent-ryan);
  --accent-2: #F26B21;
  --rule: #CBD2DA;
  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "DejaVu Sans Mono", monospace;
  --font-ui: var(--font-display);
  --radius: 2px;
  --measure: 68ch;
}
:where([data-persona="jason"]) {
  color-scheme: light;
  --bg: #F6F5F1;
  --bg-2: #FFFFFF;
  --fg: #1A1B1F;
  --fg-muted: #5A5C63;
  --accent: var(--accent-jason);
  --accent-2: #44505F;
  --rule: #D8D5CC;
  --font-display: "Newsreader", Georgia, "DejaVu Serif", serif;
  --font-body: "Newsreader", Georgia, "DejaVu Serif", serif;
  --font-mono: ui-monospace, "DejaVu Sans Mono", monospace;
  --font-ui: "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius: 0px;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark) {
  :where([data-persona="jason"]) {
    color-scheme: dark;
    --bg: #16130F;
    --bg-2: #1E1A15;
    --fg: #ECE4D2;
    --fg-muted: #A79E8B;
    --accent-ink: #C77F86;
    --rule: #3A332A;
  }
}

/* 3. Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first last;
}
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
:where(ol, ul)[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; text-wrap: balance; overflow-wrap: break-word; }
p, li, dd { text-wrap: pretty; overflow-wrap: break-word; }
table { border-collapse: collapse; }
abbr[title] { text-decoration: underline dotted; }
[hidden] { display: none !important; }
:target { scroll-margin-top: 1.5rem; }

/* 4. Page ------------------------------------------------------------------- */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--texture, none), var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.main { flex: 1 0 auto; display: block; overflow-x: clip; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* 5. Utilities ------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  z-index: 100;
  left: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  padding: 0.65em 1em;
  border-radius: 0 0 8px 8px;
  background: var(--fg);
  color: var(--bg);
  font: 600 var(--step--1)/1.2 var(--font-ui, var(--font-body));
  text-decoration: none;
}
.skip:focus { transform: none; }
:focus-visible {
  outline: 2px solid var(--focus, var(--fg));
  outline-offset: 3px;
}
.mark { flex: none; overflow: visible; }
/* The neutral mark (partials/marks.html, mark('hub')). Themes may redraw it with
   --mark-radius --mark-stroke --mark-dash ("none" closes the box) --mark-cap
   --mark-join --mark-check. The partial also carries these inline as a backup. */
.mark__box {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--mark-stroke, 2.4px);
  rx: var(--mark-radius, 3px);
  stroke-dasharray: var(--mark-dash, 11 13.5 55);
  stroke-linecap: var(--mark-cap, round);
}
.mark__check {
  fill: none;
  stroke: var(--mark-check, var(--accent, currentColor));
  stroke-width: calc(var(--mark-stroke, 2.4px) * 1.15);
  stroke-linecap: var(--mark-cap, round);
  stroke-linejoin: var(--mark-join, round);
}

/* 6. Switchboard ------------------------------------------------------------
   One row everywhere: brand | the four desks | search. Takes colours and fonts
   from the current zone's tokens; structure never changes. */
.switchboard {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 2.4vw, 32px);
  min-height: var(--sb-h);
  padding-inline: clamp(12px, 3vw, 32px);
  background: var(--switch-bg, var(--bg));
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-ui, var(--font-body));
  font-size: 0.875rem;
  line-height: 1.2;
}
.switchboard__brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 6px;
}
.switchboard__brand .mark { width: 26px; height: 26px; }
.switchboard__name { font-size: 0.9375rem; white-space: nowrap; }
.switchboard__tld { color: var(--fg-muted); font-weight: 450; }
.switchboard__desks {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  margin-inline: auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.switchboard__desks::-webkit-scrollbar { display: none; }
.desk-link {
  --dot: var(--fg-muted);
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding-inline: 0.85em;
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.desk-link--nicholas { --dot: var(--accent-nicholas); }
.desk-link--ava { --dot: var(--accent-ava); }
.desk-link--ryan { --dot: var(--accent-ryan); }
.desk-link--jason { --dot: var(--accent-jason); }
.desk-link__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 20%, transparent);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.desk-link:hover { color: var(--fg); }
.desk-link:hover .desk-link__dot { transform: scale(1.25); }
.desk-link:focus-visible { outline-offset: -6px; border-radius: 10px; }
.desk-link.is-current { color: var(--fg); font-weight: 600; }
.desk-link.is-current .desk-link__dot {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 20%, transparent),
              0 0 0 4px color-mix(in srgb, var(--dot) 28%, transparent);
}
.desk-link.is-current::after {
  content: "";
  position: absolute;
  left: 0.85em;
  right: 0.85em;
  bottom: 0;
  height: 2px;
  background: var(--dot);
}
.switchboard__tools { flex: none; display: flex; align-items: center; gap: 0.4rem; }
/* The random button borrows the search pill (and every theme's version of it); with no
   keyboard hint on its right, it needs even padding. */
@media (min-width: 721px) {
  .switchboard__tools .switchboard__search.switchboard__random { padding-right: 0.85em; }
}
.switchboard__search {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 2.25rem;
  padding: 0 0.5em 0 0.8em;
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  border-radius: 999px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.switchboard__search:hover { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.switchboard__search svg { width: 15px; height: 15px; }
.switchboard__search svg * { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.switchboard__kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
}
@media (max-width: 720px) {
  .switchboard__name, .switchboard__kbd { display: none; }
  .switchboard__search { width: 2.25rem; padding: 0; justify-content: center; }
  .switchboard__search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .switchboard__desks {
    margin-inline: 0 auto;
    mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
  }
}
@media (max-width: 400px) {
  .switchboard { font-size: 0.8125rem; gap: 8px; }
  .desk-link { padding-inline: 0.6em; gap: 0.45em; }
  .desk-link.is-current::after { left: 0.6em; right: 0.6em; }
}

/* 7. Writer index: desk hero ------------------------------------------------- */
.desk-hero {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  display: grid;
  gap: var(--space-xl);
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
  .desk-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .desk-hero:has(.desk-hero__art:empty) { grid-template-columns: minmax(0, 1fr); }
}
.desk-hero__art:empty { display: none; }
.desk-hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.desk-hero__kicker::before {
  content: "";
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--accent);
}
.desk-hero__name {
  margin-top: 0.3em;
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.desk-hero__bio {
  max-width: 46ch;
  margin-top: var(--space-m);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--fg-muted);
}
.desk-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-xl);
  margin-top: var(--space-l);
  padding-top: var(--space-s);
  border-top: 1px solid var(--rule);
}
.desk-hero__facts dt {
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.desk-hero__facts dd { margin-top: 0.2em; }

/* 8. Review list, chips, cards ------------------------------------------------ */
.review-list {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  padding-block: var(--space-m) var(--space-2xl);
}
.review-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s) var(--space-l);
  margin-bottom: var(--space-l);
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--rule);
}
.review-list__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.1;
}
.review-list__filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 2.1rem;
  padding: 0.35em 0.9em;
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--1);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--fg); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip__count { font-size: 0.9em; font-variant-numeric: tabular-nums; opacity: 0.7; }

.review-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 288px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.card__link { flex: 1; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.card__link:focus-visible { outline-offset: -4px; }
.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.card__link:hover .card__media img { transform: scale(1.03); }
.card__body {
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  align-items: baseline;
  column-gap: 0.7em;
  row-gap: 0.4rem;
  padding: var(--space-s) var(--space-s) 1.1rem;
}
.card__num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink, color-mix(in srgb, var(--accent) 72%, var(--fg)));
}
.card__product {
  overflow: hidden;
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fg-muted);
}
.card__title, .card__excerpt, .card__meta { grid-column: 1 / -1; }
.card__title {
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.22;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}
.card__link:hover .card__title { text-decoration-line: underline; }
.card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--fg-muted);
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3em 0.6em;
  padding-top: 0.35rem;
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--2);
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}
.card__meta > * + *::before,
.review__meta > * + *::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 0.6em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.55;
}
.card mark, .prose mark {
  padding: 0 0.1em;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: inherit;
}

/* 9. Review article ----------------------------------------------------------- */
.review { padding-block: clamp(2rem, 6vw, 4.5rem) var(--space-2xl); }
.review__head, .review__hero, .review__foot { width: min(100% - 2 * var(--gutter), 920px); margin-inline: auto; }
.review__head { display: grid; gap: 0.75rem; }
@media (min-width: 900px) {
  .review__head { grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1.75rem; }
  .review__kicker, .review__title, .review__meta { grid-column: 2; }
  .review__num { grid-column: 1; grid-row: 2 / span 2; align-self: start; text-align: right; }
}
.review__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em 0.75em;
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.review__author { color: var(--fg); font-weight: 600; text-decoration: none; }
.review__author:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.review__sep { width: 1.5em; height: 1px; background: currentColor; opacity: 0.6; }
.review__num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink, color-mix(in srgb, var(--accent) 72%, var(--fg)));
}
.review__of { display: block; margin-top: 0.35em; font-family: var(--font-mono); font-size: var(--step--1); color: var(--fg-muted); }
@media (max-width: 899px) {
  .review__num { font-size: var(--step-2); display: flex; align-items: baseline; gap: 0.4em; }
  .review__of { display: inline; margin: 0; }
}
.review__title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.review__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3em 0.6em;
  margin-top: 0.4rem;
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--1);
  color: var(--fg-muted);
}
.review__source { text-decoration: underline dotted; text-underline-offset: 0.25em; cursor: help; }
.review__hero { width: min(100% - 2 * var(--gutter), 1040px); margin-block: var(--space-xl); }
.review__hero img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.review__body { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }
.review__foot { display: grid; gap: var(--space-xl); margin-top: var(--space-2xl); }

/* 10. Prose ------------------------------------------------------------------- */
.prose { font-size: var(--step-0); line-height: 1.68; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.2em;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose h3 { margin-top: 1.8em; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25; }
.prose h2 + *, .prose h3 + * { margin-top: 0.65em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.45em; }
.prose li > ul, .prose li > ol { margin-top: 0.45em; }
.prose li::marker { color: var(--fg-muted); }
.prose ol > li::marker { font-family: var(--font-mono); font-size: 0.9em; }
.prose a {
  color: var(--link, var(--fg));
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 85%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness 0.15s;
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.prose hr { margin-block: 2.5em; border: 0; border-top: 1px solid var(--rule); }
.prose blockquote { padding-left: 1.1em; border-left: 2px solid var(--accent); color: var(--fg-muted); }
.prose code {
  padding: 0.1em 0.32em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.prose pre {
  overflow-x: auto;
  padding: 1em 1.2em;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  line-height: 1.55;
  tab-size: 2;
}
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose .hl .c, .prose .hl .c1, .prose .hl .cm, .prose .hl .ch { color: var(--fg-muted); font-style: italic; }
.prose .hl .k, .prose .hl .kd, .prose .hl .kn, .prose .hl .kc, .prose .hl .nt { color: var(--accent-ink, color-mix(in srgb, var(--accent) 72%, var(--fg))); }
.prose .hl .s, .prose .hl .s1, .prose .hl .s2, .prose .hl .m, .prose .hl .mi { color: color-mix(in srgb, var(--accent-2) 75%, var(--fg)); }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.prose table { width: 100%; font-size: var(--step--1); line-height: 1.45; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 0.6em 0.85em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.prose thead th {
  background: var(--bg-2);
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-muted);
}
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose__figure img, .prose img { border-radius: var(--radius); }
.prose__figure figcaption { margin-top: 0.5em; font-size: var(--step--1); color: var(--fg-muted); }

/* 11. Author card, pager ------------------------------------------------------- */
.author-card {
  display: grid;
  gap: 0.4rem;
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule);
}
.author-card__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.author-card__name a { text-decoration: none; }
.author-card__name a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.author-card__role {
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.author-card__bio { max-width: 62ch; margin-top: 0.4rem; color: var(--fg-muted); }
.author-card__bio > * + * { margin-top: 0.75em; }
.author-card__bio a { color: var(--fg); text-decoration-color: var(--accent); }
.pager { display: grid; gap: var(--space-s); }
@media (min-width: 640px) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager__link--next { grid-column: 2; text-align: right; }
}
.pager__link {
  display: block;
  padding: var(--space-s) var(--space-m) 1.15rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-2);
  text-decoration: none;
  transition: border-color 0.15s;
}
.pager__link:hover { border-color: var(--fg); }
.pager__label, .pager__num { display: inline-block; font-size: var(--step--2); }
.pager__label {
  margin-right: 0.6em;
  font-family: var(--font-ui, var(--font-body));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.pager__num { font-family: var(--font-mono); color: var(--accent-ink, color-mix(in srgb, var(--accent) 72%, var(--fg))); }
.pager__title { display: block; margin-top: 0.35rem; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25; }

/* 12. Footer ----------------------------------------------------------------- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  background: var(--switch-bg, var(--bg));
  color: var(--fg-muted);
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--1);
}
.footer__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  display: grid;
  gap: var(--space-m) var(--space-xl);
  padding-block: var(--space-l) var(--space-m);
}
@media (min-width: 820px) { .footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.footer__brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--fg); font-weight: 600; text-decoration: none; }
.footer__brand .mark { width: 22px; height: 22px; }
.footer__line { max-width: 44ch; margin-top: 0.6rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-xl); }
.footer__nav ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; align-content: start; }
.footer__nav a { display: inline-flex; align-items: center; gap: 0.5em; text-decoration: none; }
.footer__nav a:hover { color: var(--fg); text-decoration: underline; }
.footer__nav .desk-link__dot { width: 7px; height: 7px; }
.footer__small {
  grid-column: 1 / -1;
  padding-top: var(--space-s);
  border-top: 1px solid var(--rule);
  font-size: var(--step--2);
  letter-spacing: 0.02em;
}

/* 14. Shell pages: about and 404 (hub-neutral) ------------------------------
   The search page and the hub live in hub.css. These two use only the neutral
   tokens plus, on about, one band per writer scoped with data-persona. */
.shell { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.shell-kicker {
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.about-head {
  display: grid;
  gap: var(--space-l) var(--space-xl);
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 960px) {
  .about-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}
.about-head__title {
  max-width: 14ch;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.75rem);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.about-head__lead { max-width: 40rem; font-size: var(--step-1); line-height: 1.5; }
.about-head__lead > * + * { margin-top: 0.85em; }
.about-head__lead p + p { font-size: var(--step-0); line-height: 1.6; color: var(--fg-muted); }

.writers { border-top: 1px solid var(--rule); }
.writer {
  background: var(--texture, none), var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}
.writer--nicholas { background: var(--texture, radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--fg) 13%, transparent) 1px, transparent 1.6px) 0 0 / 20px 20px), var(--bg); }
.writer--ava { background: var(--texture, radial-gradient(55% 120% at 100% 0%, rgb(255 210 160 / 0.45), transparent 70%)), var(--bg); }
.writer--ryan {
  background: var(--texture, linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px) 0 0 / 24px 24px), var(--bg);
}
.writer--jason { box-shadow: inset 0 0 0 clamp(8px, 1.4vw, 16px) var(--bg), inset 0 0 0 calc(clamp(8px, 1.4vw, 16px) + 1px) var(--rule); }
.writer__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  display: grid;
  gap: var(--space-l) var(--space-xl);
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
@media (min-width: 900px) { .writer__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.writer__mark { width: 56px; height: 56px; }
.writer__role {
  margin-top: var(--space-m);
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.writer__name {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.02em;
}
.writer--ryan .writer__name { font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.writer__facts {
  display: grid;
  gap: 0.55rem;
  max-width: 30rem;
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
}
.writer__facts div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 1em; }
.writer__facts dt {
  padding-top: 0.15em;
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.writer__text { align-self: center; }
.writer__bio { max-width: 60ch; font-size: var(--step-0); line-height: 1.65; }
.writer__bio > * + * { margin-top: 0.9em; }
.writer__bio a { text-decoration-color: var(--accent); }
.writer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: var(--space-m); }
.writer__enter {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 1.15em;
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  font-family: var(--font-ui, var(--font-body));
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.writer__enter svg { width: 18px; height: 12px; transition: transform 0.25s var(--ease-out); }
.writer__enter:hover { background: var(--fg); color: var(--bg); }
.writer__enter:hover svg { transform: translateX(3px); }
.writer__feed { font-family: var(--font-ui, var(--font-body)); font-size: var(--step--1); color: var(--fg-muted); text-underline-offset: 0.25em; }
.writer__feed:hover { color: var(--fg); }

.about-notes { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem); }
.about-notes__body > * { margin-top: 0; }
.about-notes__body > h2 {
  margin-top: var(--space-l);
  padding-top: var(--space-s);
  border-top: 1px solid var(--fg);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.about-notes__body > :not(h2) { max-width: 62ch; margin-top: 0.9em; }
.about-notes__body > h2 + * { margin-top: var(--space-l); padding-top: var(--space-s); border-top: 1px solid var(--rule); }
.about-notes__body > :first-child { margin-top: 0; }
.about-notes__body > :first-child + * { margin-top: 0; }
@media (min-width: 900px) {
  .about-notes__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--space-xl); }
  .about-notes__body > h2 { grid-column: 1; }
  .about-notes__body > :not(h2) { grid-column: 2; }
}
@media (max-width: 899px) {
  .about-notes__body > h2 + * { margin-top: 0.6em; padding-top: 0; border-top: 0; }
}

.notfound { padding-block: clamp(3rem, 10vh, 7rem) clamp(4rem, 12vh, 8rem); }
.notfound__item {
  display: flex;
  align-items: center;
  gap: 0.12em;
  font-size: clamp(5rem, 2.2rem + 12vw, 12rem);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.notfound__box { flex: none; width: 0.74em; height: 0.74em; color: var(--fg-muted); }
.notfound__title {
  max-width: 26ch;
  margin-top: var(--space-l);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.notfound__desks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0.6rem;
  margin-top: var(--space-l);
}
.notfound__desk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.65em;
  row-gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-2);
  text-decoration: none;
  transition: border-color 0.15s;
}
.notfound__desk:hover { border-color: var(--fg); }
.notfound__desk-name { font-weight: 600; }
.notfound__desk-range { grid-column: 2; font-size: var(--step--2); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.notfound__alt { margin-top: var(--space-m); color: var(--fg-muted); }
.notfound__alt a { color: var(--fg); text-decoration-color: color-mix(in srgb, var(--fg) 40%, transparent); }

/* 13. Motion, print ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .switchboard, .footer, .skip, .review-list__filters, .pager, .hub-search { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .card, .review__hero, .table-wrap { break-inside: avoid; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; overflow-wrap: anywhere; }
}

/* 15. /random/: only seen for a moment, or with JavaScript off ------------------- */
.random-page { padding-block: clamp(3rem, 8vw, 6rem); }
.random-page__title {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.random-page__dots { display: inline-block; animation: random-dots 1s steps(4, end) infinite; overflow: hidden; vertical-align: bottom; width: 0; }
@keyframes random-dots { to { width: 1.1em; } }
@media (prefers-reduced-motion: reduce) { .random-page__dots { animation: none; width: auto; } }
.random-page__text { max-width: 52ch; margin-top: 1.25rem; color: var(--fg-muted); }
.random-page__desks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; padding: 0; list-style: none; }
.random-page__desks a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--fg); }
