/* ============================================================
   Founderie Labs: THEME
   ------------------------------------------------------------
   Brand kit v1.0 · Penpot version 'brand-kit-v1.0' · 2026-11-17

   The brand lives in two files copied from the brand kit by
   tools/brand_sync.py, and is never edited here:
     • brand.css       every brand token (colour, type, space, radius,
                       border, size, opacity) and the @font-face rules
     • web-tokens.css  container, fluid type, motion, focus, z-index

   This file only gives those tokens the short names site.css uses.
   Every value below is a var() onto a kit token; there are no raw
   values except where the kit has none (noted inline).

   To change the look: change Penpot, export a new brand kit, run
     python3 tools/brand_sync.py /path/to/brand-kit-vX.Y
   then bump ?v= on brand.css, web-tokens.css, theme.css and site.css
   in every page.

   Outside CSS (update by hand when the palette changes):
     • <meta name="theme-color"> in each page (= --color-bg-canvas)
     • site.webmanifest theme/background colour
     • og.png
   ============================================================ */

:root{
  /* ---------- 1. Brand accent ---------- */
  --accent:var(--color-bg-accent);              /* #FF5A1F: drawing tops, footer, marks */
  --accent-ink:var(--color-text-accent-ink);    /* #B8380A: small orange text and links on paper (5.0:1) */
  --accent-display:var(--color-orange-600);     /* #E8481A: large orange text on paper (3.4:1) */
  --accent-2:var(--color-orange-300);           /* #FF8A5C: orange text on dark */
  --on-accent:var(--color-text-on-accent);      /* ink on orange */
  --accent-soft:var(--color-bg-accent-soft);
  --molten:var(--gradient-molten);              /* button hover, drawing tops */
  --molten-text:var(--gradient-molten-text);    /* one accent phrase per headline */

  /* ---------- 2. Typography ---------- */
  --font:var(--font-sans);                      /* Inter Tight: text and UI */
  --font-heading:var(--font-display);           /* Onest: headings */
  --mono:var(--font-mono);                      /* JetBrains Mono: labels, numbers */
  --text-size:var(--type-body-size);
  --heading-weight:var(--weight-medium);
  --heading-tracking:var(--type-h1-letter-spacing);
  --line-height:var(--type-body-line-height);

  /* ---------- 3. Light surfaces & text ---------- */
  --paper:var(--color-bg-canvas);
  --white:var(--color-bg-surface);
  --panel:var(--color-bg-subtle);
  --line:var(--color-border-default);
  --line-2:var(--color-border-strong);
  --input-line:var(--color-border-input);       /* form borders: 3.3:1 on paper */
  --ink:var(--color-text-body);
  --ink-2:var(--color-text-secondary);
  --muted:var(--color-text-muted);
  --hdr-bg:color-mix(in srgb,var(--color-bg-canvas) calc(var(--opacity-header) * 100%),transparent);

  /* ---------- 4. Dark surfaces ---------- */
  --dark:var(--color-neutral-900);
  --dark-2:var(--color-dark-surface);
  --dark-line:var(--color-dark-line);
  --dark-text:var(--color-dark-text);
  --dark-muted:var(--color-dark-muted);
  --on-dark:var(--color-neutral-0);

  /* ---------- 5. Footer (solid accent, ink type: Penpot Footer) ---------- */
  --foot-bg:var(--color-bg-accent);
  --foot-ink:var(--color-neutral-900);

  /* ---------- 6. Illustrations (Penpot illo.*) ---------- */
  --illo-line:var(--color-illo-line);
  --illo-face:var(--color-illo-face);
  --illo-shade:var(--color-illo-shade);
  --illo-guide:var(--color-illo-guide);
  --illo-border:var(--border-illo);

  /* ---------- 7. Status colours ---------- */
  --ok-bg:var(--color-status-ok-bg);     --ok-ink:var(--color-status-ok-ink);     --ok-line:var(--color-status-ok-line);
  --err-bg:var(--color-status-error-bg); --err-ink:var(--color-status-error-ink); --err-line:var(--color-status-error-line);
  --note-bg:var(--color-status-note-bg); --note-ink:var(--color-status-note-ink); --note-line:var(--color-status-note-line);

  /* ---------- 8. Shape & layout ---------- */
  --radius:var(--radius-xs);             /* 6: inputs, menu items */
  --radius-lg:var(--radius-card);        /* 16: cards */
  --radius-xl:var(--radius-panel);       /* 20: big panels, footer */
  --pill:var(--radius-pill);
  --max:var(--container-max);
  --gutter:var(--container-gutter);      /* 20 on phones, 28 from 900px */
  --hdr-h:var(--size-header);
  --disabled:var(--opacity-disabled);

  /* ---------- 9. Motion & focus ---------- */
  --ease-out:var(--motion-ease-out);
  --t-fast:var(--motion-duration-fast);
  --t-base:var(--motion-duration-base);
  --t-slow:var(--motion-duration-slow);
  --t-enter:var(--motion-duration-enter);
  --focus:var(--focus-ring);             /* 2px ink, 2px offset */
}

/* The flat system has no shadows: there are deliberately no shadow tokens. */
