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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

::selection {
    background: var(--accent-color);
    color: #241a00;
}

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

input::placeholder,
textarea::placeholder {
    color: #93a09a;
}

/* Utility used by JS to hide/show elements (project layer wins over Tailwind) */
.is-hidden {
    display: none !important;
}

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