/* ============================================================
   LUDONAVE DESIGN SYSTEM — colors_and_type.css
   ============================================================ */

/* Local fonts — preferred */
@font-face { font-family: 'Squada One'; src: url('fonts/SquadaOne-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Exo'; src: url('fonts/Exo-VariableFont_wght.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Exo'; src: url('fonts/Exo-Italic-VariableFont_wght.ttf') format('truetype'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Duru Sans'; src: url('fonts/DuruSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
/* Pixel font for 8-bit accents */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ============================================================
   COLORS — Base Tokens
   ============================================================ */
:root {
  /* Primary */
  --color-red:        #bf0426;
  --color-red-dark:   #8c0019;
  --color-red-light:  #e8304f;
  --color-yellow:     #f2bf27;
  --color-yellow-dark:#c99b10;
  --color-yellow-light:#f7d468;
  --color-navy:       #012030;
  --color-navy-light: #023a56;
  --color-navy-dark:  #010f18;

  /* Secondary / Accents */
  --color-white:      #ffffff;
  --color-green:      #29a655;
  --color-green-dark: #1d7a3e;
  --color-blue:       #049dd9;
  --color-blue-dark:  #0376a3;
  --color-purple:     #6524bf;
  --color-purple-dark:#4d1a92;

  /* Neutral Scale */
  --color-gray-50:    #f8f9fa;
  --color-gray-100:   #f0f1f3;
  --color-gray-200:   #e2e4e8;
  --color-gray-300:   #c8ccd4;
  --color-gray-400:   #9ba3b0;
  --color-gray-500:   #6b7280;
  --color-gray-600:   #4b5563;
  --color-gray-700:   #374151;
  --color-gray-800:   #1f2937;
  --color-gray-900:   #111827;

  /* ============================================================
     COLORS — Semantic Tokens
     ============================================================ */

  /* Backgrounds */
  --bg-primary:         var(--color-navy);
  --bg-surface:         var(--color-white);
  --bg-surface-alt:     var(--color-gray-50);
  --bg-accent:          var(--color-red);
  --bg-highlight:       var(--color-yellow);
  --bg-overlay:         rgba(1, 32, 48, 0.72);

  /* Foreground / Text */
  --fg-primary:         var(--color-white);
  --fg-on-light:        var(--color-navy);
  --fg-on-light-muted:  var(--color-gray-600);
  --fg-on-dark:         var(--color-white);
  --fg-on-dark-muted:   rgba(255,255,255,0.65);
  --fg-accent:          var(--color-yellow);

  /* Interactive */
  --color-cta:          var(--color-red);
  --color-cta-hover:    var(--color-red-dark);
  --color-link:         var(--color-blue);
  --color-link-hover:   var(--color-blue-dark);
  --color-success:      var(--color-green);
  --color-info:         var(--color-blue);
  --color-warning:      var(--color-yellow);

  /* Borders */
  --border-subtle:      var(--color-gray-200);
  --border-default:     var(--color-gray-300);
  --border-strong:      var(--color-navy);

  /* ============================================================
     TYPOGRAPHY
     ============================================================ */

  /* Font Families */
  --font-display:  'Squada One', 'Impact', sans-serif;
  --font-ui:       'Exo', 'Trebuchet MS', sans-serif;
  --font-body:     'Duru Sans', 'Gill Sans', sans-serif;

  /* Font Sizes */
  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-md:    1.125rem;  /* 18px */
  --text-lg:    1.25rem;   /* 20px */
  --text-xl:    1.5rem;    /* 24px */
  --text-2xl:   2rem;      /* 32px */
  --text-3xl:   2.5rem;    /* 40px */
  --text-4xl:   3.5rem;    /* 56px */
  --text-5xl:   5rem;      /* 80px */

  /* Font Weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Line Heights */
  --leading-tight:   1.1;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  /* Letter Spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;

  /* ============================================================
     SPACING SCALE
     ============================================================ */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;

  /* ============================================================
     BORDER RADIUS
     ============================================================ */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  /* ============================================================
     SHADOWS / ELEVATION
     ============================================================ */
  --shadow-sm:   0 1px 4px rgba(1,32,48,0.10);
  --shadow-md:   0 2px 12px rgba(1,32,48,0.14);
  --shadow-lg:   0 4px 24px rgba(1,32,48,0.18);
  --shadow-xl:   0 8px 40px rgba(1,32,48,0.22);
  --shadow-glow-red:    0 0 24px rgba(191,4,38,0.4);
  --shadow-glow-yellow: 0 0 24px rgba(242,191,39,0.4);

  /* ============================================================
     TRANSITIONS
     ============================================================ */
  --transition-fast:   150ms ease-out;
  --transition-base:   200ms ease-out;
  --transition-slow:   350ms ease-out;

  /* ============================================================
     VISUAL TEXTURE TOKENS — Comic + 8bit + Space
     ============================================================ */

  /* Halftone dot pattern (overlay on backgrounds) */
  --texture-halftone-dark:   radial-gradient(circle, rgba(0,0,0,0.18) 1.2px, transparent 1.2px);
  --texture-halftone-light:  radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  --texture-halftone-size:   10px 10px;

  /* Sunburst (radial ray) — use as background on hero/section elements */
  --texture-sunburst-red:    repeating-conic-gradient(from 0deg, #bf0426 0deg 8deg, #8c0019 8deg 16deg);
  --texture-sunburst-yellow: repeating-conic-gradient(from 0deg, #f2bf27 0deg 8deg, #c99b10 8deg 16deg);
  --texture-sunburst-navy:   repeating-conic-gradient(from 0deg, #012030 0deg 8deg, #010f18 8deg 16deg);

  /* Comic bold outline — apply via box-shadow for block elements */
  --outline-comic-sm:   2px 2px 0 #000f1a, -1px -1px 0 #000f1a, 1px -1px 0 #000f1a, -1px 1px 0 #000f1a;
  --outline-comic-md:   3px 3px 0 #000f1a, -2px -2px 0 #000f1a, 2px -2px 0 #000f1a, -2px 2px 0 #000f1a;

  /* Comic text outline */
  --text-stroke-comic:   -1px -1px 0 #000f1a, 1px -1px 0 #000f1a, -1px 1px 0 #000f1a, 1px 1px 0 #000f1a, 2px 2px 0 #000f1a;

  /* Pixel / 8-bit font */
  --font-pixel:   'Press Start 2P', monospace;

  /* Space glow colors */
  --glow-space-purple:  0 0 30px rgba(101,36,191,0.6), 0 0 60px rgba(101,36,191,0.3);
  --glow-space-blue:    0 0 30px rgba(4,157,217,0.6), 0 0 60px rgba(4,157,217,0.25);
  --glow-space-red:     0 0 30px rgba(191,4,38,0.6), 0 0 60px rgba(191,4,38,0.25);
}

/* ============================================================
   BASE ELEMENT STYLES
   ============================================================ */

h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-regular); /* Squada One is inherently bold */
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
}

h3 {
  font-family: var(--font-ui);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}

h4 {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

small, .caption {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

label, .label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

code, .mono {
  font-family: 'Courier New', monospace;
  font-size: var(--text-sm);
}
