/* =====================================================
   Touchdown Labs · editorial design system
   Used by every blog post + the Design System reference
   ===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  /* Ink + paper */
  --ink: #0a0a0a;
  --paper: #fff;
  --body: #777;
  --muted: #999;
  --faint: #bbb;
  --rule: #e5e5e5;
  --panel: #f7f7f7;
  --panel-2: #f0f0ef;

  /* Accents · oklch, all same chroma/lightness, hue varies */
  --accent: oklch(0.62 0.16 248);
  /* blue · primary accent */
  --accent-bg: oklch(0.97 0.02 248);
  --hit: oklch(0.66 0.13 165);
  /* green · positive / passing */
  --hit-bg: oklch(0.97 0.02 165);
  --warn: oklch(0.68 0.14 60);
  /* amber · caution / regressions */

  /* Measure */
  --read: 860px;
  --wide: 1120px;
  --frame: 1200px;
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: .18em
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}

code,
kbd,
.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace
}

code {
  font-size: .86em;
  background: var(--panel);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ink)
}

/* ---------- NAV ---------- */
nav.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.3px;
  font-size: .98rem
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: -.4px;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: .86rem;
  font-weight: 500;
  color: var(--body)
}

.nav-links a {
  transition: color .15s
}

.nav-links a:hover {
  color: var(--ink)
}

.nav-cta {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 7px 16px;
  font-weight: 600
}

.nav-cta:hover {
  background: var(--ink);
  color: #fff
}

/* ---------- READING PROGRESS ---------- */
.progress {
  position: fixed;
  top: 60px;
  left: 0;
  height: 2px;
  background: var(--ink);
  width: 0;
  z-index: 60;
  transition: width .1s linear
}

/* ---------- HEADER ---------- */
header.post {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 72px 28px 40px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: .7rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  background: var(--ink);
  border-radius: 50%
}

.eyebrow .pip {
  padding: 3px 9px;
  border: 1px solid var(--ink);
  color: var(--ink);
  letter-spacing: 1.4px
}

h1.title {
  font-weight: 200;
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  letter-spacing: -2.5px;
  line-height: 1.02;
  max-width: 1100px;
  text-wrap: balance;
}

h1.title em {
  font-style: normal;
  color: var(--muted);
  font-weight: 200
}

.dek {
  margin-top: 26px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--body);
  max-width: 780px;
  font-weight: 400;
}

.byline {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .88rem;
}

.byline .author {
  color: var(--ink);
  font-weight: 600
}

.byline .sep {
  width: 3px;
  height: 3px;
  background: var(--faint);
  border-radius: 50%
}

/* ---------- LAYOUT ---------- */
main {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 28px 96px
}

.read {
  max-width: var(--read)
}

.wide {
  max-width: var(--wide)
}

section {
  padding-top: 64px
}

section.h2-section {
  padding-top: 80px
}

/* ---------- SHORT VERSION CARD ---------- */
.tldr {
  margin-top: 48px;
  border: 1px solid var(--ink);
  padding: 34px 38px;
  max-width: var(--wide);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  background: var(--paper);
  position: relative;
}

.tldr::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 5px;
  background: linear-gradient(90deg, var(--ink) 0 30%, transparent 30%);
}

.tldr .label {
  font-size: .7rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  padding-top: 10px;
}

.tldr .label small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: none;
  margin-top: 4px;
  font-size: .72rem
}

.tldr p {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--body);
  max-width: 680px
}

.tldr p strong {
  color: var(--ink);
  font-weight: 600
}

.tldr p em {
  font-style: italic;
  color: var(--ink)
}

/* ---------- BODY TEXT ---------- */
h2 {
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--ink);
  max-width: 900px;
  text-wrap: balance;
}

.h2-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
}

h3 {
  margin-top: 32px;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -.3px;
}

p {
  margin-top: 14px;
  color: var(--body);
  line-height: 1.85;
  font-size: 1.04rem;
  max-width: var(--read)
}

