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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

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

body {
    min-height: 100vh;
    min-height: 100svh;
}

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

img,
picture,
video,
canvas {
    height: auto;
}

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

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    appearance: button;
}

button,
a,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}

textarea:not([rows]) {
    min-height: 10em;
}

table {
    border-collapse: collapse;
    border-color: currentColor;
}

:target,
section[id],
main[id] {
    scroll-margin-block-start: calc(var(--space-20) + var(--space-4) + env(safe-area-inset-top));
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Author display rules must not override the native hidden state. */
[hidden] { display: none !important; }
