/* ProAdvice type system.
   One family per role, each covering Arabic AND Latin, so the two scripts are
   matched on weight and x-height by construction rather than by pairing luck. */
:root{
  --font-display:"Alexandria","IBM Plex Sans Arabic",system-ui,sans-serif;
  --font-text:"IBM Plex Sans Arabic","Alexandria",system-ui,sans-serif;
  --font-numeric:"IBM Plex Sans Arabic",system-ui,sans-serif;

  --fw-regular:400; /* @kind font */
  --fw-medium:500; /* @kind font */
  --fw-semibold:600; /* @kind font */
  --fw-bold:700; /* @kind font */

  /* Sizes */
  --fs-display-1:56px;
  --fs-display-2:44px;
  --fs-h1:36px;
  --fs-h2:28px;
  --fs-h3:22px;
  --fs-h4:18px;
  --fs-body-lg:18px;
  --fs-body:16px;
  --fs-body-sm:14px;
  --fs-caption:13px;
  --fs-overline:12px;
  --fs-button:15px;

  /* Latin line heights */
  --lh-display-1:1.08; /* @kind font */
  --lh-display-2:1.12; /* @kind font */
  --lh-h1:1.18; /* @kind font */
  --lh-h2:1.25; /* @kind font */
  --lh-h3:1.32; /* @kind font */
  --lh-h4:1.40; /* @kind font */
  --lh-body-lg:1.60; /* @kind font */
  --lh-body:1.65; /* @kind font */
  --lh-body-sm:1.60; /* @kind font */
  --lh-caption:1.50; /* @kind font */
  --lh-button:1.00; /* @kind font */

  /* Arabic line heights — always looser than Latin (ascenders/descenders stack) */
  --lh-ar-display-1:1.35; /* @kind font */
  --lh-ar-display-2:1.38; /* @kind font */
  --lh-ar-h1:1.42; /* @kind font */
  --lh-ar-h2:1.48; /* @kind font */
  --lh-ar-h3:1.55; /* @kind font */
  --lh-ar-h4:1.62; /* @kind font */
  --lh-ar-body-lg:1.85; /* @kind font */
  --lh-ar-body:1.90; /* @kind font */
  --lh-ar-body-sm:1.85; /* @kind font */
  --lh-ar-caption:1.75; /* @kind font */
  --lh-ar-button:1.20; /* @kind font */

  /* Tracking — Latin only. Arabic is NEVER letter-spaced. */
  --ls-display:-0.02em; /* @kind font */
  --ls-heading:-0.01em; /* @kind font */
  --ls-body:0; /* @kind font */
  --ls-overline:0.08em; /* @kind font */
  --ls-arabic:0; /* @kind font */

  --measure-prose:68ch; /* @kind other */
  --measure-prose-ar:60ch; /* @kind other */
}
