/*
Theme Name: Kilnfold Ceramics
Theme URI: https://example.com/kilnfold-ceramics
Author: Kilnfold Studio
Author URI: https://example.com
Description: A quiet, Japandi-leaning WordPress theme handwritten for small-batch ceramics studios. Built around generous whitespace, slow typographic rhythm and deep WooCommerce integration, it lets handmade objects carry the page. Includes a modular front page, customizer-driven brand details and motion that respects reduced-motion preferences.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kilnfold
Tags: e-commerce, custom-menu, custom-logo, featured-images, translation-ready, blog, two-columns, right-sidebar
WC requires at least: 7.0
WC tested up to: 9.9
*/

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

:root {
	--oat:        #f6f2e9;
	--oat-deep:   #ece5d6;
	--paper:      #fcfaf5;
	--clay:       #a9714f;
	--clay-deep:  #8a5940;
	--clay-soft:  #d8b79c;
	--charcoal:   #3a3733;
	--ink:        #24221e;
	--muted:      #6d6759;
	--line:       #e2dacb;
	--line-soft:  #eee8dc;
	--white:      #ffffff;

	--font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--step--1: clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
	--step-0:  clamp(0.95rem, 0.92rem + 0.16vw, 1.05rem);
	--step-1:  clamp(1.10rem, 1.02rem + 0.36vw, 1.32rem);
	--step-2:  clamp(1.35rem, 1.18rem + 0.72vw, 1.85rem);
	--step-3:  clamp(1.70rem, 1.36rem + 1.45vw, 2.70rem);
	--step-4:  clamp(2.10rem, 1.50rem + 2.60vw, 3.90rem);
	--step-5:  clamp(2.55rem, 1.55rem + 4.30vw, 5.40rem);

	--gap:      clamp(1.15rem, 0.9rem + 1.1vw, 2rem);
	--section:  clamp(4.2rem, 3rem + 5.2vw, 8.5rem);
	--shell:    1280px;
	--shell-narrow: 780px;
	--pad:      clamp(1.25rem, 0.6rem + 2.6vw, 3.5rem);

	--radius:   2px;
	--radius-lg: 3px;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur: 0.65s;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

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

body {
	margin: 0;
	max-width: 100%;
	overflow-x: hidden;
	background: var(--oat);
	color: var(--charcoal);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.75;
	font-weight: 400;
	letter-spacing: 0.005em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--ink);
	line-height: 1.16;
	letter-spacing: -0.012em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

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

a {
	color: var(--clay-deep);
	text-decoration: none;
	transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
a:hover, a:focus { color: var(--ink); }

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

ul, ol { padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

blockquote {
	margin: 2.2em 0;
	padding: 0 0 0 clamp(1.1rem, 3vw, 2rem);
	border-left: 1px solid var(--clay-soft);
	font-family: var(--font-display);
	font-size: var(--step-2);
	line-height: 1.45;
	color: var(--ink);
	font-style: italic;
}

code, pre, kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88em;
}
pre {
	background: var(--oat-deep);
	padding: 1.2rem;
	overflow-x: auto;
	border-radius: var(--radius);
	max-width: 100%;
}
code { background: var(--oat-deep); padding: 0.12em 0.38em; border-radius: var(--radius); }
pre code { background: none; padding: 0; }

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

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.6rem;
	font-size: var(--step--1);
}
th, td {
	padding: 0.75rem 0.9rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}
th { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.74rem; color: var(--muted); }

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

:focus-visible {
	outline: 2px solid var(--clay);
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}
.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 999;
	background: var(--ink);
	color: var(--oat);
	padding: 0.7rem 1.2rem;
	font-size: var(--step--1);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.skip-link:focus { top: 1rem; color: var(--oat); }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.shell {
	width: 100%;
	max-width: var(--shell);
	margin-inline: auto;
	padding-inline: var(--pad);
}
.shell--narrow { max-width: var(--shell-narrow); }
.shell--wide { max-width: 1560px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.62); }
.section--paper { background: var(--paper); }
.section--deep { background: var(--oat-deep); }
.section--ink { background: var(--ink); color: var(--oat-deep); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink a { color: var(--clay-soft); }
.section--ink a:hover { color: var(--white); }

.eyebrow {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--clay);
	margin-bottom: 1.1rem;
	font-weight: 500;
}
.section--ink .eyebrow { color: var(--clay-soft); }

