/* Line breaks only. Colors, sizes, and spacing stay in the page stylesheets.
   Balance keeps headings and buttons from dangling a short last line.
   Pretty does the same for body copy. The footer keeps its own breaks. */

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.page-title,
.section-heading,
.feature-title,
.step-title,
.covenant-name,
.agent-name,
.page-eyebrow,
.section-label,
.hero-eyebrow,
button,
.btn,
.btn-primary,
.btn-ghost,
.btn-nav,
a.btn,
a.btn-primary,
a.btn-ghost,
a.btn-nav {
  text-wrap: balance;
}

p,
li,
blockquote,
.section-sub,
.feature-desc,
.agent-desc,
.agent-verse,
.covenant-desc,
.covenant-verse,
.step-desc,
.page-subtitle,
.field-hint,
.field-note,
.scripture,
.scripture-block,
.hero-verse,
.hero-tagline,
.chat-bubble,
.about-note,
.empty-state,
.flow-empty__body,
.progress-label {
  text-wrap: pretty;
}

/* "A Journey Digital product, built on The / Forge." is an intentional wrap. */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer li {
  text-wrap: wrap;
}

/* The closing title stays 2rem. On a phone the forced break strands a single
   word, so balance the whole line. 320px also needs tighter tracking or
   "God Provides?" runs past the screen. */
@media (max-width: 400px) {
  .cta-section .section-title br {
    display: none;
  }
  /* Keep each heading on lines of two or more words.
     h2. beats the page stylesheets, which load after this file. */
  h2.section-title { letter-spacing: 0; }
  article h2,
  .btn,
  .btn--ghost,
  .btn--primary {
    letter-spacing: 1px;
  }
  h1.hero-title { letter-spacing: 2px; }
  #how .step-title { letter-spacing: 1px; }
  h1.page-title--long {
    letter-spacing: 0;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }
}
@media (max-width: 340px) {
  .cta-section .section-title {
    letter-spacing: 1px;
  }
  h2.title-tight { font-size: 1.15rem; }
  h1.hero-title {
    letter-spacing: 0;
    font-size: 1.85rem;
  }
  article h2 { letter-spacing: 1px; }
}
