:root {
    --navy-950: #041126;
    --navy-900: #071a36;
    --navy-800: #0b2852;
    --blue-700: #145bd7;
    --blue-600: #1b6ff1;
    --blue-500: #3289ff;
    --cyan-400: #57d7ff;
    --coral-400: #ff8b73;
    --lime-400: #b9ed78;
    --paper: #f5f7fb;
    --surface: #ffffff;
    --ink: #0b1730;
    --muted: #5f6b7d;
    --line: rgba(11, 23, 48, .13);
    --soft-blue: #e8f1ff;
    --soft-cyan: #e8faff;
    --radius-sm: .75rem;
    --radius: 1.25rem;
    --radius-lg: 2rem;
    --shadow: 0 1.5rem 4rem rgba(8, 30, 67, .12);
    --max-width: 82rem;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, "Segoe UI", Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    min-width: 20rem;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(87, 215, 255, .08), transparent 24rem),
        radial-gradient(circle at 92% 30%, rgba(27, 111, 241, .07), transparent 28rem),
        var(--paper);
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

::selection { color: #fff; background: var(--blue-700); }

:focus-visible {
    outline: .2rem solid var(--blue-600);
    outline-offset: .2rem;
}

.page-frame {
    width: min(calc(100% - 3rem), var(--max-width));
    margin-inline: auto;
}

:where(main, section, article, aside, header, footer, nav, div) { min-width: 0; }
:where(h1, h2, h3, p, a, li) { overflow-wrap: anywhere; }

.eyebrow {
    margin: 0 0 1.15rem;
    color: var(--blue-600);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-height: 3.25rem;
    padding: .8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
    transition: transform .24s var(--ease), box-shadow .24s, color .2s, background .2s, border-color .2s;
}

.button:hover { transform: translateY(-.16rem); }
.button--primary { color: #fff; background: var(--blue-600); box-shadow: 0 .7rem 1.7rem rgba(27, 111, 241, .24); }
.button--primary:hover { background: var(--blue-700); box-shadow: 0 1rem 2rem rgba(27, 111, 241, .3); }
.button--secondary { border-color: var(--line); background: rgba(255, 255, 255, .72); }
.button--secondary:hover { border-color: rgba(11, 23, 48, .3); background: #fff; }
.button--light { color: var(--navy-950); background: #fff; }
.button--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.button--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.button--disabled { cursor: not-allowed; color: var(--muted); border-color: var(--line); background: color-mix(in srgb, var(--surface) 58%, transparent); box-shadow: none; }
.button--disabled:hover { transform: none; }

.skip-link {
    position: fixed;
    z-index: 200;
    top: .75rem;
    left: .75rem;
    padding: .8rem 1rem;
    transform: translateY(-150%);
    border-radius: .6rem;
    color: #fff;
    background: var(--navy-950);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.route-progress {
    position: fixed;
    z-index: 180;
    inset: 0 auto auto 0;
    width: 100%;
    height: .2rem;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--cyan-400), var(--blue-500), var(--coral-400));
    opacity: 0;
    transition: transform .55s var(--ease), opacity .2s;
}

html[data-navigating] .route-progress { transform: scaleX(.78); opacity: 1; }
html[data-navigating="done"] .route-progress { transform: scaleX(1); opacity: 0; }

.noscript-note {
    position: fixed;
    z-index: 160;
    right: 1rem;
    bottom: 1rem;
    max-width: 30rem;
    margin: 0;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-sm);
    color: #fff;
    background: var(--navy-900);
    box-shadow: var(--shadow);
    font-size: .85rem;
}

.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem;
}

.error-page main { max-width: 46rem; }
.error-page h1 { margin: 0; font-size: clamp(3rem, 9vw, 6.5rem); line-height: .92; letter-spacing: -.065em; }
.error-page p { font-size: 1.1rem; line-height: 1.65; }

@media (max-width: 48rem) {
    .page-frame { width: min(calc(100% - 1.5rem), var(--max-width)); }
    .button { min-height: 3rem; }
}

@media (max-width: 24rem) {
    .page-frame { width: min(calc(100% - 1rem), var(--max-width)); }
}

@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;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #071225;
        --surface: #0c1b33;
        --ink: #eef5ff;
        --muted: #a5b1c3;
        --line: rgba(228, 239, 255, .14);
        --soft-blue: #102b52;
        --soft-cyan: #0d3344;
        --shadow: 0 1.5rem 4rem rgba(0, 0, 0, .28);
    }
    body { background: radial-gradient(circle at 8% 12%, rgba(87, 215, 255, .06), transparent 24rem), var(--paper); }
    .button--secondary { background: rgba(255, 255, 255, .04); }
    .button--secondary:hover { background: rgba(255, 255, 255, .09); }
}
