:root {
    --bg: #FBF3E2;
    --surface: #FFFEF9;
    --text: #2B2520;
    --muted: #8B7D6B;
    --accent: #B88E5B;
    --divider: #E8D2B0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0F0D0A;
        --surface: #1A1814;
        --text: #F5F0E8;
        --muted: #A89D8F;
        --accent: #D4A574;
        --divider: #2A2520;
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "New York", "Iowan Old Style", "Apple Garamond", Georgia, serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

header h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

.tagline {
    color: var(--muted);
    font-style: italic;
    margin: 0 0 32px;
}

section + section,
section + .links {
    margin-top: 32px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 12px;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 8px;
    color: var(--accent);
}

p, ul {
    margin: 0 0 16px;
}

ul {
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
}

.links {
    margin: 48px 0 0;
    padding: 16px 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 15px;
}

.links a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 8px;
}

.links a:hover {
    text-decoration: underline;
}

.locale-switch {
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.locale-switch a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 8px;
}

footer {
    margin-top: 48px;
    color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 13px;
    text-align: center;
}

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

.section-zh {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px dashed var(--divider);
}
