/* Explain: Base reset, typography, and entrance animation defaults */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

@media (prefers-reduced-motion: no-preference) {
    .fade-rise {
        animation: fadeRise 900ms ease both;
    }

    .fade-soft {
        animation: fadeSoft 1100ms ease both;
    }

    .float-bloom {
        animation: floatBloom 8s ease-in-out infinite;
    }
}

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeSoft {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes floatBloom {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -12px, 0) rotate(2deg);
    }
}
