/* Generated by `npm run render`. Edit src/render/site.ts, not this file. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --panel: #ffffff;
  --ink: #1a1a1c;
  --muted: #5d5d66;
  --line: #e2e0dc;
  --accent: #0b6b5e;
  --code-bg: #f1efeb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --panel: #1b1b1e;
    --ink: #eceae6;
    --muted: #a0a0aa;
    --line: #2c2c31;
    --accent: #5fd0bd;
    --code-bg: #232327;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

a {
  color: var(--accent);
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.925rem;
}

main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.hero {
  border-top: 0;
  padding-top: 1.5rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

/* What the name stands for. A short name tells a first-time reader nothing on
   its own, so the expansion sits directly under it rather than in a footer. */
.expansion {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 2rem;
}

p {
  max-width: 48rem;
}

.lead {
  font-size: 1.05rem;
}

.note {
  color: var(--muted);
  font-size: 0.875rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.stats li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.stats .value {
  display: block;
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stats .label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.cards p {
  color: var(--muted);
  font-size: 0.925rem;
  margin: 0;
}

.pipeline,
.consumers {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.pipeline {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  counter-reset: stage;
}

/* The stages are ordered, and on a narrow screen the grid wraps them onto
   several rows — where left-to-right stops saying so. The number does. */
.pipeline li {
  counter-increment: stage;
}

.pipeline code::before {
  content: counter(stage) ". ";
  color: var(--muted);
  font-weight: 400;
}

.consumers {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.pipeline li,
.consumers li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.pipeline li {
  border-left: 3px solid var(--accent);
}

.pipeline code,
.consumers code {
  display: inline-block;
  margin-bottom: 0.35rem;
  background: none;
  padding: 0;
  font-weight: 650;
  color: var(--accent);
}

.pipeline span,
.consumers span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

.consumers-lead {
  margin-top: 0;
}

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 0.75rem;
  max-width: 48rem;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.ways-lead {
  margin: 2rem 0 1rem;
}

.ways {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  counter-reset: way;
}

.ways li {
  counter-increment: way;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.ways h3::before {
  content: counter(way) ". ";
  color: var(--muted);
  font-weight: 400;
}

/* Inside a card the block already has a ground, so the command reads as the
   line you would type rather than as a second panel stacked on the first. */
.ways pre {
  background: var(--code-bg);
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin: 0 0 0.6rem;
}

.ways p {
  color: var(--muted);
  font-size: 0.925rem;
  margin: 0;
}

.sub {
  margin: 0 0 0.75rem;
}

.scroll {
  overflow-x: auto;
}

.table {
  border-collapse: collapse;
  width: 100%;
  min-width: 26rem;
  font-size: 0.925rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Only the counts. The verdict table's second column is prose, and would be
   dragged off the side of the page by a nowrap meant for a number. */
.coverage td:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cta {
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

footer {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0.35rem 0;
  max-width: none;
}
