/* Front-page section rhythm: products first, editorial blog second. */
.home-products__latest {
	padding-block: clamp(48px, 7vw, 88px);
	padding-bottom: clamp(58px, 8vw, 96px);
}

.site-main--home-hero .home-products__latest {
	padding-top: clamp(48px, 6vw, 72px);
}

.home-posts {
	padding-top: clamp(48px, 7vw, 88px);
	border-top: 1px solid var(--pm-border);
}

.home-section-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(24px, 4vw, 38px);
}

.home-section-header__eyebrow {
	margin: 0 0 7px;
	color: var(--pm-muted);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.home-section-header h1,
.home-section-header h2 {
	margin: 0;
	font-size: clamp(2rem, 4.4vw, 3.5rem);
	line-height: 1.02;
	letter-spacing: -.045em;
}

.home-products__grid.products-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
}

.home-products__grid .product-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.home-section-more {
	display: flex;
	justify-content: center;
	margin-top: clamp(34px, 5vw, 52px);
}

.home-section-more__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 11px 24px;
	border: 1px solid var(--pm-fg);
	border-radius: 8px;
	background: var(--pm-fg);
	color: var(--pm-bg);
	font-weight: 800;
	text-decoration: none;
}

.home-section-more__link:hover,
.home-section-more__link:visited {
	color: var(--pm-bg);
}

.home-section-more__link:hover {
	border-color: var(--pm-accent);
	background: var(--pm-accent);
	color: var(--pm-accent-text);
}

.home-posts__header {
	margin-bottom: clamp(28px, 4vw, 44px);
}

/* The first Blog post is a static full-bleed hero. It keeps the current flat
 * three-color language: no card background, radius, shadow or gradient. */
.home-post-featured {
	position: relative;
	width: 100%;
	height: clamp(500px, 72vh, 820px);
	height: clamp(500px, 72svh, 820px);
	overflow: hidden;
	isolation: isolate;
	background: var(--pm-bg);
	color: rgb(var(--pm-hero-text-rgb));
}

.home-post-featured__media,
.home-post-featured__image,
.home-post-featured__placeholder,
.home-post-featured__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.home-post-featured__media {
	display: block;
	color: inherit;
}

.home-post-featured__image {
	display: block;
	object-fit: cover;
	object-position: center;
}

.home-post-featured__placeholder {
	display: block;
	background: var(--pm-surface-strong);
}

.home-post-featured__overlay {
	z-index: 1;
	background: rgb(var(--pm-overlay-rgb) / .68);
}

.home-post-featured__content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	height: 100%;
	pointer-events: none;
}

.home-post-featured__content-inner {
	width: min(760px, 100%);
	padding-bottom: clamp(68px, 9vh, 108px);
	padding-bottom: clamp(68px, 9svh, 108px);
	pointer-events: auto;
}

.home-post-featured__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 14px;
	margin-bottom: 12px;
	color: rgb(var(--pm-hero-text-rgb) / .78);
	font-size: .76rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .065em;
	text-transform: uppercase;
}

.home-post-featured__meta a {
	color: inherit;
	text-decoration: none;
}

.home-post-featured__meta a:hover,
.home-post-featured__meta a:visited {
	color: rgb(var(--pm-hero-text-rgb));
}

.home-post-featured__title {
	max-width: 14ch;
	margin: 0;
	font-size: clamp(2.25rem, 5.7vw, 5.25rem);
	line-height: .98;
	letter-spacing: -.045em;
	text-wrap: balance;
}

.home-post-featured__title a,
.home-post-featured__title a:hover,
.home-post-featured__title a:visited {
	color: rgb(var(--pm-hero-text-rgb));
	text-decoration: none;
}

.home-post-featured__excerpt {
	max-width: 62ch;
	margin-top: 17px;
	color: rgb(var(--pm-hero-text-rgb) / .82);
	font-size: clamp(.98rem, 1.5vw, 1.08rem);
	line-height: 1.6;
}

.home-posts__cards {
	padding-block: clamp(48px, 7vw, 88px);
}

.home-posts__grid.post-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
}

.home-posts__grid .post-card--large {
	grid-column: auto;
}

.home-posts__grid .post-card__thumb,
.home-posts__grid .post-card--large .post-card__thumb {
	aspect-ratio: 16 / 10;
}

.home-posts__empty {
	padding-bottom: clamp(48px, 7vw, 88px);
}

@media (max-width: 900px) {
	.home-post-featured { height: clamp(440px, 64vh, 680px); height: clamp(440px, 64svh, 680px); }
	.home-post-featured__content-inner { padding-bottom: 82px; }

	.home-posts__grid.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-products__grid.products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-products__grid .product-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		max-width: 560px;
	}
}

@media (max-width: 620px) {
	.home-products__latest {
		padding-block: 44px 58px;
	}

	.home-posts {
		padding-top: 44px;
	}

	.home-section-header {
		align-items: start;
	}

	.home-post-featured { height: clamp(420px, 66vh, 620px); height: clamp(420px, 66svh, 620px); }
	.home-post-featured__content-inner { padding-bottom: 58px; }
	.home-post-featured__meta { font-size: .82rem; }

	.home-post-featured__title {
		max-width: 12ch;
		font-size: clamp(2.1rem, 10.5vw, 3.55rem);
	}

	.home-post-featured__excerpt {
		display: -webkit-box;
		overflow: hidden;
		font-size: 1.02rem;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.home-posts__cards {
		padding-block: 42px 58px;
	}

	.home-posts__grid.post-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.home-products__grid.products-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.home-products__grid .product-card:last-child:nth-child(odd) {
		grid-column: auto;
		max-width: none;
	}

	.home-section-more__link {
		width: 100%;
	}
}

/* Front-page mobile labels/cards are easier to scan. */
@media (max-width: 620px) {
	.home-section-header__eyebrow { font-size: .82rem; }
	.home-section-header h1,
	.home-section-header h2 { font-size: clamp(2.1rem, 9vw, 2.85rem); }
	.home-products__grid .product-card__excerpt { font-size: 1rem; }
	.home-section-more__link { font-size: 1rem; }
}
@media (max-height: 560px) and (orientation: landscape) {
	.home-post-featured { height: clamp(320px, 78vh, 520px); height: clamp(320px, 78svh, 520px); }
	.home-post-featured__content-inner { padding-bottom: 48px; }
	.home-post-featured__excerpt { display: none; }
}

