/*
 * Hollowed Ember — the rules theme.json cannot express.
 *
 * Everything token-shaped (colour, type, spacing) lives in theme.json and reaches
 * us as --wp--preset--* variables. This file is deliberately small: focus states,
 * the mobile nav and cart drawer, product-grid chrome, and defensive rules against
 * markup that marketing plugins inject into the page.
 */

/* ------------------------------------------------------------------ a11y */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--ember);
	outline-offset: 2px;
	border-radius: 0;
}

.he-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 0.85rem 1.4rem;
	background: var(--wp--preset--color--blood);
	color: var(--wp--preset--color--bone);
	font-family: var(--wp--preset--font-family--label);
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	text-decoration: none;
}

.he-skip-link:focus {
	left: 0;
}

/* Reduce motion for anyone who asked for it. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------------------- structure */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Wide content must scroll inside its own box, never the page. */
.wp-block-table,
.wp-block-code,
figure.wp-block-table {
	overflow-x: auto;
}

/* Cinzel is an inscriptional face; it needs air at display sizes. */
h1, h2, .wp-block-post-title {
	text-wrap: balance;
}

/* --------------------------------------------------------------- header */

.he-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: color-mix(in srgb, var(--wp--preset--color--void) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--edge);
}

@supports not (backdrop-filter: blur(10px)) {
	.he-header {
		background: var(--wp--preset--color--void);
	}
}

.he-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.he-logo svg {
	display: block;
	height: 2.4rem;
	width: auto;
}

.he-announce {
	background: var(--wp--preset--color--blood);
	color: var(--wp--preset--color--bone);
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
	padding: 0.55rem var(--wp--preset--spacing--30);
}

/* Nav */

.he-nav a {
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--bone);
	padding-block: 0.35rem;
	border-bottom: 1px solid transparent;
	transition: border-color var(--wp--custom--transition);
}

.he-nav a:hover,
.he-nav a[aria-current="page"] {
	border-bottom-color: var(--wp--preset--color--rust);
	color: var(--wp--preset--color--bone);
}

.he-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	background: none;
	border: 0;
	color: var(--wp--preset--color--bone);
	cursor: pointer;
	position: relative;
}

.he-icon-btn svg {
	width: 1.35rem;
	height: 1.35rem;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.he-cart-count {
	position: absolute;
	top: 0.25rem;
	right: 0.2rem;
	min-width: 1.05rem;
	height: 1.05rem;
	padding: 0 0.25rem;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--blood);
	color: var(--wp--preset--color--bone);
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.he-cart-count[hidden] {
	display: none;
}

/* Mobile nav panel */

.he-menu-toggle {
	display: none;
}

.he-mobile-nav {
	/* Off entirely on desktop. The old build left it in the flow, which is why a
	   stray close button and a duplicate menu leaked into the header. */
	display: none;
	position: fixed;
	inset: 0;
	z-index: 80;
	background: var(--wp--preset--color--void);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	display: grid;
	align-content: start;
	gap: var(--wp--preset--spacing--20);
	transform: translateY(-100%);
	transition: transform 0.24s ease;
	overflow-y: auto;
}

.he-mobile-nav[data-open="true"] {
	transform: translateY(0);
}

.he-mobile-nav a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.9rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--wp--preset--color--bone);
	padding-block: 0.4rem;
	border-bottom: 1px solid var(--wp--preset--color--edge);
}

.he-mobile-nav__close {
	justify-self: end;
}

@media (max-width: 860px) {
	.he-menu-toggle {
		display: inline-grid;
	}

	.he-mobile-nav {
		display: grid;
	}

	.he-nav--desktop {
		display: none;
	}
}

/* --------------------------------------------------------------- badges */

.he-badge {
	display: inline-block;
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.35;
	padding: 0.25rem 0.55rem;
}

.he-badge--new {
	background: var(--wp--preset--color--blood);
	color: var(--wp--preset--color--bone);
}

.he-badge--few {
	background: transparent;
	border: 1px solid var(--wp--preset--color--rust);
	color: var(--wp--preset--color--ember);
}

.he-badge--out {
	background: var(--wp--preset--color--raised);
	border: 1px solid var(--wp--preset--color--edge-hi);
	color: var(--wp--preset--color--bone-dim);
}

/* ------------------------------------------------------------- utility */

.he-kicker {
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--kicker);
	text-transform: uppercase;
	color: var(--wp--preset--color--rust);
}

