/*
Theme Name: Impossible
Description: A minimal, grid-based WooCommerce block theme with an industrial-hardware feel.
Version: 1.15.1
Requires at least: 6.6
Requires PHP: 8.1
Author: ImpossibleAmplifiers
Text Domain: impossible
License: GPL-2.0-or-later
*/

:root {
	--te-surface: var(--wp--preset--color--surface);
	--te-line: var(--wp--preset--color--line);
	--te-muted: var(--wp--preset--color--muted);
	--te-ink: var(--wp--preset--color--contrast);
	--te-accent: var(--wp--preset--color--accent);
	--te-mono: var(--wp--preset--font-family--mono);
}

::selection { background: var(--te-accent); color: #fff; }

body { -webkit-font-smoothing: antialiased; }

/* ---------- small technical labels ---------- */
.te-label,
.te-label a,
.woocommerce-breadcrumb,
.wc-block-breadcrumbs,
.te-fineprint,
.wc-block-product-results-count,
.woocommerce-result-count {
	font-family: var(--te-mono);
	font-size: var(--wp--preset--font-size--tiny);
	letter-spacing: 0.04em;
	text-transform: lowercase;
	color: var(--te-muted);
}

/* ---------- header ---------- */
.te-header,
.te-footer {
	padding-left: var(--wp--preset--spacing--40) !important;
	padding-right: var(--wp--preset--spacing--40) !important;
}

/* Fixed header with a spacer of its full height (measured by assets/header.js),
   so it can shrink on scroll without the page content jumping. */
.wp-site-blocks > .wp-block-template-part:has(> .te-header) {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .te-header) { top: var(--wp-admin--admin-bar--height, 32px); }
.wp-site-blocks:has(> .wp-block-template-part > .te-header) { padding-top: var(--te-header-h, 150px); }

/* compact state while scrolled */
.te-header,
.te-header .te-icon,
.te-brand .te-logo,
.te-header .wc-block-mini-cart__icon,
.te-nav-label {
	transition-duration: 0.3s;
	transition-timing-function: cubic-bezier(.2,.7,.2,1);
}
.te-header { transition-property: padding, box-shadow; }
.te-header .te-icon,
.te-header .wc-block-mini-cart__icon { transition-property: height, width; }
.te-brand .te-logo { transition-property: height, color; }
.te-nav-label { transition-property: font-size, color; }
.te-scrolled .te-header {
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	box-shadow: 0 1px 0 var(--te-line);
}
.te-scrolled .te-header .te-icon { height: 44px; }
.te-scrolled .te-brand .te-logo { height: 44px; }
.te-scrolled .te-header { --te-cart: 44px; }
.te-scrolled .te-nav-label { font-size: 14px; }
.te-scrolled .te-nav { gap: clamp(18px, 2.4vw, 40px); }
@media (max-width: 781px) {
	.te-scrolled .te-header .te-icon { height: 32px; }
	.te-scrolled .te-header { --te-cart: 36px; }
	.te-scrolled .te-brand .te-logo { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	.te-header, .te-header .te-icon, .te-brand .te-logo, .te-header .wc-block-mini-cart__icon, .te-nav-label { transition: none; }
}
.te-header {
	gap: var(--wp--preset--spacing--40);
	background: rgb(255 255 255 / 0.92);
	backdrop-filter: blur(10px);
}

.te-logo svg { display: block; height: 100%; width: auto; }

.te-brand {
	position: relative;
	display: flex;
	align-items: flex-start;
	color: var(--te-ink);
	flex: none;
}
.te-brand .te-logo { height: 76px; }
/* the name is folded away behind the logo and slides out on hover.
   Absolutely positioned so the brand box never changes width and the nav stays put. */
.te-brand-name {
	position: absolute;
	top: 4px;
	left: 100%;
	display: block;
	max-width: 0;
	margin-left: 0;
	overflow: hidden;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-12px);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.05;
	text-transform: lowercase;
	transition: max-width 0.4s cubic-bezier(.2,.7,.2,1), margin-left 0.4s cubic-bezier(.2,.7,.2,1), opacity 0.25s, transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.te-brand:is(:hover, :focus-visible) { color: var(--te-ink); }
.te-brand:is(:hover, :focus-visible) .te-logo { color: var(--te-accent); }
.te-brand:is(:hover, :focus-visible) .te-brand-name {
	max-width: 12em;
	margin-left: 12px;
	opacity: 1;
	transform: none;
}
/* touch screens have no hover: always show the name */
@media (hover: none) {
	.te-brand-name { max-width: 12em; margin-left: 10px; opacity: 1; transform: none; }
}

.te-nav {
	display: flex;
	gap: clamp(18px, 3.2vw, 52px);
	flex: 1;
	justify-content: center;
	align-items: flex-start;
}
.te-nav-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--te-ink);
}
.te-nav-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.te-nav-label { font-size: 19px; font-weight: 500; line-height: 1.1; }
/* description: hidden under the title, slides in on hover without moving the layout */
.te-nav-sub {
	position: absolute;
	top: 100%;
	left: 50%;
	margin-top: 6px;
	padding: 4px 8px;
	white-space: nowrap;
	font-size: 12px;
	line-height: 1.35;
	color: var(--te-muted);
	text-transform: lowercase;
	text-align: center;
	background: var(--wp--preset--color--base);
	opacity: 0;
	transform: translate(-50%, -6px);
	pointer-events: none;
	transition: opacity 0.2s, transform 0.25s cubic-bezier(.2,.7,.2,1);
}
.te-nav-item:is(:hover, :focus-visible) .te-nav-sub {
	opacity: 1;
	transform: translate(-50%, 0);
}
.te-nav-item:hover { color: var(--te-ink); }
.te-nav-item:hover .te-nav-label,
.te-nav-item:focus-visible .te-nav-label { color: var(--te-accent); }

