/**
 * Typography - Fluid type with clamp()
 * 
 * @package DigiHub
 */

/* Headings */
.heading-hero {
  font-family: var(--font-secondary);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.heading-1 {
  font-family: var(--font-secondary);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.heading-2 {
  font-family: var(--font-secondary);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.heading-3 {
  font-family: var(--font-secondary);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.heading-4 {
  font-family: var(--font-secondary);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

/* Body text */
.text-body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-body-lg {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-small {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

.text-xs {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

/* Code */
code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  background: var(--bg-alt);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.6;
}

code {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--primary);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Links */
.link {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--dur-normal) var(--ease-smooth);
}

.link:hover::after,
.link:focus::after {
  width: 100%;
}

/* Lists */
.list-styled {
  list-style: none;
  padding: 0;
}

.list-styled li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.list-styled li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Lead paragraph */
.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 65ch;
}