/*
Theme Name:        Poised
Theme URI:         https://poised.in/
Author:            poised
Author URI:        https://poised.in/
Description:       Storefront theme for poised, spill-proof tees for men and women. Warm cocoa, sage and cream palette, a full brand home page, The Fabric, About, FAQ, Contact and Track Order templates, and WooCommerce styling for shop, product, cart, checkout and account pages. Works without WooCommerce too: the home and shop pages then show the built-in catalogue as a preview.
Version:           1.0.0
Requires at least: 6.5
Tested up to:      7.1
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       poised
Domain Path:       /languages
Tags:              e-commerce, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, accessibility-ready, two-columns
WC requires at least: 8.0
WC tested up to:   10.3

Spills happen. Stay poised.
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--cocoa: #5e4b42;
	--cocoa-dark: #4a3b34;
	--sage: #b7c89b;
	--sage-dark: #a3b685;
	--cream: #f3f0eb;
	--cream-deep: #ebe5dc;
	--taupe: #c8b6a6;
	--stone: #e4e2de;
	--ink: #3a2f2a;
	--muted: #6f625b;
	--charcoal: #2a2421;
	--white: #ffffff;
	--danger: #9b2c1f;
	--success: #3f6b2a;

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius-sm: 0.75rem;
	--radius: 1.25rem;
	--radius-lg: 1.5rem;
	--radius-xl: 2rem;
	--shadow-soft: 0 10px 30px -12px rgb(58 47 42 / 0.18);
	--shadow-softer: 0 4px 18px -8px rgb(58 47 42 / 0.12);

	--page-max: 80rem;
	--gutter: 1rem;
	--header-h: 4rem;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 640px) {
	:root { --gutter: 1.5rem; }
}

@media (min-width: 1024px) {
	:root { --gutter: 2rem; --header-h: 5rem; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.poised-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 300;
	letter-spacing: 0.01em;
	line-height: 1.15;
	color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 200; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cocoa); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cocoa-dark); }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

table { border-collapse: collapse; width: 100%; }

ul, ol { padding-left: 1.25rem; }

blockquote {
	margin: 1.5rem 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--sage);
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 300;
}

:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; border-radius: 6px; }

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

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100000;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.5rem 1rem;
	background: var(--cocoa);
	color: var(--cream);
	border-radius: 999px;
	text-decoration: none;
}

.skip-link { position: absolute; }

/* WordPress core alignment and caption classes */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: calc(var(--page-max) - 2 * var(--gutter)); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-element-caption { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }
.sticky .entry-title::after { content: " \2022"; color: var(--sage-dark); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.bypostauthor > article .comment-author { font-weight: 600; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--page-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.container--narrow { max-width: 48rem; }

.site-main { flex: 1 0 auto; }

.section { padding-top: 5rem; padding-bottom: 5rem; }
.section--tight { padding-top: 3rem; padding-bottom: 3rem; }
.section--flush-top { padding-top: 0; }
.section--white { background: rgb(255 255 255 / 0.6); }
.section--sage { background: var(--sage); }
.section--cocoa { background: var(--cocoa); color: var(--cream); }
.section--cocoa h1,
.section--cocoa h2,
.section--cocoa h3 { color: var(--cream); }

@media (min-width: 1024px) {
	.section { padding-top: 7rem; padding-bottom: 7rem; }
}

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: 2.5rem; align-items: center; }

@media (min-width: 1024px) {
	.split { grid-template-columns: 1fr 1fr; gap: 4rem; }
	.split--5-7 { grid-template-columns: 5fr 7fr; }
	.split--4-8 { grid-template-columns: 4fr 8fr; }
	.split--5-6 { grid-template-columns: 5fr 6fr; gap: 6rem; }
}

.stack > * + * { margin-top: 1.25rem; }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-4 { margin-bottom: 2.5rem; }

.eyebrow {
	display: block;
	margin: 0 0 0.75rem;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--muted);
}

.section--cocoa .eyebrow { color: rgb(243 240 235 / 0.7); }

.lead { font-size: 1.125rem; color: var(--muted); max-width: 34rem; }

.display { font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 1.05; font-weight: 200; letter-spacing: -0.01em; }
.display em, .accent { font-style: normal; color: var(--cocoa); }

