/* Shared styles for every page. Page-only styles go in that page's `head`. */
:root {
  --fg: #16181d;
  --muted: #4b5262;
  --bg: #ffffff;
  --panel: #f4f5f8;
  --line: #d9dce3;
  --accent: #1f4fd1;
  --accent-fg: #ffffff;
  --note: #fff6db;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8eaef;
    --muted: #a9b0bf;
    --bg: #111318;
    --panel: #1b1e25;
    --line: #2e333d;
    --accent: #7ea2ff;
    --accent-fg: #0b0d12;
    --note: #3a3115;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem; }
header.site, footer.site, main#main { max-width: 64rem; margin: 0 auto; padding: 1rem 1.5rem; }
header.site { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
header.site nav, footer.site nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
header.site nav a:not(.button), footer.site a { color: var(--fg); text-decoration: none; }
header.site nav a:hover, footer.site a:hover, [aria-current="page"] { text-decoration: underline; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--fg); text-decoration: none; }
.button { display: inline-block; padding: 0.5rem 1rem; border-radius: 0.4rem; background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 600; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; margin-top: 3rem; }
h1 { font-size: 2.25rem; line-height: 1.2; margin: 2rem 0 1rem; }
h2 { margin-top: 2.5rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 0.4rem; padding: 1rem; overflow-x: auto; font-size: 0.9rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 0.6rem; text-align: left; }
.note { background: var(--note); border-left: 4px solid currentColor; padding: 0.75rem 1rem; border-radius: 0.25rem; }
