/* Flowfield Holdings design system — tokens.
   Canonical source for every Flowfield surface. Variables only: fonts are declared in
   fonts.css, so a consumer with its own font loading (the deck) can take the tokens alone.
   The standard is flowfieldholdings.com (Flowfield-Holdings/website); every hue below is
   taken from it or from the email signature, except where marked DERIVED.
   Change a value here first, then sync every consumer in the same pass (README, "Consumers"). */

:root {
  /* ---------- Type families ---------- */
  /* Syne = display (wordmark, headings, big figures). Geist = body. Geist Mono = labels. */
  --font-display: 'Syne', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* ---------- Field palette: the six line colours of the site's flow field ---------- */
  --deep-teal: #4E6B66;
  --teal: #6B857C;
  --sage: #8A9B90;
  --pale-sage: #A9B3A6;
  --olive: #7E8B6E;   /* the "highlighter" family, light surfaces */
  --sand: #C3BCA8;    /* the "highlighter" family, dark surfaces */

  /* ---------- Dark surfaces (site ground) ---------- */
  --ground: #12171A;
  --ground-soft: #1E2A2A;        /* from the email signature */
  --basalt: #142022;             /* the FF mark's disc (email-signature/mark-source.html) */
  --on-dark: #E4E8E2;            /* site wordmark; 14.6:1 on ground */
  --on-dark-muted: #8A9B90;      /* site subtitle; 6.2:1 */
  --on-dark-faint: #55655F;      /* site footer; 2.9:1 — decoration/footers only, never body */
  --rule-dark: rgba(228,232,226,0.12);
  --rule-dark-strong: rgba(228,232,226,0.24);
  /* From the deck: */
  --tint-dark: rgba(228,232,226,0.07);      /* faint fill on dark: control tracks */
  --rule-panel: rgba(228,232,226,0.16);     /* hairline on the deep-teal panel; floating controls */
  --rule-dark-bold: rgba(228,232,226,0.32); /* data marks on dark: 2px timeline, ghost bars */
  --link-rule-on-dark: rgba(195,188,168,0.4); /* sand link underline on dark */
  --shadow-float: 0 6px 22px rgba(0,0,0,0.40); /* the ONLY shadow: screen-only floating controls */

  /* ---------- Light surfaces ---------- */
  --paper: #E2E0D9;              /* from the email signature; warm stone */
  --paper-soft: #D6D3CA;         /* cards on paper; from the email signature */
  --ink: #12171A;                /* 13.7:1 on paper */
  --ink-soft: #3F4F4B;           /* DERIVED; body secondary, 6.5:1 on paper, 5.8:1 on paper-soft */
  --ink-muted: #55655F;          /* labels; 4.7:1 on paper — paper only, not on paper-soft */
  --rule-light: rgba(18,23,26,0.12);
  --rule-light-strong: rgba(18,23,26,0.24);
  --stone: #B3B2AE;              /* from the deck; neutral data mark on light (fill only):
                                    the out-of-scope segment of a chart */

  /* ---------- Roles: one accent (teal), one highlight (olive/sand) ---------- */
  /* Never reuse a fill colour for small type: small type takes the -ink variants. */
  --accent: var(--deep-teal);    /* fills, bars, key lines on light; large display type on light */
  --accent-ink: #1B3C39;         /* small accent type on light; 9.1:1 (from the email signature).
                                    Also the deep-teal panel ground (deck "dark panel") */
  --accent-soft: rgba(78,107,102,0.16); /* deep-teal tint: check discs, precedent chips */
  --accent-on-dark: var(--sage); /* accent lines on dark; 6.2:1 */
  --highlight: var(--olive);     /* fill only on light (2.7:1 — not for type) */
  --highlight-ink: #5C6648;      /* DERIVED olive-ink for type on light; 4.6:1 */
  --highlight-on-dark: var(--sand); /* emphasis type or fill on dark; 9.5:1 */

  /* ---------- Status: muted, for state only (confidence, checks, errors) ---------- */
  /* DERIVED 20 Oct 2026, toned to the field palette. Same pattern as the highlight:
     plain = fill on light (>=3:1 on paper, non-text only); -ink = type on light
     (>=4.9:1 on paper and paper-soft); -on-dark = type or fill on dark (>=5.2:1 on ground-soft).
     Information/neutral state uses the accent; there is no blue. */
  --success: #6A8460;
  --success-ink: #435C3B;        /* 5.6:1 paper, 5.0:1 paper-soft */
  --success-on-dark: #8FA67E;    /* 6.8:1 ground, 5.6:1 ground-soft */
  --caution: #97773A;
  --caution-ink: #6B5024;        /* 5.7:1 paper, 5.0:1 paper-soft */
  --caution-on-dark: #C9A866;    /* 8.0:1 ground, 6.5:1 ground-soft */
  --danger: #A86454;
  --danger-ink: #843F30;         /* 5.8:1 paper, 5.1:1 paper-soft */
  --danger-on-dark: #C98B7B;     /* 6.4:1 ground, 5.3:1 ground-soft */

  /* ---------- Type scale, screen (web, docs, apps) ---------- */
  /* DERIVED from the deck's 1920x1080 scale at roughly half size, rounded to whole px. */
  --text-display: 56px;   /* Syne 400, -0.035em, line 1.04 */
  --text-h1: 40px;        /* Syne 400, -0.025em, line 1.08 */
  --text-h2: 28px;        /* Syne 400, -0.02em,  line 1.18 */
  --text-h3: 20px;        /* Geist 500, -0.01em */
  --text-body: 16px;      /* Geist 400, line 1.5 */
  --text-small: 14px;     /* Geist 400, line 1.45 */
  --text-label: 12px;     /* Geist Mono, uppercase, 0.12–0.16em */
  --text-figure: 64px;    /* Syne, lining figures, -0.04em, line 1 */

  /* ---------- Type scale, slides (1920x1080) — the investor deck's values ---------- */
  --slide-titleword: 220px;
  --slide-divider: 140px;
  --slide-figure-lg: 124px;
  --slide-figure: 104px;
  --slide-hero: 88px;
  --slide-h1: 64px;
  --slide-h2: 42px;
  --slide-body: 26px;
  --slide-eyebrow: 24px;
  --slide-small: 22px;
  --slide-tiny: 18px;
  --slide-fineprint: 13px;
  --slide-pad-x: 120px;
  --slide-pad-y: 110px;
  --slide-chrome-inset: 48px;

  /* ---------- Tracking ---------- */
  --track-wordmark: 0.26em;      /* site lockup "FLOWFIELD" (0.20em in small chrome) */
  --track-subtitle: 0.52em;      /* site lockup "HOLDINGS" */
  --track-label: 0.14em;         /* mono labels (0.06–0.18em by size: smaller = wider) */
  --track-display: -0.035em;

  /* ---------- Space (4px base) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 80px;
  --space-10: 120px;

  /* ---------- Shape ---------- */
  /* Square by default. Hairlines over shadows; no drop shadows. */
  --radius-0: 0;
  --radius-sm: 6px;              /* output pills */
  --radius-md: 8px;              /* cards on dark */
  --radius-pill: 999px;          /* tags; the mark is a full circle */
  --hairline: 1px;

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(.2,.7,.3,1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --field-speed: 8;              /* px/s the field's dashes travel; nothing else moves */
}