p strong {
  color: var(--ink);
  font-weight: 600
}

p em {
  font-style: italic;
  color: var(--ink)
}

ul {
  margin: 14px 0 0 0;
  padding-left: 0;
  list-style: none;
  max-width: var(--read)
}

ul li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
  color: var(--body);
  line-height: 1.75;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 8px;
  height: 1px;
  background: var(--ink);
}

ul li strong {
  color: var(--ink);
  font-weight: 600
}

ul li em {
  font-style: italic;
  color: var(--ink)
}

/* ---------- PULL QUOTE ---------- */
.pull {
  margin: 40px 0 4px;
  max-width: var(--read);
  padding: 6px 0 6px 26px;
  border-left: 2px solid var(--ink);
  font-weight: 300;
  font-size: 1.45rem;
  line-height: 1.35;
  letter-spacing: -.6px;
  color: var(--ink);
}

/* ---------- CHART PLATE ---------- */
.chart {
  margin-top: 48px;
  max-width: var(--wide);
  border: 1px solid var(--rule);
  background: var(--paper);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
}

.chart-head .id {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: 1.6px;
  color: var(--ink);
  font-weight: 600;
}

.chart-head .id span {
  color: var(--muted);
  font-weight: 500
}

.chart-head .name {
  font-size: .78rem;
  letter-spacing: .4px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}

.chart-body {
  padding: 32px 28px 24px
}

.chart-cap {
  padding: 18px 28px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--body);
  font-size: .92rem;
  line-height: 1.7;
}

.chart-cap b {
  color: var(--ink);
  font-weight: 600
}

/* ---------- STAT ROW ---------- */
.stats {
  margin-top: 32px;
  max-width: var(--wide);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.stat {
  padding: 22px 4px 22px 20px;
  border-right: 1px solid var(--rule)
}

.stat:last-child {
  border-right: 0
}

.stat .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase
}

.stat .v {
  font-weight: 300;
  font-size: 1.9rem;
  letter-spacing: -1px;
  margin-top: 8px;
  color: var(--ink)
}

.stat .v small {
  font-size: .9rem;
  color: var(--body);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 4px
}

/* ---------- HARDWARE / GENERIC GRID ---------- */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}

.hw-col {
  padding: 20px 18px 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hw-col:nth-child(4n) {
  border-right: 0
}

.hw-col:nth-last-child(-n+4) {
  border-bottom: 0
}

.hw-col.is-accent {
  background: var(--panel)
}

.hw-col .hw-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: .64rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.hw-col .hw-name {
  margin-top: 4px;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -.3px;
  line-height: 1.2;
}

.hw-list {
  margin-top: 10px;
  padding: 0;
  list-style: none;
  max-width: none
}

.hw-list li {
  position: relative;
  padding-left: 14px;
  margin-top: 6px;
  color: var(--body);
  font-size: .88rem;
  line-height: 1.55;
}

.hw-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 1px;
  background: var(--ink);
}

.hw-list li b {
  color: var(--ink);
  font-weight: 600
}

.hw-foot {
  background: var(--ink);
  color: #fff;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.hw-foot .stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  border-top: 2px solid #fff;
  padding-top: 10px;
}

.hw-foot p {
  margin: 0;
  color: #e7e7e7;
  font-size: .96rem;
  line-height: 1.65;
  max-width: none
}

.hw-foot p strong {
  color: #fff;
  font-weight: 600
}

/* ---------- STACK MAP ---------- */
.stackmap {
  display: flex;
  flex-direction: column
}

.sm-row {
  display: grid;
  grid-template-columns: 60px 220px 280px 1fr;
  align-items: start;
  gap: 18px;
  padding: 18px 24px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.sm-row:first-child {
  border-top: 0
}

.sm-row:hover {
  background: var(--panel)
}

.sm-stage {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -.5px;
  line-height: 1;
  padding-top: 2px;
}

.sm-name {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -.2px;
  line-height: 1.35;
}

.sm-tool {
  font-family: 'JetBrains Mono', monospace;
  font-size: .84rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.5;
}

.sm-tool code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit
}

