/*
Theme Name: Savonije
Theme URI: https://savonije.eu
Author: Michael Savonije
Author URI: https://savonije.eu
Description: Custom theme for Savonije. Handmade pearl and gold-plated silver jewellery, Celestial Baroque art direction.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.2
Text Domain: savonije
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
WC requires at least: 8.0
WC tested up to: 10.9
*/

/* =========================================================================
   Savonije — foundation stylesheet
   Reused by every template. Palette per CLAUDE.md s4 (locked, s0),
   typography per s5, spacing/rhythm per s6, motion per s7.
   ========================================================================= */

/* ----- Self-hosted fonts (CLAUDE.md s5). No Google CDN. Variable woff2. ----- */

/* Bodoni Moda — display only. Variable: opsz 6..96, wght 400..700. */
@font-face {
	font-family: "Bodoni Moda";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/bodoni-moda-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Bodoni Moda";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/bodoni-moda-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Bodoni Moda";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/bodoni-moda-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Bodoni Moda";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/bodoni-moda-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Hanken Grotesk — body + UI. Variable: wght 300..700. */
@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----- Design tokens (CLAUDE.md s4, locked per s0). ----- */
:root {
	/* Palette — exact hex, do not introduce colours outside this set. */
	--ink: #15100D;        /* primary ground, warm near-black */
	--surface: #1F1815;    /* raised dark */
	/* Currently unused: retained as the cool pole. */
	--aubergine: #241826;  /* alternate deep ground, cool pole */
	--paper: #ECE3D1;      /* warm archival, primary text on dark */
	--taupe: #A99C86;      /* secondary / caption text on dark */
	--oxblood: #6B2B2B;    /* decorative accent, rules and fills only */
	--gold: #B08D4F;       /* rare metal accent, hairlines, hover */

	/* Derived (all from tokens above). Body text is paper at ~82% over ink. */
	--text-body: color-mix(in srgb, var(--paper) 82%, var(--ink));
	--hairline-gold: color-mix(in srgb, var(--gold) 34%, transparent);
	--hairline-gold-soft: color-mix(in srgb, var(--gold) 16%, transparent);
	--bordeaux: color-mix(in srgb, var(--oxblood) 45%, var(--ink)); /* statement-band ground; the mix ratio is the tuning dial */

	/* Typefaces */
	--font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
	--font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	/* Type scale (CLAUDE.md s5, fluid clamp) */
	--fs-hero: clamp(2.8rem, 7.5vw, 6rem);
	--fs-h2: clamp(2rem, 4.4vw, 3.4rem);
	--fs-statement: clamp(1.8rem, 4vw, 3rem);
	--fs-piece: 1.35rem;      /* piece name in gallery cells */
	--fs-price: 1.5rem;
	--fs-price-cell: 1.1rem;  /* price inside gallery cells */
	--fs-caption: 0.95rem;    /* poetic caption register */
	--fs-eyebrow: 0.72rem;
	--fs-lede: 1.05rem;
	--fs-body: 1rem;
	--fs-nav: 0.72rem;

	/* Spacing / rhythm (CLAUDE.md s6) */
	--pad-inline: clamp(1.5rem, 5vw, 6rem);
	--rhythm: clamp(4.5rem, 12vh, 9rem);
	--content-max: 1240px;
	--measure-text: 62ch;
	--measure-para: 46ch;

	/* Motion (CLAUDE.md s7) */
	--ease: 0.5s ease;

	/* The following light (s7.2) — provisional, re-tune against real
	   photography (s0). One-line edits by design. */
	--light-pool: clamp(260px, 42vmin, 520px);
	--veil-base: 0.72; /* reserved: full-bleed fields (s7.2 base); plates use --veil-plate */
	--veil-plate: 0.78;
	--veil-plate-hover: 0.58;
	--light-rest-x: 50%;
	--light-rest-y: 42%;
}

/* Registered so the hover change in veil opacity can ride the 0.5s ease;
   degrades to an instant change where @property is unsupported.
   inherits MUST be true: the value is set on .plate but consumed by
   .plate::before, and pseudo-elements only receive it via inheritance —
   inherits:false locks the veil at the initial value and kills the
   s7.2 hover-brighten entirely (audit finding, verified live). */
@property --veil-opacity {
	syntax: "<number>";
	inherits: true;
	initial-value: 0.78;
}

/* ----- Reset-ish base ----- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background-color: var(--ink);
	color: var(--text-body);
	font-family: var(--font-body);
	font-weight: 300;
	font-size: var(--fs-body);
	line-height: 1.7;
	font-optical-sizing: auto; /* drives Bodoni opsz axis */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}
