:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #1d4ed8;
  --panel: #f8fafc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e27;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: #1e293b;
    --accent: #93c5fd;
    --panel: #111735;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
header.site a.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
nav a { color: var(--accent); text-decoration: none; margin-left: 16px; }
nav a:first-child { margin-left: 0; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, li { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }
.lang { display: inline-flex; gap: 8px; margin: 8px 0 24px; }
.lang a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--accent); text-decoration: none; font-size: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; }
a { color: var(--accent); overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; }