.sm-fix {
  color: var(--body);
  font-size: .94rem;
  line-height: 1.65;
  max-width: none
}

/* ---------- BENCH CALLOUTS ---------- */
.bench-row {
  margin-top: 32px;
  max-width: var(--wide);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.bench {
  padding: 22px 22px 24px;
  border-right: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 6px
}

.bench:last-child {
  border-right: 0
}

.bench .src {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600
}

.bench .big {
  font-weight: 300;
  font-size: 2.2rem;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1.05;
  margin-top: 6px
}

.bench .big .x {
  color: var(--accent);
  font-weight: 500
}

.bench .ttl {
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink);
  letter-spacing: -.2px;
  line-height: 1.35;
  margin-top: 6px
}

.bench .desc {
  color: var(--body);
  font-size: .86rem;
  line-height: 1.6;
  margin-top: 4px
}

.bench a {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: .78rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  border-bottom: 1px solid var(--accent)
}

/* ---------- ANNOTATED SOURCE GROUPS ---------- */
.src-groups {
  margin-top: 18px;
  max-width: var(--wide)
}

.src-group {
  margin-top: 32px
}

.src-group h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 6px;
}

.src-group h3 small {
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: none;
  font-weight: 500;
  margin-left: 10px;
  font-size: .72rem
}

.src-line {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.src-line .lhs em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500
}

.src-line .lhs p {
  margin: 6px 0 0;
  color: var(--body);
  font-size: .88rem;
  line-height: 1.55;
  max-width: none
}

.src-line .rhs {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--accent);
  text-align: right;
  word-break: break-all;
}

.src-line a {
  color: inherit;
  border-bottom: 1px solid currentColor
}

/* ---------- PR / TWO-COL LIST ---------- */
.pr-grid {
  margin-top: 24px;
  max-width: var(--wide);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}

.pr-col {
  padding: 24px 24px 20px
}

.pr-col+.pr-col {
  border-left: 1px solid var(--rule)
}

.pr-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.pr-col h4 small {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: none;
  margin-left: 8px
}

.pr-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none
}

.pr-col li {
  position: relative;
  padding-left: 16px;
  margin-top: 8px;
  color: var(--body);
  font-size: .92rem;
  line-height: 1.55;
}

.pr-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 8px;
  height: 1px;
  background: var(--ink);
}

.pr-col li strong {
  color: var(--ink);
  font-weight: 600
}

.pr-col.hot li {
  color: var(--ink)
}

/* ---------- LINK CARDS ---------- */
.ig-links {
  margin-top: 32px;
  max-width: var(--wide);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ig-links a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  color: var(--ink);
  border-right: 1px solid var(--rule);
  transition: background .15s;
}

.ig-links a:last-child {
  border-right: 0
}

.ig-links a:hover {
  background: var(--panel)
}

.ig-links .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}

.ig-links .ttl {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -.2px;
  line-height: 1.35
}

.ig-links .meta {
  color: var(--body);
  font-size: .84rem;
  font-family: 'JetBrains Mono', monospace
}

.ig-links .arr {
  margin-top: auto;
  color: var(--accent);
  font-size: .84rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace
}

/* ---------- GUIDE / SIDE-LABELED CALLOUT ---------- */
.guide {
  margin-top: 32px;
  max-width: var(--wide);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--panel);
}

.guide .side {
  padding: 22px;
  border-right: 1px solid var(--rule);
  background: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.guide .side small {
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: none;
  font-weight: 500;
  font-size: .72rem
}

.guide .body {
  padding: 22px 26px;
  color: var(--body);
  font-size: .96rem;
  line-height: 1.75
}

.guide .body strong {
  color: var(--ink);
  font-weight: 600
}

.guide .body em {
  color: var(--ink);
  font-style: italic
}

/* ---------- INSTRUMENT LIST (signals) ---------- */
.signals {
  margin-top: 24px;
  max-width: var(--wide);
  border: 1px solid var(--rule)
}

.signals .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--rule);
}

