@layer base {
    html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
    body {
        min-height: 100vh;
        background: var(--bg);
        color: var(--text);
        font-family: var(--font-sans);
        font-size: 16px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: clip;
    }
    ::selection { background: var(--cyan-400); color: var(--cyan-ink); }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
    :is(h1, h2, h3) { text-wrap: balance; }
    :is(p, li, dd, summary) { text-wrap: pretty; }
    a:not([class]):not(nav a) { color: var(--cyan-300); text-decoration: underline; text-decoration-color: var(--cyan-a30); text-underline-offset: 3px; }
    a:not([class]):not(nav a):hover { text-decoration-color: currentColor; }
    code { font-family: var(--font-mono); font-size: .92em; }
    html.is-nav-open { overflow: hidden; }
}
