:root{
	--font-sans:"IBM Plex Sans","Segoe UI",sans-serif;
	--font-serif:"Fraunces",Georgia,serif;
	--color-ink:#1f1b16;
	--color-paper:#fffdf8;
	--color-panel:#f6f0e6;
	--color-muted:#57534e;
	--color-accent:#f2d6a3;
	--color-danger:#b91c1c;
}

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

html,
body{
	margin:0;
	padding:0;
	min-height:100%;
}

body{
	min-width:320px;
	font-family:var(--font-sans);
	color:var(--color-ink);
	-webkit-font-smoothing:antialiased;
	-moz-osx-font-smoothing:grayscale;
	background-image:
		linear-gradient(rgba(31,27,22,.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(31,27,22,.08) 1px, transparent 1px),
		linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)),
		linear-gradient(#ece8df, #e6e0d4);
	background-size:32px 32px, 32px 32px, auto, auto;
}

body::before{
	content:"";
	position:fixed;
	inset:24px;
	border:1.5px solid rgba(31,27,22,.16);
	pointer-events:none;
	z-index:0;
}

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

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

button,
input,
textarea,
select{
	font:inherit;
}

button,
.text-chip-link,
.product-cta,
.menu-logout{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	padding:12px 16px;
	border:1.5px solid var(--color-ink);
	background:var(--color-ink);
	color:var(--color-paper);
	box-shadow:4px 4px rgba(31,27,22,.12);
	transition:transform .15s ease, box-shadow .15s ease;
	cursor:pointer;
}

button:hover,
.text-chip-link:hover,
.product-cta:hover,
.menu-logout:hover{
	transform:translate(-2px,-2px);
	box-shadow:6px 6px rgba(31,27,22,.16);
}

input,
textarea,
select{
	width:100%;
	padding:12px 14px;
	border:1.5px solid var(--color-ink);
	background:var(--color-paper);
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.3);
}

textarea{
	resize:vertical;
}

.app-shell{
	display:grid;
	gap:24px;
	max-width:1200px;
	margin:0 auto;
	padding:24px;
	position:relative;
}

.brxe-section.app-shell,
main#brx-content > .brxe-section.app-shell{
	width:100%;
	max-width:1152px;
	margin-left:auto !important;
	margin-right:auto !important;
}

.brxe-section.app-shell > .brxe-container{
	display:grid;
	gap:24px;
	width:100%;
}

.page,
.stack-lg,
.hero,
.hero-copy,
.hero-aside,
.filters,
.public-empty-state{
	display:grid;
	gap:24px;
}

.topbar{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:24px;
	padding:16px;
	border:1.5px solid var(--color-ink);
	background:rgba(255,253,248,.9);
	box-shadow:8px 8px rgba(31,27,22,.08);
}

.brand-link{
	display:inline-flex;
	align-items:center;
	gap:12px;
}

.brand-link figure,
.brand-link .brxe-image,
.brand-link .brxe-heading{
	margin:0;
}

.brand-link .brxe-heading{
	line-height:1;
}

.brand-link .brxe-heading a{
	color:inherit;
	text-decoration:none;
}

.brand-logo{
	width:56px;
	height:56px;
	border:1.5px solid var(--color-ink);
	background:var(--color-paper);
	object-fit:cover;
	padding:4px;
}

.brand-logo-placeholder{
	display:inline-grid;
	place-items:center;
	width:72px;
	height:72px;
	padding:0;
	font-size:.72rem;
	font-weight:600;
	letter-spacing:.08em;
	text-transform:uppercase;
	line-height:1;
}

.topbar h1,
.hero h2,
.scene-hero h2,
.section-header h2,
.asm-section-title,
.card-body h3,
.article-panel h2{
	margin:0;
	font-family:var(--font-serif);
}

.topbar h1{
	font-size:clamp(1.6rem, 2.8vw, 2.4rem);
	line-height:1;
	letter-spacing:.04em;
}

.nav{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:12px;
}

.nav a{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	padding:10px 16px;
	border:1.5px solid var(--color-ink);
	background:var(--color-paper);
	box-shadow:4px 4px rgba(31,27,22,.08);
}

.nav .bricks-button{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	padding:10px 16px;
	border:1.5px solid var(--color-ink);
	background:var(--color-paper);
	color:var(--color-ink);
	box-shadow:4px 4px rgba(31,27,22,.08);
}

.nav a.is-active{
	background:var(--color-ink);
	color:var(--color-paper);
}

.home .nav .nav-home,
.post-type-archive-affiliate_scene .nav .nav-collections,
.single-affiliate_scene .nav .nav-collections,
.post-type-archive-affiliate_product .nav .nav-products,
.single-affiliate_product .nav .nav-products{
	background:var(--color-ink);
	color:var(--color-paper);
}

