:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #22201c;
  --muted: #6b665d;
  --line: #e4e0d8;
  --link: #8a4b14;
  --surface: #f2efe8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #ece9e2;
    --muted: #a8a399;
    --line: #34312c;
    --link: #e2a868;
    --surface: #211f1c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
main { padding-top: 32px; padding-bottom: 48px; }
h1 { font-size: 1.75rem; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 1.2rem; line-height: 1.4; margin: 36px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 4px; }
p, ul, ol, table { margin: 0 0 12px; }
ul, ol { padding-left: 1.25em; }
li { margin: 2px 0; }
a { color: var(--link); }
.meta { color: var(--muted); font-size: 0.93rem; }
.note { background: var(--surface); border-radius: 8px; padding: 10px 14px; font-size: 0.95rem; }
.table-scroll { overflow-x: auto; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--surface); font-weight: 600; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; }
footer.site p { margin: 0 0 4px; }
