:root {
  --bg: #ffffff;
  --text: #1c2228;
  --muted: #5a6570;
  --line: #dde2e6;
  --accent: #128a12;
  --panel: #f5f7f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111416;
    --text: #e6e9eb;
    --muted: #9aa5ae;
    --line: #2b3237;
    --accent: #4fcf4f;
    --panel: #1a1f22;
  }
}

* { box-sizing: border-box; }

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

.top, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.top { padding-top: 20px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

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

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 32px 0 8px; }

.lede { font-size: 18px; }
.meta { color: var(--muted); font-size: 14px; }

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

code {
  font: 14px ui-monospace, Consolas, monospace;
  background: var(--panel);
  padding: 1px 5px;
  border-radius: 4px;
}

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

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

th { background: var(--panel); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

ul { padding-left: 22px; }
li { margin: 4px 0; }

.links { list-style: none; padding: 0; }

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

@media (max-width: 560px) {
  h1 { font-size: 26px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 700; }
}
