/*
 * THE /// PROJECT — canonical front-end design system.
 * Keep this file small. Elementor handles component-level styling;
 * this file owns brand tokens, editorial utilities and Header behavior.
 */

:root {
	--tp-paper: #f7f6f2;
	--tp-ink: #171717;
	--tp-muted: #7f7f7b;
	--tp-soft: #efeee9;
	--tp-rule: rgba(23, 23, 23, 0.14);

	--tp-font-ui: "Archivo", Arial, sans-serif;
	--tp-font-editorial: "Instrument Serif", Georgia, serif;

	--tp-shell-max: 1800px;
	--tp-shell-x: 64px;
	--tp-header-h: 80px;

	--tp-space-1: 4px;
	--tp-space-2: 8px;
	--tp-space-3: 12px;
	--tp-space-4: 16px;
	--tp-space-5: 20px;
	--tp-space-6: 24px;
	--tp-space-8: 32px;
	--tp-space-10: 40px;
	--tp-space-12: 48px;
	--tp-space-16: 64px;
	--tp-space-20: 80px;
	--tp-space-24: 96px;
	--tp-space-32: 128px;

	--tp-ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body {
	background: var(--tp-paper);
	color: var(--tp-ink);
	font-family: var(--tp-font-ui);
}

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

.tp-shell {
	width: 100%;
	max-width: var(--tp-shell-max);
	margin-inline: auto;
	padding-inline: var(--tp-shell-x);
}

.tp-label {
	font-family: var(--tp-font-ui);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.tp-label-sm {
	font-family: var(--tp-font-ui);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.tp-display-xl {
	font-family: var(--tp-font-editorial);
	font-size: clamp(44px, 9vw, 136px);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: -0.02em;
}

.tp-display-lg {
	font-family: var(--tp-font-editorial);
	font-size: clamp(32px, 5.2vw, 76px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.015em;
}

.tp-display-md {
	font-family: var(--tp-font-editorial);
	font-size: clamp(26px, 3vw, 44px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.tp-body-copy {
	font-family: var(--tp-font-ui);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0.005em;
}

.tp-hairline-t {
	border-top: 1px solid var(--tp-rule);
}

.tp-hairline-b {
	border-bottom: 1px solid var(--tp-rule);
}

.tp-link-quiet {
	position: relative;
	text-decoration: none;
}

.tp-link-quiet::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s var(--tp-ease-editorial);
}

.tp-link-quiet:hover::after,
.tp-link-quiet:focus-visible::after {
	transform: scaleX(1);
}

/* -------------------------------------------------------------------------
 * Header compatibility layer
 * Used by the included Elementor header JSON.
 * ---------------------------------------------------------------------- */

.tp-header {
	position: fixed;
	inset: 0 0 auto 0;
	width: 100%;
	z-index: 9999;
	color: #f4f3ee;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition:
		background-color 0.5s ease,
		color 0.5s ease,
		border-color 0.5s ease,
		backdrop-filter 0.5s ease;
}

.tp-header.tp-header--scrolled,
.tp-header.elementor-sticky--effects,
.tp-header:has(.tp-mobile-menu .elementor-menu-toggle.elementor-active) {
	color: var(--tp-ink);
	background: rgba(247, 246, 242, 0.96);
	border-bottom-color: var(--tp-rule);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.tp-header .tp-header__shell {
	width: 100%;
	max-width: var(--tp-shell-max);
	margin-inline: auto;
}

.tp-header .tp-brand,
.tp-header .tp-primary,
.tp-header .tp-utils {
	width: auto !important;
	flex: 0 0 auto !important;
}

.tp-header .tp-wordmark .elementor-button,
.tp-header .tp-utility-link .elementor-button {
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	font-family: var(--tp-font-ui);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
}

.tp-header .tp-wordmark .elementor-button {
	font-size: 12px;
	letter-spacing: 0.18em;
	word-spacing: 0.22em;
}

.tp-header .tp-utility-link .elementor-button {
	position: relative;
	font-size: 11px;
	letter-spacing: 0.18em;
}

.tp-header .tp-utility-link .elementor-button::after,
.tp-header .tp-primary-menu .elementor-nav-menu--main .elementor-item::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s var(--tp-ease-editorial);
}

.tp-header .tp-utility-link .elementor-button:hover::after,
.tp-header .tp-utility-link .elementor-button:focus-visible::after,
.tp-header .tp-primary-menu .elementor-nav-menu--main .elementor-item:hover::after,
.tp-header .tp-primary-menu .elementor-nav-menu--main .elementor-item:focus-visible::after {
	transform: scaleX(1);
}

.tp-header .tp-primary-menu .elementor-nav-menu--main .elementor-nav-menu {
	display: flex;
	align-items: center;
	gap: 36px;
}

.tp-header .tp-primary-menu .elementor-nav-menu--main .elementor-item {
	position: relative;
	padding: 0 !important;
	color: inherit !important;
	background: transparent !important;
	font-family: var(--tp-font-ui);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.tp-header .tp-mobile-menu {
	display: none;
	width: auto !important;
}

.tp-header .tp-mobile-menu .elementor-menu-toggle {
	width: auto;
	height: 44px;
	padding: 0 4px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	color: inherit !important;
	font-family: var(--tp-font-ui);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.tp-header .tp-mobile-menu .elementor-menu-toggle svg,
.tp-header .tp-mobile-menu .elementor-menu-toggle i {
	display: none !important;
}

.tp-header .tp-mobile-menu .elementor-menu-toggle::before {
	content: "Menu";
}

.tp-header .tp-mobile-menu .elementor-menu-toggle.elementor-active::before {
	content: "Close";
}

.tp-header .tp-mobile-menu .elementor-nav-menu--dropdown {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	top: var(--tp-header-h) !important;
	width: 100vw !important;
	height: calc(100dvh - var(--tp-header-h)) !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow-y: auto !important;
	background: var(--tp-paper) !important;
	color: var(--tp-ink) !important;
	border-top: 1px solid var(--tp-rule);
	box-shadow: none !important;
}

.tp-header .tp-mobile-menu .elementor-nav-menu--dropdown .elementor-nav-menu {
	counter-reset: tp-nav;
	width: 100%;
	max-width: var(--tp-shell-max);
	margin: 0 auto;
	padding: 40px 64px;
	background: transparent !important;
}

.tp-header .tp-mobile-menu .elementor-nav-menu--dropdown li {
	counter-increment: tp-nav;
	position: relative;
	border-bottom: 1px solid var(--tp-rule);
}

.tp-header .tp-mobile-menu .elementor-nav-menu--dropdown li > a {
	position: relative;
	display: block;
	min-height: 0;
	padding: 20px 0 20px 56px !important;
	background: transparent !important;
	color: var(--tp-ink) !important;
	font-family: var(--tp-font-editorial);
	font-size: clamp(26px, 3vw, 44px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-transform: none;
}

.tp-header .tp-mobile-menu .elementor-nav-menu--dropdown li > a::before {
	content: "0" counter(tp-nav);
	position: absolute;
	left: 0;
	top: 25px;
	font-family: var(--tp-font-ui);
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(23, 23, 23, 0.55);
}

body:has(.tp-mobile-menu .elementor-menu-toggle.elementor-active) {
	overflow: hidden;
}

@media (max-width: 1023px) {
	:root {
		--tp-shell-x: 40px;
	}

	.tp-header .tp-primary {
		display: none !important;
	}

	.tp-header .tp-mobile-menu {
		display: block !important;
	}
}

@media (max-width: 767px) {
	:root {
		--tp-shell-x: 20px;
		--tp-header-h: 64px;
	}

	.tp-header .tp-wordmark .elementor-button {
		font-size: 11px;
	}

	.tp-header .tp-utils > .tp-utility-link {
		display: none !important;
	}

	.tp-header .tp-mobile-menu .elementor-nav-menu--dropdown .elementor-nav-menu {
		padding: 40px 20px;
	}
}

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

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

/* v0.1.1 — reliable scroll-state fallback.
 * Elementor's elementor-sticky--effects remains supported, while
 * tp-header--scrolled is toggled independently at >24px scroll.
 */
.tp-header.tp-header--scrolled {
	background: rgba(247, 246, 242, 0.96) !important;
	color: var(--tp-ink, #171717) !important;
	border-bottom-color: var(--tp-rule, rgba(23, 23, 23, 0.14)) !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.tp-header.tp-header--scrolled .elementor-item,
.tp-header.tp-header--scrolled .elementor-button,
.tp-header.tp-header--scrolled .elementor-menu-toggle {
	color: var(--tp-ink, #171717) !important;
}

/* v0.1.2 — fixed header + WP admin bar + independent scroll state */
body.admin-bar .tp-header {
	top: 32px !important;
}
@media screen and (max-width: 782px) {
	body.admin-bar .tp-header {
		top: 46px !important;
	}
}

.tp-header.tp-header--scrolled,
.tp-header[data-tp-scrolled="true"] {
	background: rgba(236, 236, 234, 0.96) !important;
	color: var(--tp-ink, #171717) !important;
	border-bottom-color: var(--tp-rule, rgba(23, 23, 23, 0.12)) !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.tp-header.tp-header--scrolled .elementor-item,
.tp-header.tp-header--scrolled .elementor-button,
.tp-header.tp-header--scrolled .elementor-menu-toggle,
.tp-header[data-tp-scrolled="true"] .elementor-item,
.tp-header[data-tp-scrolled="true"] .elementor-button,
.tp-header[data-tp-scrolled="true"] .elementor-menu-toggle {
	color: var(--tp-ink, #171717) !important;
}

/* ==========================================================
   THE /// PROJECT — Dynamic Editorial system
   ========================================================== */

.tp-editorial-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
	gap: clamp(34px, 5vw, 84px);
	align-items: end;
}

.tp-editorial-featured__media,
.tp-editorial-card__media {
	display: block;
	overflow: hidden;
	background: var(--tp-soft, #efeee9);
}

.tp-editorial-featured__media {
	aspect-ratio: 4 / 5;
}

.tp-editorial-featured__media img,
.tp-editorial-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .75s var(--tp-ease-editorial, cubic-bezier(.16,1,.3,1)), opacity .35s ease;
}

.tp-editorial-featured:hover .tp-editorial-featured__media img,
.tp-editorial-card:hover .tp-editorial-card__media img {
	transform: scale(1.012);
	opacity: .95;
}

.tp-editorial-card__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	background:
		linear-gradient(135deg, rgba(23,23,23,.06), rgba(23,23,23,.16)),
		var(--tp-soft, #efeee9);
}

.tp-editorial-featured__content {
	padding-bottom: 4px;
}

.tp-editorial-featured__meta,
.tp-editorial-card__meta,
.tp-editorial-empty__label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--tp-muted, #7f7f7b);
	font-family: var(--tp-font-ui, "Archivo", Arial, sans-serif);
	font-size: 9px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.tp-editorial-featured__title {
	max-width: 12ch;
	margin: 24px 0 24px;
	font-family: var(--tp-font-editorial, "Instrument Serif", Georgia, serif);
	font-size: clamp(48px, 5vw, 82px);
	font-weight: 400;
	line-height: .96;
	letter-spacing: -.015em;
}

.tp-editorial-featured__title a,
.tp-editorial-card__title a {
	color: inherit;
	text-decoration: none;
}

.tp-editorial-featured__excerpt {
	max-width: 47ch;
	margin: 0 0 28px;
	color: var(--tp-muted, #7f7f7b);
	font-family: var(--tp-font-ui, "Archivo", Arial, sans-serif);
	font-size: 14px;
	line-height: 1.75;
}

.tp-editorial-featured__link,
.tp-editorial-card__link {
	display: inline-block;
	padding-bottom: 5px;
	color: var(--tp-ink, #171717);
	border-bottom: 1px solid currentColor;
	font-family: var(--tp-font-ui, "Archivo", Arial, sans-serif);
	font-size: 9px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .18em;
	text-decoration: none;
	text-transform: uppercase;
}

.tp-editorial-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 72px 24px;
}

.tp-editorial-card__media {
	aspect-ratio: 4 / 5;
	margin-bottom: 18px;
}

.tp-editorial-card__meta {
	margin-bottom: 14px;
}

.tp-editorial-card__title {
	max-width: 18ch;
	margin: 0 0 18px;
	font-family: var(--tp-font-editorial, "Instrument Serif", Georgia, serif);
	font-size: clamp(30px, 2.8vw, 44px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.01em;
}

.tp-editorial-empty {
	padding: 42px 0;
	border-top: 1px solid var(--tp-rule, rgba(23,23,23,.14));
	border-bottom: 1px solid var(--tp-rule, rgba(23,23,23,.14));
}

.tp-editorial-empty p {
	margin: 18px 0 0;
	color: var(--tp-muted, #7f7f7b);
	font-family: var(--tp-font-ui, "Archivo", Arial, sans-serif);
	font-size: 14px;
	line-height: 1.6;
}

.tp-editorial-pagination {
	display: flex;
	gap: 18px;
	margin-top: 72px;
	padding-top: 24px;
	border-top: 1px solid var(--tp-rule, rgba(23,23,23,.14));
}

.tp-editorial-pagination a {
	color: var(--tp-muted, #7f7f7b);
	font-family: var(--tp-font-ui, "Archivo", Arial, sans-serif);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .16em;
	text-decoration: none;
}

.tp-editorial-pagination a.is-current,
.tp-editorial-pagination a:hover {
	color: var(--tp-ink, #171717);
}

@media (max-width: 1024px) {
	.tp-editorial-featured {
		grid-template-columns: 1fr;
	}

	.tp-editorial-featured__title {
		max-width: 15ch;
	}

	.tp-editorial-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tp-editorial-featured__media {
		aspect-ratio: 4 / 5;
	}

	.tp-editorial-featured__title {
		margin-top: 20px;
		font-size: clamp(44px, 14vw, 64px);
	}

	.tp-editorial-grid {
		grid-template-columns: 1fr;
		gap: 54px;
	}

	.tp-editorial-card__title {
		max-width: none;
	}
}

/* ==========================================================
   THE /// PROJECT — Single Editorial Story
   ========================================================== */

.tp-editorial-single-meta__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	color: var(--tp-muted, #7f7f7b);
	font-family: var(--tp-font-ui, "Archivo", Arial, sans-serif);
	font-size: 9px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.tp-editorial-single-meta__excerpt {
	max-width: 46ch;
	margin: 24px 0 0;
	color: var(--tp-muted, #7f7f7b);
	font-family: var(--tp-font-ui, "Archivo", Arial, sans-serif);
	font-size: 14px;
	line-height: 1.75;
}

.tp-editorial-story-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--tp-rule, rgba(23,23,23,.14));
	border-bottom: 1px solid var(--tp-rule, rgba(23,23,23,.14));
}

.tp-editorial-story-nav__item {
	display: flex;
	min-height: 190px;
	flex-direction: column;
	justify-content: space-between;
	padding: 28px 30px;
	color: var(--tp-ink, #171717);
	text-decoration: none;
	transition: background-color .25s ease;
}

.tp-editorial-story-nav__item + .tp-editorial-story-nav__item {
	border-left: 1px solid var(--tp-rule, rgba(23,23,23,.14));
}

.tp-editorial-story-nav__item:hover {
	background: var(--tp-soft, #efeee9);
}

.tp-editorial-story-nav__item--next {
	text-align: right;
	align-items: flex-end;
}

.tp-editorial-story-nav__eyebrow {
	color: var(--tp-muted, #7f7f7b);
	font-family: var(--tp-font-ui, "Archivo", Arial, sans-serif);
	font-size: 9px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.tp-editorial-story-nav__title {
	max-width: 16ch;
	font-family: var(--tp-font-editorial, "Instrument Serif", Georgia, serif);
	font-size: clamp(30px, 3vw, 46px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.01em;
}

.tp-editorial-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 52px 24px;
}

.tp-editorial-related-card__media {
	display: block;
	aspect-ratio: 4 / 5;
	margin-bottom: 16px;
	overflow: hidden;
	background: var(--tp-soft, #efeee9);
}

.tp-editorial-related-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--tp-ease-editorial, cubic-bezier(.16,1,.3,1)), opacity .35s ease;
}

.tp-editorial-related-card:hover img {
	transform: scale(1.01);
	opacity: .95;
}

.tp-editorial-related-card__meta {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
	color: var(--tp-muted, #7f7f7b);
	font-family: var(--tp-font-ui, "Archivo", Arial, sans-serif);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.tp-editorial-related-card__title {
	max-width: 18ch;
	margin: 0;
	font-family: var(--tp-font-editorial, "Instrument Serif", Georgia, serif);
	font-size: clamp(28px, 2.5vw, 40px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.01em;
}

.tp-editorial-related-card__title a {
	color: inherit;
	text-decoration: none;
}

@media (max-width: 1024px) {
	.tp-editorial-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tp-editorial-story-nav {
		grid-template-columns: 1fr;
	}

	.tp-editorial-story-nav__item + .tp-editorial-story-nav__item {
		border-top: 1px solid var(--tp-rule, rgba(23,23,23,.14));
		border-left: 0;
	}

	.tp-editorial-story-nav__item {
		min-height: 160px;
		padding: 24px 20px;
	}

	.tp-editorial-related-grid {
		grid-template-columns: 1fr;
		gap: 44px;
	}
}

/* ==========================================================
   THE /// PROJECT — HD WooCommerce product imagery
   ========================================================== */

/* Product-card images are allowed to crop editorially, but never receive
   CSS filters that can soften the loaded asset. */
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
.tp-collection__products ul.products li.product img,
.related.products ul.products li.product img {
	filter: none !important;
	backface-visibility: hidden;
	image-rendering: auto;
}