.lede {
	font-size: var(--step-1);
	line-height: 1.62;
	color: var(--muted);
	max-width: 46ch;
}
.section--ink .lede { color: #c9c2b3; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.8rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

.section-head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--gap);
	max-width: none;
}
.section-head--split .section-head__text { max-width: 52ch; }

/* Buttons ---------------------------------------------------------------- */

.btn,
.wp-block-button__link,
button, input[type="submit"], input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	font-family: var(--font-body);
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 500;
	line-height: 1;
	padding: 1.15em 2.1em;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius);
	cursor: pointer;
	text-align: center;
	transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover, .btn:focus,
button:hover, input[type="submit"]:hover {
	background: var(--clay-deep);
	border-color: var(--clay-deep);
	color: var(--paper);
	transform: translateY(-2px);
}

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}
.btn--ghost:hover, .btn--ghost:focus {
	background: transparent;
	color: var(--clay-deep);
	border-color: var(--clay);
}
.btn--light {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--paper);
}
.btn--light:hover { background: var(--clay-soft); border-color: var(--clay-soft); color: var(--ink); }

.btn--outline-light {
	background: transparent;
	color: var(--paper);
	border-color: rgba(246, 242, 233, 0.4);
}
.btn--outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link-underline {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--ink);
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--clay-soft);
	white-space: nowrap;
}
.link-underline:hover { color: var(--clay-deep); border-color: var(--clay); }
.link-underline .arw { transition: transform 0.35s var(--ease); }
.link-underline:hover .arw { transform: translateX(4px); }

/* Media frames ----------------------------------------------------------- */

.frame {
	position: relative;
	overflow: hidden;
	background: var(--oat-deep);
	border-radius: var(--radius);
}
.frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--ease);
}
.frame--tall { aspect-ratio: 3 / 4; }
.frame--square { aspect-ratio: 1 / 1; }
.frame--wide { aspect-ratio: 4 / 3; }
.frame--pano { aspect-ratio: 16 / 10; }
a:hover > .frame img, .card:hover .frame img { transform: scale(1.045); }

/* ==========================================================================
   4. Reveal animation
   ========================================================================== */

.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	will-change: opacity, transform;
}
.js .reveal.is-visible,
.reveal.is-visible {
	opacity: 1;
	transform: none;
}
.js .reveal--fade { transform: none; }
.js .reveal--right { transform: translateX(-28px); }
.js .reveal--scale { transform: scale(0.975); }

.js .reveal[data-delay="1"] { transition-delay: 0.09s; }
.js .reveal[data-delay="2"] { transition-delay: 0.18s; }
.js .reveal[data-delay="3"] { transition-delay: 0.27s; }
.js .reveal[data-delay="4"] { transition-delay: 0.36s; }
.js .reveal[data-delay="5"] { transition-delay: 0.45s; }
.js .reveal[data-delay="6"] { transition-delay: 0.54s; }
.js .reveal[data-delay="7"] { transition-delay: 0.63s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.js .reveal,
	.js .reveal--right,
	.js .reveal--scale {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ==========================================================================
   5. Site header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--oat);
	border-bottom: 1px solid var(--line);
	transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap);
	min-height: 78px;
	padding-block: 0.85rem;
}

.brand { display: inline-flex; align-items: baseline; gap: 0.65rem; flex-shrink: 0; }
.brand__name {
	font-family: var(--font-display);
	font-size: clamp(1.12rem, 1rem + 0.5vw, 1.42rem);
	letter-spacing: 0.01em;
	color: var(--ink);
	line-height: 1;
}
.brand__mark {
	font-size: 0.62rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--clay);
	white-space: nowrap;
}
.brand:hover .brand__name { color: var(--clay-deep); }
.brand img { max-height: 46px; width: auto; }

