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

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

body {
    overflow-x: hidden;
    margin: 0;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0;
}

p {
    margin: 0;
}

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

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

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

button {
    font-family: inherit;
}

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

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

[id] {
    scroll-margin-top: 6rem;
}