.section-heading { margin-bottom: 2.5rem; max-width: 40rem; }
.section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2 { margin: 0; }
.section-heading p { margin-top: 1rem; color: var(--muted); }

.placeholder-note { font-size: 0.75rem; color: var(--muted); }

/* ==========================================================================
   4. Buttons, forms, badges
   ========================================================================== */

.btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0 1.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--cocoa);
	color: var(--cream);
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	box-shadow: var(--shadow-softer);
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
	cursor: pointer;
}

.btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover { background: var(--cocoa-dark); color: var(--cream); }

.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.btn--lg { min-height: 3.25rem; padding: 0 2rem; font-size: 1rem; }
.btn--sm { min-height: 2.25rem; padding: 0 1rem; }
.btn--secondary { background: var(--sage); color: var(--ink); box-shadow: none; }
.btn--secondary:hover { background: var(--sage-dark); color: var(--ink); }
.btn--outline { background: transparent; color: var(--cocoa); border-color: var(--cocoa); box-shadow: none; }
.btn--outline:hover { background: var(--cocoa); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--cocoa); }
.btn--light:hover { background: var(--white); color: var(--cocoa); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: rgb(228 226 222 / 0.7); color: var(--ink); }
.btn--block { width: 100%; }

.btn .poised-icon { width: 1rem; height: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--cocoa);
	text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow .poised-icon { width: 1rem; height: 1rem; }

label,
.label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 500; color: var(--ink); }

.optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea,
.input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--stone);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink);
	line-height: 1.4;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f625b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.875rem center;
	background-size: 1rem;
}

textarea { min-height: 9rem; resize: vertical; }

input::placeholder,
textarea::placeholder { color: rgb(111 98 91 / 0.7); }

input:focus,
select:focus,
textarea:focus,
.input:focus { outline: none; border-color: var(--cocoa); box-shadow: 0 0 0 3px rgb(94 75 66 / 0.2); }

input[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--danger); }

input[type="checkbox"],
input[type="radio"] { accent-color: var(--cocoa); width: 1rem; height: 1rem; }

.field { margin-bottom: 1.25rem; }
.field-hint { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--muted); }
.field-error { margin-top: 0.25rem; font-size: 0.875rem; color: var(--danger); }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }

/* Honeypot: hidden from people, visible to naive bots. */
.poised-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.card {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-softer);
	outline: 1px solid var(--stone);
	padding: 1.5rem;
}
@media (min-width: 640px) { .card { padding: 2rem; } }

.card--cream { background: var(--cream); box-shadow: none; }
.card--sage { background: rgb(183 200 155 / 0.5); outline: 0; box-shadow: none; }

.badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	background: var(--cream);
	color: var(--cocoa);
}
.badge--bestseller { background: var(--cocoa); color: var(--cream); }
.badge--new { background: var(--sage); color: var(--ink); }
.badge--sale { background: var(--taupe); color: var(--ink); }
.badge--soon { background: var(--stone); color: var(--muted); }

