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

  * { margin: 0; }

  /* The hidden attribute always hides, even on a component that sets display (.flash is flex).
     !important in this first layer outranks every later layer. */
  [hidden] { display: none !important; }

  html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  body {
    min-block-size: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

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

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

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