/* The touch-safe half of the image protection: suppresses the iOS
   long-press save menu without touching any event. The other half
   (right-click, drag) lives in theme.js. touchstart must NEVER be used
   for this — preventDefault() on it cancels the scroll gesture and a
   swipe starting on an image dead-stops the page. */
img {
	-webkit-touch-callout: none;
}

a {
	color: var(--paper);
	text-decoration: none;
	transition: color var(--ease);
}
a:hover,
a:focus {
	color: var(--gold);
}

/* ----- Display typography ----- */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--paper);
	margin: 0 0 0.6em;
}
h1 { font-size: var(--fs-hero); line-height: 1.03; letter-spacing: 0.005em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; }

p { margin: 0 0 1.2em; max-width: var(--measure-para); }

/* Selection: the one permitted use of oxblood as a text ground on dark pages —
   user-initiated and momentary (CLAUDE.md s4). */
::selection {
	background-color: var(--oxblood);
	color: var(--paper);
}

/* ----- Voice primitives (CLAUDE.md s5) ----- */

/* Eyebrow / label: Hanken 500 uppercase, wide tracking, gold or taupe. */
.eyebrow {
	font-family: var(--font-body);
	font-weight: 500;
	text-transform: uppercase;
	font-size: var(--fs-eyebrow);
	letter-spacing: 0.34em;
	color: var(--taupe);
}
.eyebrow--gold { color: var(--gold); }

/* Action link (CLAUDE.md s8.1 retail grammar): hairline-underlined uppercase
   text link. The only action language outside the single-product page. */
.action-link {
	font-family: var(--font-body);
	font-weight: 400;
	text-transform: uppercase;
	font-size: var(--fs-nav);
	letter-spacing: 0.26em;
	color: var(--paper);
	text-decoration: none;
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--hairline-gold);
	transition: color var(--ease), border-color var(--ease);
}
.action-link:hover,
.action-link:focus {
	color: var(--gold);
	border-bottom-color: var(--gold);
}

/* Poetic caption: the "Bring the light closer." register (CLAUDE.md s5). */
.caption-poetic {
	font-family: var(--font-display);
	font-weight: 400;
	font-style: italic;
	font-size: var(--fs-caption);
	color: var(--taupe);
}

/* The single oxblood accent rule (s6): one per composition, 64px, 1px. */
.savonije-rule {
	border: 0;
	height: 1px;
	width: 64px;
	background: var(--oxblood);
	margin: 1rem 0 1.25rem;
}

/* =========================================================================
   Surface treatments (CLAUDE.md s9) — three quiet, still layers.
   Gated by body.has-surfaces (never on cart/checkout, s11). Content layers
   stack above the vignette and grain.
   ========================================================================= */

/* Vignette: the page itself sits in shadow. Fixed, still, non-interactive. */
body.has-surfaces::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(
		ellipse at center,
		transparent 55%,
		color-mix(in srgb, var(--ink) 50%, transparent) 100%
	);
}

/* Film grain: inline SVG feTurbulence tile at ~5% opacity (provisional, s0).
   Still, never animated. Data URI keeps it inline — no network request. */
body.has-surfaces::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 240px 240px;
}

/* Content layers stack above the overlays (s9). */
.site-header,
.site-footer,
.site-main,
#main,
#primary {
	position: relative;
	z-index: 3;
}

