/* ==========================================================================
   EstGhillie — base styles
   Design idea: "break the outline". Straight section edges are replaced with
   a fringe cut from real camouflage-leaf silhouettes, corners are chamfered,
   dark panels carry a tone-on-tone digital camouflage (pixel pattern in the
   style of the Estonian ESTDCU).

   1. Tokens  2. Base  3. Layout & shared pieces  4. Buttons & forms
   5. Header & navigation  6. Hero  7. Front page  8. Content  9. Footer
   10. Motion  11. Utilities
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
	--night: #0c100b;
	--forest: #141b12;
	--pine: #1d281a;
	--moss: #3a4a30;
	--lichen: #8f9c70;
	--sage: #b9c19f;
	--khaki: #d9d2bf;
	--khaki-deep: #c8c0a8;
	--bone: #f3efe4;
	--white: #fbf9f3;
	--ink: #11140e;
	--stone: #67635a;
	--signal: #e2672a;
	--signal-hover: #f27b3d;
	--danger: #b3362a;
	--success: #3d6b38;

	--font: Archivo, "Helvetica Neue", Arial, sans-serif;

	--container: 1360px;
	--gutter: clamp(1.125rem, 4vw, 3rem);
	--section: clamp(4rem, 9vw, 8.5rem);
	--cut: 14px;
	--header-h: 72px;
	--line: rgba(17, 20, 14, 0.16);
	--line-light: rgba(243, 239, 228, 0.16);
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--camo-dark: url("../img/camo-dark.webp");
	--camo-size: 1008px; /* 144 squares of 7px; the file is stored at 2x */
	--fringe: url("../img/fringe.svg");
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--bone);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	font-stretch: 100%;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-weight: 800;
	font-stretch: 118%;
	line-height: 1;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: break-word;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.75rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-stretch: 110%; }
h4 { font-size: 1.125rem; font-stretch: 105%; letter-spacing: 0; }

p {
	margin: 0 0 1.2em;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color 0.2s;
}

a:hover {
	color: var(--signal);
}

:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
}

::selection {
	background: var(--signal);
	color: var(--ink);
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.5rem 0;
}

/* 3. Layout & shared pieces ----------------------------------------------- */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-main {
	flex: 1;
	padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section);
}

.site-main--home,
.site-main--product {
	padding-block: 0;
}

.section {
	position: relative;
	padding-block: var(--section);
}

.section--dark {
	isolation: isolate;
	background: var(--forest) var(--camo-dark) 0 0 / var(--camo-size);
	color: var(--bone);
}

.section--dark::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(12, 16, 11, 0.5), rgba(12, 16, 11, 0.2) 40%, rgba(12, 16, 11, 0.6)), var(--grain);
	pointer-events: none;
}

/* Small uppercase label: narrow cut of the same typeface. */
.label {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	font-stretch: 92%;
	letter-spacing: 0.18em;
	line-height: 1.3;
	text-transform: uppercase;
}

.label--mark {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.label--mark .icon {
	flex: none;
	color: var(--signal);
}

.section__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 1.25rem 2rem;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__title {
	margin: 0;
	font-size: clamp(2.1rem, 5.6vw, 5rem);
	font-stretch: 122%;
	line-height: 0.95;
}

.section__text {
	max-width: 48ch;
	margin: 1.1rem 0 0;
	color: var(--stone);
	font-size: 1.125rem;
}

.section--dark .section__text {
	color: var(--sage);
}

/* Leaf fringe: sits on the bottom edge of a block and is painted in the colour
   of whatever comes next, so the edge reads as foliage, not a line.
   fringe.svg is built from the eight single leaves of Lapagear's camouflage
   leaf sets (maple and oak): tall leaves for rhythm, a main row, and a dense
   row lying on its side so no straight base line ever shows between them. */
.fringe {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	z-index: 4;
	height: clamp(44px, 7vw, 104px);
	background: var(--fringe-color, var(--bone));
	-webkit-mask: var(--fringe) repeat-x 50% 100% / auto 100%;
	mask: var(--fringe) repeat-x 50% 100% / auto 100%;
	pointer-events: none;
}

.fringe--top {
	top: auto;
	bottom: calc(100% - 1px);
}

/* A fringe that belongs to a camouflage block is filled with that block's own
   pattern and shading (same tile, same origin, same darkness as the block's
   top edge), so the leaves grow out of it without a visible seam. */
.section--dark > .fringe--top {
	background:
		linear-gradient(rgba(12, 16, 11, 0.5), rgba(12, 16, 11, 0.5)),
		var(--forest) var(--camo-dark) 0 calc(100% - 1px) / var(--camo-size);
}

/* Studio photos: lifting the backdrop to pure white before multiplying makes
   it vanish completely, so the subject stands on the theme colour as a cut-out. */
.menu-thumb img,
.cat-panel__media img {
	filter: brightness(1.1) contrast(1.05);
}

/* Chamfered corner (top-right + bottom-left). */
.cut,
.btn,
.button,
button[type="submit"],
input[type="submit"] {
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* 4. Buttons & forms ------------------------------------------------------ */
.btn,
.button,
button[type="submit"],
input[type="submit"] {
	--cut: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7em;
	min-height: 3.25rem;
	padding: 0.85rem 1.75rem;
	border: 0;
	border-radius: 0;
	background: var(--ink);
	color: var(--bone);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	font-stretch: 105%;
	line-height: 1.15;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--moss);
	color: var(--bone);
}

.btn:focus-visible,
.button:focus-visible,
button[type="submit"]:focus-visible {
	outline-offset: -5px;
	outline-color: currentColor;
}

.btn .icon {
	transition: transform 0.35s var(--ease);
}

.btn:hover .icon {
	transform: translateX(4px);
}

.btn--signal,
.button.alt,
.single_add_to_cart_button,
.checkout-button {
	background: var(--signal);
	color: var(--ink);
}

.btn--signal:hover,
.button.alt:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover {
	background: var(--signal-hover);
	color: var(--ink);
}

.btn--light {
	background: var(--bone);
	color: var(--ink);
}

.btn--light:hover {
	background: var(--white);
	color: var(--ink);
}

.btn--ghost {
	background: rgba(243, 239, 228, 0.1);
	box-shadow: inset 0 0 0 1px rgba(243, 239, 228, 0.5);
	color: var(--bone);
	clip-path: none;
}

.btn--ghost:hover {
	background: rgba(243, 239, 228, 0.2);
	box-shadow: inset 0 0 0 1px var(--bone);
	color: var(--bone);
}

.btn--outline {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--ink);
	color: var(--ink);
	clip-path: none;
}

