/* ==========================================================================
   VECTORYCODE STUDIO — DESIGN TOKENS & SEMANTIC VARIABLES
   Brand Palette: #ffd011 | #ff4dac | #a82e9c | #ff9417 | #a84d64 | #7e3b7d
   Aesthetic: Technical Editorial, Swiss Grid, Sharp 1px Borders, Anti-Generic
   ========================================================================== */

:root {
  /* Raw Brand Palette Tokens */
  --brand-gold: #ffd011;
  --brand-pink: #ff4dac;
  --brand-magenta: #a82e9c;
  --brand-orange: #ff9417;
  --brand-rose: #a84d64;
  --brand-plum: #7e3b7d;

  /* Typography Stack */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid Type Scale */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: clamp(1.4rem, 2vw, 1.75rem);
  --text-3xl: clamp(1.85rem, 3vw, 2.5rem);
  --text-4xl: clamp(2.35rem, 4.5vw, 3.75rem);
  --text-5xl: clamp(2.75rem, 5.6vw, 4.5rem);

  /* Layout & Spacing */
  --container-max: 1320px;
  --header-height: 76px;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Motion & Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 160ms var(--ease-out-expo);
  --transition-base: 280ms var(--ease-out-expo);

  /* Default Theme: DARK MODE (Editorial Carbon) */
  --bg-primary: #09090c;
  --bg-secondary: #101016;
  --bg-tertiary: #16161f;
  --bg-elevated: #1b1b26;
  --bg-glass: rgba(9, 9, 12, 0.84);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1b0;
  --text-muted: #6e6e80;
  --text-on-accent: #09090c;

  --accent-primary: var(--brand-gold);
  --accent-secondary: var(--brand-pink);
  --accent-tertiary: var(--brand-orange);
  --accent-deep: var(--brand-magenta);
  --accent-muted: var(--brand-rose);
  --accent-plum: var(--brand-plum);

  --border-subtle: #1e1e29;
  --border-strong: #2e2e3e;
  --border-accent: rgba(255, 208, 17, 0.45);

  --tag-bg: rgba(255, 208, 17, 0.08);
  --tag-border: rgba(255, 208, 17, 0.28);
  --tag-text: #ffd011;

  --badge-pink-bg: rgba(255, 77, 172, 0.1);
  --badge-pink-border: rgba(255, 77, 172, 0.3);
  --badge-pink-text: #ff4dac;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.55);
  --shadow-hard: 4px 4px 0px var(--brand-plum);
  --shadow-hard-gold: 4px 4px 0px var(--brand-gold);

  --grid-line: rgba(255, 255, 255, 0.035);
  --status-online: #10b981;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES (Editorial Warm Paper & High Contrast Ink)
   ========================================================================== */
[data-theme="light"] {
  --bg-primary: #faf9f5;
  --bg-secondary: #f2f0e8;
  --bg-tertiary: #e7e4d9;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(250, 249, 245, 0.88);

  --text-primary: #111116;
  --text-secondary: #484856;
  --text-muted: #717182;
  --text-on-accent: #111116;

  /* Adjust accents on light backgrounds to guarantee AA/AAA legibility while honoring exact palette */
  --accent-primary: var(--brand-magenta);
  --accent-secondary: var(--brand-pink);
  --accent-tertiary: var(--brand-orange);
  --accent-deep: var(--brand-plum);
  --accent-muted: var(--brand-rose);

  --border-subtle: #dcd9ce;
  --border-strong: #c2beb0;
  --border-accent: #a82e9c;

  --tag-bg: rgba(168, 46, 156, 0.08);
  --tag-border: rgba(168, 46, 156, 0.3);
  --tag-text: #7e3b7d;

  --badge-pink-bg: rgba(168, 77, 100, 0.1);
  --badge-pink-border: rgba(168, 77, 100, 0.35);
  --badge-pink-text: #a82e9c;

  --shadow-sm: 0 2px 6px rgba(17, 17, 22, 0.05);
  --shadow-md: 0 12px 28px -6px rgba(17, 17, 22, 0.09);
  --shadow-hard: 4px 4px 0px #111116;
  --shadow-hard-gold: 4px 4px 0px var(--brand-plum);

  --grid-line: rgba(17, 17, 22, 0.045);
}
