/* ClipHunter design tokens. The single source of colours, spacing, type and elevation. */

:root {
  /* Colour */
  --color-bg: #f7f8fc;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-surface-muted: #f2f4f9;
  --color-surface-dark: #1b2030;
  --color-surface-dark-raised: #262c3f;

  --color-primary: #5b5cf0;
  --color-primary-hover: #4a4bdb;
  --color-primary-active: #3f40c4;
  --color-primary-soft: #ececfe;
  --color-primary-ring: rgb(91 92 240 / 0.35);

  --color-secondary: #e9ecf4;
  --color-secondary-hover: #dfe3ee;

  --color-text: #141a2b;
  --color-text-muted: #5a6275;
  --color-text-subtle: #737b8c;
  --color-text-inverse: #ffffff;
  --color-text-inverse-muted: #b7bdcc;

  --color-border: #e3e6ef;
  --color-border-strong: #cdd2df;

  --color-success: #1f9d63;
  --color-success-soft: #e6f6ee;
  --color-warning: #b7791f;
  --color-warning-soft: #fdf3e2;
  --color-error: #d64545;
  --color-error-soft: #fdecec;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgb(20 26 43 / 0.06);
  --shadow-md: 0 8px 24px rgb(20 26 43 / 0.08);
  --shadow-lg: 0 24px 60px rgb(20 26 43 / 0.12);
  --shadow-primary: 0 8px 20px rgb(91 92 240 / 0.3);

  /* Spacing (4px scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Typography */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --text-h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Layout */
  --container: 1120px;
  --container-narrow: 720px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-height: 72px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration-fast: 120ms;
  --duration: 200ms;
}