.btn--outline:hover {
	background: var(--ink);
	color: var(--bone);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding-bottom: 0.3rem;
	border-bottom: 2px solid currentColor;
	font-size: 0.9375rem;
	font-weight: 700;
	font-stretch: 105%;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
}

.link-arrow .icon {
	transition: transform 0.35s var(--ease);
}

.link-arrow:hover .icon {
	transform: translate(3px, -3px);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(17, 20, 14, 0.35);
	border-radius: 0;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	line-height: 1.4;
	transition: border-color 0.2s, box-shadow 0.2s;
}

select {
	padding-right: 2.75rem;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311140e' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
	background-position: right 0.85rem center;
	background-size: 18px;
	background-repeat: no-repeat;
	cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(226, 103, 42, 0.3);
	outline: 0;
}

label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.search-form,
.woocommerce-product-search {
	display: flex;
	gap: 0.5rem;
	max-width: 520px;
}

.search-form label {
	flex: 1;
	margin: 0;
}

.woocommerce-product-search input[type="search"] {
	flex: 1;
}

/* 5. Header & navigation -------------------------------------------------- */
.topbar {
	background: var(--signal);
	color: var(--ink);
	font-size: 0.78rem;
	font-weight: 600;
	font-stretch: 95%;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	padding-block: 0.55rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(12, 16, 11, 0.97);
	color: var(--bone);
	border-bottom: 1px solid var(--line-light);
	transition: transform 0.45s var(--ease);
	view-transition-name: site-header;
}

.site-header.is-hidden:not(:focus-within) {
	transform: translateY(-101%);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 3.5rem);
	min-height: var(--header-h);
}

.site-wordmark {
	display: inline-block;
	color: var(--bone);
	font-size: 1.3rem;
	font-weight: 800;
	font-stretch: 125%;
	line-height: 1;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-wordmark:hover {
	color: var(--bone);
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	display: block;
	width: auto;
	max-height: 44px;
}

.site-nav {
	flex: 1;
}

.site-nav__list,
.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list {
	display: flex;
	gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.site-nav a {
	display: block;
	color: var(--bone);
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav__list > li > a {
	position: relative;
	padding-block: 1.65rem;
}

.site-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.15rem;
	height: 2px;
	background: var(--signal);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--ease);
}

.site-nav__list > li > a:hover::after,
.site-nav__list > li:focus-within > a::after,
.site-nav__list > .current-menu-item > a::after,
.site-nav__list > .current-menu-ancestor > a::after,
.site-nav__list > .current-product-ancestor > a::after {
	transform: scaleX(1);
}

/* Shop dropdown: one tile per item. Category tiles carry the category photo
   and product count (markup from estghillie_menu_item_tile()). */
.menu-thumb {
	display: block;
	overflow: hidden;
	isolation: isolate;
	background: var(--khaki);
}

.menu-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 14%;
	mix-blend-mode: multiply;
}

.menu-text {
	display: grid;
	gap: 0.3rem;
}

