/* Portfolio tokens. Every colour, size and space used by components comes from here.
   Layout concept: a single readable column with a fact rail beside it on wide screens;
   the rainbow is the tag legend, one hue per facet. Decoration that spans every facet
   (rainbow mark, stripes, rainbow edges) uses the softer --mark-* hues. */
:root {
  /* Neutrals: cool, with a slight violet bias */
  --bg: #f7f7fb;
  --surface: #ffffff;
  --fg: #1c1a28;
  --muted: #5e5b70;
  --line: #e3e2ec;
  --link: #3346d6;
  --focus: #3346d6;

  /* Facet hues: the rainbow, in facet order.
     company, industry, role, stage, technology and tooling, problem theme */
  --facet-company: #e0464b;
  --facet-industry: #ea6a12;
  --facet-role: #c99a00;
  --facet-stage: #2f9e63;
  --facet-tech: #1a86e6;
  --facet-theme: #8a4cc4;
  /* Mark hues: the rainbow as decoration (logo mark, stripes, rainbow edges). Pastel on light
     backgrounds; full strength in dark mode. Tags and text keep --facet-* for legibility. */
  --mark-company: #f2a0a3;
  --mark-industry: #f6b98a;
  --mark-role: #f0d67c;
  --mark-stage: #96d3ae;
  --mark-tech: #94c2f0;
  --mark-theme: #c9a9e8;

  /* Type */
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --casual-display: "CASL" 0.6;
  --casual-body: "CASL" 0;
  --mono-on: "MONO" 1, "CASL" 0;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.625rem;
  --text-2xl: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --leading-body: 1.6;
  --leading-tight: 1.15;

  /* Space (8px steps) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --measure: 66ch;
  --page-max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131219;
    --surface: #1b1a24;
    --fg: #ecebf4;
    --muted: #a4a1b8;
    --line: #2d2b3b;
    --link: #8f9cff;
    --focus: #8f9cff;
    --facet-company: #ff6b6f;
    --facet-industry: #ff8d3d;
    --facet-role: #f0c03a;
    --facet-stage: #4cc483;
    --facet-tech: #4fa8ff;
    --facet-theme: #b783ec;
    --mark-company: #ff6b6f;
    --mark-industry: #ff8d3d;
    --mark-role: #f0c03a;
    --mark-stage: #4cc483;
    --mark-tech: #4fa8ff;
    --mark-theme: #b783ec;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131219;
  --surface: #1b1a24;
  --fg: #ecebf4;
  --muted: #a4a1b8;
  --line: #2d2b3b;
  --link: #8f9cff;
  --focus: #8f9cff;
  --facet-company: #ff6b6f;
  --facet-industry: #ff8d3d;
  --facet-role: #f0c03a;
  --facet-stage: #4cc483;
  --facet-tech: #4fa8ff;
  --facet-theme: #b783ec;
  --mark-company: #ff6b6f;
  --mark-industry: #ff8d3d;
  --mark-role: #f0c03a;
  --mark-stage: #4cc483;
  --mark-tech: #4fa8ff;
  --mark-theme: #b783ec;
  color-scheme: dark;
}
