/* ========================================
   BODY & BASE TYPOGRAPHY
   ======================================== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--vs-light-text);
  background-color: var(--vs-light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADING STYLES
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--vs-light-text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
}

h2 {
  font-size: clamp(2.5rem, 1.75rem + 3.5vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h4 {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  letter-spacing: -0.01em;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vs-light-text-secondary);
}

/* ========================================
   TEXT UTILITIES
   ======================================== */
.text-secondary {
  color: var(--vs-light-text-secondary);
}

.text-accent {
  color: var(--vs-accent);
}

.text-primary {
  color: var(--vs-primary);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

/* ========================================
   APPLE-STYLE DISPLAY TYPOGRAPHY
   ======================================== */
.display-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(3rem, 2rem + 5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--vs-light-text);
}

.display-title--dark {
  color: var(--vs-dark-text);
}

.display-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.375rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--vs-light-text-secondary);
  letter-spacing: -0.005em;
}

.display-subtitle--dark {
  color: var(--vs-dark-text-secondary);
}

/* ========================================
   GRADIENT TEXT EFFECT
   ======================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--vs-accent) 0%, #f0a060 50%, #FFB74D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ========================================
   SECTION TITLES & SUBTITLES
   ======================================== */
.section-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--vs-light-text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--vs-light-text-secondary);
  max-width: 600px;
  margin-bottom: var(--vs-space-2xl);
  font-weight: 400;
  line-height: 1.6;
}

/* ========================================
   BODY TEXT VARIANTS
   ======================================== */
.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--vs-light-text);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--vs-light-text);
}

.body-xs {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--vs-light-text-secondary);
}

/* ========================================
   LABELS & CAPTIONS
   ======================================== */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--vs-light-text-secondary);
}

.caption {
  font-size: 0.8125rem;
  color: var(--vs-light-text-secondary);
  line-height: 1.5;
}

/* ========================================
   LINKS
   ======================================== */
a {
  color: var(--vs-primary);
  text-decoration: none;
  transition: color var(--vs-transition);
}

a:hover {
  color: var(--vs-primary-dark);
}

.link-muted {
  color: var(--vs-light-text-secondary);
}

.link-muted:hover {
  color: var(--vs-light-text);
}

/* ========================================
   LISTS
   ======================================== */
ul, ol {
  margin-bottom: var(--vs-space-lg);
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* ========================================
   CODE & MONO
   ======================================== */
code, pre {
  font-family: 'Monaco', 'Courier New', monospace;
  background: var(--vs-light-surface);
  border-radius: var(--vs-radius-md);
  padding: 0.25rem 0.5rem;
  color: var(--vs-accent);
  font-size: 0.9em;
}

pre {
  padding: var(--vs-space-md);
  overflow-x: auto;
  margin-bottom: var(--vs-space-lg);
}

pre code {
  padding: 0;
  background: none;
  color: var(--vs-light-text);
}

/* ========================================
   BLOCKQUOTE
   ======================================== */
blockquote {
  border-left: 2px solid var(--vs-light-border);
  padding-left: var(--vs-space-lg);
  margin-bottom: var(--vs-space-lg);
  color: var(--vs-light-text-secondary);
  font-style: italic;
  line-height: 1.8;
}

/* ========================================
   HORIZONTAL RULE
   ======================================== */
hr {
  border: none;
  border-top: 1px solid var(--vs-light-border);
  margin: var(--vs-space-xl) 0;
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(2rem, 1.5rem + 3vw, 3rem);
  }

  h2 {
    font-size: clamp(1.75rem, 1.5rem + 2.5vw, 2.5rem);
  }

  .display-title {
    font-size: clamp(2.25rem, 1.5rem + 4vw, 3.5rem);
  }

  .display-subtitle {
    font-size: clamp(1rem, 0.9rem + 1vw, 1.25rem);
  }

  .section-title {
    font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2rem);
  }
}
