/* ==========================================================================
   Typography System for Serena Health Resources
   Magazine-quality type hierarchy
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ==========================================================================
   Base Typography
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--gray-900);
  background-color: var(--cream);
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--black);
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

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

h6 {
  font-size: var(--text-lg);
}

/* Responsive heading sizes */
@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }
}

/* ==========================================================================
   Paragraphs and Body Text
   ========================================================================== */

p {
  margin-bottom: var(--space-md);
  color: var(--gray-700);
}

.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-normal);
  color: var(--gray-700);
}

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

/* ==========================================================================
   Links
   ========================================================================== */

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-pink);
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Gradient text link */
.link-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Text Utilities
   ========================================================================== */

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

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

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-pink { color: var(--accent-pink); }
.text-purple { color: var(--accent-purple); }
.text-blue { color: var(--accent-blue); }
.text-gray { color: var(--gray-500); }

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

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ==========================================================================
   Article Typography
   ========================================================================== */

.article-content {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.article-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: var(--text-2xl);
}

.article-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: var(--text-xl);
}

.article-content p {
  margin-bottom: var(--space-md);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.article-content li {
  margin-bottom: var(--space-xs);
  color: var(--gray-700);
}

.article-content blockquote {
  margin: var(--space-lg) 0;
  padding-left: var(--space-md);
  border-left: 3px solid var(--accent-purple);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--accent-purple);
}

/* ==========================================================================
   Meta Text
   ========================================================================== */

.meta {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-family: var(--font-body);
}

.meta-separator {
  display: inline-block;
  margin: 0 0.5em;
  color: var(--gray-300);
}

.date {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.read-time {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ==========================================================================
   Author
   ========================================================================== */

.author-name {
  font-weight: 600;
  color: var(--black);
}

.author-title {
  font-size: var(--text-sm);
  color: var(--gray-500);
}
