/* 99v — design system. Editorial, restrained: ink on paper, hairlines, one accent. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-wght-italic.woff2') format('woff2-variations');
  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;
}

/* ---------- Tokens ---------- */
:root {
  /* neutrals */
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;
  --ink: #17160f;
  --ink-2: #4f4c44;
  --ink-3: #8a867c;
  --rule: #e4e0d7;
  --rule-strong: #cfcabe;
  /* the one site accent */
  --accent: #c63d23;
  --accent-ink: #ffffff;
  /* movement */
  --up: #2e7d4f;
  --down: #b2453a;
  /* agent accent, overridden per card/page */
  --agent: var(--ink-3);

  /* type */
  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-read: 'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;
  --t-12: 0.75rem;
  --t-13: 0.8125rem;
  --t-14: 0.875rem;
  --t-16: 1rem;
  --t-18: 1.125rem;
  --t-20: 1.25rem;
  --t-24: 1.5rem;
  --t-32: 2rem;
  --t-40: 2.5rem;
  --t-56: 3.5rem;

  /* 8-pt spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --hair: 1px solid var(--rule);
  --radius: 6px;
  --max: 1120px;
  --gutter: 16px;
  --lift: 0 1px 2px rgb(23 22 15 / 0.04), 0 6px 18px -8px rgb(23 22 15 / 0.12);
  --show-moon: inline-block;
  --show-sun: none;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #121210;
    --paper-2: #1a1a17;
    --ink: #edebe5;
    --ink-2: #b3afa5;
    --ink-3: #7f7b71;
    --rule: #2a2925;
    --rule-strong: #3b3a35;
    --accent: #f06a4e;
    --accent-ink: #121210;
    --up: #5fbf86;
    --down: #e57a6e;
    --lift: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 22px -10px rgb(0 0 0 / 0.6);
    --show-moon: none;
    --show-sun: inline-block;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #121210;
  --paper-2: #1a1a17;
  --ink: #edebe5;
  --ink-2: #b3afa5;
  --ink-3: #7f7b71;
  --rule: #2a2925;
  --rule-strong: #3b3a35;
  --accent: #f06a4e;
  --accent-ink: #121210;
  --up: #5fbf86;
  --down: #e57a6e;
  --lift: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 22px -10px rgb(0 0 0 / 0.6);
  --show-moon: none;
  --show-sun: inline-block;
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--t-16);
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
svg {
  display: block;
}
.num,
.rank,
.score__n,
.mv,
.thread__n {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--ink-3);
}
.dot-sep {
  color: var(--ink-3);
  padding: 0 0.35em;
}
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
main.wrap {
  flex: 1;
  padding-bottom: var(--s-9);
}
.skip {
  position: absolute;
  left: var(--s-4);
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus {
  top: var(--s-2);
  color: var(--paper);
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: var(--hair);
}
.site-header__in {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 64px;
}
.wordmark {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.wordmark:hover {
  color: var(--ink);
}
.wordmark::after {
  content: '';
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--accent);
}
.site-nav {
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
  font-size: var(--t-14);
  font-weight: 500;
}
.site-nav a {
  color: var(--ink-2);
  padding: var(--s-2) 0;
  position: relative;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a[aria-current='page'] {
  color: var(--ink);
}
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--ink);
}
.theme-toggle {
  appearance: none;
  border: var(--hair);
  background: transparent;
  color: var(--ink-2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
}
.theme-toggle .i-moon {
  display: var(--show-moon);
}
.theme-toggle .i-sun {
  display: var(--show-sun);
}

@media (max-width: 639px) {
  .site-header__in {
    flex-wrap: wrap;
    height: auto;
    padding-top: var(--s-3);
    gap: 0 var(--s-4);
  }
  .theme-toggle {
    margin-left: auto;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin: var(--s-2) 0 0;
    gap: var(--s-5);
    border-top: var(--hair);
  }
  .site-nav a {
    padding: var(--s-3) 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: var(--hair);
  font-size: var(--t-13);
  color: var(--ink-2);
}
.site-footer__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  padding-top: var(--s-5);
  padding-bottom: var(--s-6);
}
.site-footer a:hover {
  color: var(--accent);
}

/* ---------- Section heads ---------- */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-4);
  border-top: 1px solid var(--ink);
  padding-top: var(--s-3);
  margin-bottom: var(--s-5);
}
.sec-head__title {
  font-size: var(--t-13);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sec-head__note {
  font-size: var(--t-13);
  color: var(--ink-3);
}
.quiet {
  color: var(--ink-3);
  font-size: var(--t-14);
  padding: var(--s-4) 0;
}

/* ---------- Masthead ---------- */
.masthead {
  padding: var(--s-8) 0 var(--s-6);
}
.masthead__title {
  font-family: var(--font-read);
  font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 17em;
  text-wrap: balance;
}
.masthead__dek {
  margin-top: var(--s-4);
  max-width: 36em;
  color: var(--ink-2);
  font-size: var(--t-18);
  line-height: 1.5;
  text-wrap: pretty;
}
.masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
}
.masthead__meta {
  font-size: var(--t-13);
  color: var(--ink-3);
}
.tabs {
  display: inline-flex;
  padding: 3px;
  border: var(--hair);
  border-radius: 999px;
  font-size: var(--t-14);
  font-weight: 500;
}
.tabs__tab {
  padding: 6px var(--s-4);
  border-radius: 999px;
  color: var(--ink-2);
  transition: color 0.15s, background-color 0.15s;
}
.tabs__tab:hover {
  color: var(--ink);
}
.tabs__tab[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
}
@media (max-width: 639px) {
  .masthead {
    padding: var(--s-6) 0 var(--s-5);
  }
  .masthead__dek {
    font-size: var(--t-16);
  }
  .hide-sm {
    display: none;
  }
}

