/* Typography Foundation */

/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;600;700;800;900&display=swap");

/* Base Typography */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.625;
  font-weight: 300;
  color: var(--color-text);
}

/* Headings */
h1, .heading1 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-4xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-title);
  margin: 0 0 1.5rem;
}

h2, .heading2 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-title);
  margin: 0 0 1rem;
}

h3, .heading3 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xl);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-title);
  margin: 0 0 0.75rem;
}

h4, .heading4 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-title);
  margin: 0 0 0.5rem;
}

h5, .heading5 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-title);
  margin: 0 0 0.5rem;
}

h6, .heading6 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-title);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Paragraphs */
p, .paragraph {
  font-size: var(--font-size-base);
  line-height: 1.625;
  color: var(--color-text);
  margin: 0 0 1rem;
}

/* Links */
a, .anchor {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover, .anchor:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* Text Utilities */
.text-primary {
  color: var(--color-primary);
}

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

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

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

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

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

/* Font Weight Utilities */
.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;
}

.font-black {
  font-weight: 900;
}

/* Font Size Utilities */
.text-xs {
  font-size: var(--font-size-xs);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-base {
  font-size: var(--font-size-base);
}

.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-3xl {
  font-size: var(--font-size-3xl);
}

.text-4xl {
  font-size: var(--font-size-4xl);
}

/* Text Transform */
.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

/* Line Height */
.leading-none {
  line-height: 1;
}

.leading-tight {
  line-height: 1.25;
}

.leading-snug {
  line-height: 1.375;
}

.leading-normal {
  line-height: 1.5;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-loose {
  line-height: 2;
}


/* Line Clamping */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1, .heading1 {
    font-size: var(--font-size-3xl);
  }
  
  h2, .heading2 {
    font-size: var(--font-size-xl);
  }
  
  h3, .heading3 {
    font-size: var(--font-size-lg);
  }
}