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

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

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text-color);
    line-height: 1.85;
    background:
        radial-gradient(circle at 90% 1%, color-mix(in srgb, var(--blush-color) 72%, transparent), transparent 36rem),
        radial-gradient(circle at 4% 14%, color-mix(in srgb, var(--nude-color) 82%, transparent), transparent 32rem),
        var(--background-color);
}

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

button,
a {
    cursor: pointer;
}

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

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary-color) 45%, transparent);
    outline-offset: 3px;
    border-radius: 8px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.16;
    letter-spacing: -0.01em;
}

p {
    text-wrap: pretty;
}

.reveal {
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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