:root {
  --bg: #ffffff;
  --text: #1a1d24;
  --muted: #5b6270;
  --accent: #0b63e5;
  --rule: #e4e7ec;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --text: #e8eaee;
    --muted: #9aa1ad;
    --accent: #6ea8ff;
    --rule: #262a33;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

header, main, footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

header .brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .95rem; }

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

nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 2rem 0 .25rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1.02rem; margin: 1.25rem 0 .25rem; }

.updated { color: var(--muted); margin-top: 0; }

ul, ol { padding-left: 1.25rem; }
li { margin: .25rem 0; }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}
