/* Typography & Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@700;800&display=swap');

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  position: relative;
}

/* Tactile Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url('../assets/noise-grain.svg');
  mix-blend-mode: multiply;
}

/* Subtle Cursor Glow Follower */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(214, 255, 56, 0.18) 0%, rgba(214, 255, 56, 0) 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: multiply;
}

body:hover #cursor-glow {
  opacity: 1;
}

/* Selection Highlight */
::selection {
  background-color: var(--lime);
  color: var(--ink);
}

/* Custom Brutalist Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 2px solid var(--paper-alt);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--lime);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-subheading {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}

/* Responsive Global Guards */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .section-heading {
    font-size: clamp(30px, 8vw, 44px);
  }
  .section-subheading {
    font-size: 16px;
  }
}
