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

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    overflow-x: clip;
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    text-decoration: none;
}

section[id] {
    scroll-margin-top: 88px;
}

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

::selection {
    background: var(--accent-color);
    color: #1a1405;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}