.nav-main ul {
	display: flex;
	align-items: center;
	gap: clamp(1.1rem, 2vw, 2.3rem);
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-main li { margin: 0; position: relative; }
.nav-main a {
	font-size: 0.76rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--charcoal);
	padding-block: 0.4rem;
	position: relative;
	white-space: nowrap;
}
.nav-main a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	background: var(--clay);
	transition: width 0.4s var(--ease);
}
.nav-main a:hover::after,
.nav-main .current-menu-item > a::after,
.nav-main .current_page_item > a::after,
.nav-main .current-menu-parent > a::after { width: 100%; }
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a { color: var(--ink); }

/* dropdown */
.nav-main .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	min-width: 200px;
	background: var(--paper);
	border: 1px solid var(--line);
	padding: 0.7rem 0;
	display: block;
	flex-direction: column;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
	box-shadow: 0 18px 40px -28px rgba(36, 34, 30, 0.4);
	z-index: 5;
}
.nav-main li:hover > .sub-menu,
.nav-main li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav-main .sub-menu li { width: 100%; }
.nav-main .sub-menu a {
	display: block;
	padding: 0.5rem 1.2rem;
	letter-spacing: 0.1em;
	text-transform: none;
	font-size: 0.82rem;
}
.nav-main .sub-menu a::after { display: none; }

.header-tools { display: flex; align-items: center; gap: clamp(0.7rem, 1.4vw, 1.3rem); }

.icon-btn {
	background: none;
	border: 0;
	padding: 0.45rem;
	color: var(--charcoal);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: color 0.3s var(--ease), transform 0.3s var(--ease);
	line-height: 0;
}
.icon-btn:hover { background: none; color: var(--clay-deep); transform: none; }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.35; }

.cart-link { position: relative; }
.cart-count {
	position: absolute;
	top: -2px;
	right: -4px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--clay-deep);
	color: var(--paper);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-family: var(--font-body);
}
/* An empty bag shows no counter at all. */
.cart-count[hidden] { display: none; }

.nav-toggle { display: none; }
.nav-toggle span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--charcoal);
	transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Search drawer */
.search-drawer {
	display: none;
	border-top: 1px solid var(--line);
	background: var(--paper);
	padding-block: 1.4rem;
}
.search-drawer.is-open { display: block; }

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: clamp(520px, 82vh, 860px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--oat-deep);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
}
/*
 * Two scrims: a vertical one to seat the header and footer of the frame, and a
 * horizontal one so the copy block stays legible over a light photograph.
 */
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(36, 34, 30, 0.68) 0%, rgba(36, 34, 30, 0.42) 34%, rgba(36, 34, 30, 0.06) 62%, rgba(36, 34, 30, 0) 100%),
		linear-gradient(180deg, rgba(36, 34, 30, 0.34) 0%, rgba(36, 34, 30, 0.10) 30%, rgba(36, 34, 30, 0.20) 58%, rgba(36, 34, 30, 0.70) 100%);
}
.hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-block: clamp(3rem, 7vw, 6rem);
}
.hero__body { max-width: 34ch; }
.hero .eyebrow { color: var(--clay-soft); }
.hero__title {
	font-size: var(--step-5);
	color: var(--paper);
	margin-bottom: 0.5em;
	letter-spacing: -0.02em;
	line-height: 1.04;
}
.hero__text {
	color: rgba(252, 250, 245, 0.86);
	font-size: var(--step-1);
	line-height: 1.6;
	max-width: 42ch;
	margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__scroll {
	position: absolute;
	right: var(--pad);
	bottom: clamp(3rem, 7vw, 6rem);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: rgba(252, 250, 245, 0.7);
	font-size: 0.66rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
}
.hero__scroll::after {
	content: "";
	width: 1px;
	height: 54px;
	background: linear-gradient(180deg, rgba(252,250,245,0.65), rgba(252,250,245,0));
	animation: kf-drop 2.6s var(--ease) infinite;
}
@keyframes kf-drop {
	0% { transform: scaleY(0.2); transform-origin: top; opacity: 0; }
	35% { opacity: 1; }
	100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ==========================================================================
   7. Ethos bar
   ========================================================================== */

.ethos {
	background: var(--paper);
	border-block: 1px solid var(--line);
}
.ethos__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}
.ethos__item {
	padding: clamp(2rem, 3.4vw, 3.2rem) clamp(1.1rem, 2vw, 2.2rem);
	border-right: 1px solid var(--line-soft);
	text-align: center;
}
.ethos__item:last-child { border-right: 0; }
.ethos__figure {
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem);
	color: var(--ink);
	line-height: 1;
	display: block;
	margin-bottom: 0.55rem;
	letter-spacing: -0.02em;
}
.ethos__label {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
	line-height: 1.6;
}