.he-rule {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--edge);
	margin: 0;
}

/* Tileable grain, so large flat blacks do not band on cheap panels. */
.he-grain {
	position: relative;
}

.he-grain::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	/* Was 0.5 with a 5px dot, which read as a visible grid behind the headline
	   and chewed up the Cinzel serifs. Now a fine, near-invisible tooth. */
	opacity: 0.35;
	background-image:
		radial-gradient(rgba(255, 255, 255, 0.035) 0.5px, transparent 0.5px);
	background-size: 3px 3px;
	background-position: 0 0;
}

/* Never let the grain sit over text. */
.he-grain > * {
	position: relative;
	z-index: 1;
}

/* ------------------------------------------------- third-party defences */

/*
 * Pinterest, Google Listings & Ads, Reddit/Snapchat pixels and Klaviyo all inject
 * their own markup into the page. None of it is styled for a dark theme and some
 * of it is absolutely positioned. These rules stop it breaking layout — they are
 * deliberately narrow so the plugins still work.
 */

/* Tracking iframes and pixels must never occupy layout. */
iframe[src*="facebook.com/tr"],
iframe[src*="ct.pinterest.com"],
iframe[src*="google.com/pagead"],
img[src*="/tr?"][width="1"],
img[height="1"][width="1"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	border: 0 !important;
	overflow: hidden;
	clip-path: inset(50%);
}

/* Klaviyo modals arrive with white grounds; keep them readable rather than fighting them. */
.klaviyo-form input,
.klaviyo-form textarea {
	color: #111;
}

/* Woo's own notice markup, restyled to the palette instead of its default green/red. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--edge);
	border-left: 2px solid var(--wp--preset--color--rust);
	color: var(--wp--preset--color--bone);
	font-family: var(--wp--preset--font-family--body);
	padding: 1rem 1.15rem;
	margin: 0 0 var(--wp--preset--spacing--30);
	list-style: none;
}

.woocommerce-error {
	border-left-color: var(--wp--preset--color--ember);
}

/* ==========================================================================
   Fixes from the first live deploy. Every rule here answers a bug that was
   measured on the real site, not a hypothetical.
   ========================================================================== */

/*
 * The single worst bug of the first build. he_svg() emitted the file's intrinsic
 * width/height, and with no global svg rule the 404 mark rendered at 1475x1389
 * and pushed the document to 2113px wide inside a 1440px viewport. That is what
 * made pages look "huge with no content".
 */
svg {
	max-width: 100%;
	height: auto;
}

/* Anything that still tries to overflow is contained rather than scrolling the page. */
.wp-site-blocks,
.wp-block-post-content {
	overflow-x: clip;
}

/* ------------------------------------------------------------------ logo */

.he-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.he-logo-link svg {
	display: block;
	width: auto;
	height: clamp(2rem, 3.4vw, 2.75rem);
}

/* ---------------------------------------------------------------- search */

.wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--edge-hi);
	background: var(--wp--preset--color--surface);
}

.wp-block-search__input {
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--bone);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
	padding: 0.6rem 0.8rem;
}

.wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
}

.wp-block-search__button {
	background: var(--wp--preset--color--blood);
	border: 0;
	color: var(--wp--preset--color--bone);
	font-family: var(--wp--preset--font-family--label);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	padding: 0.6rem 1.2rem;
}

/* Header search stays compact and disappears on small screens. */
.he-header .wp-block-search {
	max-width: 220px;
}

@media (max-width: 860px) {
	.he-header .wp-block-search {
		display: none;
	}
}

/* --------------------------------------------- WooCommerce header blocks */

/*
 * Woo's own customer-account and mini-cart blocks are used rather than custom
 * ones — the mini-cart drawer is real functionality. They ship light-theme
 * styling, so they are brought into the palette here.
 */
.wp-block-woocommerce-customer-account a,
.wc-block-mini-cart__button {
	display: inline-grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	background: none;
	border: 0;
	color: var(--wp--preset--color--bone);
	cursor: pointer;
}

.wp-block-woocommerce-customer-account svg,
.wc-block-mini-cart__icon {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--blood) !important;
	color: var(--wp--preset--color--bone) !important;
	font-family: var(--wp--preset--font-family--label);
	font-variant-numeric: tabular-nums;
	border: 0;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--bone);
}

