:root {
  --bg: #ffffff;
  --text: #1d1b19;
  --muted: #6b655f;
  --line: #e7e2dc;
  --accent: #8a5a2b;
  --table-head: #f6f2ed;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --text: #ece7e1;
    --muted: #a39b92;
    --line: #34302b;
    --accent: #d8a26b;
    --table-head: #211e1b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.brand { font-weight: 600; color: var(--muted); font-size: 14px; }
.langs { display: flex; gap: 4px; }
.langs button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--text); border-color: var(--text); }
h1 { font-size: 28px; line-height: 1.3; margin: 16px 0 4px; }
.date { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
h2 { font-size: 19px; margin: 36px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, li { margin: 6px 0; }
ul, ol { padding-left: 22px; }
a { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--table-head); font-weight: 600; }
.note { color: var(--muted); font-size: 14px; }
footer { margin-top: 48px; color: var(--muted); font-size: 13px; }
section[lang]:not(.active) { display: none; }
