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

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

::selection {
    background: var(--accent-color);
    color: var(--dark-color);
}

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

input,
select,
textarea,
button {
    font-family: inherit;
}

img {
    max-width: 100%;
}

.ev-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ev-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