/* ==========================================================================
   8. Product grid (shared by front page + shop)
   ========================================================================== */

.product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.5rem, 2.6vw, 2.75rem) clamp(1.1rem, 2vw, 2rem);
	list-style: none;
	margin: 0;
	padding: 0;
}
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { position: relative; }
.card__media { position: relative; margin-bottom: 1.15rem; }
.card__badge {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	z-index: 3;
	background: var(--paper);
	color: var(--ink);
	font-size: 0.6rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 0.45em 0.85em;
	font-weight: 500;
	border-radius: var(--radius);
}
.card__badge--clay { background: var(--clay-deep); color: var(--paper); }
.card__cat {
	font-size: 0.66rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--clay);
	display: block;
	margin-bottom: 0.5rem;
}
.card__title {
	font-family: var(--font-display);
	font-size: var(--step-1);
	line-height: 1.28;
	margin: 0 0 0.45rem;
	color: var(--ink);
	letter-spacing: -0.005em;
}
.card a:hover .card__title, .card__title a:hover { color: var(--clay-deep); }
.card__price {
	font-size: 0.94rem;
	color: var(--muted);
	letter-spacing: 0.01em;
	margin: 0;
}
.card__price .amount { color: var(--ink); }
.card__excerpt {
	font-size: 0.92rem;
	color: var(--muted);
	line-height: 1.68;
	margin: 0.55rem 0 0;
}

/* ==========================================================================
   9. Story split
   ========================================================================== */

.split {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--gap);
	align-items: center;
}
.split__media { grid-column: 1 / span 6; }
.split__body { grid-column: 8 / span 5; }
.split--flip .split__media { grid-column: 7 / span 6; grid-row: 1; }
.split--flip .split__body { grid-column: 1 / span 5; grid-row: 1; }

.story-marks {
	list-style: none;
	margin: 2.2rem 0 2.4rem;
	padding: 0;
	border-top: 1px solid var(--line);
}
.story-marks li {
	margin: 0;
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
	display: flex;
	gap: 1.1rem;
	align-items: baseline;
	font-size: 0.95rem;
	color: var(--muted);
	line-height: 1.6;
}
.story-marks .num {
	font-family: var(--font-display);
	color: var(--clay);
	font-size: 0.82rem;
	letter-spacing: 0.1em;
	flex-shrink: 0;
	min-width: 2.1em;
}
.story-marks strong {
	color: var(--ink);
	font-weight: 500;
	display: block;
	margin-bottom: 0.15rem;
	font-size: 1rem;
}

/* Stacked media pair */
.media-pair { position: relative; }
.media-pair__b {
	position: absolute;
	right: -8%;
	bottom: -12%;
	width: 46%;
	border: 8px solid var(--oat);
	background: var(--oat);
	border-radius: var(--radius);
}

/* ==========================================================================
   10. Material & care
   ========================================================================== */

