/*
 * Tile Key: design tokens
 * A dark, exact, workshop feel. Near-black canvas framed by hairline rails, light-weight grotesk
 * headlines, mono caps for every label, and five saturated "key" colors that only ever appear as
 * small solid squares or outlined tags, each tied to one category. The hero is a measured board:
 * a hairline grid with a red "now" axis and dimension labels.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500&family=Spline+Sans+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: almost black, stepped up in small amounts */
  --tk-void: #09090a;        /* page background */
  --tk-panel: #131315;       /* bars, tabs, cards */
  --tk-panel-2: #1c1c1f;     /* hover, inputs, raised chips */
  --tk-rule: #26262a;        /* every hairline and grid line */
  --tk-rule-2: #3a3a40;      /* stronger lines: active borders, frame rails */

  /* Text */
  --tk-chalk: #edebe5;       /* headlines and body */
  --tk-dim: #8f8d88;         /* leads and secondary text */
  --tk-faint: #5c5b58;       /* captions, disabled */

  /* Key colors: one per category, used as 10px squares, outlined tags and one active tab tint */
  --tk-lime: #92e04c;
  --tk-orchid: #e26bd9;
  --tk-ember: #f0742e;
  --tk-amber: #eab531;
  --tk-sky: #46c2e8;

  /* Axis colors, only inside the measured board */
  --tk-axis-x: #c8343a;
  --tk-axis-y: #3f9d55;
  --tk-trace: #4f6fe0;

  /* The main action is sky with dark text; the second action is chalk with dark text */
  --tk-action: var(--tk-sky);
  --tk-action-ink: #061218;

  /* Type */
  --tk-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tk-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --tk-text-hero: clamp(42px, 6.4vw, 80px);
  --tk-text-h2: clamp(30px, 3.8vw, 46px);
  --tk-text-h3: 26px;
  --tk-text-lead: 17px;
  --tk-text-body: 15px;
  --tk-text-small: 13px;
  --tk-text-label: 11.5px;   /* mono caps labels */

  --tk-tracking-hero: -.025em;
  --tk-tracking-label: .06em;

  /* Shape: square. 2px corners at most, no shadows, hairlines everywhere */
  --tk-radius: 2px;
  --tk-radius-0: 0;
  --tk-hair: 1px solid var(--tk-rule);
  --tk-hair-2: 1px solid var(--tk-rule-2);
  --tk-key: 10px;            /* size of a key square */
  --tk-grid: 56px;           /* board grid cell */

  /* Space */
  --tk-section: clamp(72px, 9vw, 120px);
  --tk-frame: 1200px;        /* the railed frame */
  --tk-container: 920px;     /* content inside the frame */
  --tk-narrow: 680px;

  /* Motion: quick and linear, like a cursor snapping */
  --tk-snap: cubic-bezier(.3, 0, .2, 1);
}