.signals .row:first-child {
  border-top: 0
}

.signals .row .k {
  padding: 14px 18px;
  background: var(--panel);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  border-right: 1px solid var(--rule);
}

.signals .row .v {
  padding: 14px 18px;
  color: var(--body);
  font-size: .94rem;
  line-height: 1.7;
}

/* ---------- EVIDENCE / DARK CARD ---------- */
.evidence {
  margin-top: 36px;
  max-width: var(--wide);
  border: 1px solid var(--ink);
  background: #0a0a0a;
  color: #e7e7e7;
  font-family: 'JetBrains Mono', monospace;
  font-size: .84rem;
  line-height: 1.75;
}

.evidence-head {
  padding: 14px 22px;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .7rem;
  letter-spacing: 1.6px;
  color: #888;
}

.evidence-head .live {
  color: var(--hit);
  display: flex;
  gap: 6px;
  align-items: center
}

.evidence-head .live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--hit);
  border-radius: 50%
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr)
}

.evidence-grid .col {
  padding: 22px 24px;
  border-right: 1px solid #222
}

.evidence-grid .col:last-child {
  border-right: 0
}

.evidence-grid .col h4 {
  font-size: .7rem;
  letter-spacing: 1.6px;
  color: var(--hit);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.evidence-grid .col p {
  color: #e7e7e7;
  margin: 0;
  font-size: .86rem;
  line-height: 1.7;
  max-width: none;
  font-family: 'JetBrains Mono', monospace;
}

.evidence-grid .col p+p {
  margin-top: 8px
}

.evidence-grid .col p.muted {
  color: #888;
  font-size: .8rem;
  margin-top: 10px
}

.evidence-fields {
  padding: 18px 22px;
  border-top: 1px solid #222;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: #bbb;
  line-height: 1.7;
}

.evidence-fields h5 {
  color: #fff;
  font-size: .7rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.evidence-fields ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 24px;
  max-width: none
}

.evidence-fields li {
  padding-left: 14px;
  position: relative;
  color: #e7e7e7;
  font-size: .8rem;
  line-height: 1.7
}

.evidence-fields li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #888
}

/* ---------- TEAM CARDS (for round-up sections) ---------- */
.teams {
  margin-top: 24px;
  max-width: var(--wide);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule)
}

.team {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.team .meta {
  padding: 24px 22px;
  border-right: 1px solid var(--rule);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team .meta .stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.team .meta .name {
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -.3px;
  line-height: 1.2
}

.team .meta .who {
  color: var(--body);
  font-size: .86rem;
  line-height: 1.55
}

.team .meta .url {
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem;
  color: var(--accent);
  font-weight: 600;
  word-break: break-all
}

.team .body {
  padding: 24px 26px
}

.team .body p {
  margin: 0;
  color: var(--body);
  font-size: .96rem;
  line-height: 1.7;
  max-width: none
}

.team .body p+p {
  margin-top: 10px
}

.team .body strong {
  color: var(--ink);
  font-weight: 600
}

.team .body em {
  color: var(--ink);
  font-style: italic
}

.team .body .take {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--ink);
  color: var(--ink);
  font-style: italic;
  font-size: .94rem;
  line-height: 1.6;
}

/* ---------- R-AXIS LADDER ---------- */
.ladder {
  margin-top: 24px;
  max-width: var(--wide);
  border: 1px solid var(--rule)
}

.layer-row {
  display: grid;
  grid-template-columns: 84px 220px 1fr;
  align-items: start;
  gap: 18px;
  padding: 18px 22px;
  border-top: 1px solid var(--rule);
}

.layer-row:first-child {
  border-top: 0
}

.layer-row .lvl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.5px;
  color: var(--ink);
}

