/* Decant — base tokens and shared components (style K: white, black, Geist). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/geist-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); }
:root {
	--bg: #ffffff;
	--surface: #f4f4f4;     /* product photo background, chips */
	--surface-2: #fafafa;
	--line: #e7e7e7;
	--line-strong: #d0d0d0;
	--text: #0a0a0a;
	--muted: #6b6b6b;
	--faint: #9a9a9a;
	--accent: #6f4e37;      /* primary buttons — coffee, 5.8:1 with white */
	--accent-hover: #563b29;
	--tint: #8a6040;        /* headline accent */
	--tint-light: #e3c9a8;  /* on dark backgrounds */
	--tint-soft: #f3ebe1;
	--tint-wash: #faf6f1;
	--tint-ink: #4a3424;
	--deep: #2b1d14;        /* dark tiles and top bar */
	--accent-ink: #ffffff;
	--good: #157f3b;
	--warn: #b4690e;
	--bad: #c22a2a;
	--sale: #c22a2a;

	--font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--fs-xs: 12px;
	--fs-sm: 13px;
	--fs-md: 15px;
	--fs-lg: 18px;
	--fs-xl: 24px;
	--fs-2xl: clamp(28px, 3.2vw, 40px);
	--fs-hero: clamp(36px, 6vw, 72px);

	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;
	--r-pill: 999px;

	--wrap: 1320px;
	--gutter: clamp(16px, 3vw, 32px);
	--header-h: 64px;
	--shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
	--shadow-lg: 0 12px 48px rgba(0,0,0,.14);
	--ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 var(--fs-md)/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: 0; }
.eyebrow { font: 500 var(--fs-xs)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }

