:root {
    --paper: #f2f1ea;
    --paper-raised: #fbfbf7;
    --ink: #17211d;
    --text-muted: #59655f;
    --text-faint: #7f8984;
    --line: #d7d9d1;
    --line-strong: #b8bdb6;
    --accent: #33b8ae;
    --accent-strong: #087f79;
    --lime: #c9ff72;
    --header-height: 4.6rem;
    --site-width: 1180px;
    --font-display: "Segoe UI Variable Display", "Aptos Display", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Segoe UI Variable Text", "Aptos", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    color-scheme: light;
    font-family: var(--font-body);
    font-synthesis: none;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    background: var(--paper);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select { font: inherit; }

img,
svg { max-width: 100%; }
a { color: inherit; }

::selection {
    color: var(--ink);
    background: var(--lime);
}

:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 4px;
}

h1:focus { outline: none; }

.page-shell {
    width: min(calc(100% - 2.5rem), var(--site-width));
    margin: 0 auto;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 0 0 1.5rem;
    color: var(--accent-strong);
    font-family: var(--font-mono);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 1.9rem;
    border-top: 1px solid currentColor;
}

.section-heading {
    max-width: 15ch;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5.3rem);
    font-weight: 620;
    line-height: .97;
    letter-spacing: -.055em;
}

.section-intro {
    max-width: 44rem;
    margin: 1.5rem 0 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary {
    padding: 1rem;
    color: white;
    background: #b32121;
}

@media (max-width: 680px) {
    :root { --header-height: 4.1rem; }
    .page-shell { width: min(calc(100% - 1.5rem), var(--site-width)); }
    .section-heading { font-size: clamp(2.5rem, 13vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
