/* ==========================================================================
   Glade Robotics — Design Tokens (v1.0)
   Single source of truth for color, type, spacing, and motion.
   Documented in /brand. Change a value here and every page follows.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* ---- Core palette (sampled from the master logo artwork) ---- */
  --glade-blue: #2440ff;   /* Primary. The mark. Use sparingly, with intent. */
  --glade-ink: #0b0d10;    /* Primary dark. Wordmark, dark surfaces.          */
  --glade-paper: #f4f4f1;  /* Primary light. Default page background.         */
  --glade-stone: #e4e5e0;  /* Secondary light surface, panels, dividers.       */
  --glade-slate: #4a4f57;  /* Secondary text. The "robotics" descriptor.       */

  /* ---- Supporting tints (derived; for UI states & dark-mode text) ---- */
  --glade-blue-600: #1a32d6; /* hover/pressed on blue                          */
  --glade-blue-300: #8a98ff; /* blue text/links on ink (AA on --glade-ink)     */
  --glade-blue-050: #e8ebff; /* faint blue wash on paper                       */
  --glade-ink-800: #15181d;  /* raised surface on ink                          */
  --glade-ink-700: #23272e;  /* hairlines on ink                               */
  --glade-slate-300: #a9adb5;/* secondary text on ink                          */
  --glade-line: #d3d4ce;     /* hairlines on paper                             */

  /* ---- Typography ---- */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid type scale (min @ 360px → max @ 1440px) */
  --text-display: clamp(2.75rem, 1.6rem + 5.2vw, 6.5rem); /* 44 → 104 */
  --text-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem);      /* 36 → 72  */
  --text-h2: clamp(1.75rem, 1.3rem + 2vw, 3rem);          /* 28 → 48  */
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);    /* 20 → 26  */
  --text-body-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); /* 17 → 21 */
  --text-body: 1rem;        /* 16 */
  --text-small: 0.875rem;   /* 14 */
  --text-label: 0.75rem;    /* 12 — mono, uppercase */

  --leading-tight: 1.02;
  --leading-snug: 1.18;
  --leading-body: 1.55;
  --tracking-display: -0.035em;
  --tracking-heading: -0.02em;
  --tracking-label: 0.12em;

  /* ---- Spacing (8pt grid) ---- */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;   --space-6: 2rem;    --space-7: 3rem;    --space-8: 4rem;
  --space-9: 6rem;     --space-10: 8rem;   --space-11: 12rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --max-width: 1360px;

  /* ---- Shape ---- */
  --radius-0: 0;        /* default: square, like the mark */
  --radius-icon: 22%;   /* app icon only */
  --hairline: 1px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 160ms;
  --duration-base: 320ms;
  --duration-slow: 900ms;
}
