/*
 * Vitral — Prism tokens (option A).
 * Source: vitral-dev-design a/DIRECTION.md and a/index.html (:root).
 * Dark is the default; light applies with [data-theme="light"] on <html>.
 * Amber is the "overlap" colour: only the --amber* and --logo-amber tokens carry it.
 */

:root {
  color-scheme: dark;

  /* Brand — exact */
  --plomo: #0d1017;
  --cobalt: #1f44d6;
  --amber: #f5a623;
  --gray: #535b6b;

  /* Surfaces, derived from plomo */
  --bg: var(--plomo);
  --bg-deep: #090b11;
  --surface-1: #11151e;
  --surface-2: #161b26;
  --glass: rgba(22, 27, 39, 0.66);
  --glass-strong: rgba(17, 21, 31, 0.86);
  --lead: rgba(232, 234, 240, 0.09);        /* the "came": 1px lead lines */
  --lead-strong: rgba(232, 234, 240, 0.16);
  --edge-light: rgba(255, 255, 255, 0.11);  /* top edge of a pane catching light */

  /* Text */
  --text: #e8eaf0;     /* 15.6:1 on plomo */
  --text-2: #a3abba;   /* 7.9:1 on plomo */
  --text-3: #8089a0;   /* 5.4:1 on plomo */

  /* Cobalt + amber, derived */
  --cobalt-hover: #2b53ea;
  --cobalt-text: #8ea6ff;                   /* cobalt for text and links on dark, 8:1 */
  --cobalt-light: rgba(31, 68, 214, 0.30);
  --cobalt-wash: rgba(31, 68, 214, 0.14);
  --amber-text: #f5a623;                    /* 9:1 on plomo */
  --amber-soft: #f8c56e;
  --amber-light: rgba(245, 166, 35, 0.16);
  --amber-wash: rgba(245, 166, 35, 0.08);
  --ok: #58c99b;                            /* status dots only */

  /* Logo (dark surface values; light resets them to the official values) */
  --logo-lead: #e8eaf0;
  --logo-cobalt: #1f44d6;
  --logo-amber: #f5a623;
  --logo-dev: #9aa2b2;

  /* Type (faces in fonts.css) */
  --font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Geometry */
  --slant: 116.57deg;  /* the logo's 2:1 pane slant, used for light only */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --wrap: 1200px;
  --gutter: 32px;
}

/* Light: cool paper, plomo text, brand gray for secondary text, raw cobalt links. */
[data-theme="light"] {
  color-scheme: light;

  --bg: #f6f7fa;                            /* paper */
  --bg-deep: #eceef3;
  --surface-1: #ffffff;
  --surface-2: #eef0f4;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --lead: rgba(13, 16, 23, 0.10);
  --lead-strong: rgba(13, 16, 23, 0.18);
  --edge-light: rgba(255, 255, 255, 0.8);

  --text: var(--plomo);                     /* 17.8:1 on paper */
  --text-2: var(--gray);                    /* #535b6b, 6.4:1 on paper */
  --text-3: #646c7d;                        /* 4.9:1 on paper */

  --cobalt-hover: #1a39b5;
  --cobalt-text: var(--cobalt);             /* links: raw cobalt, 6.9:1 on paper */
  --cobalt-light: rgba(31, 68, 214, 0.18);
  --cobalt-wash: rgba(31, 68, 214, 0.08);
  --amber-text: #a86a00;                    /* amber only if it must be text; fills keep --amber */
  --amber-soft: #a86a00;
  --amber-light: rgba(245, 166, 35, 0.22);
  --amber-wash: rgba(245, 166, 35, 0.10);
  --ok: #1a7f55;

  /* Official light values (vitral-logo-traslape-a.svg) */
  --logo-lead: #0d1017;
  --logo-cobalt: #1f44d6;
  --logo-amber: #f5a623;
  --logo-dev: #535b6b;
}
