/* ============================================================
   LSI DESIGN TOKENS
   Lafayette Square Institute — Web Prototype
   Values approximate the brand book; verify against
   brand.lafayettesquareinstitute.org before production.
   ============================================================ */

:root {
  /* ------- PRIMARY PALETTE (per Brand Book) ------- */
  --ls-navy-900: #0F2E38;   /* Brand navy — primary dark background */
  --ls-navy-800: #153440;
  --ls-navy-700: #1C4050;
  --ls-navy-600: #29566B;

  --ls-teal-600: #00A5AB;
  --ls-teal-500: #00C0C7;   /* Brand teal — primary accent */
  --ls-teal-400: #3FD1D6;
  --ls-teal-300: #7CDFE3;
  --ls-teal-200: #B4ECEE;
  --ls-teal-100: #D5E3E6;   /* Brand light teal — washed background */
  --ls-teal-050: #EAF1F3;

  /* Brand chartreuse — secondary accent (Employee Ownership, callouts) */
  --ls-chartreuse-500: #E9FF4B;
  --ls-chartreuse-400: #EFFF77;
  --ls-chartreuse-200: #F6FFB3;

  /* Federal Credit Lab — mint primary + caution orange accent */
  --fcl-mint-500: #B9FFCB;
  --fcl-mint-400: #CFFFDC;
  --fcl-mint-200: #E8FFEE;
  --fcl-navy:     #0F202B;
  --fcl-caution:  #FF6A3D;
  --fcl-gray-1:   #82898E;
  --fcl-gray-2:   #BABDC0;
  --fcl-gray-3:   #E7E8E8;

  /* Brand purple — Job Quality topic accent
     Bright, saturated violet that signals the topic against navy/teal/chartreuse */
  --ls-purple-900: #2A1A4A;
  --ls-purple-800: #36245E;
  --ls-purple-700: #442F77;
  --ls-purple-600: #6F2DBF;
  --ls-purple-500: #8B3DFA;   /* primary bright accent */
  --ls-purple-400: #A870FF;
  --ls-purple-300: #C39AFF;
  --ls-purple-200: #DCC4FF;
  --ls-purple-100: #EEE0FF;

  /* Legacy alias — do not use in new code */
  --ls-yellow-500: var(--ls-chartreuse-500);

  --ls-white: #FFFFFF;
  --ls-off-white: #FAFAF7;  /* Warm off-white — page backgrounds */

  /* ------- SECONDARY PALETTE (NEUTRALS) ------- */
  --ls-gray-050: #F5F5F2;
  --ls-gray-100: #ECECE8;
  --ls-gray-200: #D9D9D4;
  --ls-gray-300: #BDBDB6;
  --ls-gray-400: #9A9A94;
  --ls-gray-500: #74746E;
  --ls-gray-600: #56564F;
  --ls-gray-700: #3A3A34;
  --ls-gray-800: #23231F;

  /* ------- TOPIC AREA ACCENTS (per Brand Book) ------- */
  /* Research topic areas. Page-level accents use navy (dark) for
     readability; the topic icons carry the brand color differentiation. */
  --topic-housing: var(--ls-teal-500);
  --topic-employee-ownership: var(--ls-navy-900);
  --topic-job-quality: var(--ls-purple-500);
  --topic-economic-mobility: var(--ls-navy-700);

  /* Organizational pillars (how LSI operates) */
  --pillar-policy: var(--ls-navy-900);
  --pillar-technology: var(--ls-teal-500);
  --pillar-initiatives: var(--ls-chartreuse-500);
  --pillar-coalitions: var(--pillar-initiatives); /* legacy alias */

  /* ------- DIAGONAL STRIPE MOTIF ------- */
  /* The striped fill inside the hexagon logo is the dominant brand pattern.
     Reuse these tokens anywhere a stripe accent is needed. */
  --stripe-angle: 135deg;
  --stripe-thickness: 2px;
  --stripe-gap: 6px;
  --stripe-color: var(--ls-navy-900);
  --stripe-color-inverse: var(--ls-white);

  /* ------- SEMANTIC COLORS ------- */
  --color-bg: var(--ls-off-white);
  --color-bg-subtle: var(--ls-gray-050);
  --color-bg-elevated: var(--ls-white);
  --color-bg-inverse: var(--ls-navy-900);

  --color-text: var(--ls-gray-800);
  --color-text-muted: var(--ls-gray-500);
  --color-text-subtle: var(--ls-gray-400);
  --color-text-inverse: var(--ls-white);
  --color-text-inverse-muted: rgba(255, 255, 255, 0.7);

  --color-border: var(--ls-gray-200);
  --color-border-strong: var(--ls-gray-300);
  --color-border-inverse: rgba(255, 255, 255, 0.12);

  --color-accent: var(--ls-teal-500);
  --color-accent-hover: var(--ls-teal-600);
  --color-accent-bg: var(--ls-teal-100);

  --color-focus: var(--ls-teal-500);

  /* ------- TYPOGRAPHY ------- */
  --font-sans: 'Funnel Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', 'Source Serif Pro', 'Charter', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale — modular, 1.25 ratio */
  --fs-xs: 0.75rem;    /* 12px  — captions, tags */
  --fs-sm: 0.875rem;   /* 14px  — metadata */
  --fs-base: 1rem;     /* 16px  — UI body */
  --fs-body: 1.125rem; /* 18px  — article body (serif) */
  --fs-lg: 1.25rem;    /* 20px  — lead paragraphs */
  --fs-xl: 1.5rem;     /* 24px  — H4 / card headings */
  --fs-2xl: 2rem;      /* 32px  — H3 */
  --fs-3xl: 2.75rem;   /* 44px  — H2 */
  --fs-4xl: 3.75rem;   /* 60px  — H1 article */
  --fs-5xl: 5rem;      /* 80px  — hero */

  --lh-tight: 1.08;
  --lh-snug: 1.2;
  --lh-normal: 1.45;
  --lh-relaxed: 1.65;
  --lh-loose: 1.75;

  --tracking-tight: -0.02em;
  --tracking-snug: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;
  --tracking-widest: 0.14em;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ------- SPACING ------- */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4  */
  --space-2: 0.5rem;    /* 8  */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 2.5rem;    /* 40 */
  --space-8: 3rem;      /* 48 */
  --space-9: 4rem;      /* 64 */
  --space-10: 5rem;     /* 80 */
  --space-11: 6rem;     /* 96 */
  --space-12: 8rem;     /* 128 */

  /* Section rhythm */
  --section-y: clamp(4rem, 8vw, 7rem);
  --section-y-lg: clamp(5rem, 10vw, 9rem);

  /* ------- LAYOUT ------- */
  --container-max: 1280px;    /* Full container */
  --container-wide: 1160px;   /* Standard content */
  --container-narrow: 760px;  /* Long-form article width (IFP-style) */
  --container-tight: 560px;   /* Form + narrow editorial */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* ------- RADIUS ------- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* ------- ELEVATION ------- */
  --shadow-sm: 0 1px 2px rgba(10, 31, 46, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 31, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 31, 46, 0.12);
  --shadow-xl: 0 24px 64px rgba(10, 31, 46, 0.16);

  /* ------- MOTION ------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;

  /* ------- Z-INDEX ------- */
  --z-nav: 50;
  --z-overlay: 80;
  --z-modal: 100;
}

/* Reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}
