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

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

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text-color);
    background: var(--background-color);
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
}

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

:focus-visible {
    outline: 3px solid rgba(251, 191, 36, 0.45);
    outline-offset: 2px;
}

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