.layer-row .lvl small {
  display: block;
  font-size: .62rem;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 1.5px
}

.layer-row .nm {
  font-weight: 500;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -.2px
}

.layer-row .nm small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: .2px
}

.layer-row .dsc {
  color: var(--body);
  font-size: .94rem;
  line-height: 1.65
}

.layer-row.is-hot {
  background: var(--panel)
}

/* ---------- SOURCES ---------- */
.sources {
  margin-top: 64px;
  max-width: var(--wide);
  padding: 32px 0 0;
  border-top: 1px solid var(--ink)
}

.sources h2 {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -.4px;
  margin-bottom: 18px
}

.src-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 32px
}

.src-grid a {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--body);
  font-size: .92rem;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.src-grid a em {
  font-style: normal
}

.src-grid a:hover {
  color: var(--ink)
}

.src-grid a span {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  flex-shrink: 0
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--rule);
  margin-top: 80px
}

.foot-inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: .86rem;
  color: var(--muted);
}

.foot-links {
  display: flex;
  gap: 24px
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline
}

/* ---------- SVG label styles ---------- */
svg .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  fill: var(--ink);
  letter-spacing: .4px;
  font-weight: 500
}

svg .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  fill: var(--ink);
  font-weight: 700
}

svg .ttl {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  fill: var(--ink);
  font-weight: 600;
  letter-spacing: .2px
}

svg .light {
  fill: #fff !important
}

svg .light-muted {
  fill: #e5e5e5 !important
}

svg .accent {
  fill: oklch(0.62 0.16 248) !important;
  font-weight: 700
}

svg .warn {
  fill: oklch(0.58 0.18 30) !important;
  font-weight: 600
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:880px) {
  .tldr {
    grid-template-columns: 1fr;
    padding: 24px 22px;
    gap: 18px
  }

  .stackmap .sm-row {
    grid-template-columns: 50px 1fr;
    row-gap: 6px
  }

  .stackmap .sm-name,
  .stackmap .sm-tool,
  .stackmap .sm-fix {
    grid-column: 2
  }

  .stackmap .sm-stage {
    grid-row: span 3
  }

  .bench-row {
    grid-template-columns: 1fr
  }

  .bench {
    border-right: 0;
    border-bottom: 1px solid var(--rule)
  }

  .src-line {
    grid-template-columns: 1fr
  }

  .src-line .rhs {
    text-align: left
  }

  .pr-grid {
    grid-template-columns: 1fr
  }

  .pr-col+.pr-col {
    border-left: 0;
    border-top: 1px solid var(--rule)
  }

  .ig-links {
    grid-template-columns: 1fr
  }

  .ig-links a {
    border-right: 0;
    border-bottom: 1px solid var(--rule)
  }

  .evidence-fields ul {
    grid-template-columns: 1fr 1fr
  }

  .hw-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .hw-col {
    border-right: 1px solid var(--rule) !important
  }

  .hw-col:nth-child(2n) {
    border-right: 0 !important
  }

  .hw-foot {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .stat:nth-child(2) {
    border-right: 0
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--rule)
  }

  .src-grid {
    grid-template-columns: 1fr
  }

  .evidence-grid {
    grid-template-columns: 1fr
  }

  .evidence-grid .col {
    border-right: 0;
    border-bottom: 1px solid #222
  }

  .guide {
    grid-template-columns: 1fr
  }

  .guide .side {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    flex-direction: row
  }

  .signals .row {
    grid-template-columns: 1fr
  }

  .signals .row .k {
    border-right: 0;
    border-bottom: 1px solid var(--rule)
  }

  .team {
    grid-template-columns: 1fr
  }

  .team .meta {
    border-right: 0;
    border-bottom: 1px solid var(--rule)
  }

  .layer-row {
    grid-template-columns: 60px 1fr
  }

  .layer-row .dsc {
    grid-column: 2
  }

  .nav-links a:not(.nav-cta) {
    display: none
  }
}