/* Typography System - Maximalist Design */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-neutral-700);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings - Mobile First Responsive */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

/* Mobile heading sizes */
h1 {
  font-size: clamp(1.75rem, 8vw, var(--font-size-4xl));
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
}

h2 {
  font-size: clamp(1.5rem, 6vw, var(--font-size-3xl));
  font-weight: var(--font-weight-black);
}

h3 {
  font-size: clamp(1.25rem, 5vw, var(--font-size-2xl));
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: clamp(1.125rem, 4vw, var(--font-size-xl));
  font-weight: var(--font-weight-bold);
}

h5 {
  font-size: clamp(1rem, 3vw, var(--font-size-lg));
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: clamp(0.9375rem, 2.5vw, var(--font-size-base));
  font-weight: var(--font-weight-semibold);
}

/* Paragraphs - Responsive */
p {
  margin-bottom: var(--space-2);
  line-height: 1.6;
  font-size: clamp(0.9375rem, 2vw, var(--font-size-base));
}

@media (min-width: 375px) {
  h1 {
    font-size: clamp(2rem, 7.5vw, var(--font-size-4xl));
  }

  h2 {
    font-size: clamp(1.625rem, 5.5vw, var(--font-size-3xl));
  }

  p {
    line-height: var(--line-height-relaxed);
  }
}

@media (min-width: 640px) {
  p {
    margin-bottom: var(--space-3);
  }
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

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

/* Strong and emphasis */
strong, b {
  font-weight: var(--font-weight-bold);
}

em, i {
  font-style: italic;
}

/* Lists */
ul, ol {
  margin-bottom: var(--space-3);
  padding-left: var(--space-4);
}

li {
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-1);
}

/* Responsive Typography - Additional breakpoints for optimal scaling */
@media (min-width: 640px) {
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-3);
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: clamp(3rem, 6vw, var(--font-size-5xl));
  }

  h2 {
    font-size: clamp(2.5rem, 5vw, var(--font-size-4xl));
  }

  h3 {
    font-size: clamp(2rem, 4vw, var(--font-size-3xl));
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: clamp(3.5rem, 5vw, var(--font-size-6xl));
  }

  h2 {
    font-size: clamp(3rem, 4vw, var(--font-size-5xl));
  }
}

/* Text utilities */
.text-center {
  text-align: center;
}

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

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

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

.text-secondary {
  color: var(--color-neutral-500);
}

.text-white {
  color: var(--color-white);
}

.text-small {
  font-size: clamp(0.8125rem, 1.5vw, var(--font-size-sm));
}

.text-large {
  font-size: clamp(1rem, 2.5vw, var(--font-size-lg));
}

.text-xl {
  font-size: clamp(1.125rem, 3vw, var(--font-size-xl));
}

.text-2xl {
  font-size: clamp(1.25rem, 4vw, var(--font-size-2xl));
}

.text-3xl {
  font-size: clamp(1.5rem, 5vw, var(--font-size-3xl));
}

.font-light {
  font-weight: var(--font-weight-light);
}

.font-normal {
  font-weight: var(--font-weight-normal);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.font-black {
  font-weight: var(--font-weight-black);
}

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

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

/* Special text effects */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-gold), var(--color-accent-teal));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shadow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

.italic {
  font-style: italic;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