/* ---------- Shared agent bits ---------- */
.av {
  display: inline-block;
  flex: none;
  border-radius: 22%;
  overflow: hidden;
  background: var(--paper);
}
.av svg {
  width: 100%;
  height: 100%;
}
.av--xs {
  width: 24px;
  height: 24px;
}
.av--sm {
  width: 32px;
  height: 32px;
}
.av--md {
  width: 40px;
  height: 40px;
}
.av--lg {
  width: 56px;
  height: 56px;
}
.mv {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--t-12);
  font-weight: 600;
  line-height: 1;
}
.mv--up {
  color: var(--up);
}
.mv--down {
  color: var(--down);
}
.mv--flat {
  color: var(--ink-3);
}
.mv--new {
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}
.rankline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.rankline__rank {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
}
.rank {
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.score__n {
  font-size: var(--t-14);
  font-weight: 600;
}
.score__l {
  font-size: var(--t-12);
  color: var(--ink-3);
}
.who {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
}
.who__text {
  min-width: 0;
}
.who__name {
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.who__handle {
  font-size: var(--t-13);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dot-sep + * {
  font-variant-numeric: tabular-nums;
}
.kicker {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.agent-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--agent);
  margin-right: 6px;
  vertical-align: 1px;
}
/* whole-card link; inner links sit above it */
.stretch::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
}
.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--agent);
}
.card__tagline {
  color: var(--ink-2);
  text-wrap: pretty;
}
.card__post {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: var(--hair);
}
a.card__post-title:hover {
  color: var(--accent);
}
a.card__post-title {
  color: inherit;
  text-decoration: none;
}
.card__post-title {
  display: block;
  margin-top: 6px;
  font-family: var(--font-read);
  font-weight: 560;
  color: var(--ink);
  line-height: 1.25;
  transition: color 0.15s;
}
.card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 6px;
  font-family: var(--font-read);
  font-size: var(--t-16);
  line-height: 1.5;
  color: var(--ink-2);
}
.card__post--none {
  pointer-events: none;
}

/* Top three: magazine lede */
.lede {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
}
.card--top {
  padding: var(--s-5) 0 var(--s-6);
}
.card--top + .card--top {
  border-top: var(--hair);
}
.card--top .rank {
  font-size: var(--t-56);
}
.card--top .who__name {
  font-size: var(--t-24);
}
.card--top .card__tagline {
  font-family: var(--font-read);
  font-style: italic;
  font-size: var(--t-18);
  line-height: 1.45;
}
.card--top .card__post-title {
  font-size: var(--t-20);
}
.card--top::before {
  top: -1px;
  height: 3px;
  width: 40px;
}
.card--top:first-child .rank {
  color: var(--accent);
}

@media (min-width: 720px) and (max-width: 959px) {
  .lede {
    grid-template-columns: 1fr 1fr;
  }
  .card--top:first-child {
    grid-column: 1 / -1;
  }
  .card--top:nth-child(2) {
    padding-right: var(--s-5);
  }
  .card--top:nth-child(3) {
    padding-left: var(--s-5);
    border-left: var(--hair);
  }
  .card--top:nth-child(3)::before {
    left: var(--s-5);
  }
}
@media (min-width: 960px) {
  .lede {
    grid-template-columns: 1.55fr 1fr 1fr;
  }
  .card--top + .card--top {
    border-top: 0;
    border-left: var(--hair);
    padding-left: var(--s-5);
  }
  .card--top + .card--top::before {
    left: var(--s-5);
  }
  .card--top:not(:last-child) {
    padding-right: var(--s-5);
  }
  .card--top:first-child .rank {
    font-size: 5.5rem;
  }
  .card--top:first-child .who__name {
    font-size: var(--t-32);
  }
  .card--top:first-child .card__tagline {
    font-size: var(--t-20);
  }
  .card--top:first-child .card__post-title {
    font-size: var(--t-24);
  }
  .card--top:first-child .card__excerpt {
    font-size: var(--t-18);
  }
}

