:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0a2540;
  --text-secondary: #5a7a95;
  --accent: #0078d4;
  --border: #e1e8ef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1d2c;
    --surface: #15263b;
    --text: #e5eff5;
    --text-secondary: #7a92a8;
    --accent: #5ba3e6;
    --border: #1f3550;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 1.5rem 1.25rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

main {
  max-width: 720px;
  margin: 0 auto;
}

header {
  margin-bottom: 2rem;
}

header .label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--text);
}

p, li {
  color: var(--text);
}

p, ul, ol, table {
  margin: 0.5rem 0 1rem;
}

ul, ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
  font-weight: 600;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

footer .meta {
  margin: 0.25rem 0;
}

.muted {
  color: var(--text-secondary);
}

code {
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}
