:root {
    color-scheme: light dark;
    --background: #f5f2ea;
    --surface: #fffdf8;
    --text: #25231f;
    --muted: #6b675f;
    --accent: #765827;
    --border: #ded8cc;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #191815;
        --surface: #23211d;
        --text: #f5f1e8;
        --muted: #bbb4a7;
        --accent: #d6b477;
        --border: #454139;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

main {
    width: min(760px, calc(100% - 32px));
    margin: 48px auto;
    padding: clamp(24px, 5vw, 56px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

h1,
h2 {
    line-height: 1.2;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 7vw, 3rem);
    letter-spacing: -0.035em;
}

h2 {
    margin: 36px 0 8px;
    font-size: 1.25rem;
}

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

.eyebrow,
.updated,
.note {
    color: var(--muted);
}

.eyebrow {
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.updated {
    margin-bottom: 32px;
}

a {
    color: var(--accent);
    font-weight: 600;
    text-underline-offset: 3px;
}

.contact {
    margin-top: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

footer {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 520px) {
    main {
        width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        min-height: 100vh;
    }
}
