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

html {
    background: var(--background-color);
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.85;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.35;
}

p,
figure,
blockquote {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
}

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

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

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}