@media (min-width: 961px) {
	.site-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		gap: 0.75rem;
		padding: 0.5rem max(var(--gutter), (100vw - var(--container)) / 2) 1.25rem;
		background: var(--night);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity 0.25s, transform 0.4s var(--ease), visibility 0.25s;
	}

	/* The panel hangs from the header like a canopy: leaves along its lower edge. */
	.site-nav .sub-menu::after {
		content: "";
		position: absolute;
		top: calc(100% - 1px);
		left: 0;
		right: 0;
		height: clamp(44px, 5.5vw, 80px);
		background: var(--night);
		-webkit-mask: var(--fringe) repeat-x 50% 100% / auto 100%;
		mask: var(--fringe) repeat-x 50% 100% / auto 100%;
		transform: scaleY(-1);
		pointer-events: none;
	}

	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav .sub-menu li {
		flex: 1 1 0;
		min-width: 0;
		max-width: 470px;
	}

	.site-nav .sub-menu a {
		--cut: 22px;
		position: relative;
		display: flex;
		align-items: flex-end;
		height: clamp(200px, 30vh, 290px);
		overflow: hidden;
		background: var(--pine);
		color: var(--bone);
		letter-spacing: 0;
	}

	.site-nav .sub-menu a:has(.menu-thumb) {
		background: var(--khaki);
		color: var(--ink);
	}

	/* Chamfered corners as two triangles in the panel colour (see .cat-panel). */
	.site-nav .sub-menu a::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 3;
		background:
			linear-gradient(225deg, var(--night) 50%, transparent 50.5%) 100% 0 / var(--cut) var(--cut) no-repeat,
			linear-gradient(45deg, var(--night) 50%, transparent 50.5%) 0 100% / var(--cut) var(--cut) no-repeat;
		pointer-events: none;
	}

	.site-nav .sub-menu a:has(.menu-thumb)::after {
		content: "";
		position: absolute;
		inset: 52% 0 0;
		z-index: 1;
		background: linear-gradient(0deg, rgba(217, 210, 191, 0.97) 20%, rgba(217, 210, 191, 0));
		pointer-events: none;
	}

	.menu-thumb {
		position: absolute;
		inset: 0;
		transition: transform 0.9s var(--ease);
	}

	.menu-text {
		position: relative;
		z-index: 2;
		padding: 1.1rem 4.25rem 1.2rem 1.9rem;
	}

	.menu-count {
		color: var(--stone);
	}

	.menu-name {
		font-size: clamp(1.1rem, 1.75vw, 1.7rem);
		font-weight: 800;
		font-stretch: 108%;
		line-height: 1;
		letter-spacing: -0.01em;
		overflow-wrap: break-word;
	}

	.menu-go {
		position: absolute;
		right: 0;
		bottom: 0;
		z-index: 2;
		display: grid;
		place-items: center;
		width: 3rem;
		height: 3rem;
		background: var(--ink);
		color: var(--bone);
		transition: background-color 0.25s, color 0.25s;
	}

	.site-nav .sub-menu a:not(:has(.menu-thumb)) .menu-go {
		background: var(--bone);
		color: var(--ink);
	}

	.menu-go .icon {
		transition: transform 0.4s var(--ease);
	}

	.site-nav .sub-menu a:hover .menu-thumb,
	.site-nav .sub-menu a:focus-visible .menu-thumb {
		transform: scale(1.06);
	}

	.site-nav .sub-menu a:hover .menu-go,
	.site-nav .sub-menu a:focus-visible .menu-go {
		background: var(--signal);
		color: var(--ink);
	}

	.site-nav .sub-menu a:hover .menu-go .icon {
		transform: translate(3px, -3px);
	}

	/* The other tiles step back while one is under the pointer. */
	.site-nav .sub-menu:hover a:not(:hover) .menu-thumb {
		opacity: 0.6;
	}

	.site-nav .sub-menu .menu-thumb {
		transition: transform 0.9s var(--ease), opacity 0.4s var(--ease);
	}
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin-left: auto;
}

.header-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 44px;
	height: 44px;
	padding: 0 0.6rem;
	border: 0;
	background: none;
	color: var(--bone);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s;
}

.header-action:hover {
	background: rgba(243, 239, 228, 0.1);
	color: var(--bone);
}

