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

* {
    margin: 0;
    padding: 0;
    font: inherit;
}

[hidden] {
    display: none !important;
}

html {
    /*color-scheme: dark light;*/
    hanging-punctuation: first last;
    interpolate-size: allow-keywords;
}

body {
    margin: 0;
    min-block-size: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

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

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    hyphens: auto;
}

p {
    max-width: 75ch;
    text-wrap: pretty;
    white-space: pre-line;
}

@media (prefers-reduced-motion: no-preference) {
    :has(:target) {
        scroll-behavior: smooth;
        scroll-padding-top: 3rem;
    }
}