/* Typography — DESIGN_SYSTEM §4–§5
   لا letter-spacing موجب مع العربية. */

body {
  font-family: var(--font-family-base);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1,
h2,
h3 {
  font-weight: var(--fw-bold);
  color: var(--color-text);
  text-wrap: balance;
}

h1,
.text-display {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-display);
}

h2,
.text-h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

h3,
.text-h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

p {
  text-wrap: pretty;
}

.text-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--color-text-muted);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-small {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: var(--lh-small);
}

.text-accent {
  color: var(--color-accent);
}

/* روابط داخل النصوص */
.text-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease-out),
    text-decoration-color var(--dur-fast) var(--ease-out);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--color-accent-strong);
  text-decoration-color: currentColor;
}

::selection {
  background-color: var(--color-accent-tint);
  color: var(--color-text);
}
