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

html {
    background: var(--color-background);
    color-scheme: dark;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 20rem;
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
}

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

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

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 600;
}

h1 {
    font-size: clamp(2.25rem, 8vw, 4rem);
    line-height: 1.08;
}

h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.15;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

:focus-visible {
    outline: 0.1875rem solid white;
    outline-offset: 0.1875rem;
}

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

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