/* assets/css/type-overrides.css */
@layer utilities {
  /* H1/H2 per spec; others proportional (~0.846 ratio), rounded.
     Line-height = font-size + 4px. */

  h1, .h1 {
    font-family: var(--font-display) !important;
    font-weight: 600 !important; /* SemiBold for better hierarchy */
    font-size: 26px !important;
    line-height: 30px !important;
    letter-spacing: -0.01em !important;
  }
  h2, .h2 {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 22px !important;
    line-height: 26px !important;
    letter-spacing: -0.01em !important;
  }
  h3, .h3 {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 19px !important;   /* 22 * 0.846 ≈ 18.6 → 19 */
    line-height: 23px !important; /* +4 */
  }
  h4, .h4 {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 16px !important;   /* 19 * 0.846 ≈ 16.1 → 16 */
    line-height: 20px !important;
  }
  h5, .h5 {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 14px !important;   /* 16 * 0.846 ≈ 13.5 → 14 */
    line-height: 18px !important;
  }
  h6, .h6 {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 12px !important;   /* 14 * 0.846 ≈ 11.8 → 12 */
    line-height: 16px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
  }

  /* Button typography to match body text hierarchy */
  .btn,
  .btn-primary-cta,
  .btn-secondary-cta {
    font-size: 16px !important; /* Match body text */
    line-height: 1.25 !important;
    font-weight: 500 !important;
  }

  .btn-sm {
    font-size: 14px !important; /* One step down */
    line-height: 1.25 !important;
  }

  .btn-lg {
    font-size: 18px !important; /* One step up, still below H3 */
    line-height: 1.25 !important;
  }
}