/*
 * Modern reset + base element defaults.
 * Conservative: paired with the legacy styles.css during the refresh, so it
 * adds box-sizing and a few sensible defaults without overriding existing
 * component styles.
 */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    max-width: 100%;
}

img, picture, svg {
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}

:focus-visible {
    outline: 2px solid var(--basic-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--basic-color);
    color: #fff;
}

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