/* ---------- animated header icons ---------- */
.te-icon {
	flex: none;
	display: block;
	height: 88px;
	width: auto;
	overflow: visible;
	color: var(--te-ink);
}
.te-icon .bg { fill: var(--wp--preset--color--base); }
.te-arm { transform-box: fill-box; }

/* shop: the record slides out of its sleeve and spins */
.te-rec-slide { transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.te-rec { transform-box: fill-box; transform-origin: 50% 50%; }
.te-nav-item--shop:is(:hover, :focus-visible) .te-rec-slide { transform: translateX(7px); }
.te-nav-item--shop:is(:hover, :focus-visible) .te-rec { animation: te-spin 1.6s linear infinite; }
@keyframes te-spin { to { transform: rotate(360deg); } }

/* our products: the speaker cone pumps and sound waves ripple out */
.te-woofer { transform-box: fill-box; transform-origin: 50% 50%; }
.te-waves path { opacity: 0; }
.te-nav-item--products:is(:hover, :focus-visible) .te-woofer { animation: te-pump 0.42s ease-in-out infinite alternate; }
.te-nav-item--products:is(:hover, :focus-visible) .te-waves .w1 { animation: te-wave-out 0.84s ease-out infinite; }
.te-nav-item--products:is(:hover, :focus-visible) .te-waves .w2 { animation: te-wave-out 0.84s ease-out 0.21s infinite; }
@keyframes te-pump { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes te-wave-out { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

/* account: an arm pops up and waves */
.te-arm { transform-origin: 50% 100%; transform: rotate(180deg); }
.te-arm .bg { transition: fill 0.2s; }
.te-nav-item--account:is(:hover, :focus-visible) .te-arm { animation: te-wave 1.3s ease-in-out forwards; }
.te-nav-item--account:is(:hover, :focus-visible) .te-arm .bg { fill: var(--te-accent); }
@keyframes te-wave {
	0%   { transform: rotate(180deg); }
	28%  { transform: rotate(14deg); }
	44%  { transform: rotate(42deg); }
	60%  { transform: rotate(12deg); }
	76%  { transform: rotate(42deg); }
	100% { transform: rotate(24deg); }
}

/* info: the dots light up in a diagonal sweep */
.te-icon--info circle { transition: fill 0.2s; }
.te-nav-item--info:is(:hover, :focus-visible) .te-icon--info circle {
	animation: te-dot 0.9s ease-in-out infinite;
	animation-delay: calc(var(--i) * 90ms);
}
@keyframes te-dot { 0%, 60%, 100% { fill: currentColor; } 25% { fill: var(--te-accent); } }

@media (prefers-reduced-motion: reduce) {
	.te-nav-item .te-icon * { animation: none !important; }
}

.te-header-tools { gap: 6px; padding-top: 0; }
/* mini-cart: the item count sits inside the basket of the cart icon.
   --te-cart is the icon size; the basket's empty centre is at ~56% / 48% of the 32x32 glyph. */
.te-header { --te-cart: 88px; }
.te-header .wc-block-mini-cart__button { padding: 0; }
.te-header .wc-block-mini-cart__quantity-badge { position: relative; display: inline-flex; }
.te-header .wc-block-mini-cart__icon { width: var(--te-cart); height: var(--te-cart); }
.te-header .wc-block-mini-cart__badge:not([hidden]) {
	position: absolute !important;
	top: 48% !important;
	left: 56.2% !important;
	right: auto !important;
	bottom: auto !important;
	display: block;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--te-ink) !important;
	font-family: var(--wp--preset--font-family--sans);
	font-size: max(9px, calc(var(--te-cart) * 0.17));
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	transform: translate(-50%, -50%) !important;
	transition: font-size 0.3s cubic-bezier(.2,.7,.2,1), color 0.15s;
}
.te-header .wc-block-mini-cart__button:hover .wc-block-mini-cart__badge { color: var(--te-accent) !important; }
.te-header .wc-block-mini-cart__badge { background: var(--te-accent); color: #fff; }

@media (max-width: 781px) {
	.te-nav-sub { display: none; }
	.te-brand .te-logo { height: 52px; }
	.te-header { --te-cart: 52px; }
	.te-brand-name { font-size: var(--wp--preset--font-size--small); }
	.te-icon { height: 52px; }
	.te-nav-item { gap: 4px; }
	.te-nav { gap: 14px; }
	.te-nav-label { font-size: var(--wp--preset--font-size--small); }
}
@media (max-width: 560px) {
	.te-header { flex-wrap: wrap !important; }
	.te-nav { order: 3; flex-basis: 100%; justify-content: space-between; }
}

/* ---------- hero ---------- */
.te-hero { position: relative; }
.te-hero .te-logo-mark {
	position: absolute;
	top: var(--wp--preset--spacing--50);
	right: 0;
	height: calc(100% - 2 * var(--wp--preset--spacing--50));
	max-height: 520px;
	margin: 0;
	color: var(--te-ink);
}
@media (max-width: 960px) {
	.te-hero .te-logo-mark { display: none; }
}

.te-hero-title {
	position: relative;
	white-space: nowrap;
	margin-right: 1.2em !important;
	display: inline-block;
	font-weight: 800;
	line-height: 0.86;
	letter-spacing: -0.055em;
	margin: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--50);
}
/* one line: "TIMELESS SOUND." is ~8.3em wide, so never let it outgrow the screen */
.te-hero-title.has-huge-font-size {
	font-size: min(var(--wp--preset--font-size--huge), calc((100vw - 64px) / 8.6)) !important;
}
/* red full stop that closes the big titles */
.te-dot {
	display: inline-block;
	width: 0.19em;
	height: 0.19em;
	margin-left: 0.07em;
	border-radius: 50%;
	background: var(--te-accent);
	vertical-align: baseline;
}
.te-lead {
	max-width: 52ch;
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
}
.te-archive-intro .te-hero-title { margin-bottom: var(--wp--preset--spacing--40); }

.te-specs {
	max-width: 900px;
	font-size: var(--wp--preset--font-size--small);
	border-top: 1px solid var(--te-ink);
	padding-top: var(--wp--preset--spacing--30);
}

/* ---------- category filter row ---------- */
.te-filters {
	border-top: 1px solid var(--te-line);
	padding-top: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--30);
	gap: var(--wp--preset--spacing--30);
}
.te-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
	text-transform: lowercase;
}
.te-cats li { margin: 0; }
.te-cats a { color: var(--te-muted); }
.te-cats a:hover,
.te-cats .current-cat a { color: var(--te-ink); }
.te-filters .wc-block-catalog-sorting select,
.te-filters .woocommerce-ordering select {
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	border: 0;
	background: transparent;
	text-transform: lowercase;
	cursor: pointer;
}

