/* The one copy of the STE design system's tokens and fonts (https://claude.ai/artifact/DsVKyn4ppjxmeq15joFwjW). Change them
   there first, then here. Published at ste.fund/foundations/shared/ste-tokens.css and ste.fund/tokens.css; every STE section
   loads it before its own CSS, which only adds its own names and deliberate overrides. Font URLs resolve against the stylesheet, so they load from ste.fund wherever it is used. */
@font-face { font-family: 'Satoshi'; src: url('/foundations/fonts/Satoshi-Variable.woff2') format('woff2'); font-weight: 300 900; font-display: swap; font-style: normal; }
/* Display face: Archivo (SIL Open Font License, public/fonts/Archivo-OFL.txt) fixed at 120% width, the "Archivo Expanded"
   cut, latin only, weights 500 to 800 (a request for 400 gets 500, as with the earlier Brilliant Cut Pro). */
@font-face { font-family: 'Archivo Expanded'; src: url('/foundations/fonts/ArchivoExpanded.woff2') format('woff2'); font-weight: 500 800; font-display: swap; }

:root {
  /* Brand: Ultramarine */
  --brand-50: #f4f4ff; --brand-100: #e8e7ff; --brand-200: #d1ceff; --brand-300: #a8a3ff; --brand-400: #7770f2;
  --brand-500: #4d43d4; --brand-600: #2f27b7; --brand-700: #120a8f; --brand-800: #0d076e; --brand-900: #080449;

  /* Neutrals */
  --canvas: #f7f7fa; --surface: #ffffff; --surface-subtle: #f1f1f6;
  --border: #d9d9e3; --border-subtle: #e5e5eb; --border-strong: #b8bac6;
  --text-primary: #17171e; --text-secondary: #5b5c69; --text-tertiary: #686976;

  /* Status (never aliases of chart colours) */
  --positive: #087f5b; --positive-surface: #effaf6;
  --warning: #955800; --warning-surface: #fff8e9;
  --danger: #a52b20; --danger-surface: #fff2f0;

  /* Charts, always in this order */
  --chart-1: #120a8f; --chart-2: #0077b6; --chart-3: #008b78; --chart-4: #c98200;
  --chart-5: #d05a47; --chart-6: #6d3fb3; --chart-7: #b23a74; --chart-8: #5f6b7a;

  /* Website ground and hero glow */
  --web-canvas-top: #fcfbf7; --web-canvas: #f8f6ef; --web-canvas-bottom: #f5f2e9;
  --web-glow-ultramarine: rgba(90, 130, 255, .4); --web-glow-cyan: rgba(0, 180, 255, .34); --web-glow-dot: rgba(43, 95, 255, .36);
  --web-button-glow: rgba(105, 158, 255, .42); --web-button-glow-inner: rgba(143, 186, 255, .34);

  /* Website glass card (WebFundCard) */
  --web-glass-top: rgba(255, 255, 255, .4); --web-glass-bottom: rgba(255, 255, 255, .15);
  --web-glass-shadow: 0 8px 22px rgba(0, 0, 80, .08); --web-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .5);
  --web-glass-blur: blur(16px) saturate(1.35);
  --web-card-divider: #dedee5; --web-card-track: #efeff3;

  /* Type */
  --font-display: 'Archivo Expanded', 'Helvetica Neue', Arial, sans-serif; --font-interface: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --weight-regular: 400; --weight-display: 500; --weight-emphasis: 600; --weight-strong: 700;

  /* Spacing (space-N = N × 4px) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px;

  /* Radius, sizes, layout */
  --radius-tag: 4px; --radius-control: 8px; --radius-surface: 8px; --radius-overlay: 12px;
  --control-height: 40px;
  --content-max: 76rem; --measure: 43rem; --gutter: 24px; --gutter-mobile: 16px;

  /* Roles */
  --on-brand: #ffffff;

  /* Motion */
  --duration-fast: 160ms; --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* Legacy names, kept only so design-system.html and og-card.html still render. Don't use in new code. */
:root {
  --ultramarine-50: var(--brand-50); --ultramarine-100: var(--brand-100); --ultramarine-200: var(--brand-200); --ultramarine-300: var(--brand-300);
  --ultramarine-400: var(--brand-400); --ultramarine-700: var(--brand-700);
  --neutral-400: #9999a5; --neutral-600: var(--text-secondary); --neutral-800: #2f2f37; --neutral-900: var(--text-primary);
  --signal-teal: var(--chart-3); --signal-amber: var(--chart-4); --signal-coral: var(--chart-5); --signal-cyan: var(--chart-2);
  --color-canvas: var(--canvas); --color-surface: var(--surface); --color-text: var(--text-primary); --color-text-muted: var(--text-secondary);
  --color-border: var(--border); --color-brand: var(--brand-700); --color-focus: var(--brand-400);
  --color-positive: var(--positive); --color-caution: var(--warning);
  --text-xs: .75rem; --text-sm: .875rem; --text-base: 1rem; --text-lg: clamp(1.125rem, 1.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 2.6vw, 2.25rem); --text-2xl: clamp(2.25rem, 5vw, 4.5rem);
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --duration-base: 320ms;
}

/* Dark theme (design system "Dark"): set by data-theme="dark" on <html>; light is the default.
   The brand scale is flipped so every brand-700 accent (headings, links, buttons) stays readable on the dark ground. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand-50: #15132e; --brand-100: #1c1940; --brand-200: #2c2867; --brand-300: #4a43a8; --brand-400: #8f89ff;
  --brand-500: #9c97ff; --brand-600: #b3aeff; --brand-700: #a8a3ff; --brand-800: #c4c0ff; --brand-900: #e0deff;
  --canvas: #111116; --surface: #1b1b22; --surface-subtle: #202029; --surface-header: #16161c;
  --border: #2f303b; --border-subtle: #262731; --border-strong: #555767;
  --text-primary: #ececf1; --text-secondary: #a6a7b4; --text-tertiary: #8d8e9b;
  --web-canvas-top: #14141a; --web-canvas: #111116; --web-canvas-bottom: #0e0e13;
  --web-glow-ultramarine: rgba(90, 110, 255, .26); --web-glow-cyan: rgba(0, 170, 255, .16); --web-glow-dot: rgba(120, 140, 255, .2);
  --web-button-glow: rgba(120, 130, 255, .28); --web-button-glow-inner: rgba(160, 170, 255, .2);
  --on-brand: #0b0930;
  --web-glass-top: rgba(40, 40, 52, .55); --web-glass-bottom: rgba(30, 30, 40, .3);
  --web-card-divider: #33343f; --web-card-track: #26272f;
  --glass: rgba(17, 17, 22, .72); --glass-strong: rgba(17, 17, 22, .97); --glass-solid: #111116; --glass-line: rgba(255, 255, 255, .08);
  --shadow-tint: rgba(0, 0, 0, .45); --shadow-ink: rgba(0, 0, 0, .3);
  --positive: #4cc38a; --positive-surface: #10261d;
  --warning: #f0b14a; --warning-surface: #2a2010; --danger: #ff8a7a; --danger-surface: #2c1512;
  --chart-1: #a8a3ff; --chart-2: #4fb3ea; --chart-4: #f0a92e;
  --chart-grid: #33353f; --chart-baseline: #c9cad3; --chart-halo: #111116; --chart-dot-ring: #111116;
}