/* Museum framing (s9): every plate carries a 1px gold-alpha outer border and
   an inner hairline mat inset 10px. Both warm slightly on hover. The mat sits
   above the image, below nothing interactive. ::before is reserved for the
   darkness veil (s7.2, the following light). */
.plate {
	position: relative;
	overflow: hidden; /* the specular lean must not bleed past the frame */
	border: 1px solid var(--hairline-gold);
	transition: border-color var(--ease);
	--veil-opacity: var(--veil-plate);
}
.plate:hover {
	--veil-opacity: var(--veil-plate-hover);
}

/* The darkness veil (s7.2): one pool of light carved out of shadow, driven
   as --lx/--ly by assets/js/savonije-light.js from a single rAF loop. At
   rest (no JS, reduced motion, touch) the CSS defaults hold the resting
   pool — the veil itself is never removed. A pseudo-element is outside the
   accessibility tree and non-interactive by construction.
   rgb(8 5 4) and the falloff stops are the s7.2 spec values, verbatim. */
.plate::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1; /* above the image, below the mat */
	pointer-events: none;
	background: radial-gradient(
		circle var(--light-pool) at var(--lx, var(--light-rest-x)) var(--ly, var(--light-rest-y)),
		transparent 0%,
		rgb(8 5 4 / 0.28) 55%,
		rgb(8 5 4 / var(--veil-opacity)) 100%
	);
	transition: --veil-opacity var(--ease);
}

/* Specular lean (s7.2): the subject drifts a few pixels toward the light.
   Driven per-frame by JS; zero at rest. */
.plate img {
	transform: translate(var(--lean-x, 0px), var(--lean-y, 0px));
}
.plate::after {
	content: "";
	position: absolute;
	inset: 10px;
	z-index: 2;
	pointer-events: none;
	border: 1px solid var(--hairline-gold-soft);
	transition: border-color var(--ease);
}
.plate:hover {
	border-color: color-mix(in srgb, var(--gold) 55%, transparent);
}
.plate:hover::after {
	border-color: var(--hairline-gold);
}

/* ----- Accessibility ----- */
/* Keyboard focus is a considered gold ring, not the browser default, and
   never colour-only (the audit flagged hover-identical focus states). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.action-link:focus-visible,
.teaser__cell:focus-visible {
	outline: 1px solid var(--gold);
	outline-offset: 3px;
}
/* The skip-link target must clear the sticky/fixed header when focused. */
#main,
.site-main {
	scroll-margin-top: 6rem;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--surface);
	color: var(--paper);
	padding: 0.75rem 1rem;
	font-family: var(--font-body);
}
.skip-link:focus {
	left: var(--pad-inline);
}
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ----- Wordmark (CLAUDE.md s5). Flat, letterspaced Bodoni. Never metallic. ----- */
.site-wordmark {
	font-family: var(--font-display);
	font-weight: 500;
	text-transform: uppercase;
	font-size: clamp(1.1rem, 2.2vw, 1.5rem);
	letter-spacing: 0.42em;
	/* trailing tracking pushes glyphs left; pad left to sit optically centred */
	padding-left: 0.42em;
	color: var(--paper);
	line-height: 1;
	display: inline-block;
}
a.site-wordmark:hover,
a.site-wordmark:focus {
	color: var(--gold);
}
/* Footer wordmark drops to 1rem and left-aligns without the pad (CLAUDE.md s5). */
.site-wordmark--footer {
	font-size: 1rem;
	padding-left: 0;
}

