:root {
  --bg: #ffffff;
  --text: #1c1d20;
  --muted: #5b6068;
  --line: #e3e5e8;
  --accent: #3b6fd8;
  --card: #f5f6f8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --text: #e8e9eb;
    --muted: #a0a5ad;
    --line: #2a2c30;
    --accent: #7aa2f7;
    --card: #1b1d20;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, header, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 8px;
}
header img { width: 40px; height: 40px; border-radius: 10px; }
header a { color: var(--text); text-decoration: none; font-weight: 600; }
nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
nav a { color: var(--muted); font-weight: 500; }
header > a { white-space: nowrap; }
@media (max-width: 560px) {
  nav { margin-left: 0; width: 100%; }
}
h1 { font-size: 1.8rem; line-height: 1.25; margin: 24px 0 4px; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
h3 { font-size: 1rem; margin: 20px 0 4px; }
p, li { color: var(--text); }
.meta { color: var(--muted); font-size: 14px; margin-top: 0; }
a { color: var(--accent); }
ul { padding-left: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
}
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
footer {
  margin-top: 48px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
