/*
 * AVYRON design tokens: «Noir Atelier» (v0.20). THE ONLY place where a colour, a radius, a spacing step or a font is
 * written as a value. Every other file uses these names (css/style.css, the JS that draws on a canvas through
 * AVYRON_UI.token()). docs/DESIGN-SYSTEM.md explains each one and when to use it.
 * tests/ui/test_design_tokens.py fails if a colour or a font is written anywhere else.
 */
:root{
  /* ---- colour ---- */
  --bg:#0D0D0E;              /* the page */
  --surface:#141414;         /* a card */
  --surface-2:#1E1C19;       /* a block inside a card, a field, a raised element */
  --surface-3:#22201D;       /* pressed / hovered rows, a disabled button (muted text stays 4.5:1 on it) */
  --border:#262421;          /* a card's edge */
  --border-strong:#2E2B27;   /* a field's edge, a pressed or focused edge */
  --divider:#1F1E1C;         /* a line between rows inside a card */
  --text:#EDEAE3;            /* body text, titles */
  --text-muted:#8F897E;      /* labels, dates, secondary text */
  --text-soft:#CFCAC0;       /* secondary text that must stay close to the text (notes, a disabled button) */
  --gold:#C9A962;            /* the one accent: active tab, primary button, big numbers, the AVYRON mark */
  --gold-hover:#D4B36A;      /* gold on hover / focus */
  --on-gold:#0D0D0E;         /* text on a gold fill */
  --danger:#E58C7A;          /* errors, «sell», signs of risk */
  --success:#8FC9A0;         /* «buy», «the chain is intact», a done step (the green the identity uses with gold) */
  --seal-bg:#171511;         /* the record's seal («مقفلة · بصمة …») */
  --seal-border:#3A3224;
  --shade:#000000;           /* only for shadows, the dim behind a dialog, and the black behind full-screen media */
  --lv-bronze:#E0AD82;       /* the analyst level badges (gold uses --gold) */
  --lv-silver:#D3D7DD;
  --lv-platinum:#BFE6E6;

  /* ---- shape ---- */
  --r-card:22px;             /* a card */
  --r-inner:14px;            /* a block inside a card */
  --r-btn:12px;              /* a button, a field, the seal */
  --r-pill:999px;            /* a pill: badges, target pills, chips */

  /* ---- space: 4 / 8 / 12 / 16 / 22 / 32 only ---- */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:22px; --s-6:32px;
  --tap:44px;                /* the smallest touch target */
  --stroke:1.6;              /* the line width of every icon (SVG, 24 x 24) */

  /* ---- type ---- */
  --font-text:"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;   /* all text */
  --font-display:"El Messiri","IBM Plex Sans Arabic",system-ui,sans-serif;                    /* Arabic headings, big numbers */
  --font-latin:"Cormorant Garamond","Times New Roman",Georgia,serif;                          /* the AVYRON mark (7px tracking), Latin headings */
  --mark-tracking:7px;
}
