/* ────────────────────────────────────────────────────────────────────
 * AROOGA Design System — Reset (modern, based on Andy Bell v2)
 *
 * Minimal, opinionated. Loaded BEFORE tokens.css + typography.css.
 * ──────────────────────────────────────────────────────────────────── */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { 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: 100vh;
  min-height: 100dvh;
  text-rendering: optimizeSpeed;
}

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

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

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

a { color: inherit; }

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Remove default list styling for nav, button rows, etc.
   Content-bearing lists still get role=list via reset-safe utility */
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* Focus visibility — universal baseline.
 * Transparent outline first: ensures Windows High Contrast Mode + forced-colors
 * see a solid Highlight outline even when token-based colour resolves to
 * something HCM strips. (a11y-reviewer CoV). */
:focus-visible {
  outline: 2px solid transparent;
  outline: 2px solid var(--color-focus-ring, #6366f1);
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

@media (forced-colors: active) {
  :focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
  button, a { forced-color-adjust: none; }
}

/* Motion-sensitive defaults */
button, a, label, summary { cursor: pointer; }

/* Hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-toast, 9999);
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: 0 0 var(--radius-md) 0;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}
.skip-link:focus { left: 0; }
