/*
 * SZYMWP typography tuning.
 * This file is intentionally isolated from layout and component styling.
 */
:root {
	--szymwp-soft-font: var(--szymwp-font-sans);
}

html,
body,
body :where(h1, h2, h3, h4, h5, h6, p, li, a, strong, em, small, time, dt, dd, summary, label, blockquote, figcaption, table, th, td, input, textarea, select, option, button),
body .elementor-heading-title,
body .elementor-widget-text-editor,
body .elementor-button,
body .elementor-field,
body .elementor-search-form__input,
body .szymwp-main-menu {
	font-family: var(--szymwp-soft-font) !important;
}

/* Keep display typography distinct after the broad readability rule above. */
body :where(h1, h2, h3),
body .elementor-heading-title,
body .entry-title,
body .elementor-post__title,
body .widget-title,
body .szymwp-brand-lockup__name,
body .szymwp-main-menu > li > a {
	font-family: var(--szymwp-font-display) !important;
}

body {
	font-weight: 400;
}

body h1,
body h2,
body .elementor-heading-title {
	font-weight: 700 !important;
	letter-spacing: 0 !important;
}

body h3,
body h4,
body h5,
body h6 {
	font-weight: 600 !important;
	letter-spacing: 0 !important;
}

body .sz-home-v2__eyebrow,
body .sz-home-v2__kicker,
body .sz-home-v2__focus > p,
body .sz-home-v2__focus li span,
body .sz-home-v2__category-card > span,
body .sz-home-v2__work-list li > span {
	font-weight: 600;
}

body .szymwp-modern-post-cards .elementor-post__title,
body .post-navigation__prev--title,
body .post-navigation__next--title {
	font-weight: 600;
}

body .post_content,
body .entry-content {
	font-weight: 400;
}

/* A slightly quieter, consistent title scale across templates. */
body .elementor-widget-theme-post-title .elementor-heading-title {
	font-size: 23px !important;
	line-height: 1.42 !important;
}

body.archive h1.elementor-heading-title,
body.search h1.elementor-heading-title {
	font-size: clamp(28px, 2.5vw, 36px) !important;
	line-height: 1.35 !important;
}

body .elementor-post__title,
body .elementor-post__title a {
	font-size: 15px !important;
	line-height: 1.5 !important;
}

/* Keep post-card titles consistent in archives, home lists and single-page
 * related-post widgets, regardless of Elementor's per-widget typography. */
body .szymwp-modern-post-cards .elementor-post__title,
body .szymwp-modern-post-cards .elementor-post__title a,
body.single .elementor-widget-posts .elementor-post__title,
body.single .elementor-widget-posts .elementor-post__title a {
	font-size: 14px !important;
	line-height: 1.45 !important;
}

body .post_content h2,
body .entry-content h2 {
	font-size: 21px !important;
	line-height: 1.55 !important;
}

body .post_content h3,
body .entry-content h3 {
	font-size: 18px !important;
	line-height: 1.6 !important;
}

body .post_content h4,
body .entry-content h4 {
	font-size: 17px !important;
}

body .sz-home-v2__intro h1 {
	font-size: clamp(35px, 3vw, 50px) !important;
}

body .sz-home-v2__section-heading h2 {
	font-size: clamp(27px, 1.95vw, 35px) !important;
}

body .sz-home-v2__category-card h3 {
	font-size: 18px !important;
}

body .sz-home-v2__contact-copy h2 {
	font-size: clamp(21px, 1.7vw, 28px) !important;
}

@media (max-width: 767px) {
	body .elementor-widget-theme-post-title .elementor-heading-title {
		font-size: 22px !important;
		line-height: 1.45 !important;
	}

	body.archive h1.elementor-heading-title,
	body.search h1.elementor-heading-title {
		font-size: 26px !important;
	}

	body .elementor-post__title,
	body .elementor-post__title a {
		font-size: 13px !important;
	}

	body .szymwp-modern-post-cards .elementor-post__title,
	body .szymwp-modern-post-cards .elementor-post__title a,
	body.single .elementor-widget-posts .elementor-post__title,
	body.single .elementor-widget-posts .elementor-post__title a {
		font-size: 13px !important;
		line-height: 1.45 !important;
	}

	body .sz-home-v2__archive-grid .elementor-post__title,
	body .sz-home-v2__archive-grid .elementor-post__title a {
		font-size: 13px !important;
		line-height: 1.45 !important;
	}

	body .post_content h2,
	body .entry-content h2 {
		font-size: 20px !important;
	}

	body .post_content h3,
	body .entry-content h3 {
		font-size: 18px !important;
	}

	body .sz-home-v2__intro h1 {
		font-size: 30px !important;
	}

	body .sz-home-v2__section-heading h2 {
		font-size: 25px !important;
	}
}

body :where(code, pre, kbd, samp),
body :where(code, pre, kbd, samp) * {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
}
