/* pi.css — styles for /projects/pi only (everything else comes from style.css) */

.pipage {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem);
}
.pipage h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.pipage h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin: 0 0 0.8rem;
}
.pipage h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 2.2rem 0 0.7rem;
}
.pipage__lede, .pipage__note {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 1.6rem;
}
.pipage__lede a, .pipage__note a { color: var(--accent); }
.pipage section { margin-top: clamp(2.5rem, 6vw, 3.5rem); }

/* KaTeX display blocks: muted like the old mono formula line, and wide
   equations scroll inside their own box instead of the page */
.pipage__tex {
  color: var(--muted);
  font-size: 0.95rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

/* ── benchmarks table ─────────────────────────────────────────────────── */
.pipage__bench table {
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.88rem;
}
.pipage__bench th,
.pipage__bench td {
  text-align: left;
  padding: 0.55rem 2.4rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.pipage__bench th {
  color: var(--faint);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pipage__bench td { color: var(--muted); }
.pipage__bench td:first-child { color: var(--text); }
.pipage__bench .ok { color: var(--accent); }

/* ── prose lists (optimisations, references) ──────────────────────────── */
.pipage__list {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 1.6rem;
  padding-left: 1.2rem;
}
.pipage__list li { margin-bottom: 0.6rem; }
.pipage__list b { color: var(--text); font-weight: 600; }
.pipage__list a { color: var(--accent); }

/* ── build block ──────────────────────────────────────────────────────── */
.pipage__build pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.8;
  padding: 1rem 1.2rem;
  margin: 0;
  overflow-x: auto;
  max-width: 62ch;
}
