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

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.12;
    letter-spacing: -0.01em;
    font-weight: 600;
}

p {
    margin: 0;
}

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

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

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

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

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

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}