/* ============================================================
   PINEDIT DESIGN SYSTEM — TOKENS
   Palette per brief: white bg, light-gray cards, blue primary,
   teal accent, green success, red error, subtle gradients.
   ============================================================ */

:root {
  /* ---- Color: surfaces ---- */
  --color-bg: #FFFFFF;
  --color-surface: #F6F7F9;
  --color-surface-hover: #EFF1F4;
  --color-border: #E5E8EC;
  --color-border-strong: #D5D9E0;

  /* ---- Color: text ---- */
  --color-text: #0F172A;
  --color-text-muted: #5B6472;
  --color-text-faint: #94A0AF;
  --color-text-on-primary: #FFFFFF;

  /* ---- Color: brand ---- */
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #EEF3FF;
  --color-accent: #0D9488;
  --color-accent-light: #E6F7F5;

  /* ---- Color: status ---- */
  --color-success: #16A34A;
  --color-success-light: #EAF9EF;
  --color-error: #DC2626;
  --color-error-light: #FDEDED;
  --color-warning: #D97706;
  --color-warning-light: #FEF3E2;

  /* ---- Gradients (used sparingly — hero accents, active states) ---- */
  --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);

  /* ---- Typography ---- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-md: 1.125rem;   /* 18px */
  --text-lg: 1.375rem;   /* 22px */
  --text-xl: 1.75rem;    /* 28px */
  --text-2xl: 2.25rem;   /* 36px */
  --text-3xl: 3rem;      /* 48px */

  --leading-tight: 1.2;
  --leading-normal: 1.55;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* ---- Spacing scale (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* ---- Shadow ---- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.25);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;

  /* ---- Layout ---- */
  --container-max: 1200px;
  --navbar-height: 68px;
}

@media (prefers-color-scheme: dark) {
  /* Reserved for the Future-Ready dark mode pass — intentionally not
     activated yet so Phase 1 ships one deliberate, well-tested theme. */
}