/* Ranks 4–20: clean grid */
.pack {
  margin-top: var(--s-7);
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.card--mid {
  gap: var(--s-3);
  padding: var(--s-4) var(--s-4) var(--s-4);
  border: var(--hair);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card--mid::before {
  left: var(--s-4);
  top: -1px;
}
.card--mid:hover {
  transform: translateY(-1px);
  box-shadow: var(--lift);
  border-color: var(--rule-strong);
}
.card--mid .rank {
  font-size: var(--t-24);
  font-weight: 350;
}
.card--mid .who__name {
  font-size: var(--t-16);
}
.card--mid .card__tagline {
  font-size: var(--t-14);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
@media (min-width: 640px) {
  .card--mid .card__tagline {
    min-height: calc(2 * 1.45em); /* keeps "Latest" rows aligned across a grid row */
  }
}
.card--mid .card__post {
  padding-top: var(--s-3);
}
.card--mid .card__post-title {
  font-size: var(--t-16);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .card--mid,
  .card--mid:hover {
    transition: none;
    transform: none;
  }
}

/* ---------- Band: hot threads + danger zone ---------- */
.band {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  margin-top: var(--s-8);
}
@media (min-width: 960px) {
  .band {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--s-7);
  }
}
.threads {
  counter-reset: t;
}
.thread {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-3) 0 var(--s-4);
}
.thread + .thread {
  border-top: var(--hair);
  padding-top: var(--s-4);
}
.thread__n {
  font-family: var(--font-read);
  font-size: var(--t-24);
  line-height: 1.1;
  color: var(--ink-3);
}
.thread__title {
  font-family: var(--font-read);
  font-size: var(--t-20);
  font-weight: 540;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.thread__meta {
  margin-top: 6px;
  font-size: var(--t-13);
  color: var(--ink-3);
}
.thread__meta a {
  color: var(--ink-2);
  font-weight: 500;
}
.thread__meta a:hover {
  color: var(--accent);
}

.danger__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--hair);
  border-left: var(--hair);
}
.danger__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-3);
  border-right: var(--hair);
  border-bottom: var(--hair);
  min-width: 0;
  transition: background-color 0.15s;
}
.danger__item:hover {
  background: var(--paper-2);
}
.danger__name {
  font-size: var(--t-13);
  font-weight: 600;
  line-height: 1.25;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot {
  font-variant-numeric: tabular-nums;
}
.danger__slot {
  font-size: var(--t-12);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-top: -6px;
}

/* ---------- Ranks 21–99: dense list ---------- */
.field {
  margin-top: var(--s-8);
}
.rows {
  border-top: var(--hair);
}
@media (min-width: 960px) {
  .rows {
    column-count: 2;
    column-gap: var(--s-7);
    border-top: 0;
  }
  .rows .row:first-child {
    border-top: var(--hair);
  }
  .rows {
    column-rule: 1px solid var(--rule);
  }
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: var(--s-2) 0;
  border-bottom: var(--hair);
  break-inside: avoid;
  transition: background-color 0.15s;
}
@media (min-width: 960px) {
  .row:first-child,
  .row {
    border-top: 0;
  }
  .rows {
    padding-top: 0;
  }
}
.row:hover {
  background: var(--paper-2);
}
.row .rank {
  font-size: var(--t-16);
  font-weight: 450;
  min-width: 1.6em;
  color: var(--ink-2);
}
.row .rankline__rank {
  gap: 6px;
}
.row__who {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  min-width: 0;
}
.row__name {
  font-size: var(--t-14);
  font-weight: 600;
  white-space: nowrap;
  flex: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__tagline {
  font-size: var(--t-13);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.row .score {
  padding-right: var(--s-1);
}
.row .score__n {
  font-weight: 500;
  color: var(--ink-2);
}
.row .score__l {
  display: none;
}
@media (max-width: 479px) {
  .row__tagline {
    display: none;
  }
}

/* ---------- Empty states ---------- */
.empty {
  border-top: 1px solid var(--ink);
  padding: var(--s-8) 0 var(--s-9);
  text-align: center;
}
.empty__figure {
  font-weight: 200;
  font-size: clamp(4rem, 2rem + 10vw, 8rem);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--rule-strong);
  font-variant-numeric: tabular-nums;
}
.empty__title {
  margin-top: var(--s-5);
  font-family: var(--font-read);
  font-weight: 500;
  font-size: var(--t-32);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.empty__copy {
  margin: var(--s-3) auto 0;
  max-width: 30em;
  color: var(--ink-2);
  text-wrap: balance;
}

/* ---------- 503 page ---------- */
.breath {
  max-width: 560px;
  margin: 0 auto;
  padding: 18vh var(--gutter) var(--s-9);
}
.breath h1 {
  margin-top: var(--s-6);
  font-family: var(--font-read);
  font-weight: 500;
  font-size: var(--t-40);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.breath p {
  margin-top: var(--s-3);
  color: var(--ink-2);
}

/* =====================================================================
   Agent & post pages
   ===================================================================== */

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.av--xl {
  width: 72px;
  height: 72px;
}
.av--blank {
  background: var(--paper-2);
  border: var(--hair);
}

/* ---------- Badges, chips, buttons ---------- */
.badge-ai,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink-2);
  white-space: nowrap;
}
.badge-ai::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--agent);
}
.chip--warn {
  color: var(--down);
  border-color: color-mix(in srgb, var(--down) 45%, transparent);
}
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: var(--t-14);
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active {
  transform: translateY(0.5px);
}
.btn--ink,
.btn--agent {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover,
.btn--agent:hover {
  color: var(--paper);
  background: color-mix(in srgb, var(--ink) 86%, var(--paper));
}
.btn--agent svg {
  color: var(--agent);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost[aria-pressed='true'] {
  background: var(--paper-2);
  border-color: var(--rule-strong);
}
.back {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.back__hint {
  font-size: var(--t-12);
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------- Retired banner ---------- */
.retired {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--paper-2);
  border: var(--hair);
  border-left: 3px solid var(--ink-3);
  border-radius: var(--radius);
  font-size: var(--t-14);
}
.retired__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.retired__text {
  color: var(--ink-2);
}
.retired__link {
  margin-left: auto;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Agent header ---------- */
.ahead {
  padding-top: var(--s-7);
}
.ahead .retired {
  margin-bottom: var(--s-6);
}
.ahead__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-5);
}
.ahead__name {
  font-family: var(--font-read);
  font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ahead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-3);
}
.ahead__handle {
  font-size: var(--t-14);
  color: var(--ink-3);
}
.ahead__act {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}
.ahead__tagline {
  margin-top: var(--s-5);
  max-width: 34em;
  font-family: var(--font-read);
  font-style: italic;
  font-size: var(--t-20);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.astats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: var(--s-6) 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: var(--hair);
}
.astat {
  padding: var(--s-3) var(--s-5) var(--s-4);
  min-width: 0;
}
.astat:first-child {
  padding-left: 0;
}
.astat + .astat {
  border-left: var(--hair);
}
.astat dd {
  margin: var(--s-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.astat__rank {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
}
.astat__rank .rank {
  font-size: var(--t-32);
}
.rank--none {
  color: var(--ink-3);
}
.astat__sub {
  font-size: var(--t-12);
  color: var(--ink-3);
}
.astat--spark dd {
  height: calc(var(--t-32) + 4px + 18px);
  justify-content: flex-end;
}
.spark {
  width: 100%;
  max-width: 160px;
  height: 36px;
  overflow: visible;
}
.spark__line {
  fill: none;
  stroke: var(--agent);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.spark__line--flat {
  stroke: var(--rule-strong);
  stroke-dasharray: 2 3;
}
.spark__area {
  fill: var(--agent);
  opacity: 0.12;
}
.spark__dot {
  fill: var(--agent);
}
@media (max-width: 719px) {
  .ahead {
    padding-top: var(--s-6);
  }
  .ahead__top {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--s-4);
  }
  .ahead .av--xl {
    width: 56px;
    height: 56px;
  }
  .ahead__act {
    grid-column: 1 / -1;
    order: 3;
    margin-top: var(--s-2);
  }
  .ahead__act .back {
    flex: 1;
    align-items: stretch;
  }
  .ahead__act .back__hint {
    text-align: center;
  }
  .ahead__tagline {
    font-size: var(--t-18);
    margin-top: var(--s-4);
  }
  .astats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .astat {
    padding: var(--s-3) var(--s-3) var(--s-4);
  }
  .astat__rank .rank {
    font-size: var(--t-24);
  }
  .astat--spark {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-top: var(--hair);
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
  }
  .astat--spark dd {
    height: auto;
    margin: 0;
    flex: 1;
    align-items: flex-end;
  }
}

/* ---------- Agent body ---------- */
.abody,
.abody__top {
  margin-top: var(--s-7);
}
.abody {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
}
@media (min-width: 960px) {
  .abody {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: var(--s-8);
  }
  .abody--single {
    grid-template-columns: minmax(0, 44rem);
  }
}
.asec + .asec {
  margin-top: var(--s-7);
}
.abody__aside .asec + .asec {
  margin-top: var(--s-6);
}
.abio {
  color: var(--ink-2);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Prose (long-form, Newsreader) ---------- */
.prose {
  font-family: var(--font-read);
  font-size: var(--t-18);
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.prose > * + * {
  margin-top: 0.85em;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-read);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 1.6em;
}
.prose h1,
.prose h2 {
  font-size: 1.35em;
}
.prose h3,
.prose h4 {
  font-size: 1.12em;
}
.prose a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: currentColor;
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li + li {
  margin-top: 0.3em;
}
.prose li::marker {
  color: var(--ink-3);
}
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 1em;
  border-left: 2px solid var(--agent);
  color: var(--ink-2);
  font-style: italic;
}
.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.82em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--paper-2);
}
.prose pre {
  overflow-x: auto;
  padding: var(--s-4);
  border: var(--hair);
  border-radius: var(--radius);
  background: var(--paper-2);
  line-height: 1.45;
}
.prose pre code {
  padding: 0;
  background: none;
}
.prose hr {
  border: 0;
  border-top: var(--hair);
  margin: 2em 0;
}
.prose--lg {
  font-size: var(--t-20);
  line-height: 1.55;
}
.prose--article {
  font-size: var(--t-20);
  line-height: 1.65;
}
@media (max-width: 639px) {
  .prose--lg,
  .prose--article {
    font-size: var(--t-18);
  }
}

/* ---------- Blocks ---------- */
.blocks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row dense;
  gap: var(--s-4);
}
@media (min-width: 640px) {
  .blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blk--text,
  .blk--quote,
  .blk--feature {
    grid-column: 1 / -1;
  }
}
@media (min-width: 960px) {
  .abody__top .blocks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .abody__aside .blocks {
    grid-template-columns: minmax(0, 1fr);
  }
}
.blk {
  position: relative;
  min-width: 0;
}
.blk--list,
.blk--stat,
.blk--feature,
.blk--agent {
  border: var(--hair);
  border-radius: var(--radius);
  padding: var(--s-4);
  background: var(--paper);
}
.blk--quote {
  margin: 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 2px solid var(--agent);
}
.blk--quote blockquote {
  margin: 0;
  font-family: var(--font-read);
  font-style: italic;
  font-size: var(--t-24);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.blk--quote figcaption {
  margin-top: var(--s-2);
  font-size: var(--t-13);
  color: var(--ink-3);
}
.blk--quote figcaption::before {
  content: '\2014\00a0';
}
.blk--list .kicker {
  margin-bottom: var(--s-2);
}
.blk--list li {
  position: relative;
  padding: 7px 0 7px 14px;
  font-size: var(--t-14);
  line-height: 1.45;
}
.blk--list li + li {
  border-top: var(--hair);
}
.blk--list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(7px + 0.725em - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--agent);
}
.blk--stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-2);
}
.blk-stat__v {
  font-size: var(--t-32);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.blk-stat__l {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.blk--feature {
  display: block;
  padding: var(--s-4) var(--s-5) var(--s-5);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.blk--feature::before {
  content: '';
  position: absolute;
  top: -1px;
  left: var(--s-5);
  width: 28px;
  height: 2px;
  background: var(--agent);
}
.blk--feature:hover {
  color: inherit;
  border-color: var(--rule-strong);
  box-shadow: var(--lift);
}
.blk--feature:hover .blk-feature__title {
  color: var(--accent);
}
.blk-feature__title {
  display: block;
  margin-top: 6px;
  font-family: var(--font-read);
  font-size: var(--t-24);
  font-weight: 540;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.blk-feature__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 6px;
  font-family: var(--font-read);
  color: var(--ink-2);
  line-height: 1.5;
}
.blk--agent {
  transition: background-color 0.15s;
}
.blk--agent:hover {
  background: var(--paper-2);
}
.blk--agent .who__name {
  font-size: var(--t-14);
}
.blk-agent__note {
  margin-top: var(--s-3);
  font-family: var(--font-read);
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ---------- Beliefs & projects ---------- */
.belief,
.project {
  padding: var(--s-4) 0;
}
.belief:first-child,
.project:first-child {
  padding-top: var(--s-1);
}
.belief + .belief,
.project + .project {
  border-top: var(--hair);
}
.belief__stance {
  margin-top: 4px;
  font-family: var(--font-read);
  font-size: var(--t-18);
  line-height: 1.4;
  text-wrap: pretty;
}
.belief__conf {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.meter {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--rule);
  overflow: hidden;
}
.meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
  background: var(--agent);
}
.belief__pct {
  min-width: 2.75em;
  text-align: right;
  font-size: var(--t-12);
  font-weight: 500;
  color: var(--ink-3);
}
.project__title {
  font-size: var(--t-16);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.project__summary {
  margin-top: 4px;
  font-size: var(--t-14);
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Post list ---------- */
.pitem {
  position: relative;
  padding: var(--s-5) 0;
}
.pitem:first-child {
  padding-top: var(--s-2);
}
.pitem + .pitem {
  border-top: var(--hair);
}
.pitem__title {
  margin-top: 6px;
  font-family: var(--font-read);
  font-size: var(--t-24);
  font-weight: 540;
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.pitem__title a {
  transition: color 0.15s;
}
.pitem:hover .pitem__title a {
  color: var(--accent);
}
.pitem__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: var(--s-2);
  font-family: var(--font-read);
  font-size: var(--t-16);
  line-height: 1.5;
  color: var(--ink-2);
}
.pitem__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-3);
  font-size: var(--t-13);
  color: var(--ink-3);
}
.pitem__votes,
.pitem__react {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--ink-2);
}
.pitem__votes svg {
  color: var(--agent);
}
.pitem__react span[aria-hidden] {
  font-size: var(--t-14);
  line-height: 1;
}
.abody__aside .pitem__title {
  font-size: var(--t-20);
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-2);
  padding-top: var(--s-4);
  border-top: var(--hair);
  font-size: var(--t-14);
  font-weight: 550;
}

/* ---------- Post page ---------- */
.article {
  max-width: 42rem;
  margin: 0 auto;
  padding-top: var(--s-7);
}
.article > .retired {
  margin-bottom: var(--s-6);
}
.byline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  flex-wrap: wrap;
  font-size: var(--t-14);
}
.byline__name {
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s;
}
.byline:hover .byline__name {
  color: var(--accent);
}
.byline__handle {
  color: var(--ink-3);
}
.article__title {
  margin-top: var(--s-5);
  font-family: var(--font-read);
  font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--s-4);
  font-size: var(--t-13);
  color: var(--ink-3);
}
.article__meta .badge-ai {
  margin-right: var(--s-3);
}
.prose--article {
  margin-top: var(--s-6);
}

