:root {
    --bg: #fafaf7;
    --surface: #ffffff;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --border: #e5e5e0;
    --accent: #ff6a3d;
    --accent-soft: rgba(255, 106, 61, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f0f;
        --surface: #1a1a1a;
        --text: #f0f0ec;
        --muted: #999999;
        --border: #2a2a2a;
        --accent: #ff8a5f;
        --accent-soft: rgba(255, 138, 95, 0.12);
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard",
        "Apple SD Gothic Neo", "Noto Sans KR", Roboto, sans-serif;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

.lang-switch {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 24px;
    font-size: 14px;
}

.lang-switch a {
    color: var(--muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    transition: background 0.15s;
}

.lang-switch a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.lang-switch a.active {
    background: var(--accent);
    color: #fff;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.meta strong {
    color: var(--text);
    font-weight: 500;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 12px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 28px 0 8px;
}

p, li {
    color: var(--text);
}

ul, ol {
    padding-left: 24px;
}

li {
    margin-bottom: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

th, td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
}

td:first-child {
    font-weight: 500;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

code {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

footer a {
    color: var(--muted);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 8px;
}

.brand-emoji {
    font-size: 22px;
}
