/* CrackIt AI — Design tokens (frozen 2026-11-01)
   Source: HANDOFF.md + CrackIt App v2.dc.html
   Do NOT hardcode colors/sizes elsewhere — use these variables. */

:root {
  /* ═══ Colors ═══ */
  --ck-ground: oklch(0.972 0.007 240);
  --ck-surface: #fff;
  --ck-ink: oklch(0.23 0.025 255);
  --ck-ink-secondary: oklch(0.46 0.02 255);
  --ck-rule: oklch(0.94 0.006 250);
  --ck-rule-strong: oklch(0.88 0.01 250);

  /* Primary teal */
  --ck-primary: oklch(0.5 0.115 180);
  --ck-primary-hover: oklch(0.45 0.11 180);
  --ck-primary-tint: oklch(0.945 0.035 178);
  --ck-primary-fg: #fff;

  /* Semantic */
  --ck-plum: oklch(0.52 0.12 300);
  --ck-amber: oklch(0.7 0.15 70);
  --ck-coral: oklch(0.6 0.17 28);
  --ck-green: oklch(0.65 0.2 145);

  /* Tints for backgrounds */
  --ck-amber-tint: oklch(0.958 0.025 70);
  --ck-coral-tint: oklch(0.958 0.025 25);
  --ck-green-tint: oklch(0.955 0.035 145);
  --ck-plum-tint: oklch(0.955 0.03 300);

  /* ═══ Typography ═══ */
  --ck-font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ck-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, 'Cascadia Code', monospace;
  --ck-text-xs: 12px;
  --ck-text-sm: 13.5px;
  --ck-text-base: 15px;
  --ck-text-md: 16px;
  --ck-text-lg: 18px;
  --ck-text-xl: 22px;
  --ck-text-2xl: 28px;
  --ck-text-3xl: 36px;
  --ck-leading-tight: 1.2;
  --ck-leading-normal: 1.5;
  --ck-leading-relaxed: 1.7;
  --ck-tracking-tight: -0.02em;

  /* ═══ Spacing ═══ */
  --ck-space-1: 4px;
  --ck-space-2: 8px;
  --ck-space-3: 12px;
  --ck-space-4: 16px;
  --ck-space-5: 20px;
  --ck-space-6: 24px;
  --ck-space-8: 32px;
  --ck-space-10: 40px;
  --ck-space-12: 48px;
  --ck-space-16: 64px;

  /* ═══ Radii ═══ */
  --ck-radius-sm: 6px;
  --ck-radius-md: 9px;
  --ck-radius-lg: 14px;
  --ck-radius-xl: 18px;
  --ck-radius-dialog: 22px;
  --ck-radius-pill: 999px;

  /* ═══ Shadows ═══ */
  --ck-shadow-sm: 0 1px 2px oklch(0.23 0.025 255 / 0.06);
  --ck-shadow-md: 0 2px 8px oklch(0.23 0.025 255 / 0.08);
  --ck-shadow-lg: 0 4px 16px oklch(0.23 0.025 255 / 0.10);
  --ck-shadow-xl: 0 8px 32px oklch(0.23 0.025 255 / 0.12);
  --ck-shadow-focus: 0 0 0 3px oklch(0.92 0.045 178);

  /* ═══ Motion ═══ */
  --ck-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ck-duration-fast: 200ms;
  --ck-duration-normal: 280ms;
  --ck-duration-slow: 320ms;

  /* ═══ Breakpoints (reference only — use in media queries) ═══ */
  /* --ck-bp-mobile: 760px; */
  /* --ck-bp-tablet: 900px; */
  /* --ck-bp-split: 1180px; */

  /* ═══ Layout ═══ */
  --ck-header-h: 64px;
  --ck-rail-w: 240px;
  --ck-rail-w-collapsed: 56px;
  --ck-content-max: 1200px;
  --ck-tap-target: 44px;
}

/* Score colors */
.ck-score-pass { color: var(--ck-primary); }
.ck-score-border { color: var(--ck-amber); }
.ck-score-reject { color: var(--ck-coral); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --ck-duration-fast: 0ms;
    --ck-duration-normal: 0ms;
    --ck-duration-slow: 0ms;
  }
}
