/* ============================================================
   base.css — Reset, typography, scrollbar, accessibility
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100dvh;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
button { cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }

/* Hide scrollbars (mobile feel) but keep scrolling usable */
::-webkit-scrollbar { width: 0; height: 0; }

/* ---- Accessibility: visible keyboard focus ---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Accessibility: respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Visually hidden (for screen-reader-only labels) */
.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;
}
