/* Shared design tokens: the family look both tools inherit — the self-hosted fonts,
   the ground/ink colour system, the amber accent and the dark/light theme values.
   Each tool layers its own tokens on top in its styles/tokens.css (quadrant hues for
   Market Rotation, the status palette for Macro Health). See docs/DESIGN.md,
   "Shared layer".

   NOTE the font URLs are "../fonts/", not "/fonts/": a CSS url() resolves against the
   STYLESHEET, so from shared/styles/tokens.css this reaches shared/fonts/ both in the
   source tree and in a deployed bundle (where shared/ is copied to /shared/). */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Geist-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Geist-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Geist-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/GeistMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/GeistMono-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/GeistMono-Bold.woff2") format("woff2");
}

/* ---- shared design tokens --------------------------------------------- */
:root {
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo,
    Consolas, monospace;
}

/* Dark first (the terminal-leaning default). color-scheme keeps the UA-rendered
   pieces (scrollbars, form controls, focus rings) in the theme too. */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e12;
  --surface: #14171d;
  --surface-2: #1b1f27;
  --ink: #e8ebf0;
  --muted: #8b93a3;
  --faint: #6b7383;
  --line: #262b34;
  --accent: #f5b13d; /* amber (brand) */
  --pos: #46c98a; /* up / above the centre (number tint) */
  --neg: #f16d61; /* down / below the centre */
  --grid: rgba(255, 255, 255, 0.1);
  --halo: #0c0e12; /* marker outline = canvas bg */
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #16191f;
  --muted: #5c6472;
  --faint: #868e9c;
  --line: #e2e5ea;
  --accent: #d9860a; /* amber (brand), darkened for contrast on the light ground */
  --pos: #157a45; /* darker for text contrast on the light ground */
  --neg: #c62f22;
  --grid: rgba(0, 0, 0, 0.08);
  --halo: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.08);
}
