/* Typography Styles (Mobile-First) */

/* Base typography */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-gray-900);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

/* Headings - Mobile First (smaller on mobile, larger on desktop) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-primary);
}

/* Mobile heading sizes */
h1 {
  font-size: var(--font-size-4xl); /* 36px - mobile */
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-3xl); /* 30px - mobile */
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--font-size-2xl); /* 24px - mobile */
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--font-size-xl); /* 20px - mobile */
}

h5 {
  font-size: var(--font-size-lg); /* 18px - mobile */
}

h6 {
  font-size: var(--font-size-base); /* 16px - mobile */
}

/* Tablet sizes */
@media (min-width: var(--breakpoint-md)) {
  h1 {
    font-size: var(--font-size-5xl); /* 48px - tablet */
  }

  h2 {
    font-size: var(--font-size-4xl); /* 36px - tablet */
  }

  h3 {
    font-size: var(--font-size-3xl); /* 30px - tablet */
  }
}

/* Desktop sizes */
@media (min-width: var(--breakpoint-xl)) {
  h1 {
    font-size: var(--font-size-6xl); /* 56px - desktop */
  }

  h2 {
    font-size: var(--font-size-5xl); /* 48px - desktop */
  }

  h3 {
    font-size: var(--font-size-4xl); /* 36px - desktop */
  }

  h4 {
    font-size: var(--font-size-3xl); /* 30px - desktop */
  }

  h5 {
    font-size: var(--font-size-2xl); /* 24px - desktop */
  }

  h6 {
    font-size: var(--font-size-xl); /* 20px - desktop */
  }
}

/* Paragraphs */
p {
  margin-bottom: var(--spacing-4);
  color: var(--color-gray-700);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Text utilities */
.text-sm {
  font-size: var(--font-size-sm);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

.text-2xl {
  font-size: var(--font-size-2xl);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

.text-gray {
  color: var(--color-gray-500);
}

/* Lists */
ul, ol {
  margin-bottom: var(--spacing-4);
  padding-left: var(--spacing-6);
}

ul li {
  margin-bottom: var(--spacing-2);
  position: relative;
}

ul li::marker {
  color: var(--color-accent);
}

ol li {
  margin-bottom: var(--spacing-2);
}

/* Strong and emphasis */
strong, b {
  font-weight: var(--font-weight-bold);
}

em, i {
  font-style: italic;
}

/* Blockquote */
blockquote {
  margin: var(--spacing-6) 0;
  padding-left: var(--spacing-6);
  border-left: 4px solid var(--color-accent);
  font-style: italic;
  color: var(--color-gray-600);
}

/* Code */
code {
  font-family: 'Courier New', Courier, monospace;
  background-color: var(--color-gray-100);
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

pre {
  background-color: var(--color-gray-100);
  padding: var(--spacing-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--spacing-4);
}

pre code {
  background-color: transparent;
  padding: 0;
}