.care-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.4rem, 2.4vw, 2.6rem);
}
.care-card {
	background: var(--paper);
	border: 1px solid var(--line);
	padding: clamp(1.7rem, 2.6vw, 2.6rem);
	border-radius: var(--radius);
	transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
	height: 100%;
}
.care-card:hover { border-color: var(--clay-soft); transform: translateY(-3px); }
.care-card__icon {
	width: 40px;
	height: 40px;
	margin-bottom: 1.3rem;
	color: var(--clay);
}
.care-card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.1; }
.care-card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.care-card p { font-size: 0.94rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ==========================================================================
   11. Collections
   ========================================================================== */

.collection-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.1rem, 2vw, 2rem);
}
.collection {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--oat-deep);
}
.collection .frame { border-radius: 0; }
.collection__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(36,34,30,0) 40%, rgba(36,34,30,0.62) 100%);
	transition: background 0.5s var(--ease);
}
.collection:hover .collection__overlay { background: linear-gradient(180deg, rgba(36,34,30,0.05) 20%, rgba(36,34,30,0.75) 100%); }
.collection__label {
	position: absolute;
	left: clamp(1rem, 1.6vw, 1.5rem);
	right: clamp(1rem, 1.6vw, 1.5rem);
	bottom: clamp(1rem, 1.6vw, 1.5rem);
	z-index: 2;
	color: var(--paper);
}
.collection__label h3 {
	color: var(--paper);
	font-size: var(--step-1);
	margin: 0 0 0.2rem;
}
.collection__label span {
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(252, 250, 245, 0.72);
}

/* ==========================================================================
   12. Journal
   ========================================================================== */

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.6rem, 2.8vw, 3rem);
}
.post-card__meta {
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--clay);
	margin-bottom: 0.6rem;
	display: block;
}
.post-card h3 {
	font-size: var(--step-2);
	line-height: 1.24;
	margin-bottom: 0.6rem;
}
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--clay-deep); }
.post-card p {
	font-size: 0.95rem;
	color: var(--muted);
	line-height: 1.7;
	margin-bottom: 1rem;
}
.post-card .frame { margin-bottom: 1.3rem; }

/* ==========================================================================
   13. CTA band
   ========================================================================== */

.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--gap);
	align-items: center;
}
.cta-band__body { grid-column: 1 / span 6; }
.cta-band__side { grid-column: 8 / span 5; }
.cta-band__title { font-size: var(--step-3); margin-bottom: 0.55em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li {
	display: flex;
	justify-content: space-between;
	gap: 1.2rem;
	padding: 0.95rem 0;
	border-bottom: 1px solid rgba(226, 218, 203, 0.22);
	font-size: 0.92rem;
	margin: 0;
}
.detail-list li:first-child { border-top: 1px solid rgba(226, 218, 203, 0.22); }
.detail-list .k {
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--clay-soft);
	flex-shrink: 0;
}
.detail-list .v { text-align: right; color: var(--oat-deep); }
.section--ink .detail-list .v a { color: var(--oat-deep); }

/* ==========================================================================
   14. Page hero / archive header
   ========================================================================== */

.page-hero {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	padding-block: clamp(3.2rem, 6vw, 6.5rem);
	text-align: center;
}
.page-hero__title { font-size: var(--step-4); margin-bottom: 0.4em; }
.page-hero .lede { margin-inline: auto; text-align: center; }

.breadcrumb {
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--clay-deep); }

/* ==========================================================================
   15. Entry content
   ========================================================================== */

.entry-content { font-size: var(--step-1); line-height: 1.78; color: var(--charcoal); }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 { font-size: var(--step-2); margin-top: 2.2em; margin-bottom: 0.5em; }
.entry-content h3 { font-size: var(--step-1); margin-top: 1.9em; margin-bottom: 0.45em; }
.entry-content img, .entry-content figure { border-radius: var(--radius); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption {
	font-size: 0.82rem;
	color: var(--muted);
	margin-top: 0.7rem;
	text-align: center;
}
.entry-content a { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li::marker { color: var(--clay); }

.entry-meta {
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 1.1rem;
}
.entry-meta .sep { margin-inline: 0.6rem; color: var(--line); }

.entry-hero { margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }

.entry-footer {
	margin-top: clamp(2.5rem, 4vw, 4rem);
	padding-top: 1.8rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	color: var(--muted);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list a {
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border: 1px solid var(--line);
	padding: 0.45em 0.9em;
	border-radius: 999px;
	color: var(--muted);
}
.tag-list a:hover { border-color: var(--clay); color: var(--clay-deep); }

/* Pagination */
.pagination { margin-top: clamp(2.8rem, 5vw, 4.5rem); display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.8rem;
	border: 1px solid var(--line);
	color: var(--charcoal);
	font-size: 0.82rem;
	border-radius: var(--radius);
	transition: all 0.3s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--clay); color: var(--clay-deep); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination .page-numbers.dots { border-color: transparent; }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gap);
	margin-top: clamp(2.5rem, 4vw, 4rem);
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}
.post-nav__item span {
	font-size: 0.66rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--clay);
	display: block;
	margin-bottom: 0.4rem;
}
.post-nav__item a { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); line-height: 1.3; }
.post-nav__item a:hover { color: var(--clay-deep); }
.post-nav__item--next { text-align: right; }

