/* Explain: Base reset and typography defaults for the storefront. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    text-rendering: geometricPrecision;
}

img {
    max-width: 100%;
}

::selection {
    background: var(--primary-color);
    color: var(--onyx-color);
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}