/* Explain: Base reset, typography defaults, and animation styles. */
@layer base {
    * {
        box-sizing: border-box;
    }

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

    body {
        margin: 0;
        overflow-x: hidden;
        background-color: var(--background-color);
        background-image:
            radial-gradient(circle at 12% -8%, rgba(201, 176, 135, 0.1), transparent 55%),
            radial-gradient(circle at 88% 108%, rgba(156, 64, 50, 0.08), transparent 52%);
        background-attachment: fixed;
        color: var(--text-color);
        font-family: var(--font-body);
        font-weight: 300;
        line-height: 1.65;
        -webkit-font-smoothing: antialiased;
    }

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

    p {
        margin: 0 0 1rem;
    }

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

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

    ::selection {
        background: var(--primary-color);
        color: #0a0a0b;
    }

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

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

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

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