.homeyard-home-intro,
.homeyard-category-guide {
	box-sizing: border-box;
	color: var(--wp--preset--color--contrast, #332d2d);
	margin: clamp(4rem, 7vw, 8rem) auto;
	max-width: 128rem;
	padding-inline: clamp(1.6rem, 4vw, 4rem);
}

.homeyard-home-intro {
	background: var(--wp--preset--color--bg, #e7e5d8);
	border-radius: 0.4rem;
	padding-block: clamp(4rem, 6vw, 7rem);
}

.homeyard-home-intro__eyebrow {
	color: var(--wp--preset--color--light-green-01, #9b915c);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 1.2rem;
	text-transform: uppercase;
}

.homeyard-home-intro h2,
.homeyard-category-guide h2 {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: clamp(3.2rem, 4vw, 5.2rem);
	font-weight: 400;
	line-height: 1.08;
	margin: 0 0 2rem;
}

.homeyard-home-intro__lead {
	font-size: clamp(1.7rem, 1.7vw, 2rem);
	line-height: 1.65;
	margin: 0;
	max-width: 86rem;
}

.homeyard-home-intro__cards {
	display: grid;
	gap: 1.6rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: clamp(3rem, 5vw, 5rem);
}

.homeyard-home-intro__cards article {
	background: var(--wp--preset--color--base, #fff);
	padding: clamp(2.2rem, 3vw, 3.2rem);
}

.homeyard-home-intro__cards h3,
.homeyard-category-guide h3 {
	font-size: clamp(2rem, 2vw, 2.6rem);
	line-height: 1.25;
	margin: 0 0 1.2rem;
}

.homeyard-home-intro__cards p,
.homeyard-category-guide p {
	font-size: 1.7rem;
	line-height: 1.7;
}

.homeyard-home-intro__cards p {
	margin: 0;
}

.homeyard-home-intro__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem 2.4rem;
	margin: 3rem 0 0;
}

.homeyard-home-intro__links a,
.homeyard-category-guide a {
	color: inherit;
	font-weight: 700;
	text-decoration-thickness: 0.1rem;
	text-underline-offset: 0.25em;
}

/*
 * Category introductions should read as a deliberate, wide lead section.
 * The theme otherwise constrains this copy to a narrow column below the H1.
 */
body.tax-product_cat .block-product-list-header__current-term,
body.tax-product_tag .block-product-list-header__current-term,
body.woocommerce-shop .block-product-list-header__current-term {
	box-sizing: border-box;
	max-width: none;
	width: 100%;
}

body.tax-product_cat .block-product-list-header__current-term-description,
body.tax-product_tag .block-product-list-header__current-term-description,
body.woocommerce-shop .block-product-list-header__current-term-description {
	border-left: 0.3rem solid var(--wp--preset--color--light-green-01, #9b915c);
	box-sizing: border-box;
	font-size: clamp(1.7rem, 1.35vw, 1.9rem);
	line-height: 1.65;
	margin-top: clamp(2rem, 2.5vw, 3rem);
	max-width: 110rem;
	padding-left: clamp(1.6rem, 2.5vw, 3rem);
	width: 100%;
}

body.tax-product_cat .block-product-list-header__current-term-description p,
body.tax-product_tag .block-product-list-header__current-term-description p,
body.woocommerce-shop .block-product-list-header__current-term-description p {
	margin: 0;
	max-width: none;
}

/* Keep the lower collage unobstructed while making its centered CTA legible. */
#dolny-blok.block-home-hero .block-home-hero__content {
	align-self: center;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box;
	height: auto;
	justify-self: center;
	min-height: 0;
	padding: clamp(2rem, 3vw, 3.2rem);
	position: relative;
	text-align: center;
	width: min(calc(100% - 4rem), 110rem);
	z-index: 2;
}

#dolny-blok.block-home-hero .block-home-hero__title {
	color: #fff;
	font-size: clamp(3.6rem, 4vw, 5.2rem);
	line-height: 1.08;
	margin: 0;
	max-width: 100rem;
	text-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.9), 0 0.8rem 2.4rem rgba(0, 0, 0, 0.72) !important;
}

#dolny-blok.block-home-hero .wp-block-button {
	margin-top: clamp(2rem, 2.5vw, 2.8rem);
}

#dolny-blok.block-home-hero .wp-block-button__link {
	background: var(--wp--preset--color--contrast, #332d2d);
	color: var(--wp--preset--color--base, #fff);
}

#dolny-blok.block-home-hero .wp-block-button__link:hover,
#dolny-blok.block-home-hero .wp-block-button__link:focus-visible {
	background: #4a4343;
	color: var(--wp--preset--color--base, #fff);
}

.homeyard-category-guide {
	border-top: 0.1rem solid var(--wp--preset--color--light-green-02, #d2ccac);
	max-width: 102.6rem;
	padding-top: clamp(3rem, 5vw, 5rem);
}

.homeyard-category-guide h3 {
	margin-top: 3rem;
}

.homeyard-product-collection-link {
	font-size: 14px;
	line-height: 1.5;
	margin: 8px 0 18px;
}

.homeyard-product-collection-link > span:first-child {
	font-weight: 700;
}

.homeyard-product-collection-link a {
	color: inherit;
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.homeyard-product-collection-link a:hover,
.homeyard-product-collection-link a:focus-visible {
	color: var(--wp--preset--color--light-green-01, #9b915c);
}

/* The standalone product type repeats information already present in the H1 and category. */
body.single-product .block-single-product-hero__type {
	display: none;
}

.block-home-hero__background .homeyard-home-hero-picture {
	display: block;
	height: 100%;
	width: 100%;
}

.block-home-hero__background .homeyard-home-hero-picture > img {
	display: block;
}

@media (max-width: 780px) {
	#dolny-blok.block-home-hero .block-home-hero__content {
		padding: 2.4rem 1.6rem;
		text-align: center;
		width: calc(100% - 3.2rem);
	}

	#dolny-blok.block-home-hero .block-home-hero__title {
		font-size: clamp(2.8rem, 8.5vw, 3.6rem);
	}

	body.tax-product_cat .block-product-list-header__current-term-description,
	body.tax-product_tag .block-product-list-header__current-term-description,
	body.woocommerce-shop .block-product-list-header__current-term-description {
		border-left: 0;
		max-width: none;
		padding-left: 1.9rem;
		position: relative;
	}

	body.tax-product_cat .block-product-list-header__current-term-description::before,
	body.tax-product_tag .block-product-list-header__current-term-description::before,
	body.woocommerce-shop .block-product-list-header__current-term-description::before {
		background: var(--wp--preset--color--light-green-01, #9b915c);
		border-radius: 999px;
		bottom: 0.15rem;
		content: "";
		display: none !important;
		left: 0;
		position: absolute;
		top: 0.15rem;
		width: 0.3rem;
	}

	.homeyard-home-intro__cards {
		grid-template-columns: 1fr;
	}

	.homeyard-home-intro__links {
		align-items: flex-start;
		flex-direction: column;
	}
}
