/* ==========================================================================
   TECHSPEAK — TYPOGRAPHY SYSTEM
   Inter for UI/body. Inter Mono for numbers and data.
   Google Fonts are loaded in functions.php via wp_enqueue_style.
   ========================================================================== */

/* --------------------------------------------------------------------------
   HEADINGS
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* Dark background headings — override color when inside dark sections */
.ts-section--dark h1,
.ts-section--dark h2,
.ts-section--dark h3,
.ts-section--dark h4,
.ts-section--dark h5,
.ts-section--dark h6 {
  color: var(--color-text-white);
}

/* --------------------------------------------------------------------------
   BODY TEXT
   -------------------------------------------------------------------------- */

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

p:last-child {
  margin-bottom: 0;
}

.ts-section--dark p,
.ts-section--dark li {
  color: var(--color-navy-muted);
}

/* Large body text (subheadlines, intros) */
.ts-text-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.ts-text-xl {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   LABELS & EYEBROWS
   Small uppercase label above headings
   -------------------------------------------------------------------------- */

.ts-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}

.ts-label--amber {
  color: var(--color-amber);
}

.ts-label--green {
  color: var(--color-green);
}

.ts-label--muted {
  color: var(--color-navy-muted);
}

/* --------------------------------------------------------------------------
   MONOSPACE — for numbers, metrics, data
   -------------------------------------------------------------------------- */

.ts-mono {
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
}

.ts-stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-green);
  line-height: 1;
}

.ts-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   LINKS
   -------------------------------------------------------------------------- */

a {
  color: var(--color-blue);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-hover);
}

/* Body content links (blog posts, legal pages) */
.ts-content a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   LISTS (within content areas like blog)
   -------------------------------------------------------------------------- */

.ts-content ul,
.ts-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.ts-content ul { list-style: disc; }
.ts-content ol { list-style: decimal; }

.ts-content li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   BLOCKQUOTE
   -------------------------------------------------------------------------- */

.ts-content blockquote {
  border-left: 3px solid var(--color-blue);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background-color: var(--color-blue-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.ts-content blockquote p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   SECTION HEADINGS — layout utility
   -------------------------------------------------------------------------- */

.ts-section-header {
  margin-bottom: var(--space-12);
}

.ts-section-header--center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.ts-section-header h2 {
  margin-bottom: var(--space-4);
}

.ts-section-header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.ts-section--dark .ts-section-header p {
  color: var(--color-navy-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE TYPOGRAPHY
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  h1 { font-size: clamp(2rem, 8vw, var(--text-5xl)); }
  h2 { font-size: clamp(1.75rem, 6vw, var(--text-4xl)); }
  h3 { font-size: clamp(1.375rem, 5vw, var(--text-3xl)); }

  .ts-stat-number {
    font-size: var(--text-3xl);
  }
}
