/* Explain: Base page behavior, typography, and accessibility defaults. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    scroll-padding-top: 8.5rem;
}

body {
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4,
p,
li,
a,
span,
label {
    overflow-wrap: break-word;
}

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

button,
summary {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

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

.btn {
    height: auto;
    min-height: 2.75rem;
    white-space: normal;
    line-height: 1.25;
}

[hidden],
.hidden[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent-color) 78%, white);
    outline-offset: 3px;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}