:root {
  --bg: #ffffff;
  --text: #172b4d;
  --muted: #5e6c84;
  --border: #dfe1e6;
  --accent: #0c66e4;
  --surface: #f7f8f9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d2125;
    --text: #dee4ea;
    --muted: #9fadbc;
    --border: #38414a;
    --accent: #579dff;
    --surface: #22272b;
  }
}

* { box-sizing: border-box; }

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

header, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

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

nav { display: flex; flex-wrap: wrap; gap: 16px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 32px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }

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

.meta { color: var(--muted); margin: 0 0 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th { color: var(--muted); font-weight: 600; }

.table-wrap { overflow-x: auto; }

footer {
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

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