.site-cart {
	--cut: 9px;
	margin-left: 0.5rem;
	padding-inline: 0.9rem;
	background: var(--bone);
	color: var(--ink);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.site-cart:hover {
	background: var(--signal);
	color: var(--ink);
}

.site-cart__count {
	min-width: 1.1em;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.nav-toggle {
	display: none;
}

.nav-toggle__close {
	display: none;
}

@media (max-width: 960px) {
	:root {
		--header-h: 62px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.header-action--account {
		display: none;
	}

	.site-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		height: 100dvh;
		padding: calc(var(--header-h) + 4.5rem) var(--gutter) 2rem;
		background: var(--night) var(--camo-dark) 0 0 / var(--camo-size);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s, visibility 0.3s;
	}

	.nav-open .site-nav {
		opacity: 1;
		visibility: visible;
	}

	.nav-open,
	.nav-open body {
		overflow: hidden;
	}

	.site-header {
		background: var(--night);
	}

	.nav-open .nav-toggle__open {
		display: none;
	}

	.nav-open .nav-toggle__close {
		display: inline-flex;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.site-nav__list > li {
		border-bottom: 1px solid var(--line-light);
	}

	.site-nav__list > li > a {
		padding-block: 1.1rem;
		font-size: 1.9rem;
		font-weight: 800;
		font-stretch: 118%;
		letter-spacing: -0.01em;
	}

	.site-nav__list > li > a::after {
		display: none;
	}

	.site-nav .sub-menu {
		display: grid;
		gap: 0.5rem;
		padding: 0 0 1.25rem;
	}

	.site-nav .sub-menu a {
		display: flex;
		align-items: center;
		gap: 1rem;
		padding: 0.5rem 1rem 0.5rem 0.5rem;
		background: var(--pine);
	}

	.site-nav .sub-menu a:not(:has(.menu-thumb)) {
		padding-left: 1rem;
		min-height: 3.5rem;
	}

	.menu-thumb {
		flex: none;
		width: 56px;
		height: 68px;
	}

	.menu-text {
		flex: 1;
		min-width: 0;
	}

	.menu-count {
		color: var(--sage);
	}

	.menu-name {
		font-size: 1rem;
		font-weight: 700;
		letter-spacing: 0.06em;
	}

	.menu-go {
		color: var(--sage);
	}
}

/* 6. Hero ----------------------------------------------------------------- */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	background: var(--forest) var(--camo-dark) 0 0 / var(--camo-size);
	color: var(--bone);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(55% 75% at 76% 58%, rgba(143, 156, 112, 0.34), rgba(143, 156, 112, 0) 70%),
		linear-gradient(180deg, rgba(12, 16, 11, 0.62) 0%, rgba(12, 16, 11, 0.12) 45%, rgba(12, 16, 11, 0.7) 100%),
		var(--grain);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(4.75rem, 10vw, 8.5rem);
}

.hero__kicker {
	color: var(--sage);
}

.hero__kicker a {
	text-decoration: none;
}

/*
 * Heading size = the designed size, unless the longest word (--n letters, set
 * inline) would not fit the available width; then the type shrinks just enough
 * to keep that word on one line. Long compound words are never split.
 *   --title-size: designed size   --title-room: width available
 *   --title-em: average letter width at this weight and stretch, in em
 */
.hero__title {
	--title-size: clamp(2.5rem, 6.6vw, 6rem);
	--title-room: min(60rem, 100vw - var(--gutter) * 2);
	--title-em: 0.86;
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: min(var(--title-size), var(--title-room) / (var(--n, 8) * var(--title-em)));
	font-stretch: 122%;
	overflow-wrap: normal;
	line-height: 0.92;
	letter-spacing: -0.02em;
}

.hero__text {
	max-width: 33rem;
	margin-top: 1.25rem;
	color: rgba(243, 239, 228, 0.86);
	font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
}

.hero__text p:last-child {
	margin-bottom: 0;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.9rem;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem 0.6rem;
	font-size: 0.78rem;
	font-weight: 600;
	font-stretch: 92%;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(243, 239, 228, 0.6);
}

.breadcrumbs a {
	color: rgba(243, 239, 228, 0.86);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--signal);
}

.breadcrumbs__sep {
	opacity: 0.45;
}

/* Photo hero (shop, pages with a featured image, or a normal photo on the
   front page): a real photograph on the right that fades into the dark panel
   on the left, where the text sits. */
.hero__media {
	position: absolute;
	inset: 0 0 0 auto;
	z-index: -2;
	width: 60%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%);
	mask-image: linear-gradient(90deg, transparent 0, #000 42%);
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

.hero.has-photo::before {
	background:
		linear-gradient(90deg, rgba(20, 27, 18, 0.97) 0%, rgba(20, 27, 18, 0.8) 32%, rgba(20, 27, 18, 0.1) 66%, rgba(20, 27, 18, 0) 100%),
		linear-gradient(0deg, rgba(12, 16, 11, 0.6) 0%, rgba(12, 16, 11, 0) 45%),
		var(--grain);
}

.hero--default {
	min-height: clamp(360px, 52vh, 560px);
}

/* A photo needs more height than a plain header to show what is in it. */
.hero--default.has-photo {
	min-height: clamp(420px, 60vh, 640px);
}

.hero--default .hero__content,
.hero--compact .hero__content {
	margin-top: auto;
	padding-top: 2.5rem;
	max-width: 60rem;
}

.hero--default .hero__kicker,
.hero--compact .hero__kicker {
	margin-bottom: 1rem;
}

.hero--compact .hero__inner {
	padding-bottom: clamp(4.5rem, 9vw, 8rem);
}

.hero--compact .hero__title {
	--title-size: clamp(2.25rem, 5.4vw, 4.75rem);
}

/* Front page hero ------------------------------------------------------- */
.hero--home {
	min-height: clamp(620px, 92svh, 920px);
}

.hero--home .hero__inner {
	width: 100%;
	padding-block: clamp(2rem, 4.5vw, 3.75rem) clamp(5.5rem, 11vw, 9.5rem);
}

.hero--home .hero__kicker {
	margin-bottom: clamp(0.9rem, 1.6vw, 1.5rem);
}

.hero--home .hero__title {
	--title-size: clamp(3rem, 9.7vw, 10rem);
	--title-room: calc(100vw - var(--gutter) * 2);
	--title-em: 0.9;
	font-stretch: 125%;
	line-height: 0.86;
	letter-spacing: -0.03em;
	text-wrap: wrap;
}

.hero--home .hero__foot {
	position: relative;
	z-index: 3;
	margin-top: auto;
	padding-top: 2rem;
	max-width: 31rem;
}

.hero--home .hero__text {
	margin-top: 0;
}

/* Cut-out figure: stands at the right, a little in from the screen edge (more
   so on wide screens, where the content column is narrower than the screen),
   behind the fringe. The text is kept to the width left of it (--text-room),
   so on no screen size can the figure cover the heading, intro or buttons. */
.hero--home.has-cutout {
	--figure-w: min(40vw, 760px);
	--figure-shift: max(4vw, (100vw - var(--container)) / 4);
}

.hero__figure {
	position: absolute;
	right: var(--figure-shift, 0);
	bottom: clamp(-1.5rem, -1vw, 0rem);
	z-index: 2;
	width: var(--figure-w);
	pointer-events: none;
}

.hero__figure img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 861px) {
	.hero--home.has-cutout {
		/* Screen width − figure and its offset − the content's left margin − a small gap. */
		--text-room: calc(100vw - var(--figure-shift) - var(--figure-w) - max(var(--gutter), (100vw - var(--container)) / 2) - 1vw);
	}

	/* The figure is placed against the screen edge, not the content column. */
	.hero--home.has-cutout .hero__inner {
		position: static;
	}

	.hero--home.has-cutout .hero__title {
		--title-room: var(--text-room);
		--title-em: 0.84;
		max-width: var(--text-room);
		font-stretch: 118%;
	}

	.hero--home.has-cutout .hero__foot {
		max-width: min(31rem, var(--text-room));
	}
}

.hero--home.has-photo .hero__media {
	width: 66%;
}

/* A whole sentence in the heading field reads as a statement, not a shout:
   smaller, a little narrower, still bold. */
.hero--long-title .hero__title,
.hero--home.hero--long-title .hero__title {
	--title-size: clamp(1.9rem, 3.1vw, 3.4rem);
	line-height: 1;
	letter-spacing: -0.015em;
	font-stretch: 112%;
}

@media (min-width: 861px) {
	/* Keep the heading on the dark side, clear of the photo's subject. */
	.hero--home.has-photo .hero__title {
		--title-room: calc(56vw - max(var(--gutter), (100vw - var(--container)) / 2));
		max-width: var(--title-room);
		font-stretch: 118%;
		--title-em: 0.84;
	}
}

@media (max-width: 860px) {
	.hero__media {
		width: 100%;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.hero.has-photo::before {
		background: linear-gradient(0deg, rgba(12, 16, 11, 0.95) 0%, rgba(12, 16, 11, 0.72) 50%, rgba(12, 16, 11, 0.45) 100%), var(--grain);
	}

	/* Small screens: before shrinking, a heading with a long word switches to a
	   narrower cut of the typeface (--w: 1.22 = full width, down to 0.8), so it
	   stays big enough to read. The home heading keeps its own settings below. */
	.hero__title {
		--w: clamp(0.8, 1.22 - max(0, var(--n, 8) - 11) * 0.055, 1.22);
		--title-em: calc(0.74 * var(--w));
		font-stretch: calc(var(--w) * 100%);
	}

	.hero--home {
		min-height: 0;
	}

	.hero--home .hero__title {
		--title-size: clamp(2.6rem, 13.4vw, 5.5rem);
		--title-em: 0.8;
		font-stretch: 108%;
		line-height: 0.9;
	}

	.hero--home.has-cutout .hero__inner {
		padding-bottom: clamp(4rem, 12vw, 6rem);
	}

	.hero__figure {
		position: relative;
		right: auto;
		bottom: auto;
		width: 112%;
		max-width: 560px;
		margin: -6vw -8% -3rem auto;
	}

	.hero--home.has-photo {
		min-height: min(88svh, 680px);
	}

	.hero--home .hero__foot {
		padding-top: 0;
	}

	.hero__actions .btn {
		flex: 1 1 auto;
	}
}

/* 7. Front page ----------------------------------------------------------- */
/*
 * Category panels.
 * Performance note: nothing here animates layout. Each photo is blended onto
 * its khaki backdrop once, inside .cat-panel__media, and the hover effects only
 * move or fade that finished layer (transform / opacity), which the browser
 * can do without repainting. Animating panel widths looked good but forced a
 * full re-layout and re-raster of three large filtered photos on every frame.
 */
.cat-panels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	grid-auto-flow: column;
	gap: 0.75rem;
	height: clamp(440px, 70vh, 680px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.cat-panels > li {
	min-width: 0;
}

.cat-panel {
	--cut: 28px;
	position: relative;
	display: block;
	height: 100%;
	overflow: hidden;
	background: var(--khaki);
	color: var(--ink);
	text-decoration: none;
}

/* Chamfered corners drawn as two small triangles in the page colour: cheaper
   than clip-path while the photo layer underneath is moving. */
.cat-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background:
		linear-gradient(225deg, var(--bone) 50%, transparent 50.5%) 100% 0 / var(--cut) var(--cut) no-repeat,
		linear-gradient(45deg, var(--bone) 50%, transparent 50.5%) 0 100% / var(--cut) var(--cut) no-repeat;
	pointer-events: none;
}

.cat-panel__media {
	position: absolute;
	inset: 0;
	isolation: isolate;
	background: var(--khaki);
	transition: transform 0.9s var(--ease), opacity 0.45s var(--ease);
	will-change: transform;
}

.cat-panel__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 12%;
	mix-blend-mode: multiply;
}

.cat-panel::after {
	content: "";
	position: absolute;
	inset: 62% 0 0;
	z-index: 1;
	background: linear-gradient(0deg, rgba(217, 210, 191, 0.97) 18%, rgba(217, 210, 191, 0));
	pointer-events: none;
}

.cat-panel__body {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	display: grid;
	gap: 0.3rem;
	padding: clamp(1.1rem, 2vw, 1.75rem);
	padding-bottom: 4.25rem;
	transition: transform 0.45s var(--ease);
}

.cat-panel__name {
	font-size: clamp(1.25rem, 2.15vw, 2.1rem);
	font-weight: 800;
	font-stretch: 100%;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.cat-panel__count {
	color: var(--stone);
}

.cat-panel__go {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	background: var(--ink);
	color: var(--bone);
	transition: background-color 0.25s, color 0.25s;
}

.cat-panel__go .icon {
	transition: transform 0.4s var(--ease);
}

@media (hover: hover) and (min-width: 861px) {
	/* The panel under the pointer comes forward; the others step back. */
	.cat-panels:hover .cat-panel:not(:hover) .cat-panel__media {
		opacity: 0.62;
	}

	.cat-panel:hover {
		color: var(--ink);
	}

	.cat-panel:hover .cat-panel__media {
		transform: scale(1.06);
	}

	.cat-panel:hover .cat-panel__body {
		transform: translateY(-0.5rem);
	}

	.cat-panel:hover .cat-panel__go {
		background: var(--signal);
		color: var(--ink);
	}

	.cat-panel:hover .cat-panel__go .icon {
		transform: translate(3px, -3px);
	}
}

@media (max-width: 860px) {
	.cat-panels {
		grid-auto-flow: row;
		grid-template-columns: minmax(0, 1fr);
		height: auto;
	}

	.cat-panel {
		height: 84vw;
		min-height: 260px;
	}

	.cat-panel__media img {
		object-position: 50% 10%;
	}

	/* Taller fade so the label stays readable over the photo. */
	.cat-panel::after {
		inset: 42% 0 0;
	}

	.cat-panel__name {
		font-size: 1.6rem;
		font-stretch: 112%;
	}
}

/* Story: the front page's own content */
.story {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 6rem);
}

.story--plain {
	grid-template-columns: minmax(0, 1fr);
	max-width: 860px;
}

.story__media {
	--cut: 34px;
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--khaki);
}

