/* 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);
}

button,
a,
summary {
    cursor: pointer;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 100;
    transform: translateY(-150%);
    border-radius: 999px;
    background: var(--sand-color);
    color: var(--navy-color);
    padding: 0.75rem 1rem;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 3px solid var(--orange-color);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--orange-color);
    outline-offset: 3px;
}

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;
    }
}
