/* === Typography Components === */

/* === Section Typography === */
.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-align: center;
    font-weight: var(--font-weight-medium);
}

.section-context {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
    text-align: center;
    font-size: var(--font-size-base);
}

/* === Design System Typography Classes === */
.heading-6xl { 
    font-size: var(--font-size-6xl); 
    font-weight: var(--font-weight-bold); 
    line-height: var(--line-height-tight); 
}

.heading-5xl { 
    font-size: var(--font-size-5xl); 
    font-weight: var(--font-weight-bold); 
    line-height: var(--line-height-tight); 
}

.heading-4xl { 
    font-size: var(--font-size-4xl); 
    font-weight: var(--font-weight-bold); 
    line-height: var(--line-height-snug); 
}

.heading-3xl { 
    font-size: var(--font-size-3xl); 
    font-weight: var(--font-weight-semibold); 
    line-height: var(--line-height-snug); 
}

.heading-2xl { 
    font-size: var(--font-size-2xl); 
    font-weight: var(--font-weight-semibold); 
    line-height: var(--line-height-normal); 
}

.heading-xl { 
    font-size: var(--font-size-xl); 
    font-weight: var(--font-weight-medium); 
    line-height: var(--line-height-normal); 
}

.body-lg { 
    font-size: var(--font-size-lg); 
    line-height: var(--line-height-relaxed); 
}

.body-base { 
    font-size: var(--font-size-base); 
    line-height: var(--line-height-normal); 
}

.body-sm { 
    font-size: var(--font-size-sm); 
    line-height: var(--line-height-normal); 
}

.caption { 
    font-size: var(--font-size-xs); 
    color: var(--text-muted); 
    line-height: var(--line-height-normal); 
}

.text-brand { 
    color: var(--color-adobe-red); 
}

.text-accent { 
    color: var(--color-purple); 
}

.type-sample {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    border-left: 3px solid var(--color-adobe-red);
    background: white;
}

.type-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-gray-800);
  margin-bottom: var(--space-lg);
}

h1 {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-gray-800);
}

h2 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-gray-800);
}

h3 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

h4 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

h5 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
}

h6 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
}

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

/* Lead Text */
.lead {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

/* Text Variants */
.text-small {
  font-size: var(--font-size-sm);
}

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

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

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

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

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

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

/* Text Alignment */
.text-left {
  text-align: left;
}

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

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

/* Section Typography */
.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2xl);
  text-align: center;
  color: var(--color-gray-800);
  /* Fallback for browsers that don't support background-clip */
}

.section-subtitle {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
  text-align: center;
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

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

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

/* Code and Monospace */
code {
  font-family: var(--font-monospace);
  font-size: 0.875em;
  background: var(--color-gray-100);
  padding: 0.25em 0.5em;
  border-radius: var(--border-radius-sm);
  color: var(--color-purple);
}

pre {
  font-family: var(--font-monospace);
  background: var(--color-gray-100);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-lg);
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* Blockquotes */
blockquote {
  border-left: var(--border-width-thick) solid var(--color-adobe-red);
  padding-left: var(--space-xl);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
}

/* Links */
a {
  color: var(--color-adobe-red);
  text-decoration: none;
  transition: color var(--timing-base) var(--ease-out);
}

a:hover {
  color: var(--color-purple);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--color-adobe-red);
  outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-xl);
  }
  
  .section-content {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  h3 {
    font-size: var(--font-size-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  /* Design System Typography Responsive */
  .heading-6xl { font-size: 2.5rem; }
  .heading-5xl { font-size: 2rem; }
  .heading-4xl { font-size: 1.75rem; }
  .heading-3xl { font-size: 1.5rem; }
}

/* Additional responsive sizes for design system */
@media (max-width: 768px) {
  .heading-6xl { font-size: 3rem; }
  .heading-5xl { font-size: 2.5rem; }
  .heading-4xl { font-size: 2rem; }
}