/*
  reset.css
  Modern CSS reset (Andy Bell-style), low-specificity via :where().
  Applies across all four directions; per-direction tokens layer on top of base.css + components.css.
*/

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

:where(html) {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
  margin: 0;
}

:where(h1, h2, h3, h4, h5, h6) {
  text-wrap: balance;
}

:where(p) {
  text-wrap: pretty;
}

:where(ul[role="list"], ol[role="list"]) {
  list-style: none;
  padding: 0;
  margin: 0;
}

:where(html:focus-within) {
  scroll-behavior: smooth;
}

:where(body) {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

:where(a:not([class])) {
  text-decoration-skip-ink: auto;
}

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

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

:where(button) {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:where(textarea:not([rows])) {
  min-height: 10em;
}

:where(:target) {
  scroll-margin-block: 5ex;
}

:where(table) {
  border-collapse: collapse;
  width: 100%;
}

:where(hr) {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.2;
}

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