/* Home typography and rhythm overrides. */

/* Overrides body and the home copy rules that use 1.65–1.85 leading. */
body {
  font-size: 16px;
  line-height: 1.7;
}

/* Overrides .hero-inner h1; the existing em accent remains untouched. */
.hero-inner h1 {
  font-size: clamp(36px, 5.6vw, 80px);
  line-height: 1.08;
  letter-spacing: -.015em;
}

/* Overrides .eyebrow, .kicker and the home-page metadata rules. */
.eyebrow,
.kicker,
.tile-copy small,
.note-no,
.note-no span,
.case-label,
.visual-top,
.visual-bottom,
.frame-count span,
.route-step,
.route-step > span:first-of-type,
.small-meta,
.collab-number,
.digest-state,
.digest-output span,
.digest-output strong,
.outcome strong {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Overrides home body-copy selectors, including prose stored in spans. */
.hero-lead,
.about p,
.about .large,
.about .split > div:last-child > span,
.harness-layout p,
.notes-intro p,
.note p,
.section-top > p,
.tile-copy > span,
.collab-intro p,
.collab-label small,
.collab-detail,
.collab-detail p,
.collab-detail .collab-output,
.collab-note,
.digest-lead,
.digest-stage p,
.digest-note,
.stories-heading p,
.feature-copy .case-description,
.outcome p,
.case-limits,
.small-story p,
.principles-head > span,
.closing .split > div:last-child > span {
  font-size: 16px;
  line-height: 1.7;
  max-width: 68ch;
}

/* Overrides compact 13/14px action and navigation rules. */
.mast nav,
.contact,
.btn,
.harness-link,
.case-actions a,
.small-story a,
.collab-detail a,
.digest-controls button {
  font-size: 16px;
}

/* Overrides .footer's 13px rule with the 12px supporting-text tier. */
.footer {
  font-size: 12px;
}

/* Overrides .principle-grid span: number and description are separate tiers. */
.principle-grid > div > span:first-child {
  color: var(--gold);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Overrides .principle-grid span and explicitly covers a future paragraph. */
.principle-grid > div > span:last-child,
.principle-grid > div > p {
  display: block;
  color: #c9c3b4;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
  max-width: 68ch;
}

/* Overrides the mixed 85–110px section padding with an 8px-based rhythm. */
main > section:not(.home-hero) {
  padding-block: 72px;
}

/* Overrides off-scale vertical spacing in the home sections. */
.eyebrow,
.kicker {
  margin-bottom: 24px;
}

.hero-inner {
  padding-block: 72px;
}

.hero-lead {
  margin-top: 24px;
}

.notes-intro {
  margin-bottom: 32px;
}

.principle-grid {
  margin-top: 56px;
}

.trio-entry.collab-example {
  padding-top: 32px;
}

.collab-intro {
  margin-bottom: 24px;
}

.stories-heading {
  margin-bottom: 48px;
}

@media (min-width: 901px) {
  /* Overrides .hero-inner h1's 900px measure on desktop. */
  .hero-inner h1 {
    max-width: 14ch;
  }
}

@media (max-width: 900px) {
  /* Overrides all existing mobile section-padding variants. */
  main > section:not(.home-hero) {
    padding-block: 48px;
  }

  .hero-inner {
    padding-block: 48px;
  }
}
