/* ============================================================================
   Is Claude Good At…? — styles
   A deadpan capability index. Editorial serif over a clinical mono grid.
   ========================================================================== */

/* ---- theme tokens ---- */
:root {
  --paper: #f3f0e7;
  --card:  #fbfaf4;
  --ink:   #1c1a14;
  --soft:  #736d5e;
  --line:  #d8d2c2;
  --yes:   oklch(0.5 0.085 150);
  --no:    oklch(0.52 0.13 28);

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
  --col: 232px;
}

[data-theme="dark"] {
  --paper: #121310;
  --card:  #1b1c17;
  --ink:   #e9e6d8;
  --soft:  #8c8a7a;
  --line:  #33342c;
  --yes:   oklch(0.78 0.13 150);
  --no:    oklch(0.74 0.14 35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  transition: background 0.25s ease, color 0.25s ease;
  padding-bottom: 40px;
}
::selection { background: var(--ink); color: var(--paper); }

/* ---- shared rails ---- */
.rail { max-width: var(--maxw); margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* ---------- masthead ---------- */
.masthead { padding-top: 52px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.masthead-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  margin-bottom: 18px;
}
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  color: var(--soft); line-height: 1.5;
}
.title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 7vw, 76px); line-height: 0.96; margin: 0;
  letter-spacing: -0.015em;
}
.standfirst {
  font-family: var(--display); font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.5; max-width: 62ch; margin: 18px 0 0; opacity: 0.84;
  text-wrap: pretty;
}
.ledger {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  font-family: var(--mono); font-size: 14px; color: var(--soft); flex-wrap: wrap;
}
.ledger b { font-weight: 600; }
.ledger .div { opacity: 0.4; }

/* ---- theme toggle ---- */
.theme-toggle {
  flex: none;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  padding: 7px 12px; cursor: pointer; transition: border-color 0.12s;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--soft); }
.theme-toggle .glyph { font-size: 13px; }

/* ---------- filters ---------- */
.filters {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.filter-row { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.filter-row.sub { padding-top: 0; gap: 6px; }
.vlabel { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--soft); text-transform: uppercase; margin-right: 4px; }

.pill {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  padding: 6px 11px; cursor: pointer; transition: all 0.12s; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 7px;
}
.pill:hover { border-color: var(--soft); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-blurb { font-size: 10.5px; opacity: 0.5; }
.pill[aria-pressed="true"] .pill-blurb { opacity: 0.65; }

.vpill {
  font-family: var(--mono); font-size: 11.5px; color: var(--soft);
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  padding: 4px 12px; cursor: pointer; transition: all 0.12s;
}
.vpill:hover { border-color: var(--soft); }
.vpill[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); font-weight: 600; }

.count-readout { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--soft); }

/* ---------- wall ---------- */
.wall { padding-top: 26px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(var(--col), 1fr)); }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 3px;
  padding: 14px 15px 15px;
  display: flex; flex-direction: column; gap: 9px;
  transition: border-color 0.12s, transform 0.12s;
  min-height: 118px;
}
.tile.t-yes { border-left-color: var(--yes); }
.tile.t-no  { border-left-color: var(--no); }
.tile:hover { transform: translateY(-2px); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--soft); }
.skill { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.note { font-family: var(--mono); font-size: 11.5px; line-height: 1.4; color: var(--soft); margin: auto 0 0; }

/* verdict label */
.verdict { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 5px; }
.verdict .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.is-yes { color: var(--yes); }
.is-no  { color: var(--no); }
.is-yes .dot { background: var(--yes); }
.is-no  .dot { background: var(--no); }

/* empty state */
.empty { padding: 60px 0; font-family: var(--mono); font-size: 13px; color: var(--soft); }

/* ---------- sentinel + footer ---------- */
.sentinel { padding-top: 26px; font-family: var(--mono); font-size: 12px; color: var(--soft); letter-spacing: 0.08em; }
.foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--soft); }
.foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- focus visibility ---------- */
:focus-visible { outline: 2px solid var(--no); outline-offset: 2px; }

@media (max-width: 640px) {
  .rail { padding-left: 22px; padding-right: 22px; }
  .masthead-top { flex-direction: column-reverse; align-items: flex-start; }
  :root { --col: 100%; }
  .count-readout { display: none; }
}
