/* ExportCompute brand tokens — the ONLY place colors and fonts are defined.
   Source of truth: exportcompute-os/brand/tokens.css
   The website uses an exact copy at website/public/tokens.css (checked before every deploy). */
:root{
  /* Core palette */
  --ec-ink-900:#0E1330;    /* primary text, dark sections */
  --ec-ink-700:#2A3052;    /* secondary headings */
  --ec-ink-500:#555C7A;    /* muted text */
  --ec-ink-300:#AEB4CC;    /* muted text on dark */
  --ec-line:#E2E5EE;       /* borders, dividers */
  --ec-paper:#F6F7FB;      /* page background */
  --ec-white:#FFFFFF;      /* cards, surfaces */

  --ec-indigo-700:#2C29A3; /* primary hover */
  --ec-indigo-600:#3A36C4; /* PRIMARY: buttons, links, key highlights */
  --ec-indigo-300:#A9ACF7; /* links/highlights on dark */
  --ec-indigo-50:#EEEEFD;  /* tints, selected states */

  --ec-teal-700:#0F766E;   /* accent text on light */
  --ec-teal-600:#0D9488;   /* ACCENT: icons, bullets, small marks */
  --ec-teal-400:#2DD4BF;   /* accent on dark */

  --ec-success:#15803D;
  --ec-warning:#B45309;
  --ec-danger:#B91C1C;

  /* Semantic roles — use these in components, not the raw palette */
  --bg:var(--ec-paper);
  --surface:var(--ec-white);
  --text:var(--ec-ink-900);
  --muted:var(--ec-ink-500);
  --line:var(--ec-line);
  --primary:var(--ec-indigo-600);
  --primary-hover:var(--ec-indigo-700);
  --on-primary:var(--ec-white);
  --tint:var(--ec-indigo-50);
  --accent:var(--ec-teal-600);
  --accent-text:var(--ec-teal-700);
  --dark-bg:var(--ec-ink-900);
  --dark-text:var(--ec-white);
  --dark-muted:var(--ec-ink-300);
  --dark-link:var(--ec-indigo-300);
  --dark-accent:var(--ec-teal-400);
  --ok:var(--ec-success);
  --err:var(--ec-danger);

  /* Type — Plus Jakarta Sans (loaded from Google Fonts, display=swap) */
  --sans: "Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale — mobile first (16px base). Desktop sizes come from clamp() upper bounds. */
  --fs-xs:0.8125rem;                              /* 13px  captions, legal */
  --fs-sm:0.875rem;                               /* 14px  labels, meta */
  --fs-base:1rem;                                 /* 16px  body (never smaller on mobile) */
  --fs-md:clamp(1.0625rem,0.98rem + 0.35vw,1.1875rem);  /* 17→19px lede */
  --fs-lg:clamp(1.125rem,1.05rem + 0.3vw,1.25rem);      /* 18→20px card titles */
  --fs-xl:clamp(1.5rem,1.25rem + 1.1vw,2.125rem);       /* 24→34px section titles */
  --fs-2xl:clamp(2rem,1.45rem + 2.4vw,3.25rem);         /* 32→52px page headline */

  /* Spacing — 4pt scale */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px;

  /* Shape */
  --r:16px;      /* cards, panels */
  --r-sm:10px;   /* inputs, buttons */

  /* Motion — one rhythm for the whole site */
  --dur-fast:150ms; --dur-base:220ms; --dur-slow:900ms;
  --ease-out:cubic-bezier(.2,.8,.2,1);
}
