:root {
    --color-ink: #122033;
    --color-muted: #546477;
    --color-line: #d7e0ea;
    --color-surface: #ffffff;
    --color-surface-alt: #f3f7fb;
    --color-surface-raised: #fbfdff;
    --color-brand: #1f5f93;
    --color-brand-dark: #123b5d;
    --color-accent: #287d74;
    --color-accent-dark: #1e605a;
    --color-info: #dceeff;
    --color-info-border: #aacce9;
    --color-success: #176b4d;
    --color-success-bg: #e6f5ef;
    --color-warning: #765100;
    --color-warning-bg: #fff5d9;
    --color-focus: #f2b84b;
    --shadow-sm: 0 1px 2px rgba(18, 32, 51, .07);
    --shadow-md: 0 14px 34px rgba(18, 32, 51, .11);
    --shadow-lg: 0 22px 54px rgba(18, 32, 51, .16);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(180deg, rgba(31, 95, 147, .05), rgba(31, 95, 147, 0) 300px),
        var(--color-surface-alt);
    margin: 0;
    min-width: 320px;
}

a {
    color: var(--color-brand);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover,
a:focus {
    color: var(--color-brand-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.15rem, 4vw, 3.8rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.03;
    margin-bottom: var(--space-4);
}

h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.18;
    margin-bottom: var(--space-3);
}

h3 {
    font-size: 1.08rem;
    font-weight: 740;
    letter-spacing: 0;
    line-height: 1.25;
    margin-bottom: var(--space-2);
}

p {
    color: var(--color-muted);
    margin-bottom: var(--space-4);
}

ul {
    margin: 0;
    padding-left: 1.25rem;
}

li + li {
    margin-top: var(--space-2);
}

small,
.small,
.meta {
    color: var(--color-muted);
    font-size: .88rem;
    line-height: 1.45;
}