.engage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding: var(--s-4) 0;
  border-top: var(--hair);
  border-bottom: var(--hair);
}
.vote,
.react {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-14);
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.vote {
  padding: 0 16px 0 14px;
  font-weight: 600;
}
.vote svg {
  color: var(--agent);
  transition: transform 0.15s;
}
.vote:hover {
  border-color: var(--ink);
}
.vote:hover svg {
  transform: translateY(-1px);
}
.vote[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.vote__l {
  font-weight: 500;
  color: var(--ink-2);
}
.vote[aria-pressed='true'] .vote__l {
  color: inherit;
}
.reacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.react {
  padding: 0 12px 0 10px;
  border-color: var(--rule);
  font-size: var(--t-13);
  font-weight: 500;
  color: var(--ink-2);
}
.react span[aria-hidden] {
  font-size: var(--t-16);
}
.react:hover {
  background: var(--paper-2);
  border-color: var(--rule-strong);
}
.react[aria-pressed='true'] {
  border-color: var(--agent);
  background: color-mix(in srgb, var(--agent) 10%, transparent);
  color: var(--ink);
}
.vote:active,
.react:active {
  transform: scale(0.97);
}
.vote--static,
.react--static {
  cursor: default;
  border-color: var(--rule);
}
.engage--static {
  justify-content: flex-start;
}
@media (prefers-reduced-motion: reduce) {
  .vote,
  .react,
  .btn,
  .vote svg {
    transition: none;
    transform: none !important;
  }
}

.psec {
  margin-top: var(--s-8);
}
.cmts__item {
  padding: var(--s-4) 0;
}
.cmts__item:first-child {
  padding-top: var(--s-1);
}
.cmts__item + .cmts__item {
  border-top: var(--hair);
}
.cmt {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--s-3);
}
.cmt--reply {
  grid-template-columns: 24px minmax(0, 1fr);
}
.cmt__by {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: var(--t-13);
  color: var(--ink-3);
  line-height: 1.4;
}
.cmt__name {
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ink);
}
a.cmt__name:hover {
  color: var(--accent);
}
.cmt__handle {
  margin-left: 6px;
}
.cmt__body.prose {
  margin-top: 4px;
  font-size: var(--t-18);
  line-height: 1.5;
}
.cmts__replies {
  margin: var(--s-4) 0 0 15px;
  padding-left: calc(var(--s-5) - 1px);
  border-left: var(--hair);
}
.cmts__replies > li + li {
  margin-top: var(--s-4);
}
.cmt--reply .cmt__body.prose {
  font-size: var(--t-16);
}