.story__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 58% 35%;
}

.story__content {
	font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
	color: rgba(243, 239, 228, 0.86);
}

.story__content > * {
	margin-block: 0 1.2em;
}

.story__content > :last-child {
	margin-bottom: 0;
}

.story__content h2,
.story__content h3 {
	color: var(--bone);
}

.story__content h2 {
	font-size: clamp(2rem, 4.6vw, 4.25rem);
	font-stretch: 122%;
	line-height: 0.95;
	margin-bottom: 0.55em;
}

.story__content ul {
	display: grid;
	gap: 0;
	list-style: none;
	margin-top: 1.75rem;
	padding: 0;
	border-top: 1px solid var(--line-light);
}

.story__content li {
	position: relative;
	padding: 1rem 0 1rem 2.4rem;
	border-bottom: 1px solid var(--line-light);
	color: var(--bone);
}

.story__content li::before,
.pdp-section__content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.15rem;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--signal);
	-webkit-mask: var(--leaf) center / contain no-repeat;
	mask: var(--leaf) center / contain no-repeat;
}

:root {
	--leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.9 3.1 10.3 4.9 9.7 5.3 9.5 6.7 7.7 6.3 8.3 7.4 8.6 9.8 8.1 10.9 1 9.7 2.1 11.1 3 13.3 2.6 14.2 1.2 14.7 2.6 15.1 5.9 17.0 5.9 17.7 4.3 19.0 9.8 19.7 10.5 20.9 14 20.9 14.8 19.8 20.7 18.0 19.1 17.3 19 16.6 20.4 15.1 22.9 13.8 21.8 13.2 21.4 12.3 21.8 10.0 23 8.8 19.8 9.9 18.3 9.5 16.8 10.6 15.9 10.7 15.4 6.1 13.7 6.5 12.9 5.1 12.1 4.9 11.4 3.4Z'/%3E%3C/svg%3E");
}

