/* Quantra design system. Every colour, font and size on the site comes from here. */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  /* brand */
  --brand-ink: #111316;
  --brand-mint: #2BD9A6;
  --brand-teal: #089981;
  --brand-red: #F23645;

  /* page (dark terminal) */
  --bg: #0E0F11;
  --surface: #17191C;
  --line: #26292E;
  --text: #ECEEF1;
  --muted: #959AA1;
  --accent: #2BD9A6;          /* buttons, BUY, wins */
  --accent-hover: #4FE3B7;
  --accent-ink: #0E0F11;      /* text on accent */
  --accent-text: #2BD9A6;     /* accent used as text */
  --loss-text: #FF5C69;       /* losses as text, readable on dark */
  --focus: #2BD9A6;
  --tense-bg: #17191C;        /* the "where it struggles" moment */
  --tense-text: #ECEEF1;
  --tense-muted: #A3A8AF;
  --tag-bg: #0E0F11;
  --tag-line: #33373D;

  /* chart sheet: always white, like the Reels */
  --sheet: #FFFFFF;
  --sheet-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 24px 48px -16px rgba(0, 0, 0, .6);
  --sheet-shadow-lift: 0 2px 4px rgba(0, 0, 0, .4), 0 40px 70px -20px rgba(0, 0, 0, .75);
  --chart-up: #089981;
  --chart-down: #F23645;
  --chart-ink: #111316;
  --chart-muted: #6E7278;
  --chart-lead: #C9CDD2;
  --chart-tp-text: #067A67;
  --chart-sl-text: #C42634;
  --chart-tag-text: #FFFFFF;
  --replay-bg: #0F0F0F;       /* TradingView dark chart background */
  --replay-cap: #A3A8AF;

  /* logo */
  --logo-ring: #FFFFFF;
  --logo-tail: #2BD9A6;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ECEEF1;
  --surface: #FFFFFF;
  --line: #D5D8DD;
  --text: #111316;
  --muted: #5B5F65;
  --accent: #089981;
  --accent-hover: #0AAE93;
  --accent-ink: #0E0F11;
  --accent-text: #067A67;
  --loss-text: #C42634;
  --focus: #067A67;
  --tense-bg: #0E0F11;
  --tense-text: #ECEEF1;
  --tense-muted: #A3A8AF;
  --tag-bg: #17191C;
  --tag-line: #33373D;
  --sheet-shadow: 0 1px 2px rgba(17, 19, 22, .08), 0 20px 40px -18px rgba(17, 19, 22, .28);
  --sheet-shadow-lift: 0 2px 4px rgba(17, 19, 22, .1), 0 36px 64px -20px rgba(17, 19, 22, .38);
  --logo-ring: #111316;
  --logo-tail: #089981;
}

:root {
  /* type */
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Anonymous Pro", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.625rem, 1.6rem + 3.6vw, 4.25rem);

  /* space */
  --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 */
  --r-tag: 2px;
  --r-btn: 6px;
  --r-sheet: 10px;

  /* layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 64px;

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms;
  --bar-t: 65ms;   /* time between candles in the chart replay */
}
