/* Explain: Global reset, typography, and animated floating fixed background layer. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: -1;
    background-color: var(--background-color);
    background-image: url('https://files.cdn-files-a.com/uploads/12521889/normal_6aea5945538ee.jpg?format=avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: pop-bg-float 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes pop-bg-float {
    0% {
        transform: translate3d(0, 0, 0) scale(1.03);
    }
    50% {
        transform: translate3d(-2%, -1.5%, 0) scale(1.07);
    }
    100% {
        transform: translate3d(2%, 1.5%, 0) scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.25;
    margin: 0;
}

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

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

button {
    font-family: inherit;
}

[hidden] {
    display: none !important;
}

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