/* ── Jetgam base & RTL defaults ───────────────────────────────────────
   Applies the brand canvas, Persian RTL direction, and sensible resets.
   Consumers get this automatically via styles.css. */

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

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

body {
  margin: 0;
  direction: rtl;
  text-align: right;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}

/* Headings — Light/Regular display weight by default, tighter line-height */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--fw-light);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: var(--color-text);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--color-accent-hover); }

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

/* Latin numerals/codes that should NOT become Persian digits can opt out with this */
.is-latin { font-feature-settings: normal; direction: ltr; unicode-bidi: isolate; }

/* Universal visible focus ring (WCAG AA) */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
