/*
 * Weft Mosaic: design tokens
 * A near-black gallery wall. A narrow mono sidebar of lowercase links under small cyan labels,
 * and beside it an edge-to-edge, gapless mosaic of square tiles, each one a pattern drawn in CSS
 * (stripes, checks, chevrons, dots). The tiles carry all the color; the chrome stays gray and quiet.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700&family=Instrument+Sans:wght@400;500;600&family=Martian+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: the wall is almost black, the rail one step lighter */
  --wm-void: #111113;
  --wm-rail: #18181b;
  --wm-raise: #202024;       /* cards and inputs on the void */
  --wm-line: #2b2b31;        /* every border and divider */
  --wm-line-2: #3a3a42;      /* hover borders, focused inputs */

  /* Text */
  --wm-paper: #ebe8e2;       /* headlines and body */
  --wm-mute: #918f98;        /* secondary text, rail links at rest */
  --wm-faint: #5f5e66;       /* captions, meta */

  /* The one chrome accent: rail labels, links, focus, the floating pill text */
  --wm-cyan: #3fb4e6;
  --wm-cyan-dim: #1d4b60;

  /* Thread colors: only inside swatch tiles and small swatch chips, never on chrome */
  --wm-madder: #c4462f;
  --wm-indigo: #2f4b8e;
  --wm-saffron: #e2a634;
  --wm-moss: #5f7c3b;
  --wm-rose: #d88ea1;
  --wm-oat: #d6cbb4;
  --wm-teal: #2b7a78;
  --wm-plum: #5a2f4f;

  /* Type */
  --wm-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --wm-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wm-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wm-text-hero: clamp(40px, 5.4vw, 76px);
  --wm-text-h2: clamp(28px, 3.2vw, 40px);
  --wm-text-h3: 20px;
  --wm-text-lead: 18px;
  --wm-text-body: 16px;
  --wm-text-small: 14px;
  --wm-text-rail: 12px;      /* mono rail links and labels */
  --wm-text-micro: 11px;

  --wm-tracking-hero: -.035em;
  --wm-tracking-h2: -.025em;

  /* Shape: square tiles with no gaps, thin lines, no shadows. Pills only for the floating action */
  --wm-radius-0: 0;
  --wm-radius-sm: 4px;       /* inputs, tags, small cards */
  --wm-radius-pill: 999px;
  --wm-border: 1px solid var(--wm-line);
  --wm-tile: 220px;          /* minimum tile edge on the wall */
  --wm-rail-w: 232px;
  --wm-float-shadow: 0 6px 24px rgba(0, 0, 0, .45);  /* only on the floating pill */

  /* Space */
  --wm-pad: clamp(20px, 3vw, 40px);
  --wm-section: clamp(56px, 7vw, 96px);
  --wm-measure: 680px;

  /* Motion */
  --wm-ease: cubic-bezier(.2, .7, .2, 1);
}
