/* ============================================
   Two Birds Innovation — Design System Tokens
   Version: 1.0 | 2026-04-15
   Source of truth for all colour, typography,
   spacing, and layout values across all repos.
   ============================================ */

/* ── Brand: Two Birds Innovation ────────────── */
:root {
  /* Primary */
  --tbi-blue: #0066CC;
  --tbi-blue-hover: #0052A3;
  --tbi-white: #FFFFFF;

  /* Secondary */
  --tbi-navy: #0D1B2A;
  --tbi-grey: #F5F5F5;
  --tbi-teal: #00897B;
  --tbi-teal-hover: #00796B;
  --tbi-amber: #FF8F00;
}

/* ── Brand: Digital Confidence Centre ───────── */
:root {
  /* Primary */
  --dcc-teal: #00897B;
  --dcc-teal-hover: #00796B;
  --dcc-white: #FFFFFF;
  --dcc-blue: #1565C0;
  --dcc-blue-hover: #0D47A1;

  /* Secondary */
  --dcc-sand: #FFF8E1;
  --dcc-green: #27AE60;
  --dcc-grey: #F5F5F5;
  --dcc-text: #333333;
}

/* ── Shared Semantic Tokens ─────────────────── */
:root {
  /* Text */
  --text-primary: #333333;
  --text-secondary: #5D6D7E;
  --text-muted: #5A6B78;
  --text-inverse: #FFFFFF;

  /* Backgrounds */
  --bg-page: #F5F5F5;
  --bg-card: #FFFFFF;
  --bg-warm: #FFF8E1;
  --bg-highlight: #EBF5FB;

  /* Status */
  --color-success: #27AE60;
  --color-warning: #FF8F00;
  --color-danger: #E74C3C;
  --color-info: #1565C0;

  /* Borders */
  --border-default: #D5DBDB;
  --border-light: #EAEDED;
  --border-focus: #0066CC;
}

/* ── Typography ─────────────────────────────── */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  /* Scale — base 18px (senior-friendly) */
  --text-xs: 0.75rem;    /* 12px — UI chrome only, never body */
  --text-sm: 0.875rem;   /* 14px — captions, timestamps */
  --text-base: 1rem;     /* 16-18px depending on html font-size */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */

  /* Weight */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line height */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.8;
}

/* ── Spacing ────────────────────────────────── */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
}

/* ── Layout ─────────────────────────────────── */
:root {
  --max-width-prose: 680px;
  --max-width-content: 900px;
  --max-width-wide: 1200px;
  --max-width-full: 1440px;

  --nav-height: 64px;
  --sidebar-width: 280px;
  --tap-target: 44px;
  --tap-target-lg: 48px;
}

/* ── Radius ─────────────────────────────────── */
:root {
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ── Shadows ────────────────────────────────── */
:root {
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* ── Transitions ────────────────────────────── */
:root {
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ── Dark Mode Overrides ────────────────────── */
[data-theme="dark"] {
  --text-primary: #E0E0E0;
  --text-secondary: #D0D0D0;
  --text-muted: #BDBDBD;
  --text-inverse: #1E1E1E;

  --bg-page: #1E1E1E;
  --bg-card: #2D2D2D;
  --bg-warm: #2E2A1A;
  --bg-highlight: #1B2631;

  --border-default: #444444;
  --border-light: #383838;
  --border-focus: #5DADE2;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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