/* A modern minimal reset. */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }

  /* Dialogs and popovers keep the browser's margin: auto, which centers
     them on screen. */
  :where(*:not(dialog, [popover])) { margin: 0; }

  /* hidden always hides, even on an element whose component sets display,
     like a .btn that stays hidden until JavaScript offers it. */
  [hidden]:not([hidden="until-found"]) { display: none !important; }

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

  body { min-block-size: 100vh; 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; }

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

  h1, h2, h3, h4, h5, h6 { line-height: 1.2; text-wrap: balance; }

  p { text-wrap: pretty; }

  /* Lists used for layout opt out of bullets with role="list", which also
     keeps them announced as lists in Safari. */
  :is(ul, ol)[role="list"] { list-style: none; padding: 0; }
}
