:root {
    --hero-end: #141a4a;
    --hero-start: #2b2f8f;
    --on-dark-bad: #ff9d96;
    --on-dark-good: #7fe3ab;
    --on-hero: #eef0ff;
    --on-hero-accent: #aab0ff;
    --on-hero-muted: #c3c8f2;
    --white: #fff;
    --accent: #3a3dcb;
    --accent-ink: #2b2ea8;
    --accent-soft: #e9eafb;
    --accent-strong: #2b2ea8;
    --bad: #b3261e;
    --bad-soft: #fce9e7;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --font-display: 'Iowan Old Style', 'Palatino Linotype', palatino, 'Book Antiqua', georgia, serif;
    --font-ui: system-ui, -apple-system, 'Segoe UI', roboto, 'Helvetica Neue', sans-serif;
    --header-h: 76px;
    --hover: #f1f2f7;
    --ink: #12162b;
    --ink-2: #454c66;
    --ink-3: #5b627b;
    --line: #e7e9f0;
    --line-strong: #d3d7e2;
    --neutral-soft: #eceef3;
    --night: #0d1130;
    --ok: #11693f;
    --ok-soft: #e3f4ea;
    --on-accent: #fff;
    --panel: #fff;
    --radius-card: 16px;
    --radius-control: 10px;
    --radius-panel: 20px;
    --shadow-card: 0 1px 2px rgb(18 22 43 / 6%), 0 8px 24px -12px rgb(18 22 43 / 14%);
    --shadow-panel: 0 1px 2px rgb(18 22 43 / 5%), 0 24px 48px -24px rgb(18 22 43 / 18%);
    --shadow-pop: 0 4px 12px rgb(18 22 43 / 10%), 0 24px 56px -12px rgb(18 22 43 / 28%);
    --shell: #eef0f5;
    --sidebar-w: 264px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --sunken: #f6f7fa;
    --toast-bg: #12162b;
    --toast-ink: #fff;
    --warn: #8a5300;
    --warn-soft: #fdf1d9;

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #a0a5ff;
        --accent-ink: #c7caff;
        --accent-soft: #1f2552;
        --accent-strong: #bfc2ff;
        --bad: #ff8c84;
        --bad-soft: #3a1715;
        --hover: #1b2140;
        --ink: #edeffa;
        --ink-2: #b7bdd6;
        --ink-3: #9199b5;
        --line: #232a4a;
        --line-strong: #343c63;
        --neutral-soft: #20264a;
        --ok: #5bd494;
        --ok-soft: #12301f;
        --on-accent: #0a0d24;
        --panel: #11152a;
        --shadow-card: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 50%);
        --shadow-panel: 0 1px 2px rgb(0 0 0 / 30%), 0 24px 48px -24px rgb(0 0 0 / 60%);
        --shadow-pop: 0 4px 12px rgb(0 0 0 / 40%), 0 24px 56px -12px rgb(0 0 0 / 70%);
        --shell: #090c18;
        --sunken: #171c36;
        --toast-bg: #2a3260;
        --warn: #f2b84b;
        --warn-soft: #33270e;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scrollbar-color: var(--line-strong) transparent;
    text-size-adjust: 100%;
}

body {
    background: var(--shell);
    color: var(--ink);
    font: 400 0.9375rem/1.55 var(--font-ui);
    margin: 0;
}

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

h1,
h2,
h3 {
    text-wrap: balance;
}

h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h2 {
    font-size: 1.0625rem;
    font-weight: 650;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

h3 {
    font-size: 0.9375rem;
    font-weight: 650;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

svg {
    flex: none;
}

::selection {
    background: var(--accent);
    color: var(--on-accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.icon {
    fill: none;
    height: 20px;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    width: 20px;
}

.icon--sm {
    height: 16px;
    width: 16px;
}

.icon--lg {
    height: 28px;
    width: 28px;
}

.sr-only {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.muted {
    color: var(--ink-3);
}

.num {
    font-variant-numeric: tabular-nums;
}

.pos {
    color: var(--ok);
}

.neg {
    color: var(--bad);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
