/* Minimal modern reset */
/* No token references here — reset must work even if tokens.css fails to load. */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  /* A11y: prevent horizontal scroll from long unbroken strings (URLs, hashes) */
  overflow-wrap: anywhere;
}

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

/* Form-element reset — strip native chrome so components can restyle cleanly. */
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
}

select {
  -webkit-appearance: none;
          appearance: none;
}

/* Strip native chrome only on text-style inputs; preserve checkbox/radio/range/etc. */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"] {
  -webkit-appearance: none;
          appearance: none;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Generic focus fallback — only used if global.css fails to load. */
/* The real focus style lives in global.css with brand-token coloring. */
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

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