.te-archive-head { padding-top: var(--wp--preset--spacing--50); }
.te-archive-head h1 { margin: 0; }

/* ---------- product grid ---------- */
.te-grid .wc-block-product-template {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) !important;
}
.te-grid .wc-block-product { margin: 0; }

.te-tile,
.te-grid .wc-block-components-product-image {
	margin: 0 0 10px !important;
	background: var(--te-surface);
	border-radius: 2px;
	overflow: hidden;
}
.te-grid .wc-block-components-product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3 !important;
	object-fit: contain !important;
	padding: 6%;
	box-sizing: border-box;
	mix-blend-mode: multiply; /* white product backgrounds melt into the grey tile */
}

.te-card-meta { gap: 12px; }
.te-card-text { min-width: 0; }
.te-card-text > * { margin-block: 0 !important; }
.te-card-text .wp-block-post-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: 0;
}
.te-card-text .wc-block-components-product-price {
	display: block;
	margin: 1px 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--te-muted);
	text-align: left !important;
}
.te-card-text .wc-block-components-product-price ins { text-decoration: none; color: var(--te-accent); }

@media (max-width: 600px) {
	.te-grid .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: var(--wp--preset--spacing--30) 10px !important;
	}
	.te-card-meta { gap: 6px; }
}
html, body { overflow-x: clip; }