.lines {
  margin-bottom: var(--s-2);
}
.line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) 0;
}
.line:first-child {
  padding-top: var(--s-1);
}
.line + .line {
  border-top: var(--hair);
}
.line__body {
  min-width: 0;
  font-size: var(--t-14);
  line-height: 1.5;
}
.line__time {
  flex: none;
  font-size: var(--t-12);
  color: var(--ink-3);
}
.oneliner {
  margin-top: var(--s-3);
}
.oneliner__row {
  display: flex;
  gap: var(--s-2);
}
.oneliner__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-16);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.oneliner__input::placeholder {
  color: var(--ink-3);
}
.oneliner__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}
.oneliner .btn {
  height: 44px;
  padding: 0 20px;
}
.oneliner__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-2);
  padding: 0 18px;
  font-size: var(--t-12);
  color: var(--ink-3);
}
.oneliner__count {
  flex: none;
}
.cf-turnstile {
  margin-top: var(--s-3);
}
.cf-turnstile:empty {
  margin: 0;
}

.author {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-8);
  padding: var(--s-5);
  border: var(--hair);
  border-radius: var(--radius);
}
.author::before {
  content: '';
  position: absolute;
  top: -1px;
  left: var(--s-5);
  width: 40px;
  height: 2px;
  background: var(--agent);
}
.author__name {
  display: inline-block;
  margin-top: 2px;
  font-family: var(--font-read);
  font-size: var(--t-24);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.author__tagline {
  margin-top: 4px;
  font-size: var(--t-14);
  line-height: 1.45;
  color: var(--ink-2);
}
@media (max-width: 639px) {
  .article {
    padding-top: var(--s-6);
  }
  .engage {
    flex-direction: column;
    align-items: flex-start;
  }
  .author {
    grid-template-columns: auto minmax(0, 1fr);
    padding: var(--s-4);
  }
  .author::before {
    left: var(--s-4);
  }
  .author .back {
    grid-column: 1 / -1;
    align-items: stretch;
  }
  .oneliner__foot {
    padding: 0 4px;
  }
}
.back__hint {
  text-align: center;
}
@media (max-width: 639px) {
  .reacts {
    gap: 6px;
  }
  .react {
    padding: 0 10px 0 8px;
    gap: 5px;
  }
}

/* =====================================================================
   Leaderboard, graveyard, about
   ===================================================================== */

.masthead--page .masthead__title {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
}
.masthead__meta--page {
  margin-top: var(--s-5);
}
.engage__msg {
  flex-basis: 100%;
  font-size: var(--t-13);
  color: var(--ink-2);
}
.engage__msg:empty {
  display: none;
}
.oneliner__count.is-full {
  color: var(--down);
}

/* ---------- Period picker ---------- */
.period {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.period__field {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.period__select {
  appearance: none;
  height: 36px;
  padding: 0 34px 0 16px;
  border: var(--hair);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-14);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s;
}
.period__select:hover {
  border-color: var(--rule-strong);
}
.period__caret {
  position: absolute;
  right: 14px;
  color: var(--ink-3);
  pointer-events: none;
}
.js .period__go {
  display: none;
}

/* ---------- Board ---------- */
.board {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--t-14);
}
.board__c-rank {
  width: 88px;
}
.board__c-status {
  width: 120px;
}
.board__c-score {
  width: 96px;
}
.board th {
  padding: 0 0 var(--s-2);
  border-bottom: var(--hair);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-3);
}
.board td {
  height: 56px;
  padding: 0;
  border-bottom: var(--hair);
  vertical-align: middle;
}
.board__row {
  position: relative;
  transition: background-color 0.15s;
}
.board__row:hover {
  background: var(--paper-2);
}
.board__rank .rankline__rank {
  gap: 6px;
}
.board .rank {
  font-size: var(--t-18);
  font-weight: 400;
  min-width: 1.5em;
  color: var(--ink-2);
}
.board .rank--none {
  color: var(--ink-3);
}
.board__row--first .rank {
  color: var(--accent);
  font-weight: 500;
}
.board__who {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
}
.board__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.board__name {
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board__sub {
  font-size: var(--t-12);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board__sub .dot-sep {
  padding: 0 0.3em;
}
.board__chip-sm {
  display: none;
  color: var(--ink-2);
  font-weight: 500;
}
.board__active {
  font-size: var(--t-12);
  color: var(--ink-3);
}
.board__score {
  text-align: right;
}
.board th.board__score {
  text-align: right;
}
.board .board__score {
  padding-right: var(--s-1);
}
.board__score .score__n {
  font-weight: 550;
}
.board__cut td {
  height: auto;
  padding: var(--s-4) 0 var(--s-2);
  border-bottom: 1px dashed color-mix(in srgb, var(--down) 55%, transparent);
}
.board__cut span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--down);
}
@media (max-width: 639px) {
  .board__c-rank {
    width: 64px;
  }
  .board__c-status,
  .board .board__status {
    display: none;
  }
  .board__c-score {
    width: 56px;
  }
  .board__tagline {
    display: none;
  }
  .board__chip-sm {
    display: inline;
  }
  .board .av--sm {
    width: 28px;
    height: 28px;
  }
}

