/* ==========================================================================
   THE MISCREANT STUDIOS - DESIGN SYSTEM & CORE CSS
   Full-Size Integrated Hero Stage Image & Deep Obsidian Palette
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #070512;
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-purple-bright: #a78bfa;
  --accent-neon-violet: #c084fc;
  --accent-cyan: #06b6d4;

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing - Extended Width for Left Alignment */
  --container-max: 1680px;
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: #070512;
  line-height: 1.5;
}

/* Interactive Reticle Cursor (desktop only) */
@media (pointer: fine) {
  body, button, a, input {
    cursor: none !important;
  }
}

/* Three.js Background Canvas (Subtle Floating Embers on Top) */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

/* Main Container Shell - Expanded to Left Margin */
.app-container {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

/* Global Selection */
::selection {
  background: var(--accent-purple);
  color: #ffffff;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 700;
}

.font-mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
}