/* "+" add-to-cart button */
.te-plus { margin: 0 !important; flex: none; }
.te-plus .wp-block-button__link,
.te-plus .wc-block-components-product-button__button {
	position: relative;
	display: block !important;
	width: 28px !important;
	min-width: 28px !important;
	height: 28px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--te-line) !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--te-ink) !important;
	font-size: 0 !important;
	overflow: hidden;
	box-shadow: none;
}
.te-plus .wp-block-button__link::before,
.te-plus .wc-block-components-product-button__button::before {
	content: "+";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
}
.te-plus .wp-block-button__link:hover,
.te-plus .wc-block-components-product-button__button:hover {
	background: var(--te-accent) !important;
	border-color: var(--te-accent) !important;
	color: #fff !important;
}
.te-plus .added::before,
.te-plus [data-wp-class--is-added].added::before { content: "✓"; font-size: 13px; }
.te-plus .wc-block-components-product-button__button > span { position: absolute; opacity: 0; }
.te-plus .added_to_cart { display: none; }

.te-empty {
	padding: var(--wp--preset--spacing--60) 0;
	text-align: center;
	color: var(--te-muted);
	background: var(--te-surface);
	font-family: var(--te-mono);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--small);
}
.wp-block-query-pagination .current { color: var(--te-accent); }

/* ---------- single product ---------- */
.te-product { margin-top: var(--wp--preset--spacing--30); }
.te-product-media .woocommerce-product-gallery__image,
.te-product-media .flex-viewport,
.te-product-media .woocommerce-product-gallery__wrapper > div {
	background: var(--te-surface);
}
.te-product-media .woocommerce-product-gallery__image img { mix-blend-mode: multiply; }
.te-product-media .flex-control-thumbs { display: flex; gap: 8px; margin-top: 8px !important; }
.te-product-media .flex-control-thumbs li { background: var(--te-surface); width: 72px !important; }
.te-product-media .flex-control-thumbs img { mix-blend-mode: multiply; opacity: 0.55; }
.te-product-media .flex-control-thumbs img.flex-active { opacity: 1; }

