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

* {
    margin: 0;
}

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

body {
    padding: 20px;
    line-height: 1.5;
    min-height: 100dvh;
    height: 100dvh;
    min-height: 100vh; /* Fallback */
    -webkit-font-smoothing: antialiased;
}

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

input,
button,
textarea,
select {
    font: inherit;
    font-size: 1rem;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

ul,
ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

/* respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* dark theme */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    a {
        color: cornflowerblue;
    }
}
