:root {
  --bg: #fffaf5; --surface: #ffffff; --text: #2b2420; --muted: #75685f;
  --line: #efe4da; --accent: #e8875b; --accent-soft: #fde9dc; --warn: #c2410c;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1c1714; --surface: #26201c; --text: #f3ebe4; --muted: #b3a69c;
          --line: #3a312b; --accent: #f2a07a; --accent-soft: #3b2a21; --warn: #fb923c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans JP", sans-serif;
  font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); }
header { max-width: 760px; margin: 0 auto; padding: 20px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 20px; }
.langs { display: flex; gap: 4px; font-size: 14px; }
.langs a { text-decoration: none; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.langs a[aria-current="true"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }
h1 { font-size: 28px; line-height: 1.3; margin: 28px 0 4px; }
.sub { color: var(--muted); margin: 0 0 24px; }
h2 { font-size: 19px; margin: 36px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, li { margin: 6px 0; }
ul, ol { padding-left: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.toc ol { margin: 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; width: 34%; }
.table-wrap { overflow-x: auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 6px; }
.missing { color: var(--warn); font-weight: 600; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.links a.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
footer { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
