/* Design tokens. BackComTrader re-skin (brand v2 "Gold on Graphite", docs/brand/tokens-v2.css), 2026-12-01.
   Every v1 token name extracted from backcom.io is kept (do not rename). Per docs/DECISIONS.md the re-skin keeps
   backcom.io's layout, spacing, radii, typography scale and motion EXACTLY and only shifts the colour tone from
   lime/mint to gold: colour values come from tokens-v2, geometry/type values stay the v1 (backcom.io) ones.
   New in v2 (additive): gold/graphite ramps, --font-num + --num-features (Inter, tabular figures), surface-4,
   accent/cta hover+press, on-accent, success, up/down-soft, focus/CTA shadows, --bc-grad-* gradients, space-*.
   Light theme = html[data-theme=light]; gold is a FILL there, gold text uses --color-accent (#805B00, AA). */
:root {
  --font-sans:"Be Vietnam Pro", "Be Vietnam Pro Fallback", "Be Vietnam Pro Fallback Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* v2: the number voice. Be Vietnam Pro has no tabular figures, Inter does. Use with font-feature-settings: var(--num-features) */
  --font-num:"Inter", "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --num-features:"tnum" 1, "cv11" 1;
  --color-black:#000;
  --color-white:#fff;
  --spacing:.25rem;
  --container-md:28rem;
  --container-xl:36rem;
  --container-2xl:42rem;
  --container-3xl:48rem;
  --text-xs:.75rem;
  --text-xs--line-height:calc(1 / .75);
  --text-sm:.875rem;
  --text-sm--line-height:calc(1.25 / .875);
  --text-base:1rem;
  --text-base--line-height:calc(1.5 / 1);
  --text-lg:1.125rem;
  --text-lg--line-height:calc(1.75 / 1.125);
  --text-xl:1.25rem;
  --text-xl--line-height:calc(1.75 / 1.25);
  --text-2xl:1.5rem;
  --text-2xl--line-height:calc(2 / 1.5);
  --text-3xl:1.875rem;
  --text-3xl--line-height:calc(2.25 / 1.875);
  --text-4xl:2.25rem;
  --text-4xl--line-height:calc(2.5 / 2.25);
  --text-6xl:3.75rem;
  --text-6xl--line-height:1;
  --font-weight-normal:400;
  --font-weight-medium:500;
  --font-weight-semibold:600;
  --font-weight-bold:700;
  --font-weight-extrabold:800;
  --font-weight-black:900;
  --tracking-tight:-.025em;
  --tracking-normal:0em;
  --tracking-wide:.025em;
  --tracking-wider:.05em;
  --tracking-widest:.1em;
  --leading-tight:1.25;
  --leading-snug:1.375;
  --leading-normal:1.5;
  --leading-relaxed:1.625;
  --radius-sm:.25rem;
  --radius-md:.375rem;
  --radius-lg:.5rem;
  --radius-xl:.75rem;
  --radius-2xl:1rem;
  --radius-3xl:1.5rem;
  --radius-pill:999px;
  --ease-out:cubic-bezier(0, 0, .2, 1);
  --ease-in-out:cubic-bezier(.4, 0, .2, 1);
  --animate-spin:spin 1s linear infinite;
  --animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
  --blur-sm:8px;
  --blur-md:12px;
  --blur-2xl:40px;
  --blur-3xl:64px;
  --aspect-video:16 / 9;
  --default-transition-duration:.15s;
  --default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);
  --default-font-family:var(--font-sans);
  --default-mono-font-family:var(--font-mono);

  /* ---------- v2 gold ramp (brand) ---------- */
  --gold-50:#FFF8E1;
  --gold-100:#FFEFC2;
  --gold-200:#FFDF85;
  --gold-300:#FFD457;
  --gold-400:#FFCB3D;
  --gold-500:#FFC72C;   /* BackComTrader Gold */
  --gold-600:#F2B50C;
  --gold-700:#C99400;
  --gold-800:#805B00;   /* gold as text on light surfaces */
  --gold-900:#3D2C04;
  /* ---------- v2 graphite ramp (warm neutrals) ---------- */
  --graphite-0:#070708;
  --graphite-50:#0B0B0C;
  --graphite-100:#141416;
  --graphite-200:#1B1B1F;
  --graphite-300:#232328;
  --graphite-400:#2C2C32;
  --graphite-500:#34343B;
  --graphite-600:#6E6E76;
  --graphite-700:#8E8E93;
  --graphite-800:#A9A8A3;
  --graphite-900:#F7F6F2;

  /* ---------- brand (v1 names kept, remapped: lime -> gold, mint -> pale gold) ---------- */
  --color-brand-gold:var(--gold-500);
  --color-brand-lime:var(--gold-500);
  --color-brand-mint:var(--gold-200);
  --color-brand-ink:#0B0B0C;
  --color-exness:#ffde02;
  --color-exness-wash:#ffde0214;
  --color-violet:#a78bfa;

  /* ---------- surfaces & lines ---------- */
  --color-ink-dim:#8E8E93;
  --color-page:#0B0B0C;
  --color-surface-1:#141416;
  --color-surface-2:#1B1B1F;
  --color-surface-3:#232328;
  --color-surface-4:#2C2C32;
  --color-well:#070708;
  --color-scrim:#000000c2;
  --color-hairline:#26262B;
  --color-edge-soft:#34343B;
  --color-edge:#6E6E76;
  --color-ink:#F7F6F2;
  --color-ink-2:#E6E5E0;
  --color-ink-3:#CFCEC8;
  --color-ink-4:#A9A8A3;

  /* ---------- accent / CTA ---------- */
  --color-accent:#FFC72C;
  --color-accent-hover:#FFD457;
  --color-accent-press:#F2B50C;
  --color-accent-edge:#8A6A12;
  --color-accent-soft:#2A2208;
  --color-accent-faint:#17140A;
  --color-on-accent:#121110;
  --color-focus:#FFC72C;
  --color-cta:#FFC72C;
  --color-cta-hover:#FFD457;
  --color-cta-press:#F2B50C;
  --color-cta-ink:#121110;
  --color-cta-edge:transparent;
  --color-cta-disabled:#3A3320;
  --color-cta-disabled-ink:#8E8E93;
  /* nav (v1 mint) is pale gold so the site keeps one accent family */
  --color-nav:#FFDF85;
  --color-nav-edge:#8A6A12;
  --color-nav-soft:#221C0B;

  /* ---------- status ---------- */
  --color-warn:#FF9F1A;
  --color-warn-edge:#5A3A08;
  --color-warn-soft:#1F1606;
  --color-shade:#000;
  --color-shade-glow:#00000099;
  --color-accent-wash:#FFC72C1f;
  --color-inert:#3A3A40;
  --color-open:#33D17A;
  --color-rating-track:#34343B;
  --color-up:#33D17A;
  --color-down:#FF5F57;
  --color-up-soft:#33D17A1f;
  --color-down-soft:#FF5F571f;
  --color-alert:#FF453A;
  --color-success:#33D17A;
  --color-mark:#FFC72C;
  --color-chart-axis:#7C7C84;
  --color-chart-label:#9A9AA0;
  --color-chart-ink:#E6E5E0;
  --color-chart-grid:#ffffff10;
  --color-info:#6CB4FF;
  --color-series-2:#8E9AAF;
  --color-accent-glow:#FFC72C33;
  --color-gauge-1:#FF5F57;
  --color-gauge-2:#FF9F1A;
  --color-gauge-3:#FFC72C;
  --color-gauge-4:#9BD65A;
  --color-gauge-5:#33D17A;

  /* ---------- v2 gradients & shadows (gold equivalents of the v1 lime->mint fills/glows) ---------- */
  --bc-grad-cta:linear-gradient(324deg, var(--gold-200) 0%, var(--gold-500) 42%);   /* was 324deg mint 0% -> lime 42% */
  --bc-grad-brand:linear-gradient(100deg, var(--gold-500), var(--gold-200));       /* was lime -> mint */
  --bc-grad-text:linear-gradient(90deg, var(--gold-500), var(--gold-200), var(--gold-300), var(--gold-500));
  --shadow-focus:0 0 0 3px #FFC72C59;
  --shadow-cta:0 8px 24px -10px #FFC72C66;

  /* ---------- v2 spacing / layout helpers (additive) ---------- */
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem; --space-5:1.25rem; --space-6:1.5rem;
  --space-8:2rem; --space-10:2.5rem; --space-12:3rem; --space-16:4rem;
  --container-page:80rem;
  --container-wide:90rem;

  --ease-out-expo:cubic-bezier(.16, 1, .3, 1);
  --text-display:clamp(2.75rem, 1.27rem + 6.08vw, 5.25rem);
  --text-display--line-height:1.08;
  --text-display--letter-spacing:-.045em;
  --text-display--font-weight:600;
  --text-h1:clamp(1.875rem, 1.457rem + 1.714vw, 3rem);
  --text-h1--line-height:1.1;
  --text-h1--letter-spacing:-.04em;
  --text-h1--font-weight:600;
  --text-article:clamp(1.75rem, 1.47rem + 1.14vw, 2.5rem);
  --text-article--line-height:1.15;
  --text-article--letter-spacing:-.03em;
  --text-article--font-weight:600;
  --text-404:clamp(6rem, 5.16rem + 3.43vw, 8.25rem);
  --text-404--line-height:.9;
  --text-404--letter-spacing:-.05em;
  --text-404--font-weight:700;
  --text-h2:clamp(1.75rem, 1.564rem + .762vw, 2.25rem);
  --text-h2--line-height:1.12;
  --text-h2--letter-spacing:-.04em;
  --text-h2--font-weight:600;
  --text-h3:clamp(1.5rem, 1.36rem + .57vw, 1.875rem);
  --text-h3--line-height:1.22;
  --text-h3--letter-spacing:-.03em;
  --text-h3--font-weight:600;
  --text-h4:1.5rem;
  --text-h4--line-height:1.33;
  --text-h4--letter-spacing:-.025em;
  --text-h4--font-weight:600;
  --text-title:1.125rem;
  --text-title--line-height:1.55;
  --text-title--letter-spacing:-.025em;
  --text-title--font-weight:600;
  --text-lead:1.125rem;
  --text-lead--line-height:1.625;
  --text-body:1rem;
  --text-body--line-height:1.625;
  --text-small:.875rem;
  --text-small--line-height:1.625;
  --text-caption:.8125rem;
  --text-caption--line-height:1.5;
  --text-micro:.75rem;
  --text-micro--line-height:1.34;
}