/* ------------------------------------------------------------ navigation */

.wp-block-navigation .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--bone);
	border-bottom: 1px solid transparent;
	padding-block: 0.3rem;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--rust);
}

/* --------------------------------------------------------- my account */

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--wp--preset--color--edge);
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.95rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.6rem 1rem;
	color: var(--wp--preset--color--bone-dim);
	border-left: 2px solid transparent;
	margin-left: -1px;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
	color: var(--wp--preset--color--bone);
	border-left-color: var(--wp--preset--color--rust);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 640px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		gap: var(--wp--preset--spacing--40);
	}

	.he-announce {
		font-size: 0.72rem;
		letter-spacing: 0.1em;
	}
}

/* ==========================================================================
   Round two: footer lists, search results, and the accent details from the
   design that had not made it into the theme.
   ========================================================================== */

/* ---------------------------------------------------------- footer lists */

/*
 * Bullets used to sit in the browser's default 40px indent, well right of the
 * column heading. They now line up under the heading's second character, and
 * the last item gets clear air before the rule underneath.
 */
.he-footer-list {
	list-style: none;
	/* Generous bottom margin: the last bullet was kissing the copyright rule. */
	margin: 0 0 var(--wp--preset--spacing--50);
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.he-footer-list li {
	position: relative;
	padding-left: 0.85rem;
}

.he-footer-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 5px;
	height: 5px;
	background: var(--wp--preset--color--rust);
	/* the triangle motif, at bullet scale */
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.he-footer-list a {
	color: var(--wp--preset--color--bone-dim);
	text-decoration: none;
}

.he-footer-list a:hover {
	color: var(--wp--preset--color--bone);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* Footer column headings sit tight to their list. */
.wp-block-column > h6 {
	margin: 0 0 0.85rem;
	color: var(--wp--preset--color--bone);
}

/* ------------------------------------------------------- search results */

.he-results {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--40);
	list-style: none;
	padding: 0;
}

.he-result {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--edge);
	padding: var(--wp--preset--spacing--20);
	align-items: flex-start;
	transition:
		border-color var(--wp--custom--transition),
		transform var(--wp--custom--transition);
}

.he-result:hover,
.he-result:focus-within {
	border-color: var(--wp--preset--color--edge-hi);
	transform: translateY(-2px);
}

.he-result__media {
	flex: 0 0 auto;
	margin: 0;
	line-height: 0;
	background: #14141a;
}

.he-result__media img {
	width: 104px;
	height: 104px;
	object-fit: cover;
	display: block;
}

/* No thumbnail? Keep the row aligned with a placeholder rather than collapsing. */
.he-result__media:empty {
	width: 104px;
	height: 104px;
	background:
		linear-gradient(135deg, transparent 46%, var(--wp--preset--color--edge) 46%,
		var(--wp--preset--color--edge) 54%, transparent 54%),
		#14141a;
}

.he-result__body {
	flex: 1 1 auto;
	min-width: 0;
	gap: 0.35rem;
}

.he-result .wp-block-post-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	line-height: 1.2;
}

.he-result .wp-block-post-title a {
	color: var(--wp--preset--color--bone);
	text-decoration: none;
}

.he-result .wp-block-post-excerpt {
	margin: 0;
	color: var(--wp--preset--color--bone-dim);
	font-size: 0.92rem;
}

.he-result .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 560px) {
	.he-result {
		flex-wrap: wrap;
	}
}

/* The search page's own form should be full width, unlike the header's. */
.he-search-page .wp-block-search__inside-wrapper {
	max-width: 34rem;
}

/* ------------------------------------------------------ pagination ------ */

.wp-block-query-pagination {
	gap: 0.4rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.9rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--bone-dim);
	border: 1px solid var(--wp--preset--color--edge);
	padding: 0.5rem 0.8rem;
}

.wp-block-query-pagination .page-numbers.current {
	color: var(--wp--preset--color--bone);
	border-color: var(--wp--preset--color--rust);
}

.wp-block-query-pagination a:hover {
	color: var(--wp--preset--color--bone);
	border-color: var(--wp--preset--color--edge-hi);
}

/* ----------------------------------------------------- archive header --- */

/*
 * The shop toolbar: result count on the left, sorting on the right, with a rule
 * under it so the grid does not start abruptly.
 */
.wp-block-woocommerce-product-collection {
	margin-top: var(--wp--preset--spacing--30);
}

