/**
 * Core block + element overrides — brand typography
 *
 * Fonts only here. Colors come from `theme.json` (elements + blocks) so the
 * editor’s text-color UI (`.has-text-color`, `.has-*-color`, inline style)
 * can override the Primary/Text defaults.
 *
 * Parent theme.json sets h1–h6 color to `secondary`; child theme.json sets
 * Primary on each heading level — do not re-force color in this file.
 *
 * @package HS_Helix_Child
 * @see AI-STYLE-GUIDE.md
 */

/* ==========================================================================
   Headings — Crimson Pro (H1–H5) / Instrument Sans (H6)
   ========================================================================== */

h1, h2, h3, h4, h5,
.wp-block-heading:where(h1, h2, h3, h4, h5),
.editor-post-title__input,
.wp-block-post-title,
.entry-title {
  font-family: var(--wp--preset--font-family--crimson-pro);
}

h6,
.wp-block-heading:where(h6) {
  font-family: var(--wp--preset--font-family--instrument-sans);
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper .wp-block-heading:where(h1, h2, h3, h4, h5),
.editor-styles-wrapper .editor-post-title__input {
  font-family: var(--wp--preset--font-family--crimson-pro);
}

.editor-styles-wrapper h6,
.editor-styles-wrapper .wp-block-heading:where(h6) {
  font-family: var(--wp--preset--font-family--instrument-sans);
}

/* ==========================================================================
   Body / paragraphs / lists — Instrument Sans
   ========================================================================== */

body,
p,
.wp-block-paragraph,
.entry-content,
.wp-block-post-content,
.editor-styles-wrapper {
  font-family: var(--wp--preset--font-family--instrument-sans);
}

ul, ol, li,
.wp-block-list,
.wp-block-list-item {
  font-family: var(--wp--preset--font-family--instrument-sans);
}

/* ==========================================================================
   Quote / Pullquote / Verse / Code / Pre / Table
   ========================================================================== */

.wp-block-quote,
.wp-block-quote p,
.wp-block-quote cite,
.wp-block-pullquote cite {
  font-family: var(--wp--preset--font-family--instrument-sans);
}

.wp-block-pullquote,
.wp-block-pullquote p,
.wp-block-pullquote blockquote {
  font-family: var(--wp--preset--font-family--crimson-pro);
}

.wp-block-verse,
.wp-block-preformatted,
.wp-block-code,
.wp-block-code code {
  font-family: var(--wp--preset--font-family--instrument-sans);
}

.wp-block-table,
.wp-block-table th,
.wp-block-table td {
  font-family: var(--wp--preset--font-family--instrument-sans);
}

.wp-block-table th {
  font-weight: 500;
}

/* ==========================================================================
   Captions / Details / Forms
   ========================================================================== */

.wp-element-caption,
.wp-block-image figcaption,
.wp-block-gallery figcaption,
.wp-block-embed figcaption,
.wp-block-video figcaption,
.wp-block-audio figcaption {
  font-family: var(--wp--preset--font-family--instrument-sans);
}

.wp-block-details,
.wp-block-details summary {
  font-family: var(--wp--preset--font-family--instrument-sans);
}

.wp-block-details summary {
  font-weight: 500;
}

input,
textarea,
select,
.wp-block-search__input {
  font-family: var(--wp--preset--font-family--instrument-sans);
}
