/* Tekonest — design tokens. Identity: founder moodboard (design/10-identity), logo L4 "nid tressé", Tektur.
   Contrast ratios are measured against --color-paper (#FAFAF7); see design/04-design-system.md. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Tektur"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/tektur-medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* ── Colour: founder moodboard, 24 Oct 2026 (design/10-identity) ── */
  --color-paper: #F3EDE3;          /* Papier: page ground */
  --color-surface: #FBF8F3;        /* raised panels */
  --color-sunken: #EAE2D5;         /* Crème: quiet bands */
  --color-ink: #131114;            /* Nuit: text, logo — 16.1:1 */
  --color-ink-2: #4A4247;          /* secondary text — 8.3:1 (7.6 on Crème) */
  --color-ink-3: #675E63;          /* captions only — 5.4:1 (4.9 on Crème) */
  --color-line: #DDD4C7;           /* decorative hairlines (non-essential) */
  --color-line-strong: #857B81;    /* input borders, essential dividers — 3.5:1 */
  --color-signal: #612D45;         /* Prune: accent on light grounds (nav underline, strand) — 9.2:1 */
  --color-signal-text: #612D45;    /* Prune as text */
  --color-amber: #DD9349;          /* Ambre: accent on Nuit ONLY (7.5:1). 2.2:1 on Papier: never on light grounds */
  --color-on-dark: #F3EDE3;
  --color-on-dark-2: #C9BFB4;      /* secondary text on Nuit — 10.4:1 */

  /* ── Branch "cables": one ink colour; branches differ by line STYLE + name (never colour alone) ── */
  --cable-soirees: var(--color-ink);   --cable-soirees-text: var(--color-ink);
  --cable-reseau: var(--color-ink);    --cable-reseau-text: var(--color-ink);
  --cable-organiser: var(--color-ink); --cable-organiser-text: var(--color-ink);
  --cable-apprendre: var(--color-ink); --cable-apprendre-text: var(--color-ink);
  --cable-tekpractice: var(--color-ink); --cable-tekpractice-text: var(--color-ink);

  /* ── Status: ink SHAPE + text label (● existe · ◐ en développement · ○ en projet · □ plus tard) ── */
  --status-now: var(--color-ink);
  --status-dev: var(--color-ink);
  --status-prep: var(--color-ink);
  --status-later: var(--color-ink);

  /* ── Type ── */
  --font-display: "Tektur", "IBM Plex Sans", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-sm: 0.875rem;   /* 14 */
  --text-base: 1.0625rem;/* 17 */
  --text-lg: 1.25rem;    /* 20 */
  --text-xl: 1.5rem;     /* 24 */
  --text-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);   /* 28 → 40 */
  --text-3xl: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);   /* 32 → 52 */
  --text-hero: clamp(2.6rem, 1.2rem + 5.6vw, 5.75rem); /* 42 → 92 */
  --leading-tight: 1.02;
  --leading-text: 1.6;
  --tracking-display: -0.01em;
  --measure: 66ch;

  /* ── Space (4-pt base) ── */
  --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; --space-10: 128px;

  /* ── Grid ── */
  --page-max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --columns: 12;

  /* ── Borders and radius (hierarchy, not one radius everywhere) ── */
  --rule-cable: 3px;      /* branch cable rule */
  --rule-hair: 1px;
  --radius-control: 8px;  /* buttons, inputs */
  --radius-tag: 999px;    /* status tags only */
  --radius-panel: 2px;    /* panels stay nearly square: print-like calm */

  /* ── Motion ── */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-coil: 1400ms;

  /* ── Focus ── */
  --focus-color: var(--color-ink);   /* set to Papier inside dark areas */
  --focus-ring: 3px solid var(--focus-color);
  --focus-offset: 3px;
}
