/* ----------------------------------------------------------------
 * Modern CSS reset.
 * Adapted from Josh Comeau's reset + Andy Bell's reset.
 * One-time setup. We never touch this file again.
 * ---------------------------------------------------------------- */

/* 1. Box sizing on every element */
*, *::before, *::after { box-sizing: border-box; }

/* 2. Strip default margin/padding */
* { margin: 0; padding: 0; }

/* 3. Prevent font size inflation on iOS landscape */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 4. Body - sensible defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 5. Media - always block-level, never overflow */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 6. Form elements - inherit typography */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

/* 7. Buttons - strip browser defaults so we can style ours cleanly */
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* 8. Links - inherit color, no default underline */
a {
  color: inherit;
  text-decoration: none;
}

/* 9. Lists - kill default bullets/numbers (we re-enable per-component) */
ul, ol {
  list-style: none;
}

/* 10. Headings - inherit weight + size by default (re-enabled in base.css) */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
  text-wrap: balance;
}

/* 11. Long-form text - better word wrapping */
p, li, figcaption {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* 12. Tables - collapse borders by default */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 13. Respect reduced motion */
@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;
  }
}

/* 14. Focus visible - accessible, never hidden */
:focus-visible {
  outline: 2px solid var(--vq-color-primary, #004EEB);
  outline-offset: 2px;
}