/* ----- Header chrome — maison layout (CLAUDE.md s8.2) -----
   Primary nav left, wordmark dead centre, utility right. Materialised by
   default (ink at ~93% with blur, gold hairline); on the front page it
   starts transparent over the hero and materialises on scroll via
   .is-materialised (assets/js/theme.js). Both moves on 0.5s ease (s7.1). */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10; /* above the s9 surface overlays and content layers */
	background: color-mix(in srgb, var(--ink) 93%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--hairline-gold-soft);
	transition: background-color var(--ease), border-color var(--ease);
}
/* Front page: fixed and transparent at rest so the hero runs beneath it. */
body.home .site-header {
	position: fixed;
	left: 0;
	right: 0;
}
body.home .site-header:not(.is-materialised) {
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border-bottom-color: transparent;
}
.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 2rem;
	padding: clamp(1.1rem, 2.4vh, 1.8rem) var(--pad-inline);
	max-width: var(--content-max);
	margin: 0 auto;
}
.site-nav--primary { justify-self: start; }
.site-header__inner > .site-wordmark { justify-self: center; }
.site-nav--utility { justify-self: end; }
.site-nav ul {
	list-style: none;
	display: flex;
	gap: clamp(1.2rem, 2.4vw, 2.4rem);
	margin: 0;
	padding: 0;
}
.site-nav a {
	font-family: var(--font-body);
	font-weight: 400;
	text-transform: uppercase;
	font-size: var(--fs-nav);
	letter-spacing: 0.22em;
	color: var(--taupe);
}
.site-nav a:hover,
.site-nav a:focus {
	color: var(--gold);
}

/* Mobile (s8.2): the left nav collapses to a quiet second row, wordmark
   left-aligns, utility stays right. No hamburger — restraint over chrome. */
@media (max-width: 820px) {
	.site-header__inner {
		grid-template-columns: auto 1fr;
		gap: 0.9rem 1rem;
	}
	.site-header__inner > .site-wordmark {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}
	.site-nav--utility {
		grid-column: 2;
		grid-row: 1;
	}
	.site-nav--primary {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

/* ----- Footer chrome ----- */
.site-footer {
	/* Sections carry their own bottom padding; the footer sits close (round 4). */
	margin-top: calc(var(--rhythm) * 0.15);
	border-top: 1px solid var(--hairline-gold-soft);
}
/* Footer left-aligns; the wordmark drops to 1rem without the pad (CLAUDE.md s5).
   Maison close: brand on one side, quiet quick links + the one request
   action on the other. */
.site-footer__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: clamp(2rem, 5vw, 5rem);
	text-align: left;
	/* The footer sits close to the last block on every page (round 4). */
	padding: calc(var(--rhythm) * 0.45) var(--pad-inline) calc(var(--rhythm) * 0.75);
	max-width: var(--content-max);
	margin: 0 auto;
}
.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
/* Exactly the body register — one text voice across the page (round 3). */
.site-footer__line {
	font-family: var(--font-body);
	font-weight: 300;
	color: var(--text-body);
	font-size: var(--fs-body);
	line-height: 1.7;
	max-width: 38ch;
	margin: 0;
}
/* Legal furniture: present, silent. */
.site-footer__legal {
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 0.78rem;
	color: var(--taupe);
	margin: 0;
}
/* Two link columns: the house, then the formalities. */
.site-footer__nav {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: clamp(2rem, 5vw, 5rem);
}
.site-footer__menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	margin: 0;
	padding: 0;
}
/* Write to us keeps its action-link dress inside the list (owner call);
   without the :not() the menu rule would outrank it and turn it taupe. */
.site-footer__menu a:not(.action-link) {
	font-family: var(--font-body);
	font-weight: 400;
	text-transform: uppercase;
	font-size: var(--fs-nav);
	letter-spacing: 0.22em;
	color: var(--taupe);
}
.site-footer__menu a:not(.action-link):hover,
.site-footer__menu a:not(.action-link):focus {
	color: var(--gold);
}

@media (max-width: 820px) {
	.site-footer__inner {
		flex-direction: column;
		gap: 2.4rem;
	}
	.site-footer__nav {
		flex-direction: column;
		gap: 2.4rem;
	}
}

/* ----- Generic content wrapper (index fallback + Woo default wrapper) ----- */
.site-main,
#main {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: var(--rhythm) var(--pad-inline);
}

