:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #5c5c5c;
  --faint: #8e8e8e;
  --line: #e6e6e6;
  --surface: #f4f4f4;
  --mark: #fff1a8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f5;
    --muted: #a8a8a8;
    --faint: #6e6e6e;
    --line: #262626;
    --surface: #141414;
    --mark: #5a4b00;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 3px; }
.bar, .docs, main, footer { max-width: 720px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { font-weight: 600; letter-spacing: 0.18em; text-decoration: none; font-size: 15px; }
.lang { font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); }
.docs { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.docs a { flex: none; font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.docs a[aria-current="page"] { color: var(--bg); background: var(--text); border-color: var(--text); }
main { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 12px; }
h3 { font-size: 16px; font-weight: 500; margin: 24px 0 8px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }
li::marker { color: var(--faint); }
.updated { font-size: 13px; color: var(--faint); margin-bottom: 24px; }
.intro { color: var(--muted); }
.toc { margin: 24px 0 8px; padding: 12px 16px; border-radius: 14px; background: var(--surface); }
.toc summary { cursor: pointer; font-weight: 500; }
.toc ol { margin: 12px 0 4px; padding-left: 20px; font-size: 14px; }
.toc a { text-decoration: none; }
section { scroll-margin-top: 16px; }
footer { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 40px; font-size: 13px; color: var(--faint); }
.home { padding-top: 64px; }
.wordmark { font-size: 22px; letter-spacing: 0.2em; margin-bottom: 32px; }
.home section { padding: 20px 0; border-top: 1px solid var(--line); }
.home h2 { margin-top: 0; }
.home p { color: var(--muted); }
.links { list-style: none; padding: 0; }
.links a { display: block; padding: 10px 0; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) {
  h1 { font-size: 38px; }
  .home { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .home .wordmark { grid-column: 1 / -1; }
}
