/* ==========================================================================
   GGS Design Tokens
   Dark, clubby aesthetic — warm charcoal + gold.
   Source Serif 4 for display, Inter for body.
   ========================================================================== */

:root {
  /* ---------- Core palette ---------- */
  --color-bg:            #0F0F1A;
  --color-surface:       #1A1A2E;
  --color-surface-hover: #222238;
  --color-gold:          #D4A843;
  --color-gold-hover:    #C49A3A;
  --color-gold-dim:      #B8923A;
  --color-text:          #E8E4DF;
  --color-text-muted:    #9A9590;
  --color-border:        #2A2A40;
  --color-border-gold:   rgba(212, 168, 67, 0.3);

  /* ---------- Gold alpha scale ---------- */
  --gold-5:  rgba(212, 168, 67, 0.05);
  --gold-10: rgba(212, 168, 67, 0.10);
  --gold-15: rgba(212, 168, 67, 0.15);
  --gold-20: rgba(212, 168, 67, 0.20);
  --gold-30: rgba(212, 168, 67, 0.30);
  --gold-40: rgba(212, 168, 67, 0.40);

  /* ---------- White alpha scale ---------- */
  --white-5:  rgba(255, 255, 255, 0.05);
  --white-10: rgba(255, 255, 255, 0.10);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-30: rgba(255, 255, 255, 0.30);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-50: rgba(255, 255, 255, 0.50);
  --white-60: rgba(255, 255, 255, 0.60);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-80: rgba(255, 255, 255, 0.80);

  /* ---------- Severity colors (standard) ---------- */
  --severity-critical-bg:     rgba(220, 38, 38, 0.15);
  --severity-critical-border: rgba(220, 38, 38, 0.3);
  --severity-critical-text:   #FCA5A5;
  --severity-critical-dot:    #DC2626;

  --severity-warning-bg:      rgba(234, 88, 12, 0.15);
  --severity-warning-border:  rgba(234, 88, 12, 0.3);
  --severity-warning-text:    #FDBA74;
  --severity-warning-dot:     #EA580C;

  --severity-caution-bg:      rgba(202, 138, 4, 0.15);
  --severity-caution-border:  rgba(202, 138, 4, 0.3);
  --severity-caution-text:    #FDE68A;
  --severity-caution-dot:     #CA8A04;

  --severity-normal-bg:       rgba(22, 163, 74, 0.15);
  --severity-normal-border:   rgba(22, 163, 74, 0.3);
  --severity-normal-text:     #86EFAC;
  --severity-normal-dot:      #16A34A;

  /* ---------- Fluid typography ---------- */
  --text-xs:      clamp(0.75rem,  0.71rem + 0.18vw, 0.8125rem);
  --text-sm:      clamp(0.8125rem, 0.77rem + 0.24vw, 0.875rem);
  --text-base:    clamp(0.9375rem, 0.88rem + 0.30vw, 1.0625rem);
  --text-lg:      clamp(1.125rem, 1.03rem + 0.48vw, 1.3125rem);
  --text-xl:      clamp(1.375rem, 1.22rem + 0.73vw, 1.6875rem);
  --text-2xl:     clamp(1.75rem,  1.51rem + 1.09vw, 2.25rem);
  --text-3xl:     clamp(2.25rem,  1.87rem + 1.82vw, 3.125rem);
  --text-display: clamp(2.75rem,  2.15rem + 2.91vw, 4.125rem);

  /* ---------- Font families ---------- */
  --font-display: "Source Serif 4", Georgia, serif;
  --font-sans:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* ---------- 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;

  /* ---------- Section spacing ---------- */
  --section-xs: clamp(2rem,    1.5rem + 2.42vw,  3rem);
  --section-sm: clamp(3rem,    2.27rem + 3.64vw,  4.5rem);
  --section-md: clamp(4rem,    2.91rem + 5.45vw,  6.5rem);
  --section-lg: clamp(5rem,    3.64rem + 6.79vw,  8rem);

  /* ---------- Border radius ---------- */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 40px;

  /* ---------- Shadows ---------- */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(212, 168, 67, 0.15);

  /* ---------- Transitions ---------- */
  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;
  --ease-default:    cubic-bezier(0.4, 0, 0.2, 1);

  /* ---------- Layout ---------- */
  --max-width:        1200px;
  --max-width-narrow: 800px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast:   0ms;
    --duration-normal: 0ms;
    --duration-slow:   0ms;
  }
}