/* ==========================================================================
   Products dropdown, category tiles, and the rebalanced header bar.
   ========================================================================== */

.he-bar {
	gap: var(--wp--preset--spacing--30);
}

.he-bar__left {
	align-items: center;
	min-width: 0;
}

/* Search sits alone on the right; account and cart live in the bar on the left. */
.he-bar__right {
	margin-left: auto;
	flex: 0 0 auto;
}

/* --------------------------------------------------------------- the nav */

.he-nav--desktop {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.he-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--bone);
	background: none;
	border: 0;
	border-bottom: 1px solid transparent;
	padding: 0.35rem 0;
	cursor: pointer;
	transition: border-color var(--wp--custom--transition);
}

.he-nav__link:hover,
.he-nav__item--menu:hover .he-nav__trigger,
.he-nav__trigger[aria-expanded="true"] {
	border-bottom-color: var(--wp--preset--color--rust);
	color: var(--wp--preset--color--bone);
}

.he-nav__chev {
	width: 0.9rem;
	height: 0.9rem;
	transition: transform var(--wp--custom--transition);
}

.he-nav__item--menu:hover .he-nav__chev,
.he-nav__trigger[aria-expanded="true"] .he-nav__chev {
	transform: rotate(180deg);
}

/* ---------------------------------------------------------- the dropdown */

.he-nav__item--menu {
	position: relative;
}

.he-menu {
	position: absolute;
	top: calc(100% + 0.65rem);
	left: -1rem;
	z-index: 70;
	min-width: 15rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--edge);
	box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.95);
	/* Hidden without display:none so it can animate and stay focusable on open. */
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition:
		opacity 0.16s ease,
		transform 0.16s ease,
		visibility 0s linear 0.16s;
}

.he-menu.is-wide {
	min-width: 34rem;
}

/*
 * Opens on hover for pointers, on focus for keyboards, and on click for touch
 * via the button toggling aria-expanded. A hover-only menu is unreachable on a
 * phone and invisible to assistive tech, so all three paths are wired up.
 */
.he-nav__item--menu:hover .he-menu,
.he-nav__item--menu:focus-within .he-menu,
.he-nav__trigger[aria-expanded="true"] + .he-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}

/* A bridge across the gap, so the menu does not close as the pointer travels. */
.he-nav__item--menu::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 0.75rem;
}

.he-menu__inner {
	padding: 1.1rem 1.25rem 1.25rem;
}

.he-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Top level runs in columns once there are enough categories to need them. */
.he-menu__list--d0 {
	columns: 1;
	column-gap: 2rem;
}

.he-menu.is-wide .he-menu__list--d0 {
	columns: 2;
}

.he-menu__item {
	break-inside: avoid;
	margin: 0 0 0.15rem;
}

.he-menu__link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.9rem;
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--bone);
	padding: 0.45rem 0.55rem;
	border-left: 2px solid transparent;
	transition:
		background var(--wp--custom--transition),
		border-color var(--wp--custom--transition);
}

.he-menu__link:hover,
.he-menu__link:focus-visible,
.he-menu__item.is-current > .he-menu__link {
	background: var(--wp--preset--color--raised);
	border-left-color: var(--wp--preset--color--rust);
	color: var(--wp--preset--color--bone);
}

.he-menu__count {
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
	font-variant-numeric: tabular-nums;
}

/* Sub-categories, to any depth. Each level steps in and drops a weight. */
.he-menu__list--d1,
.he-menu__list--d2,
.he-menu__list--d3 {
	margin: 0 0 0.4rem 0.55rem;
	padding-left: 0.6rem;
	border-left: 1px solid var(--wp--preset--color--edge);
}

.he-menu__list--d1 .he-menu__link,
.he-menu__list--d2 .he-menu__link,
.he-menu__list--d3 .he-menu__link {
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: none;
	color: var(--wp--preset--color--bone-dim);
	padding: 0.3rem 0.55rem;
}

.he-menu__all {
	display: block;
	margin-top: 0.9rem;
	padding-top: 0.8rem;
	border-top: 1px solid var(--wp--preset--color--edge);
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--ember);
}

.he-menu__all:hover {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

@media (max-width: 860px) {
	.he-menu {
		display: none;
	}
}

/* -------------------------------------------------------- category tiles */

.he-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: clamp(0.875rem, 1.6vw, 1.25rem);
}

