/* tokens.css - Frost & Graphite design tokens (docs/SPEC.md 8.5). Names are a contract. */

:root {
  /* Surfaces: frosted cool greys */
  --ground-1: #DADDE1;
  --ground-2: #CDD1D5;
  --stage-1: #E3E6E9;
  --stage-2: #DCDFE3;
  --panel-1: #EEF0F2;
  --panel-2: #E5E8EB;
  --card-1: #F8F9FA;
  --card-2: #EEF0F2;
  --raised-1: #FFFFFF;
  --raised-2: #F1F2F4;
  --well: #DEE1E5;
  --soft: #E8EAED;

  /* Ink and signals */
  --ink: #131416;
  --ink-2: #4A4F57;
  --ink-3: #5E646C;
  --graphite-1: #34363B;
  --graphite-2: #141517;
  --lime: #D4F54A;      /* live, now, waiting on you - only */
  --ember: #E5482A;     /* failed, errors - only */

  /* Derived */
  --lime-soft: rgba(212, 245, 74, 0.35);
  --ember-soft: rgba(229, 72, 42, 0.12);
  --line: rgba(19, 20, 22, 0.08);
  --line-strong: rgba(19, 20, 22, 0.16);
  --on-graphite: #F4F5F6;

  /* Gradients (top to bottom) */
  --grad-ground: linear-gradient(180deg, var(--ground-1), var(--ground-2));
  --grad-stage: linear-gradient(180deg, var(--stage-1), var(--stage-2));
  --grad-panel: linear-gradient(180deg, var(--panel-1), var(--panel-2));
  --grad-card: linear-gradient(180deg, var(--card-1), var(--card-2));
  --grad-raised: linear-gradient(180deg, var(--raised-1), var(--raised-2));
  --grad-graphite: linear-gradient(180deg, var(--graphite-1), var(--graphite-2));

  /* Patterns. Hatch = queued / waiting. Dot grid = AI surfaces (use with background-size 10px). */
  --hatch: repeating-linear-gradient(135deg, rgba(19, 20, 22, 0.055) 0 1px, transparent 1px 6px);
  --dots: radial-gradient(circle, rgba(19, 20, 22, 0.12) 1px, transparent 1.5px);

  /* Fonts */
  --font-ui: 'Outfit', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Radii */
  --r-keycap: 6px;
  --r-tag: 8px;
  --r-segment: 10px;
  --r-link: 12px;
  --r-control: 14px;
  --r-row: 20px;
  --r-card: 28px;
  --r-shell: 32px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 28px;

  /* Control heights */
  --h-sm: 36px;
  --h-md: 40px;
  --h-lg: 44px;

  /* Shadows: soft, layered */
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(19, 20, 22, 0.06), 0 12px 28px -14px rgba(19, 20, 22, 0.22);
  --shadow-raised: inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(19, 20, 22, 0.06), 0 6px 14px -6px rgba(19, 20, 22, 0.25);
  --shadow-pill: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(19, 20, 22, 0.3), 0 8px 16px -8px rgba(19, 20, 22, 0.6);
  --shadow-inset: inset 0 1px 2px rgba(19, 20, 22, 0.12), inset 0 0 0 1px rgba(19, 20, 22, 0.04);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}
