/* Global primitives. Keep this intentionally small; component geometry belongs in app.css. */
@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body,
    #app {
        min-height: 100%;
        max-width: 100%;
        background: var(--paper);
    }

    html,
    body {
        overflow-x: hidden;
    }

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

    body {
        margin: 0;
        color: var(--ink);
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    img,
    svg,
    canvas,
    video {
        max-width: 100%;
    }

    button,
    input,
    select,
    textarea {
        max-width: 100%;
    }
}

@layer foundations {
    :where(button, a, input, select, textarea):disabled,
    :where(button, a)[aria-disabled="true"] {
        cursor: not-allowed;
    }

    :where(button, a, input, select, textarea):focus-visible {
        outline: 0;
        box-shadow: var(--ui-focus-ring);
    }
}

@media (prefers-reduced-motion: reduce) {
    @layer foundations {
        *,
        *::before,
        *::after {
            scroll-behavior: auto;
        }
    }
}
