:root {
  --navy: #0a1a3c;
  --navy-light: #142a5c;
  --text: #374151;
  --text-h: #111827;
  --muted: #6b7280;
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e2e5eb;
  --accent-light: #eef2ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #8fb0ff;
    --navy-light: #b7ccff;
    --text: #c9d1de;
    --text-h: #f1f4f9;
    --muted: #8d98ab;
    --bg: #0d1220;
    --card: #151c2e;
    --border: #26304a;
    --accent-light: #1a2542;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--navy); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site { background: #0a1a3c; color: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
header.site .brand { font-weight: 700; font-size: 20px; letter-spacing: .2px; color: #fff; text-decoration: none; }
header.site nav { display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: #cfd9f0; text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

main { padding: 40px 0 56px; }
h1 { color: var(--text-h); font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 0 0 14px; text-wrap: balance; }
h2 { color: var(--text-h); font-size: 22px; margin: 38px 0 10px; text-wrap: balance; }
h3 { color: var(--text-h); font-size: 17px; margin: 24px 0 6px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.lede { font-size: 18px; color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); font-size: 14px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 20px 22px; margin: 18px 0; }
.card h2, .card h3 { margin-top: 0; }
.sample { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--accent-light); border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; overflow-wrap: anywhere; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--text-h); font-weight: 600; }
dl.facts dd { margin: 0; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dd { margin-bottom: 10px; } }

footer.site { border-top: 1px solid var(--border); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer.site a { color: var(--muted); }