/* =========================================================================
   Home — the gallery reveal (CLAUDE.md s8.3)
   One object contemplated at a time, surfacing from dark. Sections manage
   their own width; the generic .site-main frame is switched off.
   ========================================================================= */
/* #main carries the id so the generic #main wrapper rule (1,0,0) must be
   outranked explicitly — .home-main alone (0,1,0) silently lost to it. */
#main.home-main,
.home-main {
	max-width: none;
	padding: 0;
}
/* Sections sit closer than the base rhythm — the page must read as one
   continuous gallery, not detached rooms (owner review, 11 Jul 2026). */
.home-main section {
	padding: calc(var(--rhythm) * 0.55) var(--pad-inline);
}
.home-main .statement {
	padding-top: calc(var(--rhythm) * 0.8);
	padding-bottom: calc(var(--rhythm) * 0.8);
}

/* ----- Hero: the opening screen, copy left, plate right -----
   Top-anchored (round 4): the copy starts just under the fixed header
   instead of centring inside a viewport-tall band, killing the dead space
   above and below it. */
.hero {
	display: flex;
	align-items: flex-start;
}
.home-main .hero {
	padding-top: clamp(6rem, 12vh, 8rem);
	padding-bottom: 0;
}
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	max-width: var(--content-max);
	margin: 0 auto;
	width: 100%;
	/* The one page-load move (s7.1): a gentle fade-up, ~1.4s. The global
	   reduced-motion override zeroes it. */
	animation: savonije-fade-up 1.4s ease both;
}
@keyframes savonije-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}
.hero__title {
	margin: 1.1rem 0 1.4rem;
}
.hero__title em {
	font-style: italic; /* one italic accent word, doing semantic work (s5) */
}
.hero__lede {
	font-weight: 300;
	font-size: var(--fs-lede);
	color: var(--taupe);
	max-width: var(--measure-para);
	margin: 0 0 2.2rem;
}
.hero__action {
	margin: 0 0 2.6rem;
}
.hero__hint {
	margin: 0;
}

/* ----- Reveal bands: plate and copy alternating sides ----- */
.reveal__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	max-width: var(--content-max);
	margin: 0 auto;
}
.reveal--flip .reveal__inner {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.reveal--flip .reveal__plate { order: 2; }
.reveal--flip .reveal__copy  { order: 1; }
.reveal__plate a {
	display: block;
}
.reveal__plate img {
	width: 100%;
	height: auto;
}
.reveal__name {
	margin: 0.9rem 0 0;
}
.reveal__prose {
	color: var(--text-body);
	max-width: var(--measure-para);
	margin: 0 0 1.4rem;
}
.reveal__prose p { margin: 0 0 0.9em; }
.reveal__prose p:last-child { margin-bottom: 0; }
.reveal__price,
.reveal__price .woocommerce-Price-amount {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--fs-price);
	color: var(--gold);
}
.reveal__price {
	margin: 0 0 1.8rem;
}

/* ----- Statement band: the bordeaux ground (s8.3) -----
   Framed like a painting: the museum treatment (s9) without the veil —
   it is a text canvas, not an image well. */
.statement {
	background: var(--bordeaux);
	position: relative;
	border: 1px solid var(--hairline-gold);
	max-width: var(--content-max);
	margin-left: auto;
	margin-right: auto;
}
.statement::after {
	content: "";
	position: absolute;
	inset: 10px;
	pointer-events: none;
	border: 1px solid var(--hairline-gold-soft);
}
.statement__quote {
	margin: 0 auto;
	max-width: 30ch;
	text-align: center;
}
.statement__quote p {
	font-family: var(--font-display);
	font-weight: 400;
	font-style: italic;
	font-size: var(--fs-statement);
	line-height: 1.25;
	color: var(--paper);
	max-width: none;
	margin: 0;
}
.statement__quote::before,
.statement__quote::after {
	content: "";
	display: block;
	width: 64px;
	height: 1px;
	background: var(--hairline-gold);
	margin: 0 auto;
}
.statement__quote::before { margin-bottom: 2.4rem; }
.statement__quote::after  { margin-top: 2.4rem; }

