/* ===========================================================================
   reset.css — minimal, opinionated baseline
   =========================================================================== */

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

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
  padding: 0;
}

ol[class], ul[class] { list-style: none; }

body {
  min-height: 100svh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;      /* belt-and-braces against sub-pixel overflow */
}

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

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

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

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

dialog {
  border: 0;
  padding: 0;
  max-width: 100%;
  max-height: 100%;
  color: inherit;
  background: transparent;
}
dialog::backdrop { background: rgb(6 6 7 / 0.86); }

:where(h1, h2, h3, h4) { font-weight: 400; }

/* An author-level `display` beats the user-agent's [hidden] rule, so any
   class that sets display would otherwise keep a hidden element on screen. */
[hidden] { display: none !important; }

/* Visually hidden but available to assistive tech */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--terra, #c84f1a);
  outline-offset: 3px;
}
