/* Explain: Base styles for layout, typography, and accessibility defaults. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.55;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

h1, h2 {
    text-shadow: none;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-muted);
}

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

a,
button,
select,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    cursor: pointer;
}

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

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

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