/* ==========================================================================
   RESPONSIVE TYPOGRAPHY SYSTEM
   ========================================================================== */

/* Base/Default styles (Desktop first approach) */
/* h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
} */

h2 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 600;
}

h3 {
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 600;
}

p {
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  font-weight: 400;
}

/* Small text */
.text-sm {
  font-size: 0.875rem; /* 14px */
  line-height: 1.5;
}

/* Large text */
.text-lg {
  font-size: 1.25rem; /* 20px */
  line-height: 1.5;
}

/* Extra large text */
.text-xl {
  font-size: 1.5rem; /* 24px */
  line-height: 1.4;
}

/* ==========================================================================
   DESKTOP (1921px+)
   ========================================================================== */
@media (min-width: 1921px) {
  h1 {
    font-size: 5rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 3.5rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 2.25rem;
    line-height: 1.3;
  }

  p {
    font-size: 1.25rem; /* 20px */
    line-height: 1.6;
  }

  .text-sm {
    font-size: 1rem; /* 16px */
  }

  .text-lg {
    font-size: 1.5rem; /* 24px */
  }

  .text-xl {
    font-size: 1.75rem; /* 28px */
  }
}

/* ==========================================================================
   LAPTOP (1367px - 1920px)
   ========================================================================== */
@media (min-width: 1367px) and (max-width: 1920px) {
  h1 {
    font-size: 4rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 3rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 2rem;
    line-height: 1.3;
  }

  p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.6;
  }

  .text-sm {
    font-size: 0.875rem; /* 14px */
  }

  .text-lg {
    font-size: 1.25rem; /* 20px */
  }

  .text-xl {
    font-size: 1.5rem; /* 24px */
  }
}

/* ==========================================================================
   LARGE TABLET (1025px - 1366px)
   ========================================================================== */
@media (min-width: 1025px) and (max-width: 1366px) {
  h1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  p {
    font-size: 1rem; /* 16px */
    line-height: 1.6;
  }

  .text-sm {
    font-size: 0.875rem; /* 14px */
  }

  .text-lg {
    font-size: 1.125rem; /* 18px */
  }

  .text-xl {
    font-size: 1.375rem; /* 22px */
  }
}

/* ==========================================================================
   SMALL TABLET (769px - 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  h1 {
    font-size: 3rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  p {
    font-size: 1rem; /* 16px */
    line-height: 1.6;
  }

  .text-sm {
    font-size: 0.875rem; /* 14px */
  }

  .text-lg {
    font-size: 1.125rem; /* 18px */
  }

  .text-xl {
    font-size: 1.25rem; /* 20px */
  }
}

/* ==========================================================================
   LARGE MOBILE (481px - 768px)
   ========================================================================== */
@media (min-width: 481px) and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.375rem;
    line-height: 1.3;
  }

  p {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.6;
  }

  .text-sm {
    font-size: 0.8125rem; /* 13px */
  }

  .text-lg {
    font-size: 1rem; /* 16px */
  }

  .text-xl {
    font-size: 1.125rem; /* 18px */
  }
}

/* ==========================================================================
   SMALL MOBILE (320px - 480px)
   ========================================================================== */
@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  p {
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
  }

  .text-sm {
    font-size: 0.75rem; /* 12px */
  }

  .text-lg {
    font-size: 0.9375rem; /* 15px */
  }

  .text-xl {
    font-size: 1rem; /* 16px */
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Font weights */
.font-light {
  font-weight: 300;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}

/* Text alignment */
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

/* Line heights */
.leading-tight {
  line-height: 1.25;
}
.leading-normal {
  line-height: 1.5;
}
.leading-relaxed {
  line-height: 1.75;
}

/* Letter spacing */
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-normal {
  letter-spacing: 0;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.1em;
}

/* Special text sizes for specific use cases */
.hero-text {
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 800;
}

.subheading {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
}

.caption {
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 400;
}

/* Responsive hero text */
@media (min-width: 1921px) {
  .hero-text {
    font-size: 6rem;
  }
}

@media (min-width: 1367px) and (max-width: 1920px) {
  .hero-text {
    font-size: 5rem;
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .hero-text {
    font-size: 4rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-text {
    font-size: 3.5rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero-text {
    font-size: 2.75rem;
  }
}

@media (max-width: 480px) {
  .hero-text {
    font-size: 2.25rem;
  }
}