.notice {
	padding: 1rem 1.25rem;
	border-radius: var(--radius-sm);
	background: var(--white);
	border-left: 3px solid var(--cocoa);
	margin-bottom: 1.5rem;
}
.notice--success { border-color: var(--success); background: #f1f5ea; }
.notice--error { border-color: var(--danger); background: #fbefec; }
.notice--info { border-color: var(--sage-dark); }

.icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 999px;
	background: var(--sage);
	color: var(--cocoa);
}
.icon-circle .poised-icon { width: 1.5rem; height: 1.5rem; }
.icon-circle--sm { width: 2.75rem; height: 2.75rem; }
.icon-circle--sm .poised-icon { width: 1.25rem; height: 1.25rem; }
.icon-circle--xs { width: 1.5rem; height: 1.5rem; background: var(--sage); }
.icon-circle--xs .poised-icon { width: 0.875rem; height: 0.875rem; }

.poised-icon { display: inline-block; width: 1.25rem; height: 1.25rem; flex-shrink: 0; vertical-align: middle; }

.stars { display: inline-flex; gap: 0.125rem; color: var(--cocoa); vertical-align: middle; }
.stars .poised-icon { width: 1rem; height: 1rem; }
.stars .is-empty { color: var(--taupe); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 0.75rem; margin-bottom: 0.875rem; }
.check-list .icon-circle--xs { margin-top: 0.125rem; }

/* ==========================================================================
   5. Image placeholder (brand block that a real photo fades over)
   ========================================================================== */

.ph {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--taupe);
	--ph-fg: #3a2f2a;
}
.ph--cocoa { background: var(--cocoa); --ph-fg: #f3f0eb; }
.ph--sage { background: var(--sage); --ph-fg: #5e4b42; }
.ph--taupe { background: var(--taupe); --ph-fg: #3a2f2a; }
.ph--cream { background: var(--cream-deep); --ph-fg: #5e4b42; }
.ph--stone { background: var(--stone); --ph-fg: #5e4b42; }
.ph--black { background: var(--charcoal); --ph-fg: #e4e2de; }
.ph--white { background: var(--white); --ph-fg: #5e4b42; outline: 1px solid var(--stone); }

.ph__mark {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem;
	text-align: center;
	color: var(--ph-fg);
	transition: transform 0.7s var(--ease);
}
.ph__mark svg { width: 3.25rem; height: 3.25rem; opacity: 0.8; }
.ph__label {
	max-width: 85%;
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 300;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.ph img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease), opacity 0.5s;
}
.ph--zoom:hover img,
.ph--zoom:hover .ph__mark,
a:hover > .ph--zoom img,
a:focus-visible > .ph--zoom img { transform: scale(1.05); }

.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-5-4 { aspect-ratio: 5 / 4; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.round-xl { border-radius: var(--radius-xl); }
.round-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow-soft); }

/* ==========================================================================
   6. Announcement bar and header
   ========================================================================== */

.announcement {
	background: var(--cocoa);
	color: var(--cream);
	text-align: center;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	padding: 0.5rem var(--gutter);
}
.announcement a { color: inherit; }
@media (min-width: 640px) { .announcement { font-size: 0.8125rem; } }

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--cream);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header.is-scrolled {
	background: rgb(243 240 235 / 0.9);
	border-bottom-color: var(--stone);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: var(--header-h);
}

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

.site-branding { display: inline-flex; align-items: center; }
.site-branding .custom-logo-link img { max-height: 2.75rem; width: auto; }

.wordmark {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 300;
	text-transform: lowercase;
	letter-spacing: 0.28em;
	color: var(--cocoa);
	text-decoration: none;
	line-height: 1;
}
a.wordmark:hover { color: var(--cocoa-dark); }

.primary-nav { display: none; }
@media (min-width: 1024px) { .primary-nav { display: block; } }

.primary-nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a {
	position: relative;
	display: inline-block;
	padding: 0.5rem 0;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	color: var(--ink);
	text-decoration: none;
}
.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 1px;
	background: var(--cocoa);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav a[aria-current="page"] { color: var(--cocoa); }
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	display: none;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-width: 12rem;
	padding: 0.5rem;
	background: var(--white);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-soft);
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: flex; }
.primary-nav .sub-menu a { display: block; padding: 0.5rem 0.75rem; }
.primary-nav .sub-menu a::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.125rem; }
@media (min-width: 640px) { .header-actions { gap: 0.25rem; } }

.icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	text-decoration: none;
	transition: background-color 0.2s;
}
.icon-btn:hover { background: rgb(228 226 222 / 0.7); color: var(--ink); }
.icon-btn--menu { display: inline-flex; }
@media (min-width: 1024px) { .icon-btn--menu { display: none; } }

.cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: var(--cocoa);
	color: var(--cream);
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1;
}
.cart-count[data-count="0"] { display: none; }