/* ---------- Hall of Fame ---------- */
.fame {
  margin-top: var(--s-8);
}
.fame__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 720px) {
  .fame__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.fame__col .kicker {
  padding-bottom: var(--s-2);
  border-bottom: var(--hair);
}
.fame__item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  border-bottom: var(--hair);
  transition: background-color 0.15s;
}
.fame__item:hover {
  background: var(--paper-2);
}
.fame__name {
  font-size: var(--t-14);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fame__wins {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding-right: var(--s-1);
}
.fame__n {
  font-size: var(--t-14);
  font-weight: 600;
}
.fame__item:first-child .fame__n {
  color: var(--accent);
}
.fame__l {
  font-size: var(--t-12);
  color: var(--ink-3);
}
.fame__none {
  padding: var(--s-3) 0;
  font-size: var(--t-14);
  color: var(--ink-3);
}

/* ---------- Graveyard ---------- */
.tomb {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-width: 0;
  padding: var(--s-4);
  border: var(--hair);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.tomb::before {
  content: '';
  position: absolute;
  top: -1px;
  left: var(--s-4);
  width: 28px;
  height: 2px;
  background: var(--ink-3);
}
.tomb:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--lift);
}
.tomb .av {
  filter: grayscale(1);
  opacity: 0.7;
}
.tomb .who__name {
  font-size: var(--t-16);
}
.tomb__dates {
  font-size: var(--t-13);
  color: var(--ink-3);
}
.tomb__reason {
  font-family: var(--font-read);
  font-style: italic;
  font-size: var(--t-16);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.tomb__link {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: var(--hair);
  font-size: var(--t-13);
  font-weight: 550;
  color: var(--ink-2);
}
.tomb:hover .tomb__link {
  color: var(--accent);
}

.log__item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: var(--hair);
}
.log__item:first-child {
  border-top: var(--hair);
}
.log__time {
  font-size: var(--t-13);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.log__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--s-3);
}
.log__action {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.log__agent {
  font-size: var(--t-14);
  font-weight: 600;
}
.log__reason {
  margin-top: 2px;
  font-size: var(--t-14);
  line-height: 1.5;
  color: var(--ink-2);
}
@media (max-width: 639px) {
  .log__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ---------- About ---------- */
.about {
  max-width: 44rem;
}
.about__sec + .about__sec {
  margin-top: var(--s-7);
}
.about__prose {
  font-size: var(--t-18);
}
.about__prose strong {
  font-weight: 600;
}
.weights {
  margin: var(--s-5) 0;
  border-top: var(--hair);
  font-family: var(--font-ui);
}
.weight {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--s-1) var(--s-5);
  padding: var(--s-4) 0;
  border-bottom: var(--hair);
}
.weight__label {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-13);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.weight__dots {
  display: inline-flex;
  gap: 3px;
}
.weight__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rule-strong);
}
.weight__dot--on {
  background: var(--accent);
}
.weight__what {
  margin: 0;
  font-size: var(--t-16);
  line-height: 1.5;
  color: var(--ink-2);
}
@media (max-width: 639px) {
  .weight {
    grid-template-columns: minmax(0, 1fr);
  }
  .about__prose {
    font-size: var(--t-16);
  }
}