.compact-nav{
	flex-wrap:nowrap;
}

.menu-shell{
	position:relative;
}

.logged-in .menu-shell{
	display:none;
}

.menu-trigger{
	display:inline-grid;
	gap:4px;
	padding:12px 14px;
}

.menu-trigger span{
	display:block;
	width:18px;
	height:2px;
	background:var(--color-paper);
}

.menu-panel{
	display:none;
	position:absolute;
	top:calc(100% + .5rem);
	right:0;
	z-index:20;
	min-width:220px;
	padding:8px;
	border:1.5px solid var(--color-ink);
	background:var(--color-paper);
	box-shadow:8px 8px rgba(31,27,22,.1);
}

.menu-panel.is-open{
	display:grid;
}

.menu-panel a,
.menu-panel .bricks-button,
.menu-logout{
	width:100%;
	text-align:left;
	padding:12px;
	border:none;
	background:transparent;
	color:var(--color-ink);
	box-shadow:none;
	transform:none;
}

.menu-panel a:hover,
.menu-panel .bricks-button:hover,
.menu-logout:hover{
	background:var(--color-panel);
	box-shadow:none;
	transform:none;
}

.eyebrow{
	margin:0;
	font-size:.72rem;
	text-transform:uppercase;
	letter-spacing:.16em;
	color:var(--color-muted);
}

.result-summary,
.field-note,
.card-body p,
.hero p,
.hero-aside p,
.prose,
.site-footer p{
	color:var(--color-muted);
	line-height:1.6;
}

.hero,
.scene-hero,
.card,
.stat-card,
.article-panel,
.public-empty-state{
	border:1.5px solid var(--color-ink);
	background:var(--color-paper);
	box-shadow:10px 10px rgba(31,27,22,.07);
}

.hero,
.scene-hero,
.article-panel,
.public-empty-state{
	padding:20px;
}

.hero-split{
	display:grid;
	grid-template-columns:minmax(0,1.5fr) minmax(280px,.9fr);
	gap:24px;
}

.hero h2,
.scene-hero h2{
	font-size:clamp(2rem, 3vw, 3rem);
	line-height:1.05;
}

.hero-aside,
.site-footer{
	border:1.5px solid var(--color-ink);
	background:var(--color-paper);
	box-shadow:8px 8px rgba(31,27,22,.06);
	padding:16px;
}

.stats-grid{
	display:grid;
	grid-template-columns:repeat(auto-fit, minmax(180px,1fr));
	gap:16px;
}

.stat-card{
	display:grid;
	gap:8px;
	padding:16px;
}

.stat-card strong{
	font-size:1.875rem;
	line-height:1.2;
}

.section-header{
	display:flex;
	align-items:flex-end;
	justify-content:space-between;
	gap:16px;
	flex-wrap:wrap;
}

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

.scene-products-grid{
	display:grid;
	grid-template-columns:repeat(4, minmax(0,1fr));
	gap:16px;
}

.card{
	overflow:hidden;
}

.product-card-link{
	display:grid;
	height:100%;
}

.scene-card-link,
.scene-card-link--full{
	display:grid;
	height:100%;
	color:inherit;
	text-decoration:none;
}

.scene-card-link img,
.scene-card-link video,
.product-card-link img,
.product-card-link video,
.media-preview-box{
	aspect-ratio:4/3;
	width:100%;
	object-fit:cover;
	background:var(--color-panel);
	border-bottom:1.5px solid var(--color-ink);
}

.card-body{
	display:grid;
	gap:12px;
	padding:16px;
	height:100%;
	align-content:flex-start;
}

.scene-card-link--full .card-body{
	border-top:0;
}

.card-body h3{
	font-size:1.25rem;
	line-height:1.2;
}

.card-footer,
.load-more-row,
.inline-actions,
.meta-row,
.pagination-row{
	display:flex;
	align-items:center;
	gap:12px;
	flex-wrap:wrap;
}

.pagination-pages{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:12px;
	flex-wrap:wrap;
}

.product-cta{
	background:var(--color-ink);
	color:var(--color-paper);
	pointer-events:none;
}

.hero .product-cta,
.hero .bricks-button.product-cta{
	pointer-events:auto;
}

.text-chip-link{
	background:var(--color-paper);
	color:var(--color-ink);
}

.filters{
	gap:16px;
}

.tag-scroller{
	display:grid;
	grid-template-columns:52px minmax(0,1fr) 52px;
	gap:12px;
	align-items:center;
	min-width:0;
}

