/* ==========================================================================
   Orvanter design tokens
   Every colour, space, radius, shadow and type size used in the UI is defined
   here. Components reference tokens only; theming = redefining tokens.
   ========================================================================== */

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.fc03edc2c673.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-wght-normal.b75d397ffd1c.woff2") format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.b058178d7f30.woff2") format("woff2-variations");
}

:root {
  /* Typography */
  --font-sans: "Manrope Variable", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk Variable", "Space Grotesk", "Manrope Variable", system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --text-display: clamp(2.6rem, 1.4rem + 5vw, 5.25rem);
  --leading-tight: 1.15;
  --leading-normal: 1.55;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.06em;
  --tracking-mono: 0.12em;

  /* Spacing (4-pt scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.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;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;
  --shadow-xs: 0 1px 2px rgb(22 32 58 / 0.05);
  --shadow-sm: 0 1px 3px rgb(15 23 42 / 0.06), 0 1px 2px rgb(15 23 42 / 0.04);
  --shadow-md: 0 6px 16px -4px rgb(15 23 42 / 0.10), 0 2px 4px rgb(15 23 42 / 0.04);
  --shadow-lg: 0 24px 48px -12px rgb(15 23 42 / 0.18);
  --ring: 0 0 0 3px var(--accent-soft);

  /* Layout */
  --container: 1200px;
  --sidebar-width: 248px;
  --topbar-height: 64px;
  --gutter: 16px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 200ms;


  /* Colour — dark, the default ("obsidian": graphite surfaces, one signal-mint accent) */
  color-scheme: dark;
  --bg: #0b0e11;
  --surface: #111519;
  --surface-2: #161b21;
  --surface-3: #1d232b;
  --border: #222a33;
  --border-strong: #2f3944;
  --text: #e7ecf1;
  --text-muted: #a3aebb;
  --text-subtle: #7f8b98;

  --primary: #2ee6a6;
  --primary-hover: #63f0be;
  --primary-contrast: #03140d;

  --accent: #2ee6a6;
  --accent-strong: #2ee6a6;
  --accent-soft: rgb(46 230 166 / 0.12);
  --accent-contrast: #03140d;
  --focus: #2ee6a6;
  --dot-on-primary: #03140d;
  --grid-line: rgb(255 255 255 / 0.035);
  --ring-art: rgb(255 255 255 / 0.05);

  --success: #2ee6a6;
  --success-soft: rgb(46 230 166 / 0.12);
  --warning: #f5b544;
  --warning-soft: rgb(245 181 68 / 0.14);
  --danger: #ff5d6e;
  --danger-soft: rgb(255 93 110 / 0.13);
  --danger-contrast: #1a0307;
  --info: #5aa9ff;
  --info-soft: rgb(90 169 255 / 0.13);
  --neutral: #a3aebb;
  --neutral-soft: rgb(163 174 187 / 0.12);

  /* Depth: faint inner glow on cards, gradient hairline on highlighted ones. */
  --shadow-xs: 0 1px 0 rgb(0 0 0 / 0.3);
  --shadow-sm: 0 1px 0 rgb(0 0 0 / 0.35), 0 8px 20px -14px rgb(0 0 0 / 0.7);
  --shadow-md: 0 1px 0 rgb(0 0 0 / 0.35), 0 18px 40px -22px rgb(0 0 0 / 0.8);
  --shadow-lg: 0 24px 56px -16px rgb(0 0 0 / 0.75);
  --glow: inset 0 1px 0 rgb(255 255 255 / 0.045), inset 0 0 24px rgb(46 230 166 / 0.025);
  --stroke-grad: linear-gradient(140deg, rgb(46 230 166 / 0.55), rgb(46 230 166 / 0) 40%, rgb(255 255 255 / 0.06) 100%);
  --hero-glow: radial-gradient(55% 60% at 75% 25%, rgb(46 230 166 / 0.10), transparent 70%);
  --primary-glow: 0 6px 18px -8px rgb(46 230 166 / 0.9);

  --sim-bar-bg: #07090b;
  --sim-bar-text: #a3aebb;

  /* Data viz: trend in the brand mint, categorical mint / blue / violet. */
  --viz-trend: #2ee6a6;
  --viz-trend-fill: rgb(46 230 166 / 0.14);
  --viz-1: #2ee6a6;
  --viz-2: #5aa9ff;
  --viz-3: #b28dff;
  --viz-grid: #1c232b;
  --viz-axis: #2f3944;
  --viz-muted: #7f8b98;
}

/* Light theme: opt-in from the theme toggle. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --surface-3: #e3e8ed;
  --border: #dbe1e7;
  --border-strong: #c3ccd5;
  --text: #0d1217;
  --text-muted: #46515d;
  --text-subtle: #5b6774;

  --primary: #067a54;
  --primary-hover: #05674a;
  --primary-contrast: #ffffff;

  --accent: #067a54;
  --accent-strong: #067a54;
  --accent-soft: rgb(6 122 84 / 0.10);
  --accent-contrast: #ffffff;
  --focus: #067a54;
  --dot-on-primary: #ffffff;
  --grid-line: rgb(13 18 23 / 0.05);
  --ring-art: rgb(13 18 23 / 0.06);

  --success: #067a54;
  --success-soft: rgb(6 122 84 / 0.10);
  --warning: #a35f00;
  --warning-soft: rgb(217 139 12 / 0.14);
  --danger: #c42638;
  --danger-soft: rgb(196 38 56 / 0.10);
  --danger-contrast: #ffffff;
  --info: #1d64c4;
  --info-soft: rgb(29 100 196 / 0.10);
  --neutral: #5b6774;
  --neutral-soft: rgb(91 103 116 / 0.12);

  --shadow-xs: 0 1px 2px rgb(13 18 23 / 0.05);
  --shadow-sm: 0 1px 2px rgb(13 18 23 / 0.05), 0 12px 28px -18px rgb(13 18 23 / 0.22);
  --shadow-md: 0 6px 16px -4px rgb(13 18 23 / 0.10), 0 2px 4px rgb(13 18 23 / 0.04);
  --shadow-lg: 0 24px 48px -12px rgb(13 18 23 / 0.18);
  --glow: inset 0 1px 0 rgb(255 255 255 / 0.9);
  --stroke-grad: linear-gradient(140deg, rgb(6 122 84 / 0.6), rgb(6 122 84 / 0) 42%, rgb(13 18 23 / 0.10) 100%);
  --hero-glow: radial-gradient(60% 60% at 75% 30%, rgb(11 154 107 / 0.12), transparent 70%);
  --primary-glow: 0 6px 18px -10px rgb(6 122 84 / 0.7);

  --sim-bar-bg: #0d1217;
  --sim-bar-text: #c3ccd5;

  --viz-trend: #0b9a6b;
  --viz-trend-fill: rgb(11 154 107 / 0.12);
  --viz-1: #0b9a6b;
  --viz-2: #2f7fe0;
  --viz-3: #8a63e0;
  --viz-grid: #e7eaf0;
  --viz-axis: #c9d0da;
  --viz-muted: #5b6774;
}