html[data-theme=light] {
  color-scheme:light;
  --color-page:#F6F5F1;
  --color-surface-1:#FFFFFF;
  --color-surface-2:#FFFFFF;
  --color-surface-3:#EEEDE8;
  --color-surface-4:#E6E4DE;
  --color-well:#ECEAE4;
  --color-scrim:#1211108c;
  --color-hairline:#E3E1DA;
  --color-edge-soft:#D2D0C8;
  --color-edge:#77756E;
  --color-ink:#121110;
  --color-ink-2:#26241F;
  --color-ink-3:#3A3833;
  --color-ink-4:#57554F;
  --color-ink-dim:#6B6963;
  /* gold fails as text on white (1.56:1): accent becomes deep gold, fills stay BackComTrader Gold */
  --color-accent:#805B00;
  --color-accent-hover:#6B4C00;
  --color-accent-press:#5A4000;
  --color-accent-edge:#C99400;
  --color-accent-soft:#FFF1C7;
  --color-accent-faint:#FFF8E1;
  --color-on-accent:#121110;
  --color-focus:#805B00;
  --color-cta:#FFC72C;
  --color-cta-hover:#FFD457;
  --color-cta-press:#F2B50C;
  --color-cta-ink:#121110;
  --color-cta-edge:#E0A800;
  --color-cta-disabled:#EEE7D2;
  --color-cta-disabled-ink:#8A877F;
  --color-nav:#6E4F00;
  --color-nav-edge:#C99400;
  --color-nav-soft:#FFF3D1;
  --color-warn:#8F5600;
  --color-warn-edge:#E2B76A;
  --color-warn-soft:#FFF3DC;
  --color-shade:#57554F;
  --color-shade-glow:#12111024;
  --color-accent-wash:#FFC72C2e;
  --color-inert:#A3A19A;
  --color-rating-track:#D2D0C8;
  --color-open:#0E7A43;
  --color-up:#0E7A43;
  --color-down:#C42B2B;
  --color-up-soft:#0E7A431a;
  --color-down-soft:#C42B2B1a;
  --color-alert:#B3261E;
  --color-success:#0E7A43;
  --color-mark:#805B00;
  --color-chart-axis:#6B6963;
  --color-chart-label:#57554F;
  --color-chart-ink:#26241F;
  --color-chart-grid:#1211100f;
  --color-info:#1C62B5;
  --color-series-2:#46586E;
  --color-accent-glow:#FFC72C40;
  --color-gauge-1:#C42B2B;
  --color-gauge-2:#9A5800;
  --color-gauge-3:#805B00;
  --color-gauge-4:#3F7A12;
  --color-gauge-5:#0E7A43;
  /* gold text-on-light gradient (deep golds, AA on page/surfaces) */
  --bc-grad-text:linear-gradient(90deg, #805B00, #6E4F00, #8F6600, #805B00);
  --shadow-focus:0 0 0 3px #805B0040;
  --shadow-cta:0 8px 20px -10px #C9940080;
  --bc-fx-ring-op:.8;
}
