/* ── Vegoia Labs Design System ───────────────────────────────────────────
   Art direction: Ancient Etruscan mythology × ASCII terminal punk × cinematic glitch
   Palette: Charcoal black / Amber gold / Teal cyan / Magenta glitch
   Typography: IBM Plex Mono (body/labels) + Instrument Serif (display hero only)
   Density: Spacious hero → dense ASCII texture sections → cinematic footer
   ─────────────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces — near-black with warm undertone (not pure #000) */
  --color-bg:             #0d0d0b;
  --color-surface:        #111110;
  --color-surface-2:      #161614;
  --color-surface-offset: #1c1c19;
  --color-divider:        #252520;
  --color-border:         #2e2e28;

  /* Text */
  --color-text:           #d4d0c8;   /* warm off-white, not pure white */
  --color-text-muted:     #7a7770;
  --color-text-faint:     #3e3d38;
  --color-text-inverse:   #0d0d0b;

  /* ── Primary Accent: Teal Cyan — the binary halo, hologram glow */
  --color-primary:        #00b4c8;
  --color-primary-hover:  #00d4eb;
  --color-primary-dim:    rgba(0, 180, 200, 0.15);

  /* ── Secondary Accent: Amber Gold — ancient stone, sacred fire */
  --color-gold:           #c4820a;
  --color-gold-bright:    #e09d18;
  --color-gold-dim:       rgba(196, 130, 10, 0.12);

  /* ── Glitch Accent: Hot Magenta — chromatic aberration, scan lines */
  --color-glitch:         #e0369a;
  --color-glitch-dim:     rgba(224, 54, 154, 0.10);

  /* Radius — minimal, angular. Vegoia Labs does not use bubbly corners. */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-teal: 0 0 24px rgba(0, 180, 200, 0.18);
  --shadow-gold: 0 0 24px rgba(196, 130, 10, 0.20);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.7);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1280px;

  /* Fluid type scale */
  --text-xs:   clamp(0.65rem,  0.6rem  + 0.2vw,  0.75rem);   /* 10–12px — HUD labels */
  --text-sm:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);  /* 12–14px — buttons, tags */
  --text-base: clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);      /* 14–16px — body mono */
  --text-lg:   clamp(1rem,     0.9rem  + 0.75vw, 1.375rem);  /* 16–22px — card titles */
  --text-xl:   clamp(1.375rem, 1rem    + 1.25vw, 2rem);      /* 22–32px — section heads */
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);    /* 32–56px — sub-hero */
  --text-hero: clamp(3.5rem,   1rem    + 7vw,    9rem);      /* 56–144px — hero title */

  /* 4px spacing system */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --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;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-pixel:   'Press Start 2P', 'Courier New', monospace;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  /* Note: --font-body is intentionally the monospace font for this site */
  --font-body:    var(--font-mono);
}

/* ── Base Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  cursor: crosshair; /* HUD feel — matches targeting reticle UI grammar */
}

img, video { display: block; max-width: 100%; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; cursor: crosshair; }
button { cursor: crosshair; background: none; border: none; }
a { cursor: crosshair; }

::selection {
  background: rgba(0, 180, 200, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 1px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
