*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-padding-top: calc(var(--nav-height) + 32px);
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button {
    border: 0;
}

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

h1,
h2,
h3,
h4,
p,
blockquote,
figure,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding-left: 1.25rem;
}

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

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px var(--color-focus-shadow);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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