/* Tany · تاني — shared design tokens.
   Every deliverable (wallet mockups, merchant prototype, stand, landing page, video frames)
   links this file so the brand stays one system.

   Palette idea: a café counter in Cairo, not a SaaS screen.
   - Espresso: the dark roast, our ink.
   - Paper: receipt-white, not cream.
   - Karkadeh: coffee-cherry / hibiscus red / stamp-ink red. The "they came back" colour:
     the second dot, the filled stamp, the reward. Used sparingly.
   - Nile: deep teal for data, links and anything that measures.
   - Brass: physical metal only (stand inlay, foil). Never as UI fill.
   Light-only by choice: the brand always sits on paper or espresso. */

@font-face {
  font-family: "Alexandria";
  src: url("fonts/Alexandria-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Aref Ruqaa"; src: url("fonts/ArefRuqaa-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aref Ruqaa"; src: url("fonts/ArefRuqaa-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* colour */
  --espresso: #22160F;
  --espresso-2: #3A2A21;      /* raised surface on espresso */
  --paper: #FBFAF8;           /* page ground */
  --foam: #FFFFFF;            /* cards, QR quiet zones */
  --karkadeh: #A3243B;        /* signature: return, reward, primary action */
  --karkadeh-deep: #7E1A2D;   /* pressed / text on tint */
  --karkadeh-tint: #F7E6E9;
  --nile: #145C57;            /* data, links, measures */
  --nile-tint: #E2EFED;
  --brass: #B58A4C;           /* physical metal only */
  --roast-700: #5E5048;       /* secondary text */
  --roast-500: #8C7F77;       /* muted text, icons */
  --roast-300: #D3CAC3;       /* hairlines, empty stamps */
  --roast-100: #F1EDE9;       /* quiet fills */
  --ok: #2F7A4D;
  --warn: #B7791F;
  --error: #C2410C;           /* deliberately orange-red, distinct from karkadeh */

  /* type */
  --font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-text: "IBM Plex Sans Arabic", "Alexandria", system-ui, sans-serif;
  --font-hand: "Aref Ruqaa", "IBM Plex Sans Arabic", serif;
  /* scale: major third (1.25) on a 16px base */
  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.563rem;
  --fs-xl: 1.953rem;
  --fs-2xl: 2.441rem;
  --fs-3xl: 3.052rem;
  --fs-4xl: 3.815rem;
  --fs-5xl: 4.768rem;
  --lh-tight: 1.15;
  --lh-text: 1.7;             /* Arabic needs generous leading */

  /* space (4px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* shape: radius by role, not one radius for everything */
  --r-control: 10px;          /* buttons, inputs */
  --r-pass: 14px;             /* wallet pass corner (matches iOS/Android passes) */
  --r-panel: 4px;             /* dashboard panels: crisp, paper-like */
  --r-device: 44px;           /* phone frames */
  --r-pill: 999px;            /* chips, stamp counters */

  /* depth: only physical objects (phones, stands, passes) cast shadows */
  --shadow-object: 0 1px 0 rgba(34, 22, 15, 0.06), 0 18px 40px -18px rgba(34, 22, 15, 0.35);
  --shadow-pass: 0 1px 2px rgba(34, 22, 15, 0.12), 0 10px 24px -14px rgba(34, 22, 15, 0.45);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-stamp: cubic-bezier(0.34, 1.56, 0.64, 1); /* small overshoot: a stamp landing */
}