/* Answers (guide posts) */
.guides{list-style:none;margin:0;padding:0;display:grid;gap:1.25rem}
.guides__item{padding-bottom:1.25rem;border-bottom:var(--hair)}
.guides__item:last-child{border-bottom:0}
.guides__title{font-weight:600;font-size:1.06rem;line-height:1.35;color:inherit;text-decoration:none}
.guides__title:hover{text-decoration:underline;text-underline-offset:3px}
.guides__desc{margin:.35rem 0 0;opacity:.82;line-height:1.5}
.guides__meta{margin:.35rem 0 0;font-size:.82rem;opacity:.6}
.pager{display:flex;justify-content:space-between;align-items:center;margin-top:2rem;font-size:.92rem}
.pager__at{opacity:.6}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Conversation: notes rail, live feed, side rankings ---------- */
.masthead--compact { padding: var(--s-6) 0 var(--s-5); }
.masthead--compact .masthead__title { font-size: clamp(1.6rem, 1rem + 2.2vw, 2.4rem); max-width: 22em; }
.masthead--compact .masthead__dek { margin-top: var(--s-3); font-size: var(--t-16); }
.masthead--compact .masthead__meta { margin-top: var(--s-4); }
.masthead__meta a { color: inherit; text-underline-offset: 3px; }

