/**
 * Ebbert — type scale.
 *
 * Sizes/line-heights are MEASURED from the artboard, not read off its token file (which claims
 * H1 64/90 weight 500 — the artboard actually renders 56/66 weight 700 via inline styles).
 *
 * Oswald loads ONLY 400 and 700. Never set a heading to 500 or it silently synthesises.
 */

body,
p {
	font-family: var(--ebbert-font-body);
	font-size: var(--ebbert-text);
	line-height: var(--ebbert-text-lh);
	color: var(--ebbert-body);
}

h1, h2, h3, h4, h5, h6,
.entry-title {
	font-family: var(--ebbert-font-heading);
	font-weight: var(--ebbert-w-head);
	color: var(--ebbert-ink);
}

/* SPECIFICITY: Astra scopes its heading sizes as `.entry-content :where(h2)`. The :where() has
   zero specificity, so the rule still scores 0-1-0 from `.entry-content` — which beats a bare
   `h2` at 0-0-1. Result: every content heading rendered at Astra's 30px instead of the artboard's
   48px, silently. Scope ours the same way (0-1-1) so the token wins.
   Verified with matching-rules.mjs. */
/* h1 ONLY for .entry-title. On the blog archive `.entry-title` is the h2 inside each card, so
   the unqualified selector gave every card a 56px title — 801px tall inside a 202px column once
   the sidebar narrowed the cards. Card titles are sized in sections.css. */
h1, h1.entry-title,
.entry-content h1,
.entry-content h1.entry-title { font-size: var(--ebbert-h1); line-height: var(--ebbert-h1-lh); }

h2, .entry-content h2 { font-size: var(--ebbert-h2); line-height: var(--ebbert-h2-lh); }
h3, .entry-content h3 { font-size: var(--ebbert-h3); line-height: var(--ebbert-h3-lh); }

/* Spectra renders headings inside a wrapper div, so target the inner element too. */
.entry-content .uagb-heading-text { font-size: inherit; line-height: inherit; }
.entry-content h2.uagb-heading-text { font-size: var(--ebbert-h2); line-height: var(--ebbert-h2-lh); }
.entry-content h3.uagb-heading-text { font-size: var(--ebbert-h3); line-height: var(--ebbert-h3-lh); }

/* Eyebrow / ALL-CAPS subheading — Nunito Sans 600, gold, tracked 2.4px (measured). */
.ebbert-eyebrow {
	font-family: var(--ebbert-font-body);
	font-size: var(--ebbert-eyebrow);
	font-weight: var(--ebbert-w-semi);
	line-height: var(--ebbert-text-lh);
	text-transform: uppercase;
	letter-spacing: var(--ebbert-eyebrow-ls);
	color: var(--ebbert-accent);
}