.he-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 200px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--edge);
	text-decoration: none;
	overflow: hidden;
	transition:
		border-color var(--wp--custom--transition),
		transform var(--wp--custom--transition);
}

.he-tile:hover {
	border-color: var(--wp--preset--color--edge-hi);
	transform: translateY(-3px);
}

/* The triangle motif, bleeding off the corner. */
.he-tile::before {
	content: "";
	position: absolute;
	top: -18%;
	right: -22%;
	width: 62%;
	aspect-ratio: 1 / 1.15;
	background: var(--wp--preset--color--blood);
	opacity: 0.28;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transition: opacity var(--wp--custom--transition);
	pointer-events: none;
}

.he-tile:hover::before {
	opacity: 0.42;
}

.he-tile__media {
	position: absolute;
	inset: 0;
	line-height: 0;
}

.he-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.32;
	transition: opacity var(--wp--custom--transition);
}

.he-tile:hover .he-tile__media img {
	opacity: 0.42;
}

.he-tile__body {
	position: relative;
	margin-top: auto;
	padding: 1.25rem;
}

.he-tile__name {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: var(--wp--custom--tracking--display);
	color: var(--wp--preset--color--bone);
}

.he-tile__meta {
	display: block;
	margin-top: 0.3rem;
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bone-dim);
}

/* ------------------------------------------------------- mobile panel --- */

.he-mobile-nav__link {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.7rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--wp--preset--color--bone);
	padding-block: 0.4rem;
	border-bottom: 1px solid var(--wp--preset--color--edge);
}

.he-mobile-nav__link--d1,
.he-mobile-nav__link--d2,
.he-mobile-nav__link--d3 {
	font-family: var(--wp--preset--font-family--label);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bone-dim);
	padding-left: 1.2rem;
	border-bottom-color: transparent;
}

/* Clear air either side of the rule above the copyright line. */
.wp-block-group > .he-rule,
footer .wp-block-separator.he-rule {
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--30);
}

/* ---------------------------------------- footer list size + header mark */

/*
 * The Shop column is generated markup while Help and Legal are core list blocks
 * carrying an inline 0.9rem. That mismatch made Shop's bullets visibly larger.
 * Setting it here means all three match whatever their source.
 */
.he-footer-list,
.he-footer-list li,
.wp-block-column .wp-block-list {
	font-size: 0.9rem;
	line-height: 1.5;
}

/* The mark alone in the bar; the footer lockup is allowed to be wider. */
.he-logo-link svg {
	height: clamp(2rem, 3vw, 2.5rem);
}

.he-logo-link--lockup svg {
	height: clamp(1.9rem, 2.6vw, 2.3rem);
}

/* ------------------------------------------------- header bar alignment */

/*
 * Everything in the bar centres on one axis. Measured before this: the logo sat
 * at cy 80, Products at 82 and the cart at 78, because a <button>, an <a> and
 * Woo's icon blocks each resolve a different line-height. Pinning one height and
 * one line-height removes the wobble.
 */
.he-bar__left,
.he-bar__right {
	align-items: center;
}

/*
 * Do NOT blanket-set display on .he-bar__left > *. Doing so in v0.1.7 overrode
 * `.he-menu-toggle { display: none }` at equal specificity but later in the file,
 * which put the hamburger back on desktop. Align without touching display.
 */
.he-bar__left > * {
	align-self: center;
}

.he-nav--desktop {
	display: flex;
	align-items: center;
}

.he-nav__link,
.he-nav__trigger {
	line-height: 1.2;
	min-height: 2.2rem;
}

/* Woo's two icon blocks size themselves; hold them to the same box. */
.he-bar__left .wp-block-woocommerce-customer-account a,
.he-bar__left .wc-block-mini-cart__button {
	height: 2.2rem;
	width: 2.2rem;
}

.he-bar__left .wc-block-mini-cart {
	display: flex;
	align-items: center;
}

/*
 * The mark is a downward triangle, so its ink sits high in its own box and it
 * reads a touch high when box-centred. A hair of optical offset settles it.
 */
.he-logo-link {
	align-self: center;
}

.he-logo-link svg {
	position: relative;
	top: 1px;
}

/* Belt and braces: the toggle is a small-screen control, full stop. */
@media (min-width: 861px) {
	.he-menu-toggle,
	.he-bar__left .he-menu-toggle {
		display: none !important;
	}
}
