/* GlanceWise design tokens — the single source for colour, type and size.
   Loaded right after the theme (style.css) and before every other site stylesheet.
   Use var(--gw-…) in new CSS; never hard-code a hex colour or font size.

   Colours with an -rgb twin can be used with transparency: rgba(var(--gw-ink-rgb), .12).
   Illustration-only colours (charts, bank logos, warning yellows) stay literal in their
   templates on purpose; they are not part of the UI palette. */

:root {
  /* ── Brand ── */
  --gw-ink: #2E3160;          --gw-ink-rgb: 46, 49, 96;      /* headings, strong text, dark bands */
  --gw-ink-deep: #231F40;     --gw-ink-deep-rgb: 35, 31, 64; /* deepest navy */
  --gw-indigo: #4A4E8A;       --gw-indigo-rgb: 74, 78, 138;  /* theme primary: buttons, links */
  --gw-indigo-dark: #3F4378;                                 /* hover, dark gradient ends */
  --gw-indigo-mid: #5B61A8;
  --gw-indigo-light: #6D73B8;
  --gw-violet: #7152E9;       --gw-violet-rgb: 113, 82, 233; /* accent */
  --gw-violet-ink: #6E50E4;                                  /* violet text on violet tint (4.6:1) */
  --gw-violet-mid: #B9AEF0;                                  /* violet on dark / chart tint */
  --gw-violet-soft: #F1ECFE;                                 /* tint background */
  --gw-violet-line: #D9D3F7;                                 /* tint border */
  --gw-pink: #EE559E;         --gw-pink-rgb: 238, 85, 158;   /* calls to action */
  --gw-pink-ink: #B83673;                                    /* pink text on light */
  --gw-pink-cta: #C74784;                                   /* pink buttons with white text (4.5:1) */
  --gw-pink-cta-hover: #B23D75;
  --gw-pink-glow: #FF8FC4;    --gw-pink-glow-rgb: 255, 143, 196; /* pink on dark */
  --gw-pink-tint: #FFF5FA;                                   /* faintest pink background */
  --gw-pink-soft: #FFE1EF;                                   /* tint background */
  --gw-pink-line: #F7B6CF;                                   /* tint border, letter margin */

  /* ── Text (muted ≥4.5:1 and faint ≥3:1 on white and the light section background) ── */
  --gw-text: #45496E;                                        /* body copy, strong */
  --gw-text-soft: #55597F;                                   /* body copy, ledes */
  --gw-text-muted: #6C6F8A;                                  /* captions, meta */
  --gw-text-faint: #9192A8;                                  /* placeholders, disabled */

  /* ── Surfaces and lines ── */
  --gw-white: #FFFFFF;        --gw-white-rgb: 255, 255, 255;
  --gw-black: #000000;        --gw-black-rgb: 0, 0, 0;
  --gw-surface-alt: #F6F6FB;                                 /* light section background */
  --gw-line: #E7E7F0;                                        /* default border */
  --gw-line-strong: #D9D6EE;                                 /* stronger border, input underline */
  --gw-footer: #F1EEFB;                                      /* footer background: soft violet tint */
  --gw-footer-deep: #E6E1F7;                                 /* footer copyright strip */

  /* ── Status ── */
  --gw-ok: #2FA36B;           --gw-ok-rgb: 47, 163, 107;
  --gw-ok-ink: #1B7F4B;
  --gw-ok-soft: #E8F6EE;
  --gw-success: #3EB75E;      --gw-success-rgb: 62, 183, 94; /* checkmarks, "synced" */
  --gw-danger: #E5534B;       --gw-danger-rgb: 229, 83, 75;
  --gw-danger-ink: #B42318;
  --gw-danger-soft: #FDECEB;
  --gw-warn-ink: #B45309;
  --gw-warn-soft: #FFF4E8;
  --gw-blue: #4C8DF6;                                        /* info / link-in-mock-UI */
  --gw-blue-soft: #EAF1FE;                                   /* image/file icon tiles */

  /* ── Document mock-ups (invoices, receipts) ── */
  --gw-doc-ink: #1F2433;
  --gw-doc-muted: #5B6070;

  /* ── Type families ── */
  --gw-font-body: var(--font-primary);                       /* Urbanist */
  --gw-font-display: var(--font-secondary);                  /* Candal: headings */
  --gw-font-hand: 'Caveat', cursive;                         /* handwritten labels */
  --gw-font-doc: Arial, Helvetica, sans-serif;               /* printed-document mock-ups */
  --gw-font-serif: Georgia, serif;                           /* Tally wordmark */

  /* ── Type scale (UI text; illustration miniatures below 12px stay literal) ── */
  --gw-fs-caption: 12px;
  --gw-fs-meta: 13px;
  --gw-fs-ui: 14px;
  --gw-fs-ui-lg: 15px;
  --gw-fs-body: 16px;
  --gw-fs-body-lg: 17px;
  --gw-fs-lead: 18px;
  --gw-fs-title-sm: 20px;
  --gw-fs-title: 22px;
  --gw-fs-hand: 24px;
  --gw-fs-title-lg: 26px;
  --gw-fs-heading-sm: 28px;
  --gw-fs-heading: 30px;
  /* fluid headings and intro text */
  --gw-fs-h1: clamp(40px, 3.8vw + 10px, 72px);
  --gw-fs-h2: clamp(30px, 18px + 2.4vw, 50px);
  --gw-fs-h3: clamp(28px, 16px + 1.7vw, 42px);
  --gw-fs-lede: clamp(16px, 14.5px + .35vw, 18.5px);

  /* ── Theme variables mapped onto the tokens, so theme components match the site ── */
  --color-heading: var(--gw-ink);
  --color-body: var(--gw-text-soft);
  --color-primary: var(--gw-indigo);
  --color-secondary: var(--gw-pink);
  --color-tertiary-2: var(--gw-violet);
  --color-dark: var(--gw-ink-deep);
  --color-success: var(--gw-success);
}
