/* Global Design System - styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@700;800;900&display=swap');

:root {
  /* HSL Color Palette for absolute precision */
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-contrast: #111111;
  --primary-cobalt: #0047FF;
  --text-primary: #0A0A0A;
  --text-secondary: #525252;
  --text-tertiary: #8B8B8B;
  --border-color: #E5E5E5;
  --success-emerald: #10B981;
  --warning-orange: #FF4F00;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Neue Haas Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', monospace;

  /* Layout Constants */
  --header-height: 80px;
  --content-max-width: 1200px;
}

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

html {
  scroll-behavior: initial; /* Lenis handles scrolling */
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  padding-top: 114px; /* Offset for combined fixed header */
}

/* Scroll Depth Indicator (Right Edge) */
#scroll-progress-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 4px;
  height: 100vh;
  z-index: 1000;
  pointer-events: none;
  background: rgba(229, 229, 229, 0.3);
}

#scroll-progress-bar {
  width: 100%;
  height: 0%;
  background: var(--primary-cobalt);
  transition: height 0.05s linear;
}

/* Document Grid Layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Spacing Helpers */
.py-120 {
  padding-top: 120px;
  padding-bottom: 120px;
}

.py-80 {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 6vw, 84px);
}

h2 {
  font-size: clamp(32px, 4.5vw, 56px);
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
}

p {
  font-size: 16px;
  color: var(--text-secondary);
}

p.lead {
  font-size: 20px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-cobalt);
  display: inline-block;
  margin-bottom: 16px;
}

.mono-data {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-white {
  color: #FFFFFF !important;
}

.bg-dark {
  background-color: var(--bg-contrast) !important;
  color: #FFFFFF !important;
}

/* Responsive grid overrides */
@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
