/* ==========================================================================
   SEO Engine Design System — Typography Classes
   UI-0012 through UI-0017
   Depends on: tokens.css (font family tokens must be loaded first)
   Breakpoints: mobile < 768px, tablet 768-1023px, desktop >= 1024px
   ========================================================================== */

/* --------------------------------------------------------------------------
   UI-0012: H1 Hero
   Space Grotesk, fluid 2.75rem–4.5rem, weight 700, lh 1.08, ls -0.025em
   -------------------------------------------------------------------------- */
.h1-hero {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   UI-0013: H1 Page
   Space Grotesk, 56px desktop / 36px mobile, weight 700, lh 1.1, ls -0.02em
   -------------------------------------------------------------------------- */
.h1-page {
  font-family: var(--font-display);
  font-size: 3.5rem;      /* 56px */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .h1-page {
    font-size: 2.25rem;   /* 36px */
  }
}

/* --------------------------------------------------------------------------
   UI-0014: H2 Section
   Space Grotesk, 40px desktop / 28px mobile, weight 700, lh 1.15, ls -0.02em
   -------------------------------------------------------------------------- */
.h2-section {
  font-family: var(--font-display);
  font-size: 2.5rem;      /* 40px */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .h2-section {
    font-size: 1.75rem;   /* 28px */
  }
}

/* --------------------------------------------------------------------------
   UI-0015: H3 Subsection through H6 Small Label
   -------------------------------------------------------------------------- */

/* H3: 30px desktop / 24px mobile, weight 600, lh 1.2, ls -0.015em */
.h3-subsection {
  font-family: var(--font-display);
  font-size: 1.875rem;    /* 30px */
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-transform: none;
}

@media (max-width: 767px) {
  .h3-subsection {
    font-size: 1.5rem;    /* 24px */
  }
}

/* H4: 24px desktop / 20px mobile, weight 600, lh 1.25, ls 0.01em */
.h4-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;      /* 24px */
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: none;
}

@media (max-width: 767px) {
  .h4-card-title {
    font-size: 1.25rem;   /* 20px */
  }
}

/* H5: 20px desktop / 18px mobile, weight 600, lh 1.3, ls 0 */
.h5-label {
  font-family: var(--font-display);
  font-size: 1.25rem;     /* 20px */
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 767px) {
  .h5-label {
    font-size: 1.125rem;  /* 18px */
  }
}

/* H6: 16px both breakpoints, weight 600, lh 1.4, ls 0.02em, uppercase */
.h6-small-label {
  font-family: var(--font-display);
  font-size: 1rem;        /* 16px */
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   UI-0016: Body Text Scale
   All body text uses --font-body (Inter)
   -------------------------------------------------------------------------- */

/* Body Large: 20px, weight 400, lh 1.6, ls 0 */
.body-large {
  font-family: var(--font-body);
  font-size: 1.25rem;     /* 20px */
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

/* Body Regular: 16px, weight 400, lh 1.6, ls 0 */
.body-regular {
  font-family: var(--font-body);
  font-size: 1rem;        /* 16px */
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

/* Body Small: 14px, weight 400, lh 1.5, ls 0 */
.body-small {
  font-family: var(--font-body);
  font-size: 0.875rem;    /* 14px */
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Body XS: 12px, weight 400, lh 1.5, ls 0 */
.body-xs {
  font-family: var(--font-body);
  font-size: 0.75rem;     /* 12px */
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Body Large Bold: 20px, weight 600, lh 1.6, ls 0 */
.body-large-bold {
  font-family: var(--font-body);
  font-size: 1.25rem;     /* 20px */
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
}

/* Body Bold: 16px, weight 600, lh 1.6, ls 0 */
.body-bold {
  font-family: var(--font-body);
  font-size: 1rem;        /* 16px */
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
}

/* Body Small Bold: 14px, weight 600, lh 1.5, ls 0 */
.body-small-bold {
  font-family: var(--font-body);
  font-size: 0.875rem;    /* 14px */
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Caption: 12px, weight 500, lh 1.4, ls 0.02em */
.caption {
  font-family: var(--font-body);
  font-size: 0.75rem;     /* 12px */
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Overline: 12px, weight 600, lh 1.4, ls 0.08em, uppercase */
.overline {
  font-family: var(--font-body);
  font-size: 0.75rem;     /* 12px */
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   UI-0017: Monospace Text Classes
   JetBrains Mono stack — for data values, code snippets, DNS records
   -------------------------------------------------------------------------- */

/* Mono Regular: 14px, weight 400 */
.mono-regular {
  font-family: var(--font-mono);
  font-size: 0.875rem;    /* 14px */
  font-weight: 400;
  line-height: 1.5;
}

/* Mono Small: 12px, weight 400 */
.mono-small {
  font-family: var(--font-mono);
  font-size: 0.75rem;     /* 12px */
  font-weight: 400;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Typography — Mobile Responsive Fixes
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .h1-hero {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
    letter-spacing: -0.02em;
  }

  .h1-page {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .h2-section {
    font-size: clamp(1.375rem, 5.5vw, 1.875rem);
    letter-spacing: -0.015em;
  }

  .h3-card {
    font-size: clamp(1.125rem, 4vw, 1.375rem);
  }

  .body-large {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .overline {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 374px) {
  .h1-hero {
    font-size: 1.625rem;
  }

  .h2-section {
    font-size: 1.25rem;
  }

  .body-large {
    font-size: 0.875rem;
  }
}
