/* Explain: Base styles, resets, and global typography. */
* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
    word-break: keep-all;
    background:
        radial-gradient(circle at 10% 3%, color-mix(in srgb, var(--secondary-color) 42%, transparent), transparent 24rem),
        radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--primary-color) 20%, transparent), transparent 26rem),
        linear-gradient(180deg, color-mix(in srgb, var(--secondary-color) 12%, var(--cream-color)) 0%, var(--cream-color) 44rem);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

p {
    margin: 0;
}

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

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

button, a {
    cursor: pointer;
}

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

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent-color) 72%, transparent);
    outline-offset: 3px;
}

img, svg {
    max-width: 100%;
}

img {
    height: auto;
}

.js-ready .reveal {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

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