/* Explain: Base CSS reset, typography, and general page styling. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 6rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-family: var(--font-heading);
    color: inherit;
}

p {
    margin: 0;
}

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

button:not(:disabled),
a,
select,
input[type="submit"] {
    cursor: pointer;
}

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

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

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

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

:focus-visible {
    outline: 3px solid rgba(20, 41, 67, 0.35);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.is-hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}