/**
 * Revita: core/heading block styles.
 * Kicker: a small uppercase line above a title, with a honey hexagon mark. It also works
 * as a class on paragraphs. Two-tone: <strong> words take the brand colour; the rest
 * keeps the heading colour (authors bold the first word).
 * Both follow the surface: honey cream or honey on purple, deep purple on honey.
 */

:root .is-style-kicker:is(.wp-block-heading, p) {
	color: var(--revita-kicker, var(--wp--preset--color--primary));
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.35;
	text-transform: uppercase;
}

:root .is-style-kicker:is(.wp-block-heading, p)::before {
	content: "";
	display: inline-block;
	inline-size: 0.8em;
	block-size: 0.7em;
	margin-inline-end: 0.6em;
	vertical-align: -0.02em;
	background-color: var(--revita-mark, var(--wp--preset--color--accent-deep));
	clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

/* A kicker sits close to the title that follows it. */
:root :where(.is-layout-flow, .is-layout-constrained) > .is-style-kicker + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

.wp-block-heading.is-style-two-tone strong {
	color: var(--revita-emphasis, var(--wp--preset--color--primary));
	font-weight: inherit;
}