/* magnifier (assets/gallery.js): opens the full-screen lightbox */
.te-product-media .woocommerce-product-gallery { position: relative; }
.te-product-media .te-zoom-trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 9;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--te-line);
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	color: var(--te-ink);
	padding: 0;
	cursor: zoom-in;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.2s;
}
.te-product-media .woocommerce-product-gallery__trigger { display: none; }
.te-product-media .te-zoom-trigger::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.te-product-media .te-zoom-trigger:is(:hover, :focus-visible) {
	background: var(--te-accent);
	border-color: var(--te-accent);
	color: #fff;
	transform: scale(1.06);
}
/* the image itself is not a zoom/hover target any more */
.te-product-media .woocommerce-product-gallery__image a { cursor: default; }

@media (min-width: 782px) {
	.te-product-info { position: sticky; top: 110px; align-self: flex-start; }
}
.te-product-info .wp-block-post-title { margin-top: 4px; }
.te-product-info .wp-block-post-excerpt { color: #444; font-size: var(--wp--preset--font-size--medium); }

.te-product-info form.cart {
	display: flex;
	gap: 8px;
	align-items: stretch;
	margin: var(--wp--preset--spacing--30) 0;
}
.te-product-info .quantity input.qty {
	width: 4em;
	height: 100%;
	min-height: 42px;
	border: 1px solid var(--te-line);
	border-radius: 999px;
	text-align: center;
	font: inherit;
}
.te-product-info .single_add_to_cart_button {
	flex: 1;
	min-height: 42px;
	border: 0;
	border-radius: 999px;
	background: var(--te-ink) !important;
	color: #fff !important;
	font-size: var(--wp--preset--font-size--small);
	text-transform: lowercase;
	cursor: pointer;
}
.te-product-info .single_add_to_cart_button:hover { background: var(--te-accent) !important; }
.te-product-info .stock { font-family: var(--te-mono); font-size: var(--wp--preset--font-size--tiny); }
.te-product-info .stock.in-stock::before {
	content: "";
	display: inline-block;
	width: 7px; height: 7px;
	margin-right: 6px;
	border-radius: 50%;
	background: #2bd16b;
	box-shadow: 0 0 6px #2bd16b;
}
.te-meta { font-family: var(--te-mono); font-size: var(--wp--preset--font-size--tiny); color: var(--te-muted); }

.te-details { margin-top: var(--wp--preset--spacing--60) !important; border-top: 1px solid var(--te-ink); }
.te-details .wc-tabs,
.te-details .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 24px;
	list-style: none;
	padding: 0 !important;
	margin: 12px 0 24px !important;
	border: 0 !important;
}
.te-details .woocommerce-tabs ul.tabs li { border: 0 !important; background: none !important; padding: 0 !important; margin: 0 !important; }
.te-details .woocommerce-tabs ul.tabs li::before,
.te-details .woocommerce-tabs ul.tabs li::after { display: none !important; }
.te-details .woocommerce-tabs ul.tabs li a { font-size: var(--wp--preset--font-size--small); color: var(--te-muted); padding: 0 !important; }
.te-details .woocommerce-tabs ul.tabs li.active a { color: var(--te-ink); }
.te-details .woocommerce-Tabs-panel h2:first-child { display: none; }
.te-details table.shop_attributes { font-family: var(--te-mono); font-size: var(--wp--preset--font-size--small); border-collapse: collapse; width: 100%; }
.te-details table.shop_attributes th,
.te-details table.shop_attributes td { border-bottom: 1px solid var(--te-line); padding: 8px 0; text-align: left; font-weight: 400; }
.te-details table.shop_attributes th { color: var(--te-muted); width: 30%; }

/* ---------- forms, cart & checkout ---------- */
.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-radius: 4px !important;
	border-color: var(--te-line) !important;
}
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	border-radius: 999px !important;
	background: var(--te-ink) !important;
	color: #fff !important;
	text-transform: lowercase;
}
.wc-block-components-button:not(.is-link):hover { background: var(--te-accent) !important; }
.wc-block-components-sale-badge,
.wc-block-components-product-sale-badge {
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--te-accent) !important;
	color: #fff !important;
	text-transform: lowercase;
}

