/* HAOLU typography audit — local candidate, 7 October 2026.
 * These tokens transcribe styles.css, not a new visual scale. Existing scoped
 * hero, editorial, product, form, Resources/Legal and shared-ending roles win.
 * See authoring/typography-audit/REPORT_IT.md for measured evidence and limits.
 */
:root {
  --haolu-font-sans: Arial, Helvetica, sans-serif;
  --haolu-type-section: clamp(2.25rem, 3.1vw, 2.8rem);
  --haolu-leading-body: 1.62;
  --haolu-type-eyebrow: .72rem;
  --haolu-weight-eyebrow: 700;
  --haolu-tracking-eyebrow: .075em;
  --haolu-type-home-eyebrow: .8125rem;
  font-family: var(--haolu-font-sans);
}

/* Preserve the canonical fallback roles. More specific component rules retain
 * their intentional dimensions, line heights, weights and locale tracking. */
h2 { font-size: var(--haolu-type-section); }
p { line-height: var(--haolu-leading-body); }
.eyebrow {
  font-size: var(--haolu-type-eyebrow);
  font-weight: var(--haolu-weight-eyebrow);
  letter-spacing: var(--haolu-tracking-eyebrow);
}
@media (max-width: 479px) {
  :root { --haolu-type-section: 2rem; }
}

/* The People and Canton teaser paragraphs accidentally enlarged their eyebrow
 * to 14/16px. Restore the 13px role already shared by home section intros. */
#home-page .home-people .home-intro > .eyebrow,
#home-page .home-fair-copy > .home-intro > .eyebrow {
  font-size: var(--haolu-type-home-eyebrow);
}

/* Small orange text on warm paper uses the existing readable text orange.
 * These selectors exclude the opening heroes and every dark section/ending. */
#home-page .home-section:not(.home-dark) .home-intro > .eyebrow,
.haolu-canton .cf-section .cf-intro > .eyebrow,
.haolu-canton .cf-registration .cf-form-intro .eyebrow {
  color: var(--accent-text);
}

/* Supporting text on the same light surfaces uses each component's existing
 * muted token. These are content/status notes, not disabled navigation. */
#home-page .home-section:not(.home-dark) .home-intro > p:last-child:not(.eyebrow),
#home-page #home-person p:not(.home-person-link),
#home-page .home-people-tabs small,
#catalog-page .catalog-descriptor,
#catalog-page .catalog-check small,
#catalog-page .catalog-filter-group summary small,
#catalog-page .catalog-card-colors small,
#products-compare-page .compare-unknown,
.haolu-canton .cf-company-visit small,
.haolu-canton .cf-field small,
.haolu-canton .cf-fieldset > small,
.haolu-canton .cf-form-end > p,
.haolu-canton .cf-hall-map figcaption {
  color: var(--muted);
}

/* Start a Project defines its own --muted (#63666b). Keep that form palette and
 * all existing field sizes, rather than introducing a new global form theme. */
#sp-content .rail-caption,
#sp-content .tech-note,
#sp-content .feature-top-note,
#sp-content .upload-zone small,
#sp-content .review-row dt,
#sp-content .review-note,
#sp-content .step-footnote {
  color: var(--muted);
}
#sp-content .helper {
  /* The source helper rule is !important; this narrow override matches it. */
  color: var(--muted) !important;
}

/* Shared endings must not inherit Company/Canton page-level heading/paragraph
 * tracking and leading. Use the values of their matching shared-shell roles. */
#site-ending .co-next-intro .eyebrow,
#site-ending .co-next-contact {
  line-height: var(--haolu-leading-body);
}
#site-ending .sf-legal-title {
  letter-spacing: 0;
}
