:root {
  --bg: #f7f5f1; --surface: #ffffff; --text: #1d1c1a; --muted: #6b6760;
  --line: #e4e0d8; --accent: #b3261e; --accent-soft: #fbe9e7;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161514; --surface: #1f1e1c; --text: #eceae6; --muted: #a29d94;
    --line: #34322e; --accent: #ff8a80; --accent-soft: #3a2220;
  }
}
:root[data-theme="dark"] {
  --bg: #161514; --surface: #1f1e1c; --text: #eceae6; --muted: #a29d94;
  --line: #34322e; --accent: #ff8a80; --accent-soft: #3a2220;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo",
        "PingFang SC", "Noto Sans", sans-serif;
}
.top, main, footer { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 16px; }
.pages { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pages a { color: var(--muted); text-decoration: none; }
.pages a[aria-current="page"] { color: var(--text); font-weight: 600; }
main { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding-top: 8px; padding-bottom: 28px; }
@media (min-width: 600px) { main { padding: 12px 36px 36px; } }
h1 { font-size: 28px; line-height: 1.25; margin: 24px 0 8px; }
h2 { font-size: 20px; margin: 32px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, li { overflow-wrap: anywhere; }
.lead { font-size: 18px; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
a { color: var(--accent); }
ul { padding-left: 1.3em; }
.points { list-style: none; padding: 0; }
.points li { padding: 10px 14px; margin: 8px 0; background: var(--accent-soft); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 2px; }
footer { color: var(--muted); font-size: 14px; padding-top: 20px; padding-bottom: 40px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.langs a { color: var(--muted); }
.langs a[aria-current="true"] { color: var(--text); font-weight: 600; text-decoration: none; }