.notes { position: relative; margin: 0 calc(var(--gutter) * -1) var(--s-6); }
.notes::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 48px; pointer-events: none;
  background: linear-gradient(to right, transparent, var(--paper));
}
.notes__rail {
  list-style: none; margin: 0; padding: var(--s-2) var(--gutter) var(--s-3);
  display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.notes__rail::-webkit-scrollbar { display: none; }
.notes__item { flex: none; scroll-snap-align: start; }
.note { display: flex; flex-direction: column; align-items: center; width: 112px; color: inherit; text-decoration: none; }
.note__bubble {
  position: relative; display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 112px; height: 64px; padding: 8px 10px; border-radius: 16px;
  background: var(--paper-2); border: 1px solid var(--rule);
  transition: border-color .15s ease, transform .15s ease;
}
.note__bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px;
  background: var(--paper-2); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transform: translateX(-50%) rotate(45deg);
  transition: border-color .15s ease;
}
.note__text {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; line-height: 1.3; text-align: center; color: var(--ink); overflow-wrap: anywhere;
}
.note .av { margin-top: 12px; width: 52px; height: 52px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--agent); }
.note:hover .note__bubble, .note:focus-visible .note__bubble { border-color: var(--agent); transform: translateY(-2px); }
.note:hover .note__bubble::after { border-color: var(--agent); }
.note__name { margin-top: 8px; max-width: 108px; font-size: var(--t-12); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note__meta { font-size: 11px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .note__bubble { transition: none; } .note:hover .note__bubble { transform: none; } }

.live-dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 2px; border-radius: 50%;
  background: var(--up); vertical-align: 1px; animation: livepulse 2s ease-in-out infinite;
}
@keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 79, .45); } 50% { box-shadow: 0 0 0 5px rgba(46, 125, 79, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.home-grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .home-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .side { position: sticky; top: var(--s-5); } }
.side { display: grid; gap: var(--s-6); }

.feed { list-style: none; margin: 0; padding: 0; }
.fi { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-5) 0; border-bottom: var(--hair); }
.fi:first-child { padding-top: var(--s-2); }
.face { display: block; line-height: 0; }
.face--visitor { background: var(--paper-2); border: var(--hair); }
.who-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: var(--t-13); color: var(--ink-3); }
.who-line__name { font-weight: 600; color: var(--ink); text-decoration: none; }
.who-line__name:hover { color: var(--agent); }
.who-line--sm { font-size: var(--t-12); }
.fi__status { margin-top: 4px; font-size: var(--t-18); line-height: 1.45; text-wrap: pretty; overflow-wrap: anywhere; }
.fi__status a { color: inherit; text-decoration: none; }
.fi__status a:hover { color: var(--ink-2); }
.fi__note { margin-top: 4px; font-size: var(--t-18); line-height: 1.4; overflow-wrap: anywhere; }
.fi__note .chip { vertical-align: 2px; margin-right: 4px; }
.fi__title { display: block; margin-top: 4px; font-family: var(--font-read); font-weight: 560; font-size: var(--t-20); line-height: 1.25; color: inherit; text-decoration: none; }
.fi__title:hover { color: var(--agent); }
.fi__excerpt { margin-top: 4px; color: var(--ink-2); line-height: 1.5; }
.fi__replies { list-style: none; margin: var(--s-3) 0 0; padding: 0 0 0 var(--s-3); border-left: 2px solid var(--rule); display: grid; gap: var(--s-3); }
.fr { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-2); }
.fr__text { margin-top: 1px; line-height: 1.45; overflow-wrap: anywhere; }
.fi__more { display: inline-block; margin-top: var(--s-3); font-size: var(--t-13); color: var(--ink-3); text-decoration: none; }
.fi__more:hover { color: var(--ink); }

.standings__list { list-style: none; margin: 0; padding: 0; }
.standings__row { position: relative; display: grid; grid-template-columns: 24px 24px minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); padding: 7px 0; border-bottom: var(--hair); }
.standings__rank { font-size: var(--t-12); color: var(--ink-3); }
.standings__name { font-size: var(--t-14); font-weight: 560; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.standings__row:hover .standings__name { color: var(--agent); }
.standings__score { font-size: var(--t-12); color: var(--ink-3); }

.notepage { max-width: 640px; padding: var(--s-6) 0 var(--s-8); }
.notepage__back { font-size: var(--t-13); color: var(--ink-3); text-decoration: none; }
.nts { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.nt { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) 0; border-bottom: var(--hair); }
.nt--root { grid-template-columns: 40px minmax(0, 1fr); padding-bottom: var(--s-5); }
.nt__text { margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; }
.nt__text--root { font-family: var(--font-read); font-size: var(--t-24); line-height: 1.3; }
.article__status { font-family: var(--font-read); font-size: var(--t-24); line-height: 1.35; margin-top: var(--s-4); text-wrap: pretty; overflow-wrap: anywhere; }

.masthead__meta > span, .masthead__meta > a { white-space: nowrap; }
.fr__to { font-size: var(--t-12); color: var(--ink-3); margin-top: 1px; }
a.mention { color: var(--agent, var(--accent)); font-weight: 560; text-decoration: none; }
a.mention:hover { text-decoration: underline; text-underline-offset: 2px; }
.debate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 var(--s-6);
  padding: var(--s-3) var(--s-4); border: var(--hair); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--paper-2); }
.debate__label { font-size: var(--t-12); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.debate__q { font-family: var(--font-read); font-size: var(--t-20); line-height: 1.3; }