/* ==========================================================================
   16. Forms & search
   ========================================================================== */

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"], input[type="date"],
textarea, select {
	width: 100%;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.85rem 1rem;
	line-height: 1.5;
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d6759' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.4rem;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--clay);
	box-shadow: 0 0 0 3px rgba(169, 113, 79, 0.12);
}
::placeholder { color: #a49c8c; opacity: 1; }
label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }

.search-form { display: flex; gap: 0.6rem; align-items: stretch; }
.search-form label { flex: 1; margin: 0; }
.search-form input[type="search"] { height: 100%; }
.search-form .btn { flex-shrink: 0; }

/* ==========================================================================
   17. Footer
   ========================================================================== */

.site-footer {
	background: var(--ink);
	color: #b9b2a4;
	padding-top: clamp(3.5rem, 6vw, 6rem);
	font-size: 0.92rem;
}
.site-footer a { color: #b9b2a4; }
.site-footer a:hover { color: var(--clay-soft); }

.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
	gap: clamp(1.8rem, 3vw, 3.5rem);
	padding-bottom: clamp(2.5rem, 4vw, 4rem);
}
.footer-brand__name {
	font-family: var(--font-display);
	font-size: var(--step-2);
	color: var(--paper);
	display: block;
	margin-bottom: 0.9rem;
	line-height: 1.2;
}
.footer-brand p { color: #8f887a; max-width: 34ch; font-size: 0.92rem; line-height: 1.72; }

.footer-col h4 {
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--clay-soft);
	margin-bottom: 1.2rem;
	font-family: var(--font-body);
	font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.68rem; }
.footer-col a { font-size: 0.92rem; }

.footer-contact li { display: block; margin-bottom: 0.9rem; line-height: 1.6; }
.footer-contact .k {
	display: block;
	font-size: 0.64rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #7d7668;
	margin-bottom: 0.15rem;
}
.footer-contact .v { color: var(--oat-deep); }

.footer-bottom {
	border-top: 1px solid rgba(226, 218, 203, 0.14);
	padding-block: 1.6rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.5rem;
	justify-content: space-between;
	align-items: center;
	font-size: 0.78rem;
	color: #7d7668;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ==========================================================================
   18. 404 / no results
   ========================================================================== */

.state-block { text-align: center; padding-block: clamp(4rem, 9vw, 9rem); }
.state-block__code {
	font-family: var(--font-display);
	font-size: clamp(4.5rem, 3rem + 9vw, 10rem);
	line-height: 0.9;
	color: var(--clay-soft);
	display: block;
	margin-bottom: 1.2rem;
	letter-spacing: -0.03em;
}
.state-block .lede { margin-inline: auto; }
.state-block__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 2.2rem; }
.state-block .search-form { max-width: 460px; margin: 2.4rem auto 0; }

/* ==========================================================================
   19. Widgets / sidebar
   ========================================================================== */

.layout-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: start;
}
.widget { margin-bottom: 2.6rem; }
.widget-title {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--clay);
	font-family: var(--font-body);
	font-weight: 500;
	margin-bottom: 1.1rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 0.65rem; font-size: 0.92rem; }
.widget a { color: var(--charcoal); }
.widget a:hover { color: var(--clay-deep); }

