/* P26M — modern CSS reset.
 * Adapted from Andy Bell / Josh Comeau, slimmed for our needs.
 */

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

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    line-height: 1.5;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height, 72px) + 16px);
}

body {
    min-height: 100vh;
    min-height: 100svh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

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

img, picture { height: auto; }

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

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

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; text-wrap: balance; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

#root, #__next { isolation: isolate; }

:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background-color: rgba(115, 196, 75, 0.35);
    color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
