/**
 * Design tokens — IMH Group Distribution
 * Cinematic media palette from IMH logo: navy, steel blue, one film red.
 */
:root {
  /* Brand */
  --brand-name: "IMH Group";
  --brand-product: "Distribution";

  /* Color — surfaces (app shell, light enterprise density) */
  --color-canvas: #e9ecef;
  --color-canvas-deep: #dfe3e8;
  --color-surface: #f7f8fa;
  --color-surface-raised: #ffffff;
  --color-surface-sunken: #e4e8ed;
  --color-ink: #0f1419;
  --color-ink-secondary: #3d4654;
  --color-ink-muted: #6b7585;
  --color-ink-faint: #9aa3b2;
  --color-border: rgba(15, 20, 25, 0.1);
  --color-border-strong: rgba(15, 20, 25, 0.18);

  /* Accent — single IMH film red (accents, CTAs, focus, locale chrome) */
  --color-accent: #c41e1a;
  --color-accent-hover: #9b1512;
  --color-accent-bright: color-mix(in srgb, var(--color-accent) 78%, white);
  --color-accent-soft: rgba(196, 30, 26, 0.1);
  --color-accent-soft-strong: rgba(196, 30, 26, 0.18);
  --color-accent-ring: rgba(196, 30, 26, 0.4);
  --color-accent-border: rgba(196, 30, 26, 0.45);
  --color-accent-ink: #ffffff;
  --color-accent-tint: color-mix(in srgb, var(--color-accent) 55%, white);
  --color-border-focus: var(--color-accent);

  /* Secondary — steel / navy from logo */
  --color-navy: #12335c;
  --color-steel: #356194;
  --color-brass: #9a7b3c;
  --color-brass-soft: rgba(154, 123, 60, 0.14);

  /* Chrome (top bar / nav) — accent aliases brand red */
  --color-chrome: #0a1018;
  --color-chrome-elevated: #121a24;
  --color-chrome-ink: #e8edf5;
  --color-chrome-muted: #8b9bb4;
  --color-chrome-border: rgba(232, 237, 245, 0.08);
  --color-chrome-accent: var(--color-accent);

  /* Marketing dark surfaces */
  --color-mkt-bg: #0a1018;
  --color-mkt-surface: #121a24;
  --color-mkt-ink: #e8edf5;
  --color-mkt-muted: #8b9bb4;
  --color-mkt-border: rgba(232, 237, 245, 0.1);

  /* Semantic — danger stays in the film-red family */
  --color-success: #1f7a4c;
  --color-success-soft: rgba(31, 122, 76, 0.12);
  --color-warning: #9a6b12;
  --color-warning-soft: rgba(154, 107, 18, 0.14);
  --color-danger: var(--color-accent);
  --color-danger-soft: var(--color-accent-soft);
  --color-info: #1a5f8a;
  --color-info-soft: rgba(26, 95, 138, 0.12);

  /* Links — one Apple-like system (underline on hover for content links) */
  --link-decoration-thickness: 1px;
  --link-underline-offset: 0.18em;

  /* Typography */
  --font-sans: "Sora", "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Georgia", serif;
  --font-mono: "IBM Plex Mono", "ui-monospace", monospace;

  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.375rem;
  --text-hero: clamp(2.25rem, 1.4rem + 3.5vw, 3.75rem);

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.55;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.1em;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing */
  --space-0: 0;
  --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;
  --space-20: 5rem;

  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(10, 16, 24, 0.05);
  --shadow-sm: 0 1px 3px rgba(10, 16, 24, 0.07), 0 1px 2px rgba(10, 16, 24, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 16, 24, 0.1), 0 1px 3px rgba(10, 16, 24, 0.05);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-chrome: 0 8px 28px rgba(0, 0, 0, 0.4);

  --shell-max: 80rem;
  --shell-gutter: clamp(1rem, 3vw, 2rem);
  --header-height: 4rem;
  --z-header: 100;
  --z-locale: 210;
  --z-cookie: 220;
  --z-overlay: 200;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 380ms;

  --gradient-canvas:
    radial-gradient(1200px 600px at 8% -10%, rgba(53, 97, 148, 0.08), transparent 55%),
    radial-gradient(900px 500px at 92% 0%, rgba(196, 30, 26, 0.05), transparent 50%),
    linear-gradient(180deg, var(--color-canvas) 0%, var(--color-canvas-deep) 100%);
  --pattern-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