/* Buttons and chips */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px; border-radius: var(--r-pill);
	background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
	font-weight: 500; font-size: var(--fs-md); cursor: pointer; text-decoration: none !important;
	transition: transform .15s var(--ease), opacity .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost:hover { background: var(--tint-wash); border-color: var(--tint); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .5; pointer-events: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--sm { height: 34px; padding: 0 14px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg);
	font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.chip:hover { border-color: var(--line-strong); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
	background: transparent; border: 0; cursor: pointer; position: relative; text-decoration: none !important;
}
.icon-btn:hover { background: var(--surface); }
.badge { display: inline-block; font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 4px; background: var(--surface); color: var(--muted); }
.input {
	height: 44px; width: 100%; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
	background: var(--bg);
}
.input:focus { outline: none; border-color: var(--text); }

/* Top bar and header */
.topbar { background: var(--deep); color: #fff; font: 400 var(--fs-xs)/1 var(--mono); }
.topbar__in { display: flex; gap: 10px; justify-content: center; align-items: center; height: 34px; overflow: hidden; white-space: nowrap; }
.topbar__dot { color: var(--tint-light); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.04em; text-decoration: none !important; white-space: nowrap; }
.logo span { color: var(--faint); font-weight: 500; margin-left: 1px; }
.site-nav { display: flex; gap: 20px; font-size: var(--fs-sm); font-weight: 500; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-header__search { flex: 1; max-width: 420px; margin-left: auto; }
.site-header__actions { display: flex; gap: 4px; }
.search-mini input { height: 40px; width: 100%; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 16px; background: var(--surface-2); }
.cart-count {
	position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--accent); color: #fff; font: 600 11px/18px var(--mono); text-align: center;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.nav-toggle { display: none; }

/* Breadcrumbs */
.crumbs { margin: 20px 0 16px; font-size: var(--fs-sm); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Generic pages */
main.page { padding-bottom: 80px; }
.page__title { font-size: var(--fs-2xl); margin: 0 0 24px; }
.prose { max-width: 72ch; color: #2a2a2a; }
.prose a { text-decoration: underline; }
.prose { line-height: 1.6; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { font-size: var(--fs-lg); margin: 32px 0 12px; text-align: left !important; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100% !important; border-collapse: collapse; margin: 0 0 14px; float: none !important; }
.prose th, .prose td { width: auto !important; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; font-size: var(--fs-sm); color: var(--muted); }
.prose td:last-child, .prose th:last-child { padding-right: 0; white-space: nowrap; }
.prose img { max-width: 100%; height: auto; }
@media (max-width: 560px) { .prose td:last-child { white-space: normal; } }

/* Product grid + basic card (catalog module may extend) */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; list-style: none; margin: 0; padding: 0; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 10px; }
.pcard__media { display: block; aspect-ratio: 1; background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10%; transition: transform .4s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__brand { font: 500 var(--fs-xs)/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pcard__name { font-size: var(--fs-md); font-weight: 500; line-height: 1.3; }
.pcard__name a { text-decoration: none; }
.pcard__price { font: 400 var(--fs-sm)/1.3 var(--mono); color: var(--muted); }
.pcard__price b { color: var(--text); font-weight: 500; }

/* Section heading row */
.section { padding: 56px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__title { font-size: var(--fs-xl); }
.section__more { font-size: var(--fs-sm); color: var(--muted); }

/* Footer */
.site-footer { margin-top: 56px; padding: 40px 0 28px; background: var(--deep); color: rgba(255,255,255,.72); font-size: var(--fs-sm); }
.site-footer a { color: inherit; transition: color .2s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline: 2px solid var(--tint-light); outline-offset: 2px; border-radius: 4px; }
.site-footer .site-footer__promise { list-style: none; margin: 0 0 40px; padding: 0 0 32px; border-bottom: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.site-footer__promise li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.site-footer__promise svg { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: rgba(255,255,255,.08); fill: none; stroke: var(--tint-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__promise b { display: block; color: #fff; font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.site-footer__promise a { color: var(--tint-light); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: rgba(255,255,255,.55); }
.site-footer__brand p { max-width: 38ch; margin: 12px 0 18px; }
.site-footer__cta { background: var(--tint-light); color: var(--deep); border-color: transparent; }
.site-footer__cta:hover { background: #fff; color: var(--deep); }
.site-footer__title { margin: 0 0 12px; font: 500 var(--fs-xs)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--tint-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-xs); color: rgba(255,255,255,.5); }
.site-footer__top { margin-left: auto; }

/* "We're back" announcement above the top bar (dismissed per browser) */
.reopen { background: var(--accent); color: #fff; font-size: var(--fs-sm); }
.reopen[hidden] { display: none; }
.reopen__in { display: flex; align-items: center; justify-content: center; gap: 8px 16px; min-height: 44px; padding-block: 8px; position: relative; padding-right: 44px; flex-wrap: wrap; text-align: center; }
.reopen__text { margin: 0; }
.reopen__text b { font-weight: 600; margin-right: 4px; }
.reopen__link { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.reopen__link:hover { color: var(--tint-light); }
.reopen__close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.reopen__close:hover { background: rgba(255,255,255,.14); }
.reopen a:focus-visible, .reopen__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .reopen__text span { display: block; font-size: var(--fs-xs); opacity: .9; } }

/* WooCommerce notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 16px 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-sm);
	display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.woocommerce-error { background: #fdeeee; color: var(--bad); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* Toast (base.js: decantToast) */
.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0;
	background: var(--text); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-size: var(--fs-sm);
	transition: opacity .2s, transform .2s var(--ease); pointer-events: none; box-shadow: var(--shadow-lg);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1080px) {
	.site-nav { gap: 14px; }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-grid; margin-left: -8px; }
	.site-header__in { gap: 8px; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
		background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 12px; font-size: var(--fs-md);
		box-shadow: 0 16px 32px rgba(0,0,0,.08); max-height: calc(100vh - 140px); overflow-y: auto;
	}
	.site-nav a { padding: 12px 0; color: var(--text); border-bottom: 1px solid var(--line); }
	.site-nav a:last-child { border-bottom: 0; }
	.site-nav.is-open { display: flex; }
	.site-header__search { order: 10; flex-basis: 100%; max-width: none; margin: 0 0 10px; }
	.site-header__in { flex-wrap: wrap; height: auto; min-height: var(--header-h); }
	.site-header__actions { margin-left: auto; }
	.site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.site-footer__grid > :first-child { grid-column: 1 / -1; }
	.site-footer .site-footer__promise { grid-template-columns: 1fr 1fr; }
	.products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
}
@media (max-width: 560px) {
	.topbar__in span:nth-child(n+4) { display: none; }
	.topbar__in .topbar__dot:nth-child(4) { display: none; }
	.site-footer .site-footer__promise { grid-template-columns: 1fr; gap: 16px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__top { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Homepage has its own big search: the header one appears only after the hero search scrolls away (home.js). */
.home:not(.is-past-hero) .site-header__search { display: none; }
