/* ================================================================
   CorpStack — Design Tokens
   Variablz Corporation
   ================================================================ */

/* ── Variablz Technology (Corporate + Software sections) ───────── */
:root,
[data-section="corporate"],
[data-section="software"] {
  --color-primary:       #a22d75;
  --color-secondary:     #2d9ba2;
  --color-subsecondary:  #26c6da;
  --color-subsecondary-10:   #e5f8fb; /* colors.md Projects tint */
  --color-subsecondary-text: #157a86; /* AA text shade of #26c6da */
  --color-support:       #2d4ea2;
  --color-highlight:     #f1d306;
  --color-black:         #323232;
  --color-white:         #ffffff;
  --color-shade:         #e5e5e5;
  --color-bg:            #ffffff;
  --color-surface:       #fafafa;
  --color-text:          #323232;
  --color-text-muted:    #666666;
  --color-border:        #e5e5e5;

  /* Tints */
  --color-primary-10:    #f7eaf3;
  --color-primary-20:    #edd4e6;
  --color-secondary-10:  #eaf5f6;
  --color-support-10:    #eaedf6;

  /* Content-type backgrounds — Academy course cards (Course vs Internship) */
  --color-course:        #e2f2f3;
  --color-internship:    #ffffe0;

  /* Course image colors by category (colors.md → "Course Image Colors") */
  --color-cat-roadmaps:          #e6eaf4;
  --color-cat-roadmaps-accent:   #2d4ea2;
  --color-cat-tools:             #e6f3f4;
  --color-cat-tools-accent:      #1f6f74;
  --color-cat-jobs:              #f4e6ee;
  --color-cat-jobs-accent:       #a22d75;
  --color-cat-projects:          #e5f8fb;
  --color-cat-projects-accent:   #157a86;
  --color-cat-interviews:        #fdfae1;
  --color-cat-interviews-accent: #6b5f00;
}

/* ── Variablz GenVi ─────────────────────────────────────────────
   Standardized on the one Variablz brand palette (colors.md) across every
   branch — Academy no longer carries its own distinct colors. This block
   stays only to provide --color-accent, which Academy templates reference
   under that name (elsewhere it's --color-subsecondary). */
[data-section="academy"] {
  --color-primary:      #a22d75;
  --color-secondary:    #2d9ba2;
  --color-accent:       #26c6da;
  --color-support:      #2d4ea2;
  --color-highlight:    #f1d306;
  --color-black:        #323232;
  --color-bg:           #ffffff;
  --color-surface:      #fafafa;
  --color-text:         #323232;
  --color-text-muted:   #666666;
  --color-border:       #e5e5e5;

  /* Tints */
  --color-primary-10:   #f7eaf3;
  --color-primary-20:   #edd4e6;
  --color-secondary-10: #eaf5f6;
  --color-support-10:   #eaedf6;
}

/* ── Typography ─────────────────────────────────────────────────── */
:root {
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Raleway', 'Inter', sans-serif;
  --font-heading:  'Raleway', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;
  --text-6xl:  4.5rem;

  --leading-tight:  1.25;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-black:    900;

  /* ── Spacing ──────────────────────────────────────────────────── */
  --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;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Layout ───────────────────────────────────────────────────── */
  --max-content: 1200px;
  --max-wide:    1440px;

  /* ── Border radius ────────────────────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Shadows ──────────────────────────────────────────────────── */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl:  0 16px 48px rgba(0, 0, 0, 0.20);

  /* ── Transitions ──────────────────────────────────────────────── */
  --ease-default: all 0.3s ease;
  --ease-fast:    all 0.15s ease;
  --ease-slow:    all 0.6s ease;

  /* ── Z-index layers ───────────────────────────────────────────── */
  --z-base:    0;
  --z-raised:  10;
  --z-nav:     100;
  --z-overlay: 200;
  --z-modal:   300;
  --z-toast:   400;
}

/* ── Non-standard colors (colors.md → "Non-standard Colors") ────────
   Soft neutrals, not brand colors: light surfaces where brand tints would be too loud. */
:root {
  --color-ns-ivory:      #faf8f4; --color-ns-ivory-2:    #ede7dc;
  --color-ns-sage:       #f2f7f2; --color-ns-sage-2:     #dde9df;
  --color-ns-sand:       #fcf6ec; --color-ns-sand-2:     #f0e2c8;
  --color-ns-lavender:   #f5f3fa; --color-ns-lavender-2: #e2ddf0;
  --color-ns-blush:      #fcf3f1; --color-ns-blush-2:    #f1dcd8;
  --color-ns-mist:       #f1f5f9; --color-ns-mist-2:     #dbe4ee;
}

/* ── Supporting colors (colors.md → "Supporting colors") ────────────
   Status colors, not brand colors. Free/Success #3dcd58 is too light for text on white (2.1 : 1),
   so text uses the darkened -text shade (4.7 : 1 on the -10 tint, 5.2 : 1 on white); the base color
   is for fills, borders and dots. */
:root {
  --color-free:        #3dcd58;
  --color-free-10:     #e8f9eb;
  --color-free-text:   #257d36;
  --color-danger:      #ff5252;
}
