/* ==========================================================================
   BeTechified design tokens — the single source of colours, type and spacing.
   Change a value here and it updates everywhere.
   ========================================================================== */
:root {
  /* Brand: one red, measured from the official BeTechified mark (#CB3D2B).
     Darker shades are for hover/pressed states and small red text. */
  --red-50: #fbefed;
  --red-100: #f5d8d4;
  --red-200: #ebb4ac;
  --red-600: #cb3d2b; /* BeTechified red */
  --red-700: #b23224;
  --red-800: #96291d;

  /* Neutrals */
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;

  /* Status */
  --green-50: #f0fdf4;
  --green-200: #bbf7d0;
  --green-700: #15803d;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-700: #b45309;
  --blue-50: #eff6ff;
  --blue-200: #bfdbfe;
  --blue-700: #1d4ed8;

  /* Semantic */
  --color-bg: var(--gray-50);
  --color-surface: var(--white);
  --color-surface-muted: var(--gray-100);
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-500);
  --color-text-subtle: var(--gray-600);
  --color-border: var(--gray-200);
  --color-border-strong: var(--gray-300);
  --color-primary: var(--red-600);
  --color-primary-hover: var(--red-700);
  --color-primary-active: var(--red-800);
  --color-primary-soft: var(--red-50);
  --color-danger: var(--red-700);
  --color-ink: var(--black);
  --focus-ring: 0 0 0 3px rgba(203, 61, 43, 0.3);

  /* Typography (system fonts: fast on slow networks, no third-party requests) */
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

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

  /* Shape & depth */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  --shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.05);
  --shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.08), 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 10, 10, 0.08), 0 2px 4px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 16px 40px rgba(10, 10, 10, 0.14), 0 4px 12px rgba(10, 10, 10, 0.06);

  /* Layout */
  --sidebar-width: 256px;
  --topbar-height: 64px;
  --content-max: 1200px;
  --gutter: 16px;

  --transition: 150ms ease;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}