/* Drawer (mobile menu) and overlays */
.poised-overlay {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgb(42 36 33 / 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}
.poised-overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	width: min(24rem, 88vw);
	padding: 1.25rem;
	background: var(--cream);
	box-shadow: var(--shadow-soft);
	transform: translateX(-100%);
	transition: transform 0.3s ease-out;
	overflow-y: auto;
	visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.drawer__title { margin: 0; font-size: 1.25rem; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: 1rem;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 300;
	color: var(--ink);
	text-decoration: none;
}
.drawer-nav a:hover { background: rgb(228 226 222 / 0.6); }
.drawer-nav .sub-menu a { font-size: 1.125rem; padding-left: 2rem; }
.drawer-links { list-style: none; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--stone); font-size: 0.875rem; }
.drawer-links a { display: block; padding: 0.625rem 1rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.drawer-links a:hover { background: rgb(228 226 222 / 0.6); }
.drawer__foot { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 2.5rem; color: var(--muted); font-size: 0.875rem; }
.drawer__foot svg { width: 2rem; height: 2rem; }

.search-panel {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 90;
	padding: 1.5rem var(--gutter) 2rem;
	background: var(--cream);
	box-shadow: var(--shadow-soft);
	transform: translateY(-100%);
	transition: transform 0.3s ease-out;
	visibility: hidden;
}
.search-panel.is-open { transform: translateY(0); visibility: visible; }
.search-panel__inner { max-width: 48rem; margin: 0 auto; }
.search-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.search-panel__suggest { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip {
	display: inline-flex;
	padding: 0.375rem 0.875rem;
	border-radius: 999px;
	outline: 1px solid var(--taupe);
	font-size: 0.875rem;
	color: var(--ink);
	text-decoration: none;
}
.chip:hover { background: var(--stone); color: var(--ink); }

.search-form { display: flex; gap: 0.5rem; align-items: center; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-field { border-radius: 999px; padding-left: 1.25rem; }

/* ==========================================================================
   7. Footer
   ========================================================================== */

.site-footer { margin-top: auto; background: var(--cocoa); color: var(--cream); }
.site-footer a { color: rgb(243 240 235 / 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 4fr 4fr 4fr; } }

.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand svg { width: 2.5rem; height: 2.5rem; }
.footer-brand .wordmark { color: var(--cream); }
.footer-tagline { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 300; color: rgb(243 240 235 / 0.9); }
.footer-sub { margin-top: 0.5rem; max-width: 20rem; font-size: 0.875rem; color: rgb(243 240 235 / 0.7); }

.social-list { display: flex; gap: 0.5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.social-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgb(243 240 235 / 0.25);
	transition: background-color 0.2s, color 0.2s;
}
.social-list a:hover { background: var(--cream); color: var(--cocoa); text-decoration: none; }

.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 640px) { .footer-nav { grid-template-columns: repeat(3, 1fr); } }
.footer-nav h2,
.site-footer .eyebrow { color: rgb(243 240 235 / 0.6); font-size: 0.75rem; }
.footer-nav ul { list-style: none; margin: 1rem 0 0; padding: 0; font-size: 0.875rem; }
.footer-nav li + li { margin-top: 0.75rem; }

.site-footer__bottom { border-top: 1px solid rgb(243 240 235 / 0.15); }
.site-footer__bottom .container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	font-size: 0.75rem;
	color: rgb(243 240 235 / 0.7);
}
@media (min-width: 640px) { .site-footer__bottom .container { flex-direction: row; align-items: center; justify-content: space-between; } }
.pay-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.pay-list li { padding: 0.25rem 0.625rem; border: 1px solid rgb(243 240 235 / 0.25); border-radius: 0.375rem; letter-spacing: 0.15em; }

/* Newsletter */
.newsletter-form { width: 100%; }
.newsletter-form__row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.375rem 0.375rem 1.25rem;
	border-radius: 999px;
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--stone);
}
.newsletter-form__row:focus-within { box-shadow: inset 0 0 0 2px var(--cocoa); }
.newsletter-form input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 0.5rem 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 0.875rem;
}
.newsletter-form input[type="email"]:focus { box-shadow: none; }
.newsletter-form .btn { min-height: 2.5rem; padding: 0 1.25rem; box-shadow: none; }
.newsletter-form--dark .newsletter-form__row { background: rgb(243 240 235 / 0.1); box-shadow: inset 0 0 0 1px rgb(243 240 235 / 0.3); }
.newsletter-form--dark .newsletter-form__row:focus-within { box-shadow: inset 0 0 0 2px var(--cream); }
.newsletter-form--dark input[type="email"] { color: var(--cream); }
.newsletter-form--dark input[type="email"]::placeholder { color: rgb(243 240 235 / 0.6); }
.newsletter-form--dark .btn { background: var(--cream); color: var(--cocoa); }
.newsletter-form--dark .btn:hover { background: var(--white); }
.form-message { margin-top: 0.5rem; padding-left: 1.25rem; font-size: 0.875rem; }
.form-message.is-error { color: var(--danger); }
.form-message.is-success { color: var(--success); }
.newsletter-form--dark .form-message { color: var(--cream); }

/* ==========================================================================
   8. Home page
   ========================================================================== */

