:root {
  --bg: #f6f5f2;
  --paper: #ffffff;
  --ink: #1b1b1d;
  --muted: #5f6066;
  --rule: #e2e0da;
  --accent: #0a8f8f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --paper: #18191c;
    --ink: #ececee;
    --muted: #a2a3aa;
    --rule: #2c2d31;
    --accent: #3cc8c8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
header.top a.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
}
header.top img { width: 40px; height: 40px; border-radius: 9px; }
nav.lang a { color: var(--muted); text-decoration: none; margin-left: 12px; font-size: 15px; }
nav.lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 21px; line-height: 1.3; margin: 36px 0 10px; letter-spacing: -0.01em; }
p, li { color: var(--ink); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.muted { color: var(--muted); font-size: 15px; }
a { color: var(--accent); }
ul { padding-left: 22px; }
li { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--rule); }
th { color: var(--muted); font-weight: 600; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 8px 0 0; padding: 0; list-style: none; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
section[lang] + section[lang] { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); }
@media (max-width: 480px) {
  main { padding: 24px 16px 48px; }
  th, td { padding: 8px 4px; }
}
