/* ==========================================================================
   UWAGA — black & white / street / avant-garde
   ========================================================================== */

:root,
[data-theme="light"] {
	color-scheme: light;
	--uwaga-bg: #ffffff;
	--uwaga-surface: #ffffff;
	--uwaga-surface-2: #f5f5f5;
	--uwaga-text: #000000;
	--uwaga-text-muted: #525252;
	--uwaga-border: #000000;
	--uwaga-accent: #000000;
	--uwaga-accent-hover: #000000;
	--uwaga-on-accent: #ffffff;
	--uwaga-shadow: 6px 6px 0 #000000;
	--uwaga-header-bg: rgba(255, 255, 255, 0.94);
	--uwaga-font: "IBM Plex Sans", system-ui, sans-serif;
	--uwaga-font-display: "Bebas Neue", impact, sans-serif;
	--uwaga-font-mono: "IBM Plex Mono", ui-monospace, monospace;
	--uwaga-radius: 0;
	--uwaga-radius-lg: 0;
	--uwaga-container: 100%;
	--uwaga-header-h: 80px;
	--uwaga-stroke: 2px;
}

[data-theme="dark"] {
	color-scheme: dark;
	--uwaga-bg: #000000;
	--uwaga-surface: #000000;
	--uwaga-surface-2: #141414;
	--uwaga-text: #ffffff;
	--uwaga-text-muted: #a3a3a3;
	--uwaga-border: #ffffff;
	--uwaga-accent: #ffffff;
	--uwaga-accent-hover: #ffffff;
	--uwaga-on-accent: #000000;
	--uwaga-shadow: 6px 6px 0 #ffffff;
	--uwaga-header-bg: rgba(0, 0, 0, 0.94);
}

