/* reset.css — modern reset (based on Andy Bell's modern-css-reset, trimmed). */

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

* {
  margin: 0;
  padding: 0;
}

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

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100svh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--lh-base);
  overflow-x: hidden;          /* belt-and-braces against an off-grid element forcing horizontal scroll */
}

html, body { overflow-x: clip; }

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

p, li, figcaption {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

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

img, picture {
  font-style: italic;       /* makes broken-image alt text obvious in dev */
  background-repeat: no-repeat;
  background-size: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}
