/* One stylesheet, no build step, no external requests. The site is three
   static files on Cloudflare Pages (PRD §12) and must stay that way: a privacy
   page that phones a CDN home is a bad look for an app whose whole claim is
   that it does not phone anywhere. */

:root {
  --bg: #0a0d10;
  --surface: #12171c;
  --border: #232c34;
  --text: #f4f6f7;
  --dim: #8a959e;
  --accent: #34c77b;
  --on-accent: #04140a;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f4f6f7;
    --border: #dbe0e4;
    --text: #12171c;
    --dim: #5b656e;
    /* Darker than the dark theme's #34c77b because it has to clear WCAG AA
       against BOTH #fff and the #f4f6f7 card, and the card is the binding
       constraint. #1d8f53 looked right and measured 3.79:1 on a card. */
    --accent: #0e7040;
    --on-accent: #ffffff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 42rem; margin: 0 auto; padding: 2rem 1.25rem 5rem; }

header { padding: 2.5rem 0 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.brand span {
  display: inline-block; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  /* "89" — two glyphs, so slightly tighter than a single initial would need. */
  font-size: 0.8rem; line-height: 1.5rem; text-align: center; font-weight: 800;
  letter-spacing: -0.03em;
}

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 0.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.4rem; }
p, li { color: var(--text); }
.lede { font-size: 1.1rem; color: var(--dim); }
.updated { color: var(--dim); font-size: 0.9rem; margin: 0; }

a { color: var(--accent); }
a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

ul { padding-left: 1.2rem; }
li { margin: 0.4rem 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--dim); font-weight: 600; }
/* Tables are the one thing that overflows on a phone. */
.scroll { overflow-x: auto; }

footer {
  margin-top: 4rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--dim); font-size: 0.9rem;
}
footer a { margin-right: 1rem; }

.toc { font-size: 0.95rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