/* Subtle grain — graffiti / zine texture */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9998;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"] body::before {
	opacity: 0.06;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	-webkit-font-smoothing: antialiased;
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	font-family: var(--uwaga-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--uwaga-text);
	background: var(--uwaga-bg);
	transition: background-color 0.2s ease, color 0.2s ease;
	overflow-x: clip;
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	opacity: 0.65;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4 {
	margin: 0 0 0.75rem;
	font-family: var(--uwaga-font-display);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

p {
	margin: 0 0 1rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding-inline: clamp(1rem, 3vw, 2rem);
}

.container--narrow {
	max-width: 720px;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
	padding-bottom: 4rem;
}

.site-main--product .container {
	max-width: 100%;
	padding: 0;
}

/* Shop, cart, checkout — full theme container width */
.site-main--shop .container,
.site-main--cart .container,
.site-main--checkout .container,
.site-main--account .container {
	width: 100%;
	max-width: none;
	margin: 0;
}

.site-main--shop,
.site-main--cart,
.site-main--checkout {
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.site-main--account {
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Cart / checkout shortcode block wrapper — use full theme container width */
.site-main--cart .wp-block-group.alignwide,
.site-main--cart .woocommerce.alignwide,
.site-main--checkout .wp-block-group.alignwide,
.site-main--checkout .woocommerce.alignwide,
body.woocommerce-order-received .wp-block-group.alignwide,
body.woocommerce-order-received .woocommerce.alignwide {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ==========================================================================
   Header — identical on every page
   ========================================================================== */

/* Block theme: avoid duplicate wrapper from template-part tagName="header" */
.site-header .site-header {
	border-bottom: 0;
}

/* The header template part renders double-wrapped:
   <header.wp-block-template-part> > <header.site-header>. That wrapper's box is
   only as tall as the header itself, which gives position:sticky no range to
   stick within. Collapsing it makes the sticky header's containing block the
   full-height page wrapper, so it sticks correctly. */
.wp-block-template-part:has(> .site-header) {
	display: contents;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--uwaga-header-bg);
	backdrop-filter: blur(8px);
	border-bottom: var(--uwaga-stroke) solid var(--uwaga-border);
	overflow-x: clip;
}

@media (max-width: 900px) {
	.site-header {
		overflow-x: visible;
	}
}

@media (max-width: 900px) {
	.site-header .site-nav-drawer__head.is-layout-flex {
		display: flex !important;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
	}

	.site-header .site-nav-drawer__tools.is-layout-flex {
		display: flex !important;
		flex-wrap: nowrap;
	}
}

.site-header__shell {
	min-height: var(--uwaga-header-h);
}

.site-header__bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem;
	min-height: var(--uwaga-header-h);
}

/* Cart + hamburger in the top bar on mobile (not inside the off-screen drawer) */
.site-header__actions {
	display: none;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	flex-shrink: 0;
}

.site-header__actions .wp-block-shortcode {
	display: block;
	margin: 0;
	padding: 0;
	flex: none;
}

.site-header__actions .header-cart,
.site-header__actions .site-nav-toggle {
	flex: none;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.site-header__brand {
	min-width: 0;
	max-width: 100%;
}

.site-header__title {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-nav-toggle {
	display: none;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: var(--uwaga-stroke) solid var(--uwaga-border);
	background: var(--uwaga-bg);
	color: var(--uwaga-text);
	cursor: pointer;
}

.site-nav-toggle__bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 18px;
}

.site-nav-toggle__bar {
	display: block;
	height: 2px;
	width: 100%;
	background: currentColor;
	transform-origin: center;
	transition: transform 0.22s ease, opacity 0.18s ease;
}

/* Hamburger morphs into an X while the menu is open */
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.site-nav-drawer__head {
	display: none;
}

.site-nav-close {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	font-family: var(--uwaga-font-mono);
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	border: var(--uwaga-stroke) solid var(--uwaga-border);
	background: var(--uwaga-bg);
	color: var(--uwaga-text);
	cursor: pointer;
}

.site-nav-close__icon {
	font-size: 1.25rem;
	line-height: 1;
}

.site-header__title {
	font-family: var(--uwaga-font-display);
	font-size: 1.75rem;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
}

.custom-logo {
	max-height: 44px;
	width: auto;
	filter: grayscale(1) contrast(1.2);
}

@media (max-width: 900px) {
	.site-nav {
		width: 100%;
	}
}

.site-nav__menu {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.site-nav__menu a {
	font-family: var(--uwaga-font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--uwaga-text);
}

.site-nav__menu a:hover,
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Never show dropdowns — prevents “menu change” on product/category pages */
.site-nav .sub-menu,
.site-nav .children {
	display: none !important;
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.theme-toggle,
.header-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: var(--uwaga-stroke) solid var(--uwaga-border);
	background: var(--uwaga-bg);
	color: var(--uwaga-text);
	cursor: pointer;
}

.theme-toggle {
	position: relative;
	overflow: visible;
}

/* Mask icons (SVG files) — survives block/shortcode sanitization */
.theme-toggle .theme-toggle__icon,
.header-cart__icon {
	display: block;
	flex-shrink: 0;
	background-color: currentColor;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.theme-toggle .theme-toggle__icon {
	width: 20px;
	height: 20px;
}

.theme-toggle .theme-toggle__icon--moon {
	display: none;
}

html[data-theme="dark"] .theme-toggle .theme-toggle__icon--sun {
	display: none;
}

html[data-theme="dark"] .theme-toggle .theme-toggle__icon--moon {
	display: block;
}

.header-cart {
	position: relative;
	font-size: 0;
	line-height: 0;
}

.header-cart__icon {
	width: 22px;
	height: 22px;
}

.header-cart__badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 1.125rem;
	height: 1.125rem;
	padding: 0 0.25rem;
	font-family: var(--uwaga-font-mono);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.125rem;
	text-align: center;
	background: var(--uwaga-accent);
	color: var(--uwaga-on-accent);
	border: var(--uwaga-stroke) solid var(--uwaga-border);
}

/* Hide WooCommerce breadcrumbs (often mistaken for a second menu) */
.woocommerce-breadcrumb {
	display: none !important;
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* Homepage — one shared .container aligns hero + products */
.site-main--home .site-home {
	width: 100%;
}

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 10vw, 7rem) 0 clamp(2.5rem, 7vw, 5rem);
	border-bottom: var(--uwaga-stroke) solid var(--uwaga-border);
}

/* Oversized outlined ghost wordmark fills the empty side — zine / street energy */
.hero::after {
	content: "Uwaga";
	position: absolute;
	right: -0.08em;
	bottom: -0.18em;
	z-index: 0;
	font-family: var(--uwaga-font-display);
	font-size: clamp(7rem, 24vw, 22rem);
	line-height: 0.8;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 2px var(--uwaga-border);
	pointer-events: none;
	user-select: none;
	opacity: 0.07;
}

[data-theme="dark"] .hero::after {
	opacity: 0.12;
}

/* When a marquee band follows the hero, it provides the divider */
.hero:has(+ .uwaga-marquee) {
	border-bottom: 0;
}

@media (max-width: 600px) {
	.hero::after {
		display: none;
	}
}

.hero__content {
	position: relative;
	z-index: 1;
}

.hero__badge {
	display: inline-block;
	margin-bottom: 1.25rem;
	font-family: var(--uwaga-font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	border: var(--uwaga-stroke) solid var(--uwaga-border);
	padding: 0.35rem 0.65rem;
}

.hero__content {
	min-width: 0;
	max-width: 100%;
}

.hero__title {
	font-size: clamp(2.5rem, 11vw, 8rem);
	margin-bottom: 1rem;
	line-height: 0.9;
	max-width: 100%;
	overflow-wrap: break-word;
}

.hero__title::after {
	content: "";
	display: block;
	width: 4rem;
	height: var(--uwaga-stroke);
	margin-top: 1rem;
	background: var(--uwaga-text);
	transform: skewX(-18deg);
}

.hero__lead {
	font-size: 1.0625rem;
	color: var(--uwaga-text-muted);
	max-width: 38ch;
	margin-bottom: 2rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	font-family: var(--uwaga-font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	border: var(--uwaga-stroke) solid var(--uwaga-border);
	background: var(--uwaga-accent);
	color: var(--uwaga-on-accent);
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover {
	color: var(--uwaga-on-accent);
	opacity: 1;
	transform: translate(-2px, -2px);
	box-shadow: var(--uwaga-shadow);
}

.btn--ghost {
	background: transparent;
	color: var(--uwaga-text);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.site-main--home .home-products {
	padding: 3rem 0 4rem;
}

.home-products {
	padding: 3rem 0 4rem;
}

.site-main--home .home-products > .woocommerce,
.home-products > .container > .woocommerce {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.site-main--home .home-products ul.products,
.home-products ul.products {
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: var(--uwaga-stroke) solid var(--uwaga-border);
}

.section-head__title {
	font-size: 2.5rem;
	margin: 0;
}

.section-head__link {
	font-family: var(--uwaga-font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

/* ==========================================================================
   Pages / blog
   ========================================================================== */

.entry {
	padding: 3rem 0;
}

.entry__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
}

.entry__date {
	font-family: var(--uwaga-font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--uwaga-text-muted);
}

.not-found {
	text-align: center;
	padding: 5rem 0;
}

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

.post-card {
	border: var(--uwaga-stroke) solid var(--uwaga-border);
	background: var(--uwaga-surface);
}

.post-card__image img {
	aspect-ratio: 4/3;
	object-fit: cover;
	filter: grayscale(1);
}

.post-card__title {
	font-size: 1.5rem;
	padding: 1rem 1rem 0;
}

.post-card__excerpt {
	padding: 0 1rem 1rem;
	font-size: 0.875rem;
	color: var(--uwaga-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	margin-top: auto;
	padding: 2rem 0;
	border-top: var(--uwaga-stroke) solid var(--uwaga-border);
}

.site-footer__copy {
	margin: 0;
	font-family: var(--uwaga-font-mono);
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--uwaga-text-muted);
}

.site-footer__menu {
	display: flex;
	gap: 1.5rem;
}

.site-footer__menu a {
	font-family: var(--uwaga-font-mono);
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	border: var(--uwaga-stroke) solid var(--uwaga-border);
	font-family: var(--uwaga-font-mono);
	font-size: 0.75rem;
}

.page-numbers.current {
	background: var(--uwaga-accent);
	color: var(--uwaga-on-accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 901px) {
	.site-header {
		position: sticky;
		z-index: 200;
	}

	/* One flex row: brand | nav (center) | theme + cart */
	.site-header__shell,
	.site-header__shell.is-layout-flow,
	.site-header__shell.wp-block-group {
		display: flex !important;
		flex-flow: row nowrap;
		align-items: center;
		gap: 1.5rem;
		min-height: var(--uwaga-header-h);
		position: relative;
	}

	.site-header__shell.is-layout-flow > * {
		margin-block-start: 0 !important;
	}

	.site-header__bar,
	.site-header__bar.is-layout-flex,
	.site-header__bar.is-layout-flow,
	.site-header__bar.wp-block-group {
		display: flex !important;
		flex: 0 0 auto;
		align-items: center;
		gap: 0.75rem;
		min-width: 0;
		min-height: 0;
	}

	.site-header__actions {
		display: none !important;
	}

	.site-header__brand {
		flex-shrink: 1;
		min-width: 0;
	}

	.site-header__title {
		white-space: nowrap;
	}

	.site-nav-toggle {
		display: none;
	}

	.site-header__shell > .site-nav-drawer,
	.site-header__shell > .site-nav-drawer.is-layout-flow,
	.site-header__shell > .site-nav-drawer.wp-block-group,
	.site-header__shell > .site-nav-drawer.is-open {
		position: static !important;
		flex: 1 1 auto;
		display: flex !important;
		flex-flow: row nowrap;
		align-items: center;
		justify-content: flex-end;
		gap: 0.75rem;
		width: auto !important;
		max-width: none !important;
		height: auto !important;
		max-height: none !important;
		min-height: 0 !important;
		padding: 0 !important;
		margin: 0;
		transform: none !important;
		visibility: visible !important;
		pointer-events: auto !important;
		background: transparent;
		overflow: visible;
	}

	.site-nav-drawer__head {
		display: none !important;
	}

	.site-header__tools--drawer .header-cart {
		display: inline-flex !important;
	}

	.site-nav,
	nav.site-nav.wp-block-navigation {
		position: static !important;
		flex: 1 1 auto;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: auto !important;
		max-width: none !important;
		margin: 0;
		padding: 0;
		transform: none !important;
	}

	.site-nav__menu,
	ul.site-nav__menu {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center;
		justify-content: center;
		gap: 2rem;
		width: auto;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.site-nav__menu > li {
		display: block;
		width: auto;
		white-space: nowrap;
		margin: 0;
		border: 0;
	}

	.site-nav__menu a {
		display: inline-block;
		pointer-events: auto;
	}

	.site-nav-drawer__tools,
	.site-nav-drawer__tools.is-layout-flow,
	.site-header__tools.site-nav-drawer__tools {
		display: flex !important;
		flex: 0 0 auto;
		flex-direction: row !important;
		flex-wrap: nowrap;
		align-items: center;
		gap: 0.75rem !important;
		border-top: 0;
		padding: 0;
		margin: 0;
	}

	.site-nav-drawer__tools .wp-block-shortcode {
		display: block;
		flex: none;
	}

	.site-nav-drawer__tools .theme-toggle,
	.site-nav-drawer__tools .header-cart {
		flex: none;
		width: 44px;
		height: 44px;
	}

	body.is-nav-open #page {
		pointer-events: auto;
	}
}

@media (max-width: 900px) {
	/*
	 * Header bar must stay above the drawer and receive clicks.
	 * Drawer sits below the bar (not full-screen over it).
	 */
	.site-header {
		z-index: 100050;
		isolation: isolate;
	}

	body.is-nav-open .site-header {
		overflow: visible;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.site-header__shell {
		display: block !important;
		position: relative;
		z-index: 2;
		min-height: 64px;
	}

	.site-header__bar {
		position: relative;
		z-index: 3;
		min-height: 64px;
		pointer-events: auto;
	}

	.site-header__actions,
	.site-header__actions.is-layout-flow {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap;
		align-items: center;
		gap: 0.5rem;
		pointer-events: auto;
	}

	.site-header__actions .site-nav-toggle {
		display: inline-flex !important;
		width: 44px;
		height: 44px;
		pointer-events: auto;
		cursor: pointer;
	}

	.site-nav-toggle {
		display: inline-flex !important;
	}

	.site-nav-drawer {
		--uwaga-mobile-header-h: 64px;
		--uwaga-nav-top: 0px;
		--uwaga-nav-height: calc(
			var(--uwaga-vh, 100dvh) - var(--uwaga-nav-top, 0px) - var(--uwaga-mobile-header-h, 64px)
		);
		position: fixed;
		top: calc(var(--uwaga-nav-top, 0px) + var(--uwaga-mobile-header-h, 64px));
		left: 0;
		right: 0;
		bottom: auto;
		z-index: 100000;
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: none;
		height: var(--uwaga-nav-height);
		max-height: var(--uwaga-nav-height);
		min-height: var(--uwaga-nav-height);
		background: var(--uwaga-bg);
		/* Parked off-canvas to the LEFT: in LTR, content left of the scroll
		   origin is not horizontally scrollable, so the closed drawer can't
		   create a rightward scroll (and we avoid clipping html, which would
		   break the sticky header). The panel is full-width, so the slide
		   direction is purely cosmetic. */
		transform: translate3d(-100%, 0, 0);
		visibility: hidden;
		pointer-events: none;
		box-sizing: border-box;
		will-change: transform;
		transition:
			transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
			visibility 0s linear 0.28s;
	}

	.site-nav-drawer.is-open {
		transform: translate3d(0, 0, 0);
		visibility: visible;
		pointer-events: auto;
		transition:
			transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
			visibility 0s linear 0s;
	}

	body.admin-bar .site-nav-drawer {
		--uwaga-nav-top: var(--wp-admin--admin-bar--height, 32px);
	}

	@media (max-width: 782px) {
		body.admin-bar .site-nav-drawer {
			--uwaga-nav-top: 46px;
		}
	}

	.site-nav-drawer__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		flex-shrink: 0;
		padding: max(1rem, env(safe-area-inset-top, 0px)) clamp(1.25rem, 4vw, 2rem) 1rem;
		border-bottom: var(--uwaga-stroke) solid var(--uwaga-border);
	}

	.site-nav-drawer__label {
		margin: 0;
		font-family: var(--uwaga-font-mono);
		font-size: 0.6875rem;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.2em;
		color: var(--uwaga-text-muted);
	}

	.site-nav,
	nav.site-nav.wp-block-navigation {
		position: static;
		left: auto;
		top: auto;
		transform: none;
		width: 100% !important;
		max-width: none;
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.site-nav-drawer__tools,
	.site-nav-drawer__tools.is-layout-flow,
	.site-nav-drawer__tools.wp-block-group {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap;
		flex-shrink: 0;
		align-items: stretch;
		gap: 1.25rem !important;
		padding: 1.25rem clamp(1.25rem, 4vw, 2rem) max(1.25rem, env(safe-area-inset-bottom, 0px));
		border-top: var(--uwaga-stroke) solid var(--uwaga-border);
	}

	.site-nav-drawer__tools .wp-block-shortcode {
		display: flex !important;
		flex: 1 1 0;
		align-items: stretch;
		min-width: 0;
		margin: 0;
		padding: 0;
	}

	.site-nav-drawer__tools .wp-block-shortcode + .wp-block-shortcode {
		margin-inline-start: 0;
	}

	.site-nav-drawer__tools .theme-toggle,
	.site-nav-drawer__tools .header-cart {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		flex: 1 1 auto;
		width: 100%;
		min-width: 44px;
		height: 52px;
		max-width: none;
	}

	.site-nav__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
	}

	.site-nav__menu li {
		border-bottom: var(--uwaga-stroke) solid var(--uwaga-border);
	}

	.site-nav__menu a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 1rem 0;
		font-family: var(--uwaga-font-display);
		font-size: clamp(1.75rem, 7vw, 2.25rem);
		font-weight: 400;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		text-decoration: none;
	}

	.site-nav__menu a::after {
		content: "→";
		font-family: var(--uwaga-font-mono);
		font-size: 0.875rem;
		letter-spacing: 0;
		opacity: 0.7;
	}

	.site-nav__menu a:hover,
	.site-nav__menu .current-menu-item > a,
	.site-nav__menu .current_page_item > a {
		opacity: 1;
		text-decoration: none;
	}

	.site-nav__menu .current-menu-item > a,
	.site-nav__menu .current_page_item > a {
		box-shadow: inset 4px 0 0 var(--uwaga-border);
		padding-left: 0.75rem;
		margin-left: -0.75rem;
	}
}

@media (max-width: 600px) {
	.section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

@media (max-width: 640px) {
	.site-header__shell,
	.site-header__bar {
		min-height: auto;
	}

	.site-header__shell {
		padding-top: 0.65rem;
		padding-bottom: 0.65rem;
	}

	.hero__actions .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-nav-drawer {
		transition: none;
	}

	.site-nav-toggle__bar {
		transition: none;
	}
}

/* Block clicks on page content when menu is open; header bar stays interactive */
@media (max-width: 900px) {
	body.is-nav-open #page {
		pointer-events: none;
	}

	body.is-nav-open .site-header,
	body.is-nav-open .site-header__shell,
	body.is-nav-open .site-header__bar,
	body.is-nav-open .site-header__actions,
	body.is-nav-open .site-header__actions .site-nav-toggle,
	body.is-nav-open .site-nav-drawer__tools .header-cart,
	body.is-nav-open .site-nav-drawer__tools .theme-toggle,
	body.is-nav-open .site-nav-drawer.is-open {
		pointer-events: auto;
	}
}

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

/* ==========================================================================
   Marquee — scrolling brutalist ticker band
   ========================================================================== */

.uwaga-marquee {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 0.85rem 0;
	border-top: var(--uwaga-stroke) solid var(--uwaga-border);
	border-bottom: var(--uwaga-stroke) solid var(--uwaga-border);
	background: var(--uwaga-accent);
	color: var(--uwaga-on-accent);
	-webkit-mask-image: none;
}

.uwaga-marquee__track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: uwaga-marquee 30s linear infinite;
}

.uwaga-marquee:hover .uwaga-marquee__track {
	animation-play-state: paused;
}

.uwaga-marquee__group {
	flex: 0 0 auto;
	white-space: nowrap;
	font-family: var(--uwaga-font-display);
	font-size: clamp(1.25rem, 3vw, 2rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@keyframes uwaga-marquee {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.uwaga-marquee__track {
		animation: none;
		justify-content: center;
	}

	.uwaga-marquee__group + .uwaga-marquee__group {
		display: none;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.site-footer__grid {
	display: flex;
	flex-direction: column;
	gap: clamp(1.75rem, 4vw, 2.75rem);
}

/* Brand masthead */
.site-footer__brand {
	display: block;
	width: 100%;
}

.site-footer__wordmark {
	display: block;
	font-family: var(--uwaga-font-display);
	font-size: clamp(3rem, 14vw, 9rem);
	font-weight: 400;
	line-height: 0.82;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--uwaga-text);
	overflow-wrap: break-word;
}

.site-footer__wordmark:hover {
	opacity: 1;
}

.site-footer__tagline {
	margin: 1rem 0 0;
	max-width: 42ch;
	font-family: var(--uwaga-font-mono);
	font-size: 0.75rem;
	line-height: 1.6;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--uwaga-text-muted);
}

/* ==========================================================================
   Focus visibility (accessibility)
   ========================================================================== */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--uwaga-stroke) solid var(--uwaga-text);
	outline-offset: 2px;
}
