*, *::before, *::after { box-sizing: border-box; }
html {
    accent-color: var(--brand);
    background: var(--page);
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    min-height: 100dvh;
    color: var(--ink);
    background:
        radial-gradient(62rem 30rem at 85% -12%, rgba(168, 85, 247, 0.1), transparent 60%),
        radial-gradient(56rem 28rem at 15% -10%, rgba(56, 189, 248, 0.1), transparent 58%),
        var(--page);
    font: 0.95rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    overflow-x: clip;
}
h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.2;
    text-wrap: balance;
    color: var(--ink);
}
h1 {
    font-size: clamp(1.65rem, 2.8vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 0.5rem;
}
h2 {
    font-size: 1.08rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    margin-bottom: 0.85rem;
}
h3 {
    font-size: 0.96rem;
    font-weight: 650;
}
p { margin: 0 0 0.75rem; }
p:last-child { margin-bottom: 0; }
a, summary {
    color: var(--brand);
    text-underline-offset: 0.24em;
    transition: color 140ms var(--ease-out);
}
a:hover { color: #bae6fd; }
:focus-visible {
    outline: 2.5px solid var(--focus);
    outline-offset: 2px;
}
input, select, button { font: inherit; }
button, summary { cursor: pointer; }
pre, code {
    font-family: var(--mono);
    font-size: 0.84rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
dt, small, .note { color: var(--muted); }
.note { font-size: 0.86rem; }
.skip {
    position: fixed;
    top: -5rem;
    left: 0.75rem;
    background: var(--surface-elevated);
    color: var(--ink);
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.9rem;
    z-index: 100;
    text-decoration: none;
    font-weight: 600;
}
.skip:focus { top: 0.75rem; }
::selection { background: var(--brand); color: var(--page); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