/* Alignment helpers */
.alignwide { width: min(100%, 1100px); margin-inline: auto; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; text-align: center; }
.alignleft { float: left; margin: 0 1.6rem 1.2rem 0; }
.alignright { float: right; margin: 0 0 1.2rem 1.6rem; }
.wp-caption { max-width: 100%; }
.sticky .card__badge { display: inline-block; }

/* ==========================================================================
   20. Responsive
   ========================================================================== */

@media (max-width: 1180px) {
	.split__media { grid-column: 1 / span 6; }
	.split__body { grid-column: 7 / span 6; }
	.split--flip .split__media { grid-column: 7 / span 6; }
	.split--flip .split__body { grid-column: 1 / span 6; }
	.cta-band__body { grid-column: 1 / span 6; }
	.cta-band__side { grid-column: 7 / span 6; }
}

@media (max-width: 1024px) {
	.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.nav-main,
	.header-tools .search-toggle { display: none; }
	.nav-toggle { display: inline-flex; flex-direction: column; }

	.site-nav {
		position: fixed;
		inset: 0;
		top: 0;
		z-index: 120;
		background: var(--oat);
		padding: 6.5rem var(--pad) 3rem;
		overflow-y: auto;
		transform: translateY(-100%);
		transition: transform 0.5s var(--ease);
		visibility: hidden;
	}
	.site-nav.is-open { transform: translateY(0); visibility: visible; }
	.site-nav .nav-main { display: block; }
	.site-nav .nav-main ul { display: block; }
	.site-nav .nav-main > ul > li { border-bottom: 1px solid var(--line); }
	.site-nav .nav-main a {
		display: block;
		padding: 1.1rem 0;
		font-size: 0.95rem;
		letter-spacing: 0.1em;
	}
	.site-nav .nav-main a::after { display: none; }
	.site-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		background: transparent;
		padding: 0 0 0.6rem 1rem;
	}
	.site-nav .sub-menu a { padding: 0.55rem 0; font-size: 0.88rem; color: var(--muted); }
	.nav-open { overflow: hidden; }
	.nav-toggle { position: relative; z-index: 130; }

	.split { display: block; }
	.split__media { margin-bottom: clamp(2rem, 4vw, 3rem); }
	.split--flip .split__media, .split--flip .split__body { grid-column: auto; }
	.media-pair__b { position: static; width: 55%; margin: -14% 0 0 auto; border-width: 6px; }

	.cta-band__inner { display: block; }
	.cta-band__side { margin-top: clamp(2.2rem, 4vw, 3rem); }

	.care-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ethos__grid { grid-template-columns: repeat(2, 1fr); }
	.ethos__item:nth-child(2n) { border-right: 0; }
	.ethos__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }

	.layout-sidebar { grid-template-columns: minmax(0, 1fr); }
	.hero__scroll { display: none; }
}

@media (max-width: 780px) {
	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero { min-height: 74vh; }
	.hero__body { max-width: 100%; }
	.post-nav { grid-template-columns: 1fr; gap: 1.6rem; }
	.post-nav__item--next { text-align: left; }
}

@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
	.care-grid { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: 1fr; }
	.collection-grid { grid-template-columns: 1fr 1fr; }
	.hero__actions .btn, .state-block__actions .btn { width: 100%; }
	.entry-footer { flex-direction: column; align-items: flex-start; }
	.detail-list li { flex-direction: column; gap: 0.25rem; }
	.detail-list .v { text-align: left; }
	.alignleft, .alignright { float: none; margin: 0 0 1.2rem; }
}

@media (max-width: 420px) {
	.product-grid, .product-grid--3 { grid-template-columns: 1fr; }
	.collection-grid { grid-template-columns: 1fr; }
	.ethos__grid { grid-template-columns: 1fr; }
	.ethos__item { border-right: 0; border-bottom: 1px solid var(--line-soft); }
	.ethos__item:last-child { border-bottom: 0; }
	.search-form { flex-direction: column; }
	.brand__mark { display: none; }
}

/* Print */
@media print {
	.site-header, .site-footer, .hero__scroll, .nav-toggle { display: none !important; }
	body { background: #fff; color: #000; }
	.js .reveal { opacity: 1 !important; transform: none !important; }
}