.story__content a {
	color: var(--bone);
}

@media (max-width: 860px) {
	.story {
		grid-template-columns: minmax(0, 1fr);
	}

	.story__media {
		aspect-ratio: 1;
	}
}

/* Selling point cards */
.usp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 0.75rem;
	list-style: none;
	margin: clamp(3rem, 6vw, 5rem) 0 0;
	padding: 0;
}

.usp-card {
	--cut: 20px;
	height: 100%;
	padding: clamp(1.4rem, 2.4vw, 2rem);
	background: rgba(243, 239, 228, 0.07);
}

.usp-card .icon {
	width: 1.75rem;
	height: 1.75rem;
	margin-bottom: 1.5rem;
	color: var(--signal);
}

.usp-card strong {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 1.25rem;
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1.1;
	text-transform: uppercase;
}

.usp-card span {
	color: var(--sage);
	font-size: 1rem;
}

/* Lineup: featured products as a horizontal row you can drag through */
.lineup__controls {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.lineup__arrows {
	display: flex;
	gap: 0.4rem;
}

.lineup__arrow {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border: 1px solid var(--ink);
	background: none;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, opacity 0.25s;
}

.lineup__arrow:hover {
	background: var(--ink);
	color: var(--bone);
}

.lineup__arrow:disabled {
	opacity: 0.25;
	pointer-events: none;
}

.lineup__arrow--prev .icon {
	transform: scaleX(-1);
}

@media (max-width: 640px) {
	.section__header {
		grid-template-columns: minmax(0, 1fr);
	}

	.lineup__arrows {
		display: none;
	}
}

/* 8. Content -------------------------------------------------------------- */
.entry-content {
	max-width: 760px;
	margin-inline: auto;
}

.entry-content--wide {
	max-width: none;
}

.entry-content > * {
	margin-block: 0 1.35em;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content h2 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2em;
	margin-bottom: 0.6em;
}

.entry-content > h2:first-child,
.entry-content > h3:first-child {
	margin-top: 0;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: var(--signal);
	text-decoration-thickness: 2px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li {
	margin-bottom: 0.45em;
}

.entry-content li::marker {
	color: var(--signal);
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--signal);
	font-size: 1.1875rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 0.75rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content .alignwide {
	width: min(var(--container), 100vw - var(--gutter) * 2);
	max-width: none;
	margin-inline: calc((760px - min(var(--container), 100vw - var(--gutter) * 2)) / 2);
}

.entry-content--wide .alignwide,
.entry-content--wide .alignfull {
	width: auto;
	margin-inline: 0;
}

.entry-content:not(.entry-content--wide) .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

@media (max-width: 800px) {
	.entry-content .alignwide,
	.entry-content > .wp-block-media-text.alignwide {
		width: auto;
		margin-inline: 0;
	}
}

/* Framed box (block class "legal-box"), e.g. the withdrawal form */
.entry-content .legal-box {
	--cut: 18px;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--khaki);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.entry-content .legal-box > :last-child {
	margin-bottom: 0;
}

.entry-content .legal-box ul {
	list-style: none;
	padding-left: 0;
}

/* Cookie settings link from the consent plugin, shown as a button */
.entry-content .egc-open-link {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: 0.75rem 1.4rem;
	background: var(--ink);
	color: var(--bone);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
}

.entry-content .egc-open-link:hover {
	background: var(--moss);
	color: var(--bone);
}

.entry-content .egc-policy__title {
	margin-top: 1.5em;
	font-size: 1.125rem;
}

/* Lead paragraph (block class "is-lead") */
.entry-content .is-lead {
	font-size: clamp(1.2rem, 1.9vw, 1.5rem);
	line-height: 1.45;
}

/* Media & text: photo beside the text, chamfered like the rest of the shop.
   Text pages are a narrow column; these blocks step out to a wider measure. */
.entry-content > .wp-block-media-text.alignwide {
	width: min(1120px, 100vw - var(--gutter) * 2);
	margin-inline: calc((760px - min(1120px, 100vw - var(--gutter) * 2)) / 2);
}

.entry-content .wp-block-media-text {
	column-gap: clamp(1.75rem, 5vw, 4.5rem);
	margin-block: clamp(2.5rem, 6vw, 4.5rem);
}

.entry-content .wp-block-media-text > .wp-block-media-text__content {
	padding: 0;
}

.entry-content .wp-block-media-text__content > :last-child {
	margin-bottom: 0;
}

.entry-content .wp-block-media-text__media {
	--cut: 26px;
	overflow: hidden;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.entry-content .wp-block-media-text__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 50% 30%;
}

.entry-content .wp-block-media-text__content p {
	font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
	line-height: 1.6;
}

@media (max-width: 600px) {
	.entry-content .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content {
		padding-top: 1.5rem;
	}
}

.entry-content figcaption {
	margin-top: 0.5rem;
	color: var(--stone);
	font-size: 0.875rem;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 2.5rem 1.5rem;
}

.post-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	margin-bottom: 1rem;
	overflow: hidden;
	background: var(--khaki);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__date {
	color: var(--stone);
	font-size: 0.875rem;
}

.post-card__title {
	margin: 0.3rem 0 0.5rem;
	font-size: 1.5rem;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__excerpt p {
	margin: 0;
	color: var(--stone);
}

.pagination,
.post-navigation,
.comments-area {
	margin-top: 3rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	height: 3rem;
	padding: 0 0.75rem;
	border: 1px solid var(--line);
	font-weight: 700;
	text-decoration: none;
}

.page-numbers.current,
a.page-numbers:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bone);
}

.no-results {
	max-width: 640px;
	padding-block: 1rem 2rem;
}

.no-results__text {
	font-size: 1.25rem;
}

.no-results__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

/* 9. Footer --------------------------------------------------------------- */
.site-footer {
	position: relative;
	isolation: isolate;
	background: var(--night) var(--camo-dark) 0 0 / var(--camo-size);
	color: rgba(243, 239, 228, 0.74);
	font-size: 0.9688rem;
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(12, 16, 11, 0.55), rgba(12, 16, 11, 0.9)), var(--grain);
}

