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

html {
    background: var(--background-color);
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

p {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

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

button {
    font-family: inherit;
}

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

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

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}