/*
 * Tool Tray: design tokens
 * A precise, tool-like light style. A plain white page, tight grotesk headlines in near
 * black, one electric blue for actions and selection, and a monospace voice for commands
 * and labels. The signature is "the canvas": a framed drawing surface with small floating
 * tool palettes (a color swatch grid, a bottom toolbar of icon buttons) and a blue
 * selection box with square handles. Small radii, hairline borders, crisp layered shadows.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces */
  --tt-paper: #ffffff;
  --tt-canvas: #f6f6f8;
  --tt-tint: #eef3fe;
  --tt-line: #e4e5ea;
  --tt-line-strong: #cbcdd4;
  --tt-code-bg: #18191d;
  --tt-code-line: #2a2c33;

  /* Text */
  --tt-ink: #16171b;
  --tt-soft: #5d606a;
  --tt-faint: #9a9da6;
  --tt-code-text: #e8e9ee;
  --tt-code-dim: #8a8e9a;

  /* The one action color: buttons, links, selection, focus */
  --tt-blue: #2563eb;
  --tt-blue-deep: #1b4fd0;
  --tt-blue-soft: #dbe6fd;

  /* Swatch colors: only for drawn shapes, swatches and code syntax */
  --tt-swatch-violet: #a855d8;
  --tt-swatch-pink: #e66fa6;
  --tt-swatch-orange: #ec8a34;
  --tt-swatch-green: #239a68;
  --tt-swatch-red: #dd4747;
  --tt-swatch-sky: #4d9ff0;
  --tt-swatch-sun: #f4c74a;
  --tt-swatch-mint: #2fb784;
  --tt-swatch-rose: #f08b8b;

  /* Type */
  --tt-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tt-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --tt-text-hero: clamp(36px, 4.6vw, 60px);
  --tt-text-h2: clamp(28px, 3vw, 40px);
  --tt-text-h3: 19px;
  --tt-text-lead: clamp(16px, 1.3vw, 18px);
  --tt-text-body: 15px;
  --tt-text-prose: 17px;
  --tt-text-small: 13px;
  --tt-text-micro: 11px;

  --tt-tracking-tight: -.035em;
  --tt-tracking-head: -.02em;
  --tt-tracking-caps: .08em;

  /* Shape: small radii, hairlines, crisp shadows for floating palettes */
  --tt-radius-xs: 4px;
  --tt-radius-sm: 6px;
  --tt-radius: 8px;
  --tt-radius-lg: 12px;
  --tt-border: 1px solid var(--tt-line);
  --tt-border-strong: 1px solid var(--tt-line-strong);
  --tt-frame: 3px solid var(--tt-blue);
  --tt-shadow-palette: 0 0 0 1px rgba(22, 23, 27, .07), 0 2px 4px rgba(22, 23, 27, .06), 0 8px 24px rgba(22, 23, 27, .08);
  --tt-shadow-card: 0 0 0 1px rgba(22, 23, 27, .06), 0 1px 2px rgba(22, 23, 27, .05);
  --tt-shadow-lift: 0 0 0 1px rgba(22, 23, 27, .08), 0 6px 18px rgba(22, 23, 27, .1);
  --tt-focus: 0 0 0 3px var(--tt-blue-soft);
  --tt-dot-grid: radial-gradient(circle, var(--tt-line-strong) 1px, transparent 1.2px);
  --tt-dot-size: 18px 18px;

  /* Space */
  --tt-gutter: clamp(20px, 3vw, 40px);
  --tt-section: clamp(64px, 8vw, 112px);
  --tt-container: 1120px;
  --tt-narrow: 680px;

  /* Motion: quick and plain */
  --tt-ease: cubic-bezier(.2, .7, .2, 1);
  --tt-speed: .16s;
}