/* ----- Statement duo (round 4): the framed statement, smaller, beside a
   mood plate. The plate carries the following light; the statement keeps
   its painting frame. ----- */
.statement-duo__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: stretch;
	max-width: var(--content-max);
	margin: 0 auto;
}
.statement-duo__plate {
	display: block;
	margin: 0;
}
.statement-duo__plate img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.statement--duo {
	max-width: none;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(2.5rem, 5vw, 4rem);
}
.statement--duo .statement__quote p {
	font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}
@media (max-width: 820px) {
	.statement-duo__inner {
		grid-template-columns: 1fr;
	}
	.statement--duo {
		min-height: 20rem;
	}
}

/* One entrance for the statement text, then stillness (owner request;
   deliberate, recorded s7.1 exception). JS adds will-reveal only when
   IntersectionObserver exists and reduced motion is off, so the text is
   always visible without JS. */
.statement__quote.will-reveal p {
	opacity: 0;
	transform: translateY(14px);
}
.statement__quote.is-revealed p {
	opacity: 1;
	transform: none;
	transition: opacity 1.1s ease, transform 1.1s ease;
}

/* ----- Gallery teaser: three cells, one object per cell ----- */
.teaser__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3.5vw, 3.5rem);
	max-width: var(--content-max);
	margin: 0 auto;
}
.teaser__cell {
	display: block;
	color: var(--paper);
}
.teaser__plate {
	display: block;
	aspect-ratio: 3 / 4;
}
.teaser__plate img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.teaser__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.1rem;
}
.teaser__name {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--fs-piece);
	line-height: 1.2;
	color: var(--paper);
	transition: color var(--ease);
}
.teaser__cell:hover .teaser__name,
.teaser__cell:focus .teaser__name {
	color: var(--gold); /* the name warms to gold (s8.3) */
}
.teaser__price,
.teaser__price .woocommerce-Price-amount {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--fs-price-cell);
	color: var(--gold);
	white-space: nowrap;
}
.teaser__action {
	text-align: center;
	margin: calc(var(--rhythm) * 0.5) 0 0;
}

/* ----- Atelier band: centred prose, not cards (s8.3) ----- */
.atelier {
	text-align: center;
}
.atelier__prose {
	max-width: 52ch;
	margin: 0 auto;
}
.atelier__prose p {
	max-width: none;
	font-weight: 300;
	font-size: var(--fs-lede);
	color: var(--taupe);
}
.atelier__action {
	margin: 2.2rem 0 0;
}

/* ----- Home, mobile: bands stack plate-first, teaser single column ----- */
@media (max-width: 820px) {
	.home-main .hero {
		padding-top: 9rem; /* clears the two-row fixed header */
	}
	.hero__inner,
	.reveal__inner,
	.reveal--flip .reveal__inner {
		grid-template-columns: 1fr;
	}
	.hero__plate { order: -1; }
	.reveal__plate,
	.reveal--flip .reveal__plate { order: -1; }
	.reveal__copy,
	.reveal--flip .reveal__copy { order: 2; }
	.teaser__grid {
		grid-template-columns: 1fr;
		gap: calc(var(--rhythm) * 0.6);
	}
}

/* =========================================================================
   Story page — the house and the maker's view (typographic, no plates)
   ========================================================================= */