.hero { padding-top: 2rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .hero { padding-top: 3.5rem; padding-bottom: 6rem; } }
.hero .lead { margin-top: 1.5rem; }
.hero .btn-row { margin-top: 2.25rem; }
.hero__proof { display: flex; align-items: center; gap: 0.5rem; margin-top: 2rem; font-size: 0.875rem; color: var(--muted); }
.hero__media { position: relative; }
.hero__media .ph { aspect-ratio: 4 / 5; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
@media (min-width: 640px) and (max-width: 1023px) { .hero__media .ph { aspect-ratio: 1 / 1; } }
.hero__card {
	position: absolute;
	bottom: -1.5rem;
	left: -1rem;
	display: none;
	padding: 1.25rem;
	border-radius: 1.5rem;
	background: var(--cream);
	box-shadow: var(--shadow-soft);
}
.hero__card p:not(.eyebrow) { margin: 0.25rem 0 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 300; }
@media (min-width: 640px) { .hero__card { display: block; } }
@media (min-width: 1024px) { .hero__card { left: -2.5rem; } }

.trust { border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); background: rgb(255 255 255 / 0.5); }
.trust ul { display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 1rem; list-style: none; margin: 0 auto; padding-top: 1.5rem; padding-bottom: 1.5rem; }
@media (min-width: 768px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }
.trust li { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 0.875rem; letter-spacing: 0.02em; text-align: center; }
.trust .poised-icon { color: var(--cocoa); }

/* Before/after comparison */
.compare {
	position: relative;
	aspect-ratio: 4 / 3;
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--stone);
	box-shadow: var(--shadow-soft);
	touch-action: pan-y;
	user-select: none;
	--pos: 50%;
}
@media (min-width: 640px) { .compare { aspect-ratio: 16 / 9; } }
.compare__layer { position: absolute; inset: 0; }
.compare__layer img,
.compare__layer svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__layer--top { clip-path: inset(0 0 0 var(--pos)); }
.compare__mirror { transform: scaleX(-1); }
.compare__tag {
	position: absolute;
	top: 1rem;
	z-index: 2;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
.compare__tag--left { left: 1rem; background: rgb(243 240 235 / 0.9); color: var(--ink); }
.compare__tag--right { right: 1rem; background: var(--cocoa); color: var(--cream); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 1px; background: var(--cream); box-shadow: 0 0 0 1px rgb(58 47 42 / 0.15); pointer-events: none; }
.compare__handle {
	position: absolute;
	top: 50%;
	left: var(--pos);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	background: var(--cream);
	color: var(--cocoa);
	box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--taupe);
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.compare__range {
	position: absolute;
	inset: 0;
	z-index: 4;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
}
.compare__range:focus-visible + .compare__handle { outline: 2px solid var(--cocoa); outline-offset: 3px; }

/* Horizontal product rail */
.rail { position: relative; }
.rail__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 72%;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.5rem;
	scrollbar-width: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail__track { grid-auto-columns: 44%; } }
