﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    scroll-behavior: smooth;
}

body {
    min-width: 20rem;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: var(--color-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--color-text);
    line-height: 1.15;
}

a {
    color: var(--color-accent);
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

h1[tabindex="-1"]:focus {
    outline: none;
}

h1[tabindex="-1"],
#main-content {
    scroll-margin-top: 6rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 23rem) {
    h1[tabindex="-1"],
    #main-content {
        scroll-margin-top: 8.5rem;
    }
}

@media (forced-colors: active) {
    :focus-visible {
        outline-color: Highlight;
    }
}
