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

html {
    background: var(--background-color);
    font-size: 125%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image:
        radial-gradient(rgba(28, 26, 23, 0.05) 0.6px, transparent 0.6px),
        radial-gradient(rgba(185, 58, 43, 0.03) 0.6px, transparent 0.6px);
    background-size: 22px 22px, 34px 34px;
    background-position: 0 0, 9px 13px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.32;
    color: var(--primary-color);
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

dd {
    margin: 0;
}

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

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

button {
    font-family: inherit;
}

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

/* Scroll reveal — the class is added by js/app.js, so content stays visible without JS */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

    .js-reveal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}