:root {
  --ink: #1b2430;
  --muted: #5b6673;
  --line: #e3e7ec;
  --paper: #ffffff;
  --wash: #f5f7f9;
  --accent: #0b6e4f;
  --accent-ink: #ffffff;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8edf2;
    --muted: #a3adb8;
    --line: #2a3441;
    --paper: #12181f;
    --wash: #1a222b;
    --accent: #3fbf8f;
    --accent-ink: #0b1a14;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

header.site .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header.site .brand {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
}

header.site nav a:hover { color: var(--ink); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }

p.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }

.card {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.2rem 0;
}

ul { padding-left: 1.3rem; }
li { margin: 0.3rem 0; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.meta { color: var(--muted); font-size: 0.95rem; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
}

footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  html { font-size: 16px; }
  h1 { font-size: 1.65rem; }
  header.site nav a { margin-left: 0.7rem; }
}
