:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5f5a55;
  --divider: #e6e1dd;
  --accent: #e63b1e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161413;
    --text: #f3f0ee;
    --muted: #a9a29b;
    --divider: #2c2826;
    --accent: #ff5b3e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 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: 16px;
  border-bottom: 1px solid var(--divider);
}

nav { display: flex; flex-wrap: wrap; gap: 16px; }

a { color: var(--accent); }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

h1 { font-size: 28px; line-height: 1.25; margin-top: 32px; }
h2 { font-size: 20px; margin-top: 32px; }

table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

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

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