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

html {
    background: var(--background-color);
    scroll-padding-top: 140px;
}

body {
    overflow-x: hidden;
    color: var(--text-color);
    text-rendering: optimizeLegibility;
}

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

::selection {
    background: var(--sand-color);
    color: var(--navy-color);
}

[x-cloak] {
    display: none !important;
}

button,
a,
summary {
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: rgba(73, 98, 116, 0.62);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
