/* BanterBox Brand Tokens — single source of truth for cross-platform primitives.
 *
 * MIRRORED at fiction-platform/frontend/src/styles/tokens/brand.css.
 * Keep both files identical. If you edit one, edit the other.
 *
 * Scope: values truly shared across policy, education, and fiction today —
 * font families, font weights, type scale, spacing scale, radii, easings,
 * semantic state colors (success/warning/error/info), shadows.
 *
 * Out of scope: per-product brand colors (policy navy/burgundy, education blue,
 * fiction indigo). Those live in each platform's own token file because the
 * products have distinct visual identities by design.
 */

:root {
  /* ---------- Font families ---------- */
  --brand-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --brand-font-serif: 'Crimson Text', 'Georgia', serif;
  --brand-font-serif-display: 'Crimson Pro', 'Georgia', serif;
  --brand-font-serif-literary: 'Libre Baskerville', 'Georgia', serif;
  --brand-font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  --brand-font-dyslexic: 'OpenDyslexic', sans-serif;

  /* ---------- Font weights ---------- */
  --brand-font-weight-normal: 400;
  --brand-font-weight-medium: 500;
  --brand-font-weight-semibold: 600;
  --brand-font-weight-bold: 700;

  /* ---------- Type scale (rem) ---------- */
  --brand-text-xs: 0.75rem;      /* 12px */
  --brand-text-sm: 0.875rem;     /* 14px */
  --brand-text-base: 1rem;       /* 16px */
  --brand-text-lg: 1.125rem;     /* 18px */
  --brand-text-xl: 1.25rem;      /* 20px */
  --brand-text-2xl: 1.5rem;      /* 24px */
  --brand-text-3xl: 1.75rem;     /* 28px */
  --brand-text-4xl: 2rem;        /* 32px */

  /* ---------- Line heights ---------- */
  --brand-leading-tight: 1.25;
  --brand-leading-snug: 1.4;
  --brand-leading-normal: 1.5;
  --brand-leading-relaxed: 1.7;

  /* ---------- Letter spacing ---------- */
  --brand-tracking-tight: -0.025em;
  --brand-tracking-normal: 0;
  --brand-tracking-wide: 0.025em;
  --brand-tracking-wider: 0.04em;

  /* ---------- Spacing scale (rem) ---------- */
  --brand-space-0: 0;
  --brand-space-px: 1px;
  --brand-space-0-5: 0.125rem;   /* 2px */
  --brand-space-1: 0.25rem;      /* 4px */
  --brand-space-2: 0.5rem;       /* 8px */
  --brand-space-3: 0.75rem;      /* 12px */
  --brand-space-4: 1rem;         /* 16px */
  --brand-space-5: 1.25rem;      /* 20px */
  --brand-space-6: 1.5rem;       /* 24px */
  --brand-space-8: 2rem;         /* 32px */
  --brand-space-10: 2.5rem;      /* 40px */
  --brand-space-12: 3rem;        /* 48px */
  --brand-space-16: 4rem;        /* 64px */
  --brand-space-20: 5rem;        /* 80px */
  --brand-space-24: 6rem;        /* 96px */

  /* ---------- Border radius ---------- */
  --brand-radius-sm: 0.125rem;   /* 2px */
  --brand-radius-base: 0.25rem;  /* 4px */
  --brand-radius-md: 0.375rem;   /* 6px */
  --brand-radius-lg: 0.5rem;     /* 8px */
  --brand-radius-xl: 0.75rem;    /* 12px */
  --brand-radius-2xl: 1rem;      /* 16px */
  --brand-radius-3xl: 1.5rem;    /* 24px */
  --brand-radius-full: 9999px;

  /* ---------- Motion: easing ---------- */
  --brand-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --brand-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --brand-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --brand-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --brand-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* ---------- Semantic state colors ---------- */
  --brand-success: #10b981;
  --brand-success-light: #d1fae5;
  --brand-success-dark: #065f46;
  --brand-warning: #f59e0b;
  --brand-warning-light: #fef3c7;
  --brand-warning-dark: #92400e;
  --brand-error: #ef4444;
  --brand-error-light: #fee2e2;
  --brand-error-dark: #991b1b;
  --brand-info: #3b82f6;
  --brand-info-light: #dbeafe;
  --brand-info-dark: #1e40af;

  /* ---------- Shadows ---------- */
  --brand-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --brand-shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --brand-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --brand-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --brand-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --brand-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
