/* Explain: Base styles, 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);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
a,
select,
input,
textarea {
    font: inherit;
}

a {
    text-decoration: none;
}

::selection {
    background: rgba(12, 111, 181, 0.2);
    color: var(--primary-deep);
}

:focus-visible {
    outline: 3px solid rgba(12, 111, 181, 0.45);
    outline-offset: 3px;
    border-radius: 8px;
}

section[id] {
    scroll-margin-top: 6rem;
}

.font-heading {
    font-family: var(--font-heading);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 700ms ease, transform 700ms ease;
}

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

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

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