.site-footer > .fringe--top {
	background:
		linear-gradient(rgba(12, 16, 11, 0.55), rgba(12, 16, 11, 0.55)),
		var(--night) var(--camo-dark) 0 calc(100% - 1px) / var(--camo-size);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
	padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}

.site-footer__brand .site-wordmark {
	margin-bottom: 1.1rem;
	font-size: 1.5rem;
}

.site-footer__brand .custom-logo-link {
	margin-bottom: 1.1rem;
}

.site-footer__brand p {
	max-width: 34ch;
	margin: 0;
}

.site-footer__title {
	margin: 0.25rem 0 1.25rem;
	color: var(--sage);
	font-size: 0.78rem;
	font-weight: 600;
	font-stretch: 92%;
	letter-spacing: 0.18em;
}

.site-footer__menu,
.site-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__menu li,
.site-footer__contact li {
	margin-bottom: 0.6rem;
}

.site-footer__menu a {
	color: var(--bone);
	font-weight: 500;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--signal);
}

.site-footer__contact li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.site-footer__contact a {
	color: var(--bone);
	text-decoration: none;
}

.site-footer__contact .icon {
	flex: none;
	color: var(--signal);
}

.site-footer__company {
	margin: 1.1rem 0 0;
	line-height: 1.6;
}