@media (min-width: 1024px) { .rail__track { grid-auto-columns: calc((100% - 3 * 1.5rem) / 4); gap: 1.5rem; } }
.rail__controls { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 1rem; }
.rail__controls .icon-btn { box-shadow: inset 0 0 0 1px var(--taupe); }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 0.75rem; }
@media (min-width: 640px) { .mosaic { grid-auto-rows: 200px; gap: 1rem; } }
@media (min-width: 1024px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
.mosaic > * { border-radius: var(--radius-lg); }
.mosaic .ph { height: 100%; }
.mosaic__wide { grid-column: span 2; }
.mosaic__tall { grid-row: span 2; }
.mosaic__cocoa { display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; background: var(--cocoa); color: var(--cream); }
.mosaic__cocoa .eyebrow { color: rgb(243 240 235 / 0.7); }
.mosaic__cocoa .wordmark { color: var(--cream); font-size: clamp(2.5rem, 6vw, 3.75rem); }
.mosaic__sage { display: flex; align-items: center; justify-content: center; background: var(--sage); }
.mosaic__sage svg { width: 7rem; height: 7rem; }
@media (min-width: 640px) { .mosaic__sage svg { width: 9rem; height: 9rem; } }
.mosaic__outline { display: flex; align-items: center; justify-content: center; background: var(--cream); box-shadow: inset 0 0 0 1px var(--taupe); }
.mosaic__outline svg { height: 85%; width: auto; }
.mosaic__taupe { display: flex; align-items: flex-end; padding: 2rem; background: var(--taupe); }
.mosaic__taupe p { font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; line-height: 1.35; color: var(--ink); }
@media (max-width: 1023px) { .mosaic__taupe { grid-column: span 2; } }

/* Category cards */
.cat-card { position: relative; display: block; overflow: hidden; border-radius: 1.75rem; text-decoration: none; color: var(--ink); }
.cat-card .ph { aspect-ratio: 4 / 3; border-radius: 0; }
@media (min-width: 640px) { .cat-card .ph { aspect-ratio: 5 / 4; } }
.cat-card__panel {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem;
	border-radius: 1rem;
	background: rgb(243 240 235 / 0.95);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
@media (min-width: 640px) { .cat-card__panel { left: 1.5rem; right: 1.5rem; bottom: 1.5rem; } }
.cat-card__panel h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.cat-card__panel p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted); }
.cat-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: var(--cocoa);
	color: var(--cream);
	transition: transform 0.2s;
}
.cat-card:hover .cat-card__arrow { transform: translateX(4px); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 2rem; border-radius: var(--radius-lg); background: var(--cream); box-shadow: inset 0 0 0 1px var(--stone); }
.step .icon-circle { margin-top: 1.5rem; }
.step h3 { margin-top: 1.5rem; }
.step p { margin-top: 0.5rem; color: var(--muted); }

/* Testimonials */
.quote-card { display: flex; flex-direction: column; margin: 0; padding: 2rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-softer), inset 0 0 0 1px var(--stone); }
.quote-card blockquote { flex: 1; margin: 1.25rem 0 0; padding: 0; border: 0; font-size: 1.25rem; line-height: 1.6; }
.quote-card figcaption { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.quote-card figcaption strong { font-weight: 500; color: var(--ink); }

/* Social grid */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .social-grid { gap: 1rem; } }
@media (min-width: 1024px) { .social-grid { grid-template-columns: repeat(6, 1fr); } }
.social-grid .ph { aspect-ratio: 1 / 1; border-radius: 1rem; }
.social-grid .ph__mark svg { width: 2.25rem; height: 2.25rem; }
.social-grid .ph__label { font-size: 0.625rem; }

.heading-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.heading-row .section-heading { margin-bottom: 0; }

.newsletter-band .split { gap: 2rem; }
.newsletter-band .eyebrow { color: rgb(58 47 42 / 0.7); }
.newsletter-band h2 { margin-top: 0.75rem; margin-bottom: 0; }

/* Scroll reveal where supported; content is always visible otherwise. */
@keyframes poised-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: poised-fade-up 0.7s var(--ease) both; }
.fade-up--delay { animation-delay: 150ms; }
@supports (animation-timeline: view()) {
	[data-reveal] {
		animation: poised-fade-up linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 35%;
	}
}

