/**
 * CTK Logistics — Design Tokens (v1)
 * Centralized visual language for Admin / Worker / Client.
 * No hardcoded hex/px outside this file — all components reference tokens.
 *
 * Brand palette: Derived from CTK logo + marketing site
 * - Primary (brand): CTK Orange #e8852e — used for accent/active states, not full backgrounds
 * - Ink (brand dark): Off-black #0f172a / #1a1a1a — navigation, headings, primary buttons
 * - Neutral ramp: off-white to ink (avoids pure #fff/#000 harshness)
 */

:root {
  /* ── Brand ── */
  --ctk-orange: #e8852e;
  --ctk-orange-dark: #d4701a;
  --ctk-orange-light: #fff4ec;
  --ctk-orange-soft: #fff7ed;
  --ctk-ink: #0f172a;
  --ctk-ink-soft: #1a1a1a;
  --ctk-ink-muted: #334155;

  /* ── Neutral grayscale (off-white → ink) ── */
  --neutral-50: #fcfbf9;
  --neutral-100: #f8f7f6;
  --neutral-150: #f1f0ee;
  --neutral-200: #e8e6e3;
  --neutral-300: #d6d3d0;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #0f172a;

  /* ── Semantic ── */
  --bg-app: var(--neutral-100);
  --bg-surface: #ffffff;
  --bg-surface-hover: var(--neutral-50);
  --text-primary: var(--ctk-ink);
  --text-secondary: var(--neutral-600);
  --text-tertiary: var(--neutral-500);
  --text-inverse: #ffffff;
  --border-default: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --success: #0ea45a;
  --success-soft: #ecfdf5;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;

  /* ── Accent for interactive (separate from brand ink) ── */
  --accent: var(--ctk-orange);
  --accent-hover: var(--ctk-orange-dark);
  --accent-soft: var(--ctk-orange-soft);
  --accent-contrast: #ffffff; /* text on accent */

  /* ── Spacing scale (4pt base) ── */
  --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;

  /* ── Typography — Inter (single family, consistent weights) ── */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --text-display: 28px;
  --text-h1: 22px;
  --text-h2: 18px;
  --text-h3: 16px;
  --text-body: 15px;
  --text-body-sm: 13px;
  --text-caption: 12px;
  --text-label: 11px;

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;

  /* ── Radii ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 9999px;

  /* ── Shadows (elevation) ── */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10), 0 20px 48px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 28px rgba(15, 23, 42, 0.07);

  /* ── Motion ── */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-default: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 150ms;
  --duration-normal: 220ms;
  --duration-slow: 320ms;

  /* ── Layout ── */
  --content-max: 640px;
  --nav-height: 56px;
  --tab-bar-height: 72px;
}

/* Explicitly disable half-baked dark mode — app is light only */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }
}
html {
  color-scheme: light;
}
