/* One stylesheet, no framework, no build step, no web font. The site is
   four HTML files and this; it loads nothing from anywhere else, which is
   the same promise the binary makes. */

:root {
  --bg: #ffffff;
  --fg: #1a1d21;
  --muted: #5c6672;
  --rule: #e3e6ea;
  --accent: #1f6f43;
  --code-bg: #f4f6f8;
  --card: #fafbfc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --fg: #e6e9ed;
    --muted: #9aa2ad;
    --rule: #2a2e36;
    --accent: #5ab77f;
    --code-bg: #1d2026;
    --card: #1a1d23;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 72px;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}

main, header, footer { max-width: 760px; margin: 0 auto; }

header { padding: 40px 0 8px; border-bottom: 1px solid var(--rule); }

.lang { float: right; font-size: 14px; }
.lang a { color: var(--muted); }
.lang strong { color: var(--fg); }

h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 44px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 28px 0 8px; }

.tagline { color: var(--muted); margin: 0 0 24px; font-size: 18px; }

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

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }

pre {
  background: var(--code-bg);
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.55;
}

pre code { background: none; padding: 0; }

table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 14px 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.demo { margin: 22px 0 8px; }
/* The demo is inlined into the page rather than referenced. From <img> an
   SVG is frozen at frame zero by some engines, and frame zero of this one
   is an empty terminal; from <object> it played locally and froze on
   GitHub Pages. Both measured on 2026-10-06. Inline, there is no embedding
   mode to get wrong. scripts/make-demo.sh writes it in, and the workflow
   refuses a site that has drifted from site/demo.txt. */
.demo svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.demo figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 18px 0;
}
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

ul { padding-left: 22px; }
li { margin: 5px 0; }

.tier { font-weight: 600; }
