:root {
  --bg: #ffffff;
  --text: #111111;
  --text-secondary: #6b6b70;
  --line: #e4e4e8;
  --accent: #4329e5;
  --surface: #f4f4f6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f2f2f2;
    --text-secondary: #a0a0a6;
    --line: #2c2c2e;
    --accent: #9a8cff;
    --surface: #1c1c1e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header { margin-bottom: 32px; }

.brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 8px 0 8px;
}

.meta { color: var(--text-secondary); font-size: 14px; margin: 0; }

h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

h3 { font-size: 16px; margin: 20px 0 8px; }

p, li { margin: 0 0 8px; }
ul, ol { padding-left: 20px; margin: 0 0 12px; }

a { color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--line);
}

th { background: var(--surface); font-weight: 600; white-space: nowrap; }

.note {
  background: var(--surface);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 0 0 16px;
}

.toc { font-size: 15px; }
.toc li { margin-bottom: 4px; }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-secondary);
}
