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

body,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p,
li,
h1,
h2,
h3,
h4 {
  word-break: break-word;

}

html,
body {
  overflow-x: hidden;
}

/* 100dvh can resolve a fraction of a pixel taller than the window, which is enough for a second
   scrollbar to show up next to the one the pane already has, scrolling nothing. Only the shells that
   clip themselves are covered: a page that scrolls the window still scrolls. */
html:has(> body.overflow-hidden) {
  block-size: 100%;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: sans-serif;
  font-size: 100%;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

img {
  display: block;
  max-inline-size: 100%;
}

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

@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;
  }

  html {
    scroll-behavior: initial;
  }
}