/* ==========================================================================
   9. Product cards (theme catalogue and WooCommerce loop share this look)
   ========================================================================== */

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; } }
@media (min-width: 1280px) { .product-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.p-card { position: relative; display: flex; flex-direction: column; }
.p-card__media { position: relative; }
.p-card__media .ph { aspect-ratio: 4 / 5; }
.p-card__flags { position: absolute; top: 0.75rem; left: 0.75rem; right: 0.75rem; z-index: 2; display: flex; justify-content: space-between; pointer-events: none; }
.p-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.375rem; margin-top: 1rem; padding: 0 0.25rem; }
.p-card__kicker { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.p-card__title { margin: 0; font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.p-card__title a { color: var(--ink); text-decoration: none; }
.p-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-card__title a:focus-visible { outline: none; }
.p-card:focus-within { outline: 2px solid var(--cocoa); outline-offset: 6px; border-radius: var(--radius); }
.price { font-size: 0.9375rem; color: var(--ink); }
.price del { margin-left: 0.375rem; color: var(--muted); font-size: 0.875em; }
.price ins { text-decoration: none; }

.swatches { display: flex; align-items: center; gap: 0.375rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.swatch {
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 999px;
	box-shadow: 0 0 0 1px rgb(58 47 42 / 0.15), 0 0 0 3px var(--cream);
}

/* ==========================================================================
   10. Content pages
   ========================================================================== */

.page-hero { padding-top: 2.5rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .page-hero { padding-top: 4rem; padding-bottom: 6rem; } }
.page-hero h1 { max-width: 48rem; }

.prose { max-width: 44rem; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose img { border-radius: var(--radius); }
.prose a { color: var(--cocoa); }
.prose--lg { font-size: 1.125rem; line-height: 1.75; color: var(--muted); }
.prose--lg .accent-line { font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; color: var(--ink); }

.editor-content { margin-top: 3rem; }
.editor-content:empty { display: none; }

.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--stone); }
.compare-table { min-width: 560px; text-align: left; }
.compare-table th,
.compare-table td { padding: 1.25rem 1.5rem; vertical-align: top; }
.compare-table thead th { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); background: var(--white); }
.compare-table thead th.is-poised { background: var(--cocoa); color: var(--cream); }
.compare-table tbody tr { border-top: 1px solid var(--stone); }
.compare-table tbody th { font-weight: 500; background: var(--white); }
.compare-table td { background: var(--white); color: var(--muted); }
.compare-table td.is-poised { background: rgb(183 200 155 / 0.3); color: var(--ink); }
.compare-table .cell { display: flex; gap: 0.5rem; }
.compare-table .poised-icon { width: 1rem; height: 1rem; margin-top: 0.25rem; color: var(--cocoa); }

.care-box { display: grid; gap: 2.5rem; padding: 2rem; border-radius: var(--radius-xl); background: rgb(200 182 166 / 0.4); }
@media (min-width: 640px) { .care-box { padding: 3rem; } }
@media (min-width: 1024px) { .care-box { grid-template-columns: 1fr 1fr; } }
.care-box .icon-circle--xs { background: var(--cream); }

.value-card { padding: 2rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-softer), inset 0 0 0 1px var(--stone); }
.value-card h3 { margin-top: 1.5rem; }
.value-card p { color: var(--muted); }

.board { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 0.75rem; }
@media (min-width: 640px) { .board { grid-auto-rows: 190px; gap: 1rem; } }
@media (min-width: 768px) { .board { grid-template-columns: repeat(4, 1fr); } }
.board > * { border-radius: var(--radius-lg); }
.board .ph { height: 100%; }
.board__sage { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; background: var(--sage); }
.board__sage svg { width: 4rem; height: 4rem; }
.board__sage p { font-family: var(--font-display); font-size: 1.875rem; font-weight: 300; }
.board__cocoa { display: flex; align-items: center; justify-content: center; background: var(--cocoa); }
.board__cocoa .wordmark { color: var(--cream); }
.board__taupe { display: flex; align-items: flex-end; padding: 1.5rem; background: var(--taupe); font-size: 0.875rem; letter-spacing: 0.02em; }

/* FAQ */
.faq-layout { display: grid; gap: 3rem; margin-top: 3rem; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: 220px 1fr; } }
.faq-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) {
	.faq-nav { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
	.faq-nav ul { flex-direction: column; gap: 0.25rem; }
}
.faq-nav a { display: block; padding: 0.5rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--taupe); font-size: 0.875rem; color: var(--ink); text-decoration: none; }
.faq-nav a:hover { background: var(--stone); }
@media (min-width: 1024px) { .faq-nav a { border-radius: var(--radius-sm); box-shadow: none; } }
.faq-group { scroll-margin-top: calc(var(--header-h) + 2rem); }
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group h2 { font-size: 1.875rem; margin-bottom: 1rem; }

.accordion { border-top: 1px solid var(--stone); }
.accordion details { border-bottom: 1px solid var(--stone); }
.accordion summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 0;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
	content: "";
	flex-shrink: 0;
	width: 0.625rem;
	height: 0.625rem;
	border-right: 1.5px solid var(--cocoa);
	border-bottom: 1.5px solid var(--cocoa);
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.2s;
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion .accordion__body { padding: 0 0 1.25rem; color: var(--muted); }

/* Contact */
.contact-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list li + li { margin-top: 1.5rem; }
.contact-list strong { display: block; font-weight: 500; }
.contact-list a,
.contact-list span { color: var(--muted); }

.form-success { padding: 2rem; border-radius: var(--radius-lg); background: rgb(183 200 155 / 0.5); }