.tag-nav{
	width:52px;
	height:52px;
	padding:0;
	font-size:1.35rem;
	line-height:1;
}

.tag-nav:disabled{
	cursor:default;
	opacity:.4;
	transform:none;
	box-shadow:4px 4px rgba(31,27,22,.12);
}

.tag-strip{
	display:flex;
	gap:12px;
	overflow-x:auto;
	padding-bottom:4px;
	scrollbar-width:thin;
}

.tag{
	display:inline-flex;
	align-items:center;
	padding:10px 14px;
	border:1.5px solid var(--color-ink);
	background:var(--color-paper);
	color:#92400e;
	white-space:nowrap;
	box-shadow:4px 4px rgba(31,27,22,.06);
}

.tag.active{
	background:var(--color-accent);
}

.tag-row{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:10px;
}

.pagination-button{
	min-width:48px;
}

.scene-title{
	max-width:14ch;
}

.site-footer{
	margin-top:8px;
	font-size:.875rem;
}

.article-panel .prose p:first-child{
	margin-top:0;
}

.article-panel .prose p:last-child{
	margin-bottom:0;
}

.empty-state{
	color:var(--color-danger);
}

[data-asm-ajax-context].is-loading [data-asm-results]{
	opacity:.45;
	transition:opacity .2s ease;
}

@media (max-width: 900px){
	.app-shell{
		padding:16px;
	}

	body::before{
		inset:12px;
	}

	.topbar,
	.hero-split,
	.scene-products-grid{
		grid-template-columns:1fr;
	}

	.topbar{
		flex-direction:column;
		align-items:stretch;
	}

	.compact-nav{
		flex-wrap:wrap;
	}

	.tag-scroller{
		grid-template-columns:44px minmax(0,1fr) 44px;
	}

	.tag-nav{
		width:44px;
		height:44px;
	}
}

@media (max-width: 560px){
	.scene-products-grid{
		grid-template-columns:1fr;
	}
}

header#brx-header .topbar.brxe-block{
	display:grid !important;
	grid-template-columns:auto auto !important;
	align-items:center !important;
	gap:24px !important;
	padding:20px 22px !important;
}

header#brx-header .brand-link.brxe-block{
	display:grid !important;
	grid-template-columns:72px minmax(0, 1fr) !important;
	align-items:center !important;
	justify-content:flex-start !important;
	column-gap:16px !important;
	flex:none !important;
	width:max-content !important;
	max-width:100% !important;
	min-width:0 !important;
}

header#brx-header .brand-link .brand-logo,
header#brx-header .brand-link .brand-logo-placeholder{
	width:72px !important;
	height:72px !important;
	min-width:72px !important;
	min-height:72px !important;
}

header#brx-header .brand-link .brxe-heading{
	flex:none !important;
	min-width:0 !important;
	max-width:none !important;
	width:max-content !important;
	margin:0 !important;
	line-height:.95 !important;
	justify-self:start !important;
}

header#brx-header .brand-link .brxe-heading,
header#brx-header .brand-link .brxe-heading a{
	white-space:nowrap !important;
}

header#brx-header .brand-link .brxe-heading a{
	display:block !important;
	font-size:clamp(2rem, 3vw, 2.75rem) !important;
	letter-spacing:.02em !important;
}

header#brx-header .nav.compact-nav.brxe-block{
	display:flex !important;
	flex-direction:row !important;
	align-items:center !important;
	justify-content:flex-end !important;
	flex-wrap:nowrap !important;
	gap:12px !important;
	flex:0 0 auto !important;
	margin-left:auto !important;
}

header#brx-header .nav.compact-nav.brxe-block .bricks-button{
	flex:0 0 auto !important;
}

header#brx-header .brxe-section.app-shell,
header#brx-header .brxe-section.app-shell > .brxe-container{
	display:block !important;
}

header#brx-header .brxe-section.app-shell{
	max-width:1152px !important;
	margin-left:auto !important;
	margin-right:auto !important;
}

header#brx-header .brxe-section.app-shell > .brxe-container{
	width:100% !important;
}

@media (max-width: 900px){
	header#brx-header .topbar.brxe-block{
		display:flex !important;
		flex-direction:column !important;
		align-items:stretch !important;
	}

	header#brx-header .brand-link.brxe-block{
		display:grid !important;
		grid-template-columns:72px minmax(0, 1fr) !important;
		justify-content:flex-start !important;
	}

	header#brx-header .brand-link .brxe-heading,
	header#brx-header .brand-link .brxe-heading a{
		white-space:normal !important;
	}

	header#brx-header .nav.compact-nav.brxe-block{
		justify-content:flex-start !important;
		flex-wrap:wrap !important;
	}
}
