/* KlasseKit design tokens. Source of truth for colors, type, radii and spacing. */

:root {
  /* Neutrals */
  --kk-ink: #1f1d1a;          /* body text, primary buttons */
  --kk-ink-hover: #3a3631;
  --kk-muted: #5a554d;        /* secondary text */
  --kk-faint: #8a8378;        /* tertiary text, empty states */
  --kk-disabled: #a39c90;
  --kk-line: #e4dfd7;         /* borders, dashed placeholders */
  --kk-line-soft: #ebe7e0;    /* row dividers */
  --kk-control-off: #c9c2b6;  /* unchecked checkbox/radio border */
  --kk-fill: #f4f1ec;         /* input fill, panels, secondary surfaces */
  --kk-paper: #fdfcfa;        /* page background, tool stage */
  --kk-error: oklch(0.48 0.16 25);

  /* Tool color: set --kk-hue per tool; the three steps derive from it */
  --kk-hue: 250;
  --kk-tool-soft: oklch(0.94 0.045 var(--kk-hue));   /* chips, hover rows */
  --kk-tool: oklch(0.86 0.085 var(--kk-hue));        /* tool frame, tiles, accent buttons */
  --kk-tool-ink: oklch(0.30 0.10 var(--kk-hue));     /* text/focus ring on tool color */

  /* Tool hues */
  --kk-hue-holdmaskinen: 250;
  --kk-hue-afstemning: 330;
  --kk-hue-elev: 150;
  --kk-hue-timer: 70;
  --kk-hue-quiz: 290;
  --kk-hue-hjul: 25;
  /* Extra team colors in Holdmaskinen, cycled: 250 150 70 330 290 25 200 110 */

  /* Type */
  --kk-font: 'Archivo', system-ui, sans-serif;
  --kk-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --kk-text-board: 850 160px/0.9 var(--kk-font);    /* projector numbers, ls -0.03em */
  --kk-text-display: 850 56px/1 var(--kk-font);     /* ls -0.025em */
  --kk-text-title: 800 32px/1.1 var(--kk-font);     /* ls -0.015em */
  --kk-text-heading: 700 22px/1.3 var(--kk-font);
  --kk-text-body: 400 17px/1.5 var(--kk-font);
  --kk-text-label: 700 15px/1.3 var(--kk-font);
  --kk-text-small: 400 14px/1.45 var(--kk-font);
  --kk-text-mono: 500 13px/1.4 var(--kk-font-mono);

  /* Radii */
  --kk-radius-tile: 22px;     /* tiles, cards, panels */
  --kk-radius-stage: 16px;    /* stage inside tool frame */
  --kk-radius-control: 14px;  /* buttons, inputs (56px height) */
  --kk-radius-control-lg: 18px; /* 72–80px board buttons */
  --kk-radius-control-sm: 10px; /* 40px buttons */
  --kk-radius-pill: 99px;

  /* Spacing (4-step) */
  --kk-space-1: 4px;  --kk-space-2: 8px;  --kk-space-3: 12px; --kk-space-4: 16px;
  --kk-space-5: 24px; --kk-space-6: 32px; --kk-space-7: 48px;

  /* Control heights */
  --kk-h-sm: 40px; --kk-h-md: 56px; --kk-h-lg: 72px; --kk-h-board: 80px;

  /* Motion */
  --kk-ease-out: cubic-bezier(.3,.8,.25,1);
  --kk-ease-inout: cubic-bezier(.4,0,.2,1);
  --kk-press-scale: .97;
}
