/*
 * Single post typography
 *
 * Element-only selectors inside .wp-block-post-content so the editor canvas
 * and the front end resolve to the same scale. Sizes come from theme.json
 * presets rather than one-off clamps.
 *
 * @package Kindling
 */

.single .wp-block-post-content :is(h1, h2, h3, h4, h5, h6),
.post-type-post
	.editor-styles-wrapper
	.wp-block-post-content
	:is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--custom--color--text--heading);
	font-family: var(--wp--custom--font-family--heading);
	font-style: normal;
	font-weight: 600;
}

.single .wp-block-post-content h1,
.post-type-post .editor-styles-wrapper .wp-block-post-content h1 {
	font-size: var(--wp--preset--font-size--medium-large);
	line-height: 1.24;
	letter-spacing: -0.01em;
}

.single .wp-block-post-content h2,
.post-type-post .editor-styles-wrapper .wp-block-post-content h2 {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.28;
}

.single .wp-block-post-content h3,
.post-type-post .editor-styles-wrapper .wp-block-post-content h3 {
	font-size: var(--wp--preset--font-size--body-large);
	line-height: 1.33;
}

/*
 * h4 to h6 intentionally fall through to the global element styles in
 * theme.json.
 */

.single .wp-block-post-content :is(p, li),
.post-type-post .editor-styles-wrapper .wp-block-post-content :is(p, li) {
	color: var(--wp--custom--color--text--body);
	font-family: var(--wp--custom--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-style: normal;
	font-weight: 400;
	line-height: var(--wp--custom--line-height--normal);
}

.single .wp-block-post-content :is(strong, b),
.post-type-post .editor-styles-wrapper .wp-block-post-content :is(strong, b) {
	font-weight: 600;
}

.single .wp-block-post-content .wp-block-list {
	margin-block-start: var(--wp--custom--spacing--16);
}
