:root {
  --bg: #ffffff;
  --text: #1c1d24;
  --muted: #5d6070;
  --line: #e6e7ee;
  --accent: #6d4fe0;
  --accent-soft: #f3efff;
  --mark: #fff3bf;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f17;
    --text: #eceef6;
    --muted: #a3a7b8;
    --line: #262a38;
    --accent: #b39dff;
    --accent-soft: #1d1933;
    --mark: #4a3f10;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
header, main, footer { max-width: 720px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:first-child { margin-left: 0; }
nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; margin: 36px 0 6px; }
h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, li { color: var(--text); }
.lead { font-size: 19px; color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: 14px; }
a { color: var(--accent); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.summary { background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; margin: 22px 0; }
.summary ul { margin: 6px 0 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-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
mark { background: var(--mark); color: inherit; padding: 0 3px; border-radius: 3px; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; }
footer { color: var(--muted); font-size: 14px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 48px; }
@media (max-width: 520px) {
  h1 { font-size: 28px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: 0; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  td:first-child { font-weight: 600; }
}
