:root {
  --bg: #fbfaf7;
  --text: #1d1f24;
  --muted: #5d6270;
  --line: #e4e1da;
  --accent: #2f5bd3;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --text: #eceae4;
    --muted: #a4a8b3;
    --line: #2b2f37;
    --accent: #8aa8ff;
    --card: #1b1e23;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, header, footer { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; }
header a.brand { font-weight: 700; font-size: 20px; letter-spacing: .5px; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover, a { color: var(--accent); }
h1 { font-size: 34px; line-height: 1.2; margin: 24px 0 12px; }
h2 { font-size: 22px; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p.lead { font-size: 19px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 20px 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 18px; padding-bottom: 40px; }
footer a { color: var(--muted); margin-right: 16px; }
@media (max-width: 560px) {
  h1 { font-size: 28px; }
  dl { grid-template-columns: 1fr; }
  dt { margin-top: 8px; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr:first-child { display: none; }
  table.stack tr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; margin: 12px 0; background: var(--card); }
  table.stack td { border: 0; padding: 6px 0; }
  table.stack td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
}
