:root {
	--clf-border: color-mix(in srgb, currentColor 16%, transparent);
	--clf-header-height: 5rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-wrap: break-word;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
}

a,
button,
input,
select,
textarea,
[tabindex] {
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.wp-site-blocks {
	min-height: 100vh;
}

.clf-site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-block-end: 1px solid var(--clf-border);
	background: color-mix(in srgb, var(--wp--preset--color--paper) 94%, transparent);
	backdrop-filter: blur(14px);
}

.clf-announcement {
	letter-spacing: 0.03em;
}

.clf-header-main {
	min-height: var(--clf-header-height);
}

.clf-header-main .wp-block-site-logo {
	flex: 0 0 auto;
}

.clf-header-main .wp-block-navigation {
	flex: 1 1 auto;
}

.clf-header-actions {
	flex: 0 0 auto;
	white-space: nowrap;
}

.clf-header-action,
.clf-header-placeholder {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding-inline: 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
}

.clf-header-placeholder {
	color: var(--wp--preset--color--charcoal);
}

.clf-header-actions .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
}

.clf-header-actions .wp-block-search__input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}

.clf-header-actions .wp-block-search__button {
	margin: 0;
	padding: 0.55rem;
	background: transparent;
	color: currentColor;
}

.clf-page-main {
	padding-block: var(--wp--preset--spacing--50);
}

.clf-page-main > .alignfull:first-child {
	margin-block-start: calc(-1 * var(--wp--preset--spacing--50));
}

.clf-section-heading {
	margin-block-end: var(--wp--preset--spacing--40);
}

.clf-eyebrow {
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.clf-hero {
	min-height: min(78vh, 54rem);
	align-content: center;
}

.clf-hero .wp-block-heading {
	max-width: 13ch;
}

.clf-category-card,
.clf-editorial-card {
	position: relative;
	min-height: 24rem;
	align-content: end;
	overflow: hidden;
}

.clf-category-card::before,
.clf-editorial-card::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / 48%));
	content: "";
	pointer-events: none;
}

.clf-category-card > *,
.clf-editorial-card > * {
	position: relative;
	z-index: 1;
}

.clf-service-item {
	border-inline-start: 1px solid var(--clf-border);
}

.clf-site-footer {
	border-block-start: 1px solid var(--clf-border);
}

.clf-site-footer .wp-block-navigation {
	align-items: flex-start;
}

.clf-site-footer .wp-block-navigation__container {
	gap: 0.55rem;
}

/* WooCommerce collections and product cards. */
.wc-block-product-template {
	gap: clamp(1rem, 2vw, 2rem);
}

.wc-block-product {
	position: relative;
	text-align: start;
}

.wc-block-product .wc-block-components-product-image {
	overflow: hidden;
	background: var(--wp--preset--color--canvas);
}

.wc-block-product .wc-block-components-product-image img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform 350ms ease;
}

.wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.025);
}

.wc-block-product .wp-block-post-title {
	margin-block: 0.85rem 0.25rem;
	font-size: 0.95rem;
	line-height: 1.4;
}

.wc-block-product .wc-block-components-product-price {
	color: var(--wp--preset--color--charcoal);
}

.wc-block-components-product-sale-badge,
.onsale {
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--paper);
	font-size: 0.72rem;
	font-weight: 700;
}

.wp-block-woocommerce-product-filters,
.wp-block-woocommerce-product-filter,
.wp-block-woocommerce-filter-wrapper {
	border-block: 1px solid var(--clf-border);
	padding-block: 1rem;
}

.single-product .wp-block-woocommerce-product-image-gallery {
	position: sticky;
	top: calc(var(--clf-header-height) + 1rem);
}

.single-product .wp-block-post-title {
	margin-block-start: 0;
}

.single-product .wp-block-woocommerce-add-to-cart-form .button {
	min-height: 3.25rem;
}

@media (max-width: 980px) {
	.clf-header-main {
		min-height: 4.25rem;
	}

	.clf-header-main > .wp-block-navigation {
		order: -1;
		flex: 0 0 auto;
	}

	.clf-header-main .wp-block-site-logo {
		margin-inline: auto;
	}

	.clf-header-action,
	.clf-header-placeholder {
		font-size: 0;
	}

	.clf-header-action::before,
	.clf-header-placeholder::before {
		font-size: 1.15rem;
	}

	.clf-account-link::before {
		content: "♙";
	}

	.clf-wishlist-slot::before {
		content: "♡";
	}
}

@media (max-width: 700px) {
	.clf-announcement {
		font-size: 0.7rem !important;
	}

	.clf-header-actions {
		gap: 0.2rem !important;
	}

	.clf-header-actions .wc-block-mini-cart__button {
		padding-inline: 0.25rem;
	}

	.clf-category-card,
	.clf-editorial-card {
		min-height: 18rem;
	}

	.clf-service-item {
		border-inline-start: 0;
		border-block-start: 1px solid var(--clf-border);
		padding-block-start: 1rem;
	}

	.single-product .wp-block-woocommerce-product-image-gallery {
		position: static;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