#main.story-main,
.story-main {
	max-width: none;
	padding: 0;
}
/* Same close rhythm as the front page (round 4). */
.story-main section {
	padding: calc(var(--rhythm) * 0.55) var(--pad-inline);
}
.story__opening {
	text-align: center;
	padding-top: calc(var(--rhythm) * 0.6);
}
.story__title {
	margin: 1.1rem auto 1.4rem;
	max-width: 16ch;
}
.story__title em {
	font-style: italic; /* one italic accent word (s5) */
}
.story__lede {
	font-weight: 300;
	font-size: var(--fs-lede);
	color: var(--taupe);
	max-width: var(--measure-para);
	margin: 0 auto;
}
.story__prose {
	padding-top: calc(var(--rhythm) * 0.6);
	padding-bottom: calc(var(--rhythm) * 0.6);
}
.story__measure {
	max-width: var(--measure-text);
	margin: 0 auto;
}
.story__measure p {
	max-width: none;
}
.story__close {
	text-align: center;
	padding-top: 0;
}
/* Care page: the rules as quiet lists under Bodoni group headings. */
.care__group {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--fs-statement);
	line-height: 1.25;
	color: var(--paper);
	margin: 0 0 1.4rem;
}
.care__list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: clamp(2rem, 4vw, 4rem);
}
.care__list li {
	break-inside: avoid;
	color: var(--text-body);
	font-weight: 300;
	line-height: 1.7;
	padding: 0.45rem 0 0.45rem 1.4rem;
	position: relative;
}
.care__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.25em;
	width: 14px;
	height: 1px;
	background: var(--hairline-gold);
}
.care__rules {
	padding-top: calc(var(--rhythm) * 0.4);
	padding-bottom: calc(var(--rhythm) * 0.4);
}
@media (max-width: 640px) {
	.care__list { columns: 1; }
}

/* Mood plates sit inside reveal bands (same composition as the front
   page); the reveal grid and .plate primitives carry them. The h1 on the
   care band borrows the reveal-name scale so one register rules. */
h1.reveal__name {
	font-size: var(--fs-h2);
	line-height: 1.08;
	letter-spacing: 0;
}

/* =========================================================================
   SureForms (the write-to-us form) — the house's clothes on the one form
   a visitor can use before launch. Fields take the established dark input
   pattern; the submit takes the single gold-outline control language; the
   vendor credit has no place in the maison.
   ========================================================================= */
.srfm-form,
.srfm-form-container {
	background: transparent;
	color: var(--text-body);
	font-family: var(--font-body);
}
.srfm-form .srfm-block-label,
.srfm-form .srfm-block-legend,
.srfm-form label {
	color: var(--taupe);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 0.85rem;
}
.srfm-form .srfm-description {
	color: var(--taupe);
}
.srfm-form input[type="text"],
.srfm-form input[type="email"],
.srfm-form input[type="tel"],
.srfm-form input[type="number"],
.srfm-form input[type="url"],
.srfm-form textarea,
.srfm-form select,
.srfm-form .srfm-dropdown-input {
	background: var(--ink);
	color: var(--paper);
	border: 1px solid var(--hairline-gold);
	border-radius: 0;
	padding: 0.8rem 0.9rem;
	font-family: var(--font-body);
	font-weight: 300;
	box-shadow: none;
}
.srfm-form input:focus,
.srfm-form textarea:focus,
.srfm-form select:focus {
	border-color: var(--gold);
	outline: none;
	box-shadow: none;
}
.srfm-form .srfm-button,
.srfm-form .srfm-btn-frontend,
.srfm-form button[type="submit"] {
	font-family: var(--font-body);
	font-weight: 400;
	text-transform: uppercase;
	font-size: var(--fs-nav);
	letter-spacing: 0.22em;
	color: var(--paper);
	background: transparent;
	border: 1px solid var(--gold);
	border-radius: 0;
	padding: 0.9rem 2rem;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}
.srfm-form .srfm-button:hover,
.srfm-form .srfm-btn-frontend:hover,
.srfm-form button[type="submit"]:hover {
	background: color-mix(in srgb, var(--gold) 16%, transparent);
	color: var(--paper);
}
.srfm-form .srfm-error-message,
.srfm-form .srfm-common-error-message {
	color: var(--paper);
	font-family: var(--font-body);
}
/* The vendor credit and decorative banner die quietly. */
.srfm-branding,
.srfm-form .srfm-bg-image {
	display: none !important;
}

/* ----- Motion: honour reduced-motion (CLAUDE.md s7) ----- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}
}
