/**
 * @eigan/tokens — Eigan design tokens
 *
 * Code encoding of the authoritative brand spec:
 *   docs/brand guidelines/guidelines/Brand.md  (+ Figma "Eigan-Brand-Guidelines")
 * Brand.md is the human source of truth; this file is the source of truth in code.
 * All color values are EXACT per Brand.md — do not approximate.
 *
 * Two tiers:
 *   1. Primitives  (--eigan-*)      the 6 exact named brand colors.
 *   2. Semantic    (--background, --primary, ...)  roles components reference.
 * Components use Tier-2 roles only.
 *
 * Brand discipline baked in: light ground, Midnight Navy text, hairline borders,
 * radius 0-2px (precise, not rounded), NO UI gradients, NO drop shadows.
 */

:root {
  /* ---- Tier 1: brand palette (exact, per Brand.md) ---- */
  --eigan-navy:        #1b2355; /* Midnight Navy — primary text, wordmark, anchor */
  --eigan-signal-blue: #2855a0; /* Signal Blue — interactive, emphasis, links */
  --eigan-cyan:        #00b0d8; /* Open Cyan — accent, highlights, active/hover */
  --eigan-green:       #3a8f3a; /* Clarity Green — positive, success */
  --eigan-lime:        #8dc63f; /* Lime Logic — energy accent, secondary data-viz */
  --eigan-white:       #ffffff; /* Pure White — brand ground */

  /* supporting neutrals (navy-tinted surfaces & hairlines) */
  --eigan-card:            #f8f9fc; /* very light navy tint (Brand.md: cards) */
  --eigan-secondary:       #f0f2f8;
  --eigan-muted:           #e8eaef;
  --eigan-muted-foreground:#6b7280;
  --eigan-border:          rgba(27, 35, 85, 0.10); /* 1px hairline */
  --eigan-border-hairline: rgba(27, 35, 85, 0.08);

  /* type — families per Brand.md. Apps loading these via next/font may override
     each role to point at their generated variable (see README). */
  --font-display: "Barlow", system-ui, sans-serif;        /* headings, UI, buttons */
  --font-sans:    "DM Sans", system-ui, sans-serif;       /* body */
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, monospace; /* data/labels */

  /* shape — Brand.md: minimal, 0-2px. Rounded (>4px) is off-brand. */
  --radius: 0.125rem; /* 2px */

  /* ---- Tier 2: semantic roles (LIGHT — the brand is light-ground) ---- */
  --background: var(--eigan-white);
  --foreground: var(--eigan-navy);

  --card: var(--eigan-card);
  --card-foreground: var(--eigan-navy);
  --popover: var(--eigan-white);
  --popover-foreground: var(--eigan-navy);

  /* Primary combination: Midnight Navy on Pure White (default when uncertain). */
  --primary: var(--eigan-navy);
  --primary-foreground: var(--eigan-white);

  --secondary: var(--eigan-secondary);
  --secondary-foreground: var(--eigan-navy);

  --muted: var(--eigan-muted);
  --muted-foreground: var(--eigan-muted-foreground);

  /* Accent = Open Cyan (highlights, active/hover). Interactive/links = Signal Blue. */
  --accent: var(--eigan-cyan);
  --accent-foreground: var(--eigan-white);

  /* Functional extension: red is not in the 6-color brand palette; #d4183d is the
     de-facto destructive/error color used in the apps. */
  --destructive: #d4183d;
  --destructive-foreground: var(--eigan-white);

  --border: var(--eigan-border);
  --input: transparent;
  --input-background: var(--eigan-secondary);
  --ring: var(--eigan-signal-blue); /* focus rings: Signal Blue, 2px (Brand.md) */
}

/*
 * Dark mode is NOT defined by Brand.md — the brand is emphatically light-ground
 * ("designed for white ground"; reversed logo required on dark). Do not invent a
 * dark palette here; if one is ever needed, define it with brand approval.
 */
