/* ==========================================================================
   TYPOGRAPHY — brand type roles (Montserrat display · Inter body)
   Headings wrap and balance; nothing is ever clipped (CLAUDE.md §4.2).
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  color: var(--c-ink);
  line-height: var(--lh-heading);
}

/* Hero / display headline */
.t-display,
h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: var(--ls-display);
}

/* Section titles */
.t-h2,
h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: var(--ls-h2);
}

/* Card / component titles */
.t-h3,
h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-tight);
}

/* Introductory paragraph beneath a section title */
.t-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  max-inline-size: var(--measure);
}

.t-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-inline-size: var(--measure);
}

/* Small UI labels and tags (not used as section eyebrows) */
.t-caption {
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-caption);
  color: var(--c-slate);          /* mist fails AA as text on white (2.95:1) */
}

/* Arabic text never gets uppercase or letter-spacing */
:lang(ar) .t-caption {
  text-transform: none;
  letter-spacing: 0;
}

/* Text colour schemes for dark (navy) surfaces */
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 {
  color: var(--c-on-dark);
}

.on-dark {
  color: var(--c-on-dark-body);
}

.on-dark .t-caption {
  color: var(--c-on-dark-meta);
}

/* Inline text links */
.t-link {
  color: var(--c-deep-teal);      /* teal on white is 2.86:1 — deep teal passes */
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--c-teal-a25);
  transition: text-decoration-color var(--dur-micro) var(--ease-out);
}

.t-link:hover {
  text-decoration-color: currentColor;
}

.on-dark .t-link {
  color: var(--c-teal);           /* 6.43:1 on navy */
}