/* ---------- footer (inverted) ---------- */
.te-footer {
	--te-footer-muted: #9a9a9a;
	background: var(--te-ink);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	overflow: hidden;
	padding-bottom: var(--wp--preset--spacing--50) !important;
}
.te-footer a { color: inherit; }
.te-footer a:hover,
.te-footer a:focus-visible { color: var(--te-accent); }
.te-footer .te-label,
.te-footer .te-label a { color: var(--te-footer-muted); }
.te-footer ::selection { background: var(--te-accent); color: #fff; }
.te-footer-cols p { margin: 0 0 6px; }

.te-footer-brand {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--60);
	/* the wordmark is ~8.7em wide: size it to the space between the gutters */
	font-size: clamp(28px, min(calc((100vw - 72px) / 8.9), 11vh), 240px); /* full width on narrow screens, ~120px on 1080p */
	line-height: 0.8;
}
.te-footer-mark {
	display: block;
	font-weight: 800;
	letter-spacing: -0.06em;
	white-space: nowrap;
	color: var(--wp--preset--color--base);
}
.te-made-in {
	display: block;
	width: clamp(220px, 26vw, 460px);
	height: auto;
	margin-left: auto; /* stays right-aligned when it wraps under the wordmark */
	margin-bottom: 0.04em;
}
.te-fineprint {
	margin-top: var(--wp--preset--spacing--50) !important;
	color: var(--te-footer-muted) !important;
	text-transform: none !important;
}

.te-status { display: flex; align-items: center; gap: 8px; font-family: var(--te-mono); font-size: var(--wp--preset--font-size--tiny); }
.te-led {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #2bd16b;
	box-shadow: 0 0 8px #2bd16b;
	animation: te-blink 2.4s infinite;
}
@keyframes te-blink { 0%, 90%, 100% { opacity: 1; } 95% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
	.te-led { animation: none; }
	.te-grid .wc-block-components-product-image img,
	.te-icon * { transition: none; }
}

/* ---------- info page ---------- */
.te-info .te-hero-title { text-transform: uppercase; margin-bottom: 0; }
.te-info-layout { gap: var(--wp--preset--spacing--50) !important; }
.te-toc {
	position: sticky;
	top: 175px;
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--te-ink);
	font-size: var(--wp--preset--font-size--small);
	text-transform: lowercase;
}
.te-toc a {
	display: flex;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid var(--te-line);
	transition: padding-left 0.2s, color 0.15s;
}
.te-toc a span { font-family: var(--te-mono); font-size: var(--wp--preset--font-size--tiny); color: var(--te-muted); padding-top: 2px; }
.te-toc a:hover { padding-left: 6px; color: var(--te-accent); }

.te-info-section {
	scroll-margin-top: 175px;
	padding: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--50);
	border-top: 1px solid var(--te-ink);
}
.te-info-section:first-child { padding-top: var(--wp--preset--spacing--30); }
.te-info-section h2 {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--x-large);
	text-transform: lowercase;
}
.te-info-section p,
.te-info-section li { max-width: 62ch; font-size: var(--wp--preset--font-size--medium); line-height: 1.55; }
.te-info-section ul { padding-left: 1.1em; }
.te-info-section .wp-block-table { margin: 0 0 var(--wp--preset--spacing--30); }
.te-info-section table { width: 100%; max-width: 62ch; border: 0 !important; border-collapse: collapse; font-size: var(--wp--preset--font-size--small); }
.te-info-section td,
.te-info-section th { padding: 8px 0; border: 0 !important; border-bottom: 1px solid var(--te-line) !important; text-align: left; font-weight: 400; }
.te-info-section th { color: var(--te-muted); font-family: var(--te-mono); font-size: var(--wp--preset--font-size--tiny); text-transform: lowercase; width: 40%; }
.te-todo { background: #fff4b8; padding: 0 3px; }

@media (max-width: 781px) {
	.te-toc { position: static; }
	.te-info-section { scroll-margin-top: 110px; }
}
