:root {
    color-scheme: light;
    --bg: #f5f6f2;
    --surface: #ffffff;
    --ink: #111714;
    --muted: #66706a;
    --border: #d8ded5;
    --accent: #1f8a5b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

[hidden] {
    display: none !important;
}

.page {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
}

.page-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
}

.language-toggle {
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.intro h1,
.document h1 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.1;
}

.intro p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 16px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 650;
    text-decoration: none;
}

.document {
    margin-top: 28px;
}

.document h1 {
    font-size: 38px;
}

.document h2 {
    margin: 30px 0 8px;
    font-size: 22px;
}

.document p {
    margin: 10px 0;
}

.meta {
    color: var(--muted);
    font-size: 15px;
}

.site-footer {
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 640px) {
    .page {
        width: min(100% - 32px, 760px);
        padding: 32px 0;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
    }

    .intro h1,
    .document h1 {
        font-size: 34px;
    }
}
