/*
 *  tokens.css
 *  demo-bank
 *
 *  Copyright 2010-2026 Saxon Herschel Nicholls
 *
 *  Demo Bank's design tokens (BRAND.md): the only place a colour, a typeface or a radius is chosen. The site and,
 *  later, the platform's web and mobile packages read these names; a client re-brands by replacing this file.
 *  Contrast: every text pair below meets WCAG 2.2 AA (4.5:1) in both schemes.
 */
:root {
  /* Palette: Oasis (emerald), Dune (sand), Gold, Ivory, Midnight */
  --bank-oasis: #0e4d45;        /* primary: headers, the hero, primary buttons */
  --bank-oasis-deep: #08332e;   /* the hero's ground */
  --bank-oasis-soft: #d7ebe6;   /* tints, selected rows */
  --bank-gold: #c8a24a;         /* the mark, accents, rules; never body text on ivory */
  --bank-gold-ink: #7a5a12;     /* gold as text on light grounds (AA) */
  --bank-dune: #e9dcc3;         /* the sand band, cards on the hero */
  --bank-ivory: #faf7f0;        /* the page */
  --bank-white: #ffffff;
  --bank-ink: #10231f;          /* body text */
  --bank-ink-soft: #46574f;     /* secondary text */
  --bank-line: #dcd3c1;         /* hairlines on ivory */
  --bank-notice-bg: #fff4d9;    /* the demonstration ribbon */
  --bank-notice-ink: #5a3d05;
  --bank-positive: #0e7a52;
  --bank-negative: #a3261b;
  --bank-focus: #1554c4;

  /* Roles: what components use */
  --bg: var(--bank-ivory);
  --surface: var(--bank-white);
  --ink: var(--bank-ink);
  --ink-soft: var(--bank-ink-soft);
  --line: var(--bank-line);
  --accent: var(--bank-oasis);
  --accent-ink: var(--bank-white);
  --accent-2: var(--bank-gold);
  --accent-2-text: var(--bank-gold-ink);
  --hero-bg: var(--bank-oasis-deep);
  --hero-ink: #f5f1e6;
  --hero-soft: #c9d8d2;
  --hero-accent: var(--bank-gold);
  --notice-bg: var(--bank-notice-bg);
  --notice-ink: var(--bank-notice-ink);
  --focus: var(--bank-focus);

  /* Type: bilingual Latin and Arabic in one family each */
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Shape */
  --radius: 12px;
  --radius-pill: 999px;
  --wrap: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07211d;
    --surface: #0c2c27;
    --ink: #f1ede2;
    --ink-soft: #b9c9c2;
    --line: #1d4740;
    --accent: #d9b968;
    --accent-ink: #08332e;
    --accent-2: #d9b968;
    --accent-2-text: #e3c983;
    --hero-bg: #041814;
    --notice-bg: #3a2c0b;
    --notice-ink: #ffe3a6;
    --focus: #8ab4ff;
    color-scheme: dark;
  }
}
