/* Opt-in page base: applies only inside <div class="vb-page">, so pages not yet migrated are untouched */
@layer vb.base {
    .vb-page {
        font-family: var(--vb-font-sans);
        font-size: var(--vb-text-base);
        line-height: var(--vb-leading-body);
        color: var(--vb-text);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .vb-page :where(*, *::before, *::after) {
        box-sizing: border-box;
    }

    .vb-page :where(h1, h2, h3, h4) {
        margin: 0;
        font-weight: var(--vb-weight-semibold);
        line-height: var(--vb-leading-tight);
        color: var(--vb-text);
    }

    .vb-page :where(p, ul, ol, dl, figure) {
        margin: 0;
    }

    .vb-page :where(a:not([class])) {
        color: var(--vb-link);
        text-underline-offset: 2px;
    }

    .vb-page :where(a:not([class]):hover) {
        color: var(--vb-action-hover);
    }

    .vb-page :where(code, kbd) {
        font-family: var(--vb-font-mono);
        font-size: 0.92em;
    }

    /* keyboard focus is always visible; a mouse click leaves no ring */
    .vb-page :focus-visible {
        outline: 2px solid var(--vb-focus);
        outline-offset: 2px;
    }

    .vb-page :focus:not(:focus-visible) {
        outline: none;
    }

    @media (prefers-reduced-motion: reduce) {
        .vb-page *,
        .vb-page *::before,
        .vb-page *::after {
            transition-duration: 0.01ms !important;
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
        }
    }
}
