/* base.css — typography defaults, links, focus, skip link. Token values only.
   Heritage 2 (Oct 2026): every piece of text is the full text colour. "Secondary" is a voice, not a colour:
   .t-label  = small caps Arial, semi-bold, tracked (Noto Sans Arabic, no caps, in Arabic) — labels, headers, captions, meta.
   .t-secondary = running secondary text at 14 px in the body face. The old .muted utility is kept as a plain alias. */
html { font-size: var(--fs-base); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--lh-body);
  /* High contrast (owner, 2026-11-14: "text … sharper and darker"): the platform's normal glyph rendering. reset.css sets
     antialiased / grayscale, which draws thinner, lighter strokes on macOS; auto keeps the full stem weight. */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
:lang(ar) body, body:lang(ar) { line-height: var(--lh-body-ar); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-heading); line-height: 1.25; }
h1 { font-size: var(--fs-h1); font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); }
h2 { font-size: var(--fs-h2); font-weight: var(--heading-weight); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
/* .muted keeps its "secondary" meaning through size (14 px), never through colour; an explicit .text-xs / .text-sm still wins. */
.muted, .t-secondary { color: var(--color-text); font-size: var(--fs-secondary); }
small, .text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.t-label {
  font-family: var(--font-label); font-size: var(--label-fs); font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking); text-transform: var(--label-transform); line-height: var(--label-lh);
  color: var(--color-text);
}
.t-label--lg { font-size: var(--label-fs-lg); }
.t-label .icon { inline-size: 1.2em; block-size: 1.2em; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
/* Phone numbers (Ui.Tel / phoneEl): "+971 56 740 7572" left to right inside Arabic text, never split over two lines (Oct 2026). */
.tel { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
/* LTR values (emails, phones, URLs) inside Arabic pages still line up with the RTL column edge. */
[dir="rtl"] .ltr:not(input):not(textarea) { text-align: right; }
p a, .link { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
.link--quiet { text-decoration: none; }
.link--quiet:hover { text-decoration: underline; }

/* One visible focus ring everywhere: 2 px in the focus colour with a 2 px gap (UX audit G13). */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
/* links get soft corners on their ring; components keep their own radius (a ring never reshapes a button or a tile) */
a:focus-visible, summary:focus-visible { border-radius: var(--radius-sm); }

.skip-link {
  position: absolute;
  inset-block-start: var(--space-sm);
  inset-inline-start: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  z-index: 9999;
  transform: translateY(-200%);
  transition: transform var(--transition-base);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { display: none; }
.icon { display: inline-block; vertical-align: -0.2em; inline-size: 1.15em; block-size: 1.15em; flex: none; }
.icon--lg { inline-size: 1.5em; block-size: 1.5em; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-inline-size: 1.6em; padding-inline: var(--space-xs);
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; line-height: 1.6;
  color: var(--color-text);
  background: var(--color-btn-soft-bg); /* a key cap takes the pale button blue: grey is for disabled only (Nov 2026) */
  border: 1px solid var(--color-border-strong);
  border-block-end-width: 2px;
  border-radius: var(--radius-sm);
}
