:root {
    color-scheme: light dark;
    --background: #f4f8fa;
    --surface: #ffffff;
    --surface-muted: #eaf3f6;
    --text: #13212b;
    --muted: #5f6e78;
    --border: #d7e3e8;
    --accent: #0083e0;
    --accent-strong: #076b8c;
    --shadow: 0 16px 44px rgba(19, 33, 43, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f1417;
        --surface: #171d21;
        --surface-muted: #202830;
        --text: #f0f5f8;
        --muted: #a4b2ba;
        --border: #2c363c;
        --accent: #58b3ff;
        --accent-strong: #61ccd7;
        --shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--accent-strong);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.site-header,
.site-footer {
    padding: 22px max(22px, calc((100vw - 920px) / 2));
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 2;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(8, 126, 164, 0.28);
}

.brand-mark img {
    display: block;
    height: 100%;
    width: 100%;
}

.nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.nav a:hover {
    color: var(--accent-strong);
}

main {
    width: min(920px, calc(100vw - 36px));
    margin: 44px auto;
}

.hero,
.document {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero {
    padding: clamp(28px, 5vw, 52px);
}

.document {
    padding: clamp(26px, 4vw, 44px);
}

.eyebrow {
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.04;
    margin: 0 0 16px;
}

h2 {
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.16;
    margin: 34px 0 10px;
}

h3 {
    font-size: 18px;
    margin: 24px 0 8px;
}

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

li + li {
    margin-top: 8px;
}

.lead {
    color: var(--muted);
    font-size: clamp(18px, 2.2vw, 21px);
    max-width: 720px;
}

.updated {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.link-card {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    display: block;
    min-height: 132px;
    padding: 18px;
    text-decoration: none;
}

.link-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 7px;
}

.link-card span {
    color: var(--muted);
    display: block;
    font-size: 14px;
}

.note {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
    border-radius: 12px;
    margin: 24px 0;
    padding: 16px 18px;
}

.footer-text {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }

    main {
        margin: 24px auto;
        width: min(100vw - 24px, 920px);
    }

    .link-grid {
        grid-template-columns: 1fr;
    }
}
