:root {
  --bg: #fbfbfa;
  --text: #1f2328;
  --muted: #646a73;
  --line: #e3e4e6;
  --accent: #2554c7;
  --panel: #f3f4f5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --text: #e6e7e9;
    --muted: #9ba1a9;
    --line: #2c3036;
    --accent: #8fb0ff;
    --panel: #1d2024;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
        "Noto Sans KR", "Segoe UI", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; height: 56px; }
.brand { color: var(--text); font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }

main { flex: 1; }

.home { display: flex; flex-direction: column; justify-content: center; min-height: 60vh; }
.home h1 { margin: 0 0 8px; font-size: clamp(40px, 9vw, 64px); letter-spacing: -0.03em; line-height: 1.1; }
.home .lead { margin: 0 0 32px; color: var(--muted); font-size: 18px; }
.home dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.home dt { color: var(--muted); }
.home dd { margin: 0; }

.doc { padding: 40px 0 64px; }
.doc h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -0.02em; }
.doc .meta { margin: 0 0 32px; color: var(--muted); }
.doc h2 { margin: 40px 0 8px; font-size: 19px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 4px; }
.doc .en { margin-top: 16px; padding: 16px; background: var(--panel); border-radius: 8px; }
.doc .en p { margin: 0 0 8px; }
.doc .en p:last-child { margin: 0; }

.table { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--panel); font-weight: 600; white-space: nowrap; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 20px; padding-bottom: 28px; }
footer a { color: var(--muted); }
