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

html {
    scroll-behavior: smooth;
    background: var(--background-color);
    color-scheme: dark;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text-color);
    background: var(--background-color);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

p {
    color: var(--text-muted);
    line-height: 1.75;
}

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

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

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

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

.fx-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 720ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fx-reveal.fx-in {
    opacity: 1;
    transform: none;
}

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

    .fx-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .animate-floaty,
    .art-drift,
    .art-flow {
        animation: none !important;
    }
}