/* Auth */
.auth { display: grid; min-height: 70vh; }
@media (min-width: 1024px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth__media { display: none; }
@media (min-width: 1024px) { .auth__media { display: block; position: relative; } .auth__media .ph { position: absolute; inset: 0; border-radius: 0; } }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 3rem var(--gutter); }
.auth__box { width: 100%; max-width: 26rem; }
.auth__switch { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }

/* Size guide dialog */
.poised-dialog {
	width: min(40rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: 1.5rem;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--cream);
	color: var(--ink);
	box-shadow: var(--shadow-soft);
}
.poised-dialog::backdrop { background: rgb(42 36 33 / 0.45); }
.poised-dialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.poised-dialog__head h2 { margin: 0; font-size: 1.5rem; }
.toggle-group { display: inline-flex; padding: 0.25rem; border-radius: 999px; background: var(--stone); }
.toggle-group button { padding: 0.375rem 1rem; border: 0; border-radius: 999px; background: transparent; font-size: 0.875rem; color: var(--muted); }
.toggle-group button[aria-pressed="true"],
.toggle-group button[aria-selected="true"] { background: var(--cream); color: var(--ink); box-shadow: var(--shadow-softer); }
.size-table-wrap { overflow-x: auto; border-radius: 1rem; box-shadow: inset 0 0 0 1px var(--stone); }
.size-table { text-align: center; font-size: 0.875rem; }
.size-table th,
.size-table td { padding: 0.625rem 0.75rem; }
.size-table thead { background: var(--white); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.size-table tbody tr { border-top: 1px solid var(--stone); }
.size-guide-link { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 1rem; padding: 0; border: 0; background: none; font-size: 0.875rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.size-guide-link:hover { color: var(--ink); }
.size-guide-link .poised-icon { width: 1rem; height: 1rem; }

/* Blog / generic */
.posts-list { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .posts-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-list { grid-template-columns: repeat(3, 1fr); } }
.post-card .ph,
.post-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); }
.post-card h2 { margin-top: 1.25rem; font-size: 1.5rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--cocoa); }
.entry-meta { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em; }
.entry-header { margin-bottom: 2rem; }
.entry-thumb { margin-bottom: 2.5rem; overflow: hidden; border-radius: var(--radius-xl); }
.entry-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--stone); font-size: 0.875rem; color: var(--muted); }
.page-links { margin-top: 2rem; }

.pagination,
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--taupe);
	color: var(--ink);
	text-decoration: none;
	font-size: 0.875rem;
}
.page-numbers.current,
.page-numbers:hover { background: var(--cocoa); color: var(--cream); box-shadow: none; }
.page-numbers.dots { box-shadow: none; }

.post-navigation .nav-links { justify-content: space-between; }

/* Comments */
.comments-area { margin-top: 4rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.5rem 0; border-bottom: 1px solid var(--stone); }
.comment-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.comment-meta img { border-radius: 999px; }
.comment-respond { margin-top: 2.5rem; }
.comment-form p { margin-bottom: 1rem; }

/* 404 / empty */
.empty-state { padding: 6rem 0; text-align: center; }
.empty-state svg.poised-monogram { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.5rem; color: var(--cocoa); }
.empty-state .btn-row { justify-content: center; margin-top: 2rem; }
.empty-state .search-form { max-width: 28rem; margin: 2rem auto 0; }

/* Shop fallback filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-bar a[aria-current="page"] { background: var(--cocoa); color: var(--cream); box-shadow: none; outline: 0; }

/* Toast */
.poised-toast {
	position: fixed;
	left: 50%;
	bottom: 1.5rem;
	z-index: 100;
	max-width: calc(100vw - 2rem);
	padding: 0.875rem 1.25rem;
	border-radius: 999px;
	background: var(--ink);
	color: var(--cream);
	font-size: 0.875rem;
	box-shadow: var(--shadow-soft);
	transform: translate(-50%, calc(100% + 2rem));
	visibility: hidden;
	transition: transform 0.3s var(--ease), visibility 0.3s;
}
.poised-toast.is-visible { transform: translate(-50%, 0); visibility: visible; }
.poised-toast.is-error { background: var(--danger); }

/* ==========================================================================
   11. Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	[data-reveal] { animation: none !important; }
}

@media print {
	.announcement,
	.site-header,
	.site-footer,
	.newsletter-band { display: none; }
}
