.home-categories {
	overflow: hidden;
	background: var(--paper)
}

.home-categories-heading {
	margin-bottom: clamp(1.4rem, 2.5vw, 2rem)
}

.home-categories-heading .eyebrow {
	margin: 0 0 .55rem
}

.home-categories-heading h2 {
	margin: 0;
	color: var(--ink);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .01em;
	text-transform: uppercase
}

.home-categories-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 8px 12px 18px;
	margin: -8px 0 -4px -12px;
	scroll-behavior: smooth;
	scroll-padding-inline: 12px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain
}

.home-categories-track::-webkit-scrollbar {
	display: none
}

.home-category-card {
	position: relative;
	flex: 0 0 calc((100% - 164px)/5);
	min-width: 0;
	aspect-ratio: 3/3.6;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper);
	color: #fff;
	scroll-snap-align: start
}

.home-category-card img,
.home-category-placeholder,
.home-category-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%
}

.home-category-card img {
	object-fit: cover;
	transition: transform .45s ease, filter .3s ease
}

.home-category-placeholder {
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--brand) 14%, var(--paper));
	color: var(--brand)
}

.home-category-placeholder .icon {
	width: 56px;
	height: 56px
}

.home-category-overlay {
	background: linear-gradient(180deg, rgba(0, 0, 0, .06) 28%, rgba(0, 0, 0, .74) 100%)
}

.home-category-card strong {
	position: absolute;
	z-index: 1;
	right: 14px;
	bottom: 14px;
	left: 14px;
	color: #fff;
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.3;
	text-transform: uppercase
}

.home-category-card:hover img,
.home-category-card:focus-visible img {
	transform: scale(1.045);
	filter: saturate(1.06)
}

@media(max-width:1199px) {
	.home-category-card {
		flex-basis: calc((100% - 48px)/4)
	}
}

@media(max-width:899px) {
	.home-category-card {
		flex-basis: calc((100% - 32px)/3)
	}
}

@media(max-width:699px) {
	.home-categories-heading h2 {
		font-size: 2.25rem
	}

	.home-category-card {
		flex-basis: calc((100% - 16px)/2)
	}
}

@media(max-width:499px) {
	.home-category-card {
		flex-basis: 78%
	}
}

@media(prefers-reduced-motion:reduce) {
	.home-categories-track {
		scroll-behavior: auto
	}

	.home-category-card img {
		transition: none
	}
}
