/* R21 «میزان» — slice 1: the identity token set.
   THE swap point: the «میزان» palette, type scale and grounds live ONLY
   here, behind --r21-* tokens. Every r21-* CSS file references only these
   tokens — never a literal colour, size or family. The families are the
   R20 pair (Yekan Bakh Variable display + IRANYekanX Variable body),
   declared once in r20-tokens.css; this file only re-tokens them.
   Palette: ink #0D0D0F / paper #F6F3EC / brand blue #0053FF (kept) /
   fit lime #C8F542 — lime is the match signal ONLY, never decoration. */
:root {
  --r21-font-display: 'Yekan Bakh', Tahoma, sans-serif;
  --r21-font-body: 'IRANYekanX', Tahoma, sans-serif;
  font-synthesis: none;

  /* Grounds + ink */
  --r21-ink: #0d0d0f;
  --r21-paper: #f6f3ec;
  --r21-bg: #ffffff;
  --r21-bg-soft: #f8f9fa;
  --r21-body: #4a4a48;

  /* Brand — blue is the brand, lime is the fit */
  --r21-blue: #0053ff;
  --r21-blue-ink: #ffffff;
  --r21-fit: #c8f542;
  --r21-fit-ink: #0d0d0f;

  /* Functional (kept from R20) */
  --r21-success: #1e6b43;
  --r21-urgent: #da1e28;
  --r21-warn: #b45309;
  --r21-border: #e6e2d8;

  /* Type scale — hero up to 64px on desktop (the Jitter/Mat Voyce bar,
     32px floor on mobile. */
  --r21-t-hero: clamp(32px, 5vw, 64px);
  --r21-t-count: clamp(28px, 3vw, 40px);
  --r21-t-hero-lh: 1.02;
  --r21-t-section: clamp(32px, 3.5vw, 56px);
  --r21-t-title: 20px;
  --r21-t-body: 16px;
  --r21-t-micro: 12px;

  /* Shape */
  --r21-r-card: 16px;
  --r21-r-pill: 999px;

  /* Layout */
  --r21-w-max: 1200px;

  /* Spacing */
  --r21-s-1: 4px;
  --r21-s-2: 8px;
  --r21-s-3: 16px;
  --r21-s-4: 24px;
  --r21-s-5: 32px;
  --r21-s-6: 48px;
  --r21-s-7: 64px;
  --r21-s-8: 80px;

  /* Shell — nav heights, hairlines on ink, menu shadow, small text */
  --r21-nav-h: 64px;
  --r21-nav-h-mobile: 56px;
  --r21-tabbar-h: 60px;
  --r21-line-on-ink: rgba(246, 243, 236, 0.14);
  --r21-shadow-menu: 0 8px 24px rgba(13, 13, 15, 0.16);
  --r21-t-small: 13px;

  /* Home — lead size, h2 size, pattern tints */
  --r21-t-lead: 18px;
  --r21-t-h2: 28px;
  --r21-pattern-blue: rgba(0, 83, 255, 0.22);
  --r21-pattern-ink: rgba(13, 13, 15, 0.08);
  --r21-pattern-lime: rgba(200, 245, 66, 0.5);

  /* Market — small radius for fields and icon buttons */
  --r21-r-btn: 8px;
}
