:root {
  --bg: #fbf8f4; --surface: #ffffff; --surface-2: #f3eee7; --text: #2a2622; --muted: #6d655d;
  --line: #e6dfd5; --accent: #c4572f; --note: #fff4e5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1a18; --surface: #262320; --surface-2: #2f2b27; --text: #f1ece6; --muted: #b3aaa0;
    --line: #3b3631; --accent: #e8794f; --note: #3d321a;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1a18; --surface: #262320; --surface-2: #2f2b27; --text: #f1ece6; --muted: #b3aaa0;
  --line: #3b3631; --accent: #e8794f; --note: #3d321a;
}
* { 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;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.langs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.langs a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--surface); color: var(--text); }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 24px 0 4px; }
h2 { font-size: 20px; margin: 28px 0 8px; }
.meta { color: var(--muted); margin-top: 0; }
a { color: var(--accent); }
ul { padding-left: 20px; }
li { margin: 6px 0; }
.note { background: var(--note); border-radius: 12px; padding: 12px 16px; }
article { padding-bottom: 24px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.other { padding: 16px 0 48px; font-size: 14px; }
html.js article[data-lang] { display: none; border-bottom: 0; }
html.js article[data-lang].on { display: block; }