/* Oversized wordmark, cropped by the bottom edge. */
.site-footer__mark {
	overflow: hidden;
	margin: 0;
	padding-inline: var(--gutter);
	color: transparent;
	-webkit-text-stroke: 1px rgba(185, 193, 159, 0.55);
	/* --n is the number of letters, so any site name spans the full width. */
	font-size: calc(94vw / (var(--n, 10) * 0.76));
	font-weight: 800;
	font-stretch: 125%;
	line-height: 0.74;
	letter-spacing: -0.03em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	user-select: none;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-block: 1.25rem;
	border-top: 1px solid var(--line-light);
	color: rgba(243, 239, 228, 0.55);
	font-size: 0.8125rem;
}

.site-footer__bottom p {
	margin: 0;
}

@media (max-width: 900px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* 10. Motion -------------------------------------------------------------- */
/* Page-to-page transitions: the header stays put and a product photo travels
   from its card to the product page (browsers without support just navigate). */
@view-transition {
	navigation: auto;
}

::view-transition-group(*) {
	animation-duration: 0.5s;
	animation-timing-function: cubic-bezier(0.2, 0.7, 0.1, 1);
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.3s;
}

/* Scroll reveal. main.js adds .reveal only to elements that start below the
   fold, so nothing is ever hidden if the script does not run. */
.reveal {
	opacity: 0;
	transform: translate3d(0, 32px, 0);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Hero entrance */
@keyframes rise {
	from {
		opacity: 0;
		translate: 0 0.35em;
	}
}

.hero__kicker,
.hero__title,
.hero__foot,
.hero__content > .hero__text {
	animation: rise 0.6s var(--ease) both;
}

.hero__title {
	animation-delay: 0.05s;
}

.hero__foot,
.hero__content > .hero__text {
	animation-delay: 0.12s;
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}

	@view-transition {
		navigation: none;
	}
}

/* 11. Utilities ----------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--bone);
	color: var(--ink);
}

.alignleft {
	float: left;
	margin: 0.3rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	color: var(--stone);
	font-size: 0.875rem;
}

.sticky,
.bypostauthor {
	display: block;
}

/* Cut-outs (transparent background) and photos on a dark backdrop (see
   inc/setup.php) are shown as they are: not multiplied onto the khaki, so
   white winter gear stays white and black stays a clean edge. The repeated
   class outranks the multiply rules spread across both stylesheets. */
img.is-cutout.is-cutout.is-cutout,
img.is-dark-photo.is-dark-photo.is-dark-photo {
	mix-blend-mode: normal;
	filter: none;
	-webkit-mask-image: none;
	mask-image: none;
}

img.is-cutout.is-cutout.is-cutout {
	mix-blend-mode: normal;
	filter: none;
	-webkit-mask-image: none;
	mask-image: none;
	/* Cut-outs are trimmed to the product: fit them whole, never crop. */
	object-fit: contain;
}

.cat-panel__media img.is-cutout.is-cutout.is-cutout {
	object-position: 50% 35%;
	padding: 9% 12% 30%;
}
