/* Shared styling for the static content pages under public/.
 *
 * ONE FILE, not a copy per page. /about/ was written before this and
 * carries its own inline block; the long-tail pages share this. When
 * /about/ is next touched it should move here too — four copies of a
 * colour ramp is how the light and dark palettes drift apart.
 *
 * Dark mode is `prefers-color-scheme` only. These pages are outside
 * the React app and have no access to its theme store, and a reader
 * arriving from a search result has no stored preference anyway. */
:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #2563eb;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --fg: #e2e8f0;
    --muted: #94a3b8;
    --line: #1e293b;
    --brand: #8ec0ff;
    --card: #11203a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 2.5rem 16px 4rem; }
h1 { font-size: 1.75rem; line-height: 1.25; font-weight: 600; margin: 0 0 .75rem; }
h2 { font-size: 1.125rem; font-weight: 600; margin: 2rem 0 .5rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .25rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.0625rem; color: var(--muted); }
a { color: var(--brand); }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: .45rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}
table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; font-size: .9375rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cta {
  display: inline-block; background: #2563eb; color: #fff; text-decoration: none;
  font-weight: 500; padding: .6rem 1.1rem; border-radius: 10px; margin-top: .5rem;
}
.meta { font-size: .8125rem; color: var(--muted); }
nav.crumbs { font-size: .8125rem; margin-bottom: 1.25rem; }
footer { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) { h1 { font-size: 2.125rem; } }
