/**
 * Xenopz Design System - Typography
 * ===================================
 *
 * Implements the full typography system: heading styles (H1-H3), body text,
 * code blocks, and utility classes. Uses fluid type with clamp() for
 * responsive scaling without breakpoint jumps.
 *
 * Font loading: Google Fonts (Barlow Condensed 800, Inter 400/500/600,
 * JetBrains Mono 400/500) with font-display: swap for performance.
 *
 * Reference: .kiro/specs/xenopz-wordpress-website/design.md
 * Requirements: 3.1, 3.2, 3.3, 3.4, 3.5, 27.3
 */

/* =========================================================================
   HEADINGS
   ========================================================================= */

h1 {
  font-family: var(--x-font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  color: var(--x-teal-900);
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--x-font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--x-teal-900);
}

h3 {
  font-family: var(--x-font-heading);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  color: var(--x-teal-900);
}

/* =========================================================================
   BODY TEXT
   ========================================================================= */

body,
p {
  font-family: var(--x-font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--x-ink);
}

/* =========================================================================
   CODE AND PREFORMATTED TEXT
   ========================================================================= */

code,
pre {
  font-family: var(--x-font-code);
  font-size: 0.9rem;
  background: var(--x-bg-card);
  border: 1px solid var(--x-border);
  border-radius: var(--x-radius-sm);
}

code {
  padding: 0.15em 0.4em;
}

pre {
  padding: var(--x-space-sm);
  overflow-x: auto;
}

pre code {
  padding: 0;
  border: none;
  background: none;
}

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

/**
 * .x-highlight — Orange emphasis text
 *
 * Use inside headings to highlight 1-3 key words in orange.
 * Example: <h1>AI software engineering <span class="x-highlight">with control</span>.</h1>
 */
.x-highlight {
  color: var(--x-orange-500);
}
