/*
Theme Name: Better Home
Theme URI: https://betterhome.blog
Author: Better Home
Description: A warm, motion-rich home decor and home living journal theme. Arch-window hero, floor-plan room navigation, paint-chip palette, material library, Amazon "Shelf" with a swappable affiliate ID (Settings → Better Home), and an RSS "Wire" without dates.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: betterhome
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--bg: #e6c8ab;
	--bg2: #dfbd9b;
	--paper: #f4e2cf;
	--ink: #2a1d15;
	--ink2: #5e4636;
	--cream: #fbeee0;
	--terra: #b4532a;
	--terra-d: #9a4322;
	--olive: #4c5631;
	--ochre: #d19a3b;
	--plum: #5a2e3a;
	--blue: #22303d;
	--espresso: #241811;
	--line: rgba(42, 29, 21, .2);
	--serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
	--sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--r: 22px;
	--ease: cubic-bezier(.2, .75, .1, 1);
	--ease-io: cubic-bezier(.7, 0, .2, 1);
	--hdr: 78px;
	--gut: clamp(20px, 4.5vw, 64px);
	--plan-bg: #4c5631;
	--shelf-bg: #a8482a;
	--letters-bg: #d19a3b;
	--letters-ink: #2a1d15;
	--hero-f: none;
}

[data-mode="evening"] {
	--bg: #1d1511;
	--bg2: #251b15;
	--paper: #2c2119;
	--ink: #f1dcc5;
	--ink2: #c4a78d;
	--line: rgba(241, 220, 197, .16);
	--plan-bg: #2a301f;
	--shelf-bg: #5e2716;
	--letters-bg: #3a2a14;
	--letters-ink: #f1dcc5;
	--hero-f: brightness(.72) saturate(1.15) sepia(.12);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .6s var(--ease), color .6s var(--ease);
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--terra); color: var(--cream); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 12px; }
.center { text-align: center; margin-top: 56px; }

.eyebrow {
	display: inline-block;
	font: 600 .74rem/1.2 var(--sans);
	letter-spacing: .2em;
	text-transform: uppercase;
	margin-bottom: 18px;
}
.h2 {
	font: 400 clamp(2.6rem, 6.2vw, 5.6rem)/.94 var(--serif);
	letter-spacing: -.015em;
	margin-bottom: 22px;
}
.h2 em, .page-hero__title em, .cover__title em { font-style: italic; color: var(--terra); }
[data-mode="evening"] .h2 em, [data-mode="evening"] .page-hero__title em { color: var(--ochre); }

.arch { border-radius: 999px 999px var(--r) var(--r); overflow: hidden; isolation: isolate; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons & links */
.btn {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 16px 26px;
	border-radius: 999px;
	background: var(--ink); color: var(--bg);
	font: 600 .92rem/1 var(--sans); letter-spacing: .02em;
	transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { background: var(--terra); color: var(--cream); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--terra); }
.btn--sm { padding: 11px 18px; font-size: .82rem; }
.link {
	display: inline-flex; align-items: center; gap: 10px;
	font: 600 .95rem/1.2 var(--sans);
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
	padding-bottom: 6px;
	transition: background-size .45s var(--ease);
}
.link svg { width: 18px; transition: transform .35s var(--ease); }
.link:hover { background-size: 35% 1.5px; }
.link:hover svg { transform: translateX(5px); }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
	padding: 8px 12px 8px 10px; border-radius: 99px;
	background: color-mix(in srgb, var(--room, var(--terra)) 16%, transparent);
	color: var(--ink);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--room, var(--terra)); }

/* One warm colour treatment for every editorial photo, so they read as a single shoot */
.card__media, .room__img, .mat__img, .cover__media, .story__img, .page-hero__img, .about-strip__img, .page-body__img { position: relative; }
.card__media::after, .room__img::after, .mat__img::after, .cover__media::after, .story__img::after, .page-hero__img::after, .about-strip__img::after, .page-body__img::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
	background: linear-gradient(180deg, rgba(240, 178, 110, .16), rgba(150, 68, 28, .2));
	mix-blend-mode: multiply;
}
.card__media img, .room__img img, .mat__img img, .cover__media img, .story__img img, .page-hero__img img, .about-strip__img img, .page-body__img img, .eve__bg img, .wire__peek img {
	filter: sepia(.22) saturate(.9) contrast(1.04);
}
/* Fine paper grain over the whole page */
body::after {
	content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reveal on scroll */
.js .rv { opacity: 0; transform: translateY(42px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   Intro curtain (first view per session)
   ========================================================================== */
.intro { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.intro__panel { position: absolute; inset: 0; background: var(--espresso); animation: bh-lift 1s var(--ease-io) .85s forwards; }
.intro__mark { position: absolute; left: 50%; top: 50%; width: 64px; color: var(--ochre); transform: translate(-50%, -50%); animation: bh-fade .4s ease .9s forwards; }
.intro__mark path { stroke-dasharray: 140; stroke-dashoffset: 140; animation: bh-draw .8s var(--ease) .05s forwards; }
.intro__mark circle { transform-origin: 20px 22px; transform: scale(0); animation: bh-pop .5s var(--ease) .45s forwards; }
.seen .intro, .no-js .intro { display: none; }
@keyframes bh-lift { to { transform: translateY(-100%); } }
@keyframes bh-fade { to { opacity: 0; } }
@keyframes bh-draw { to { stroke-dashoffset: 0; } }
@keyframes bh-pop { to { transform: scale(1); } }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr {
	position: fixed; inset: 0 0 auto; z-index: 60;
	height: var(--hdr);
	transition: transform .5s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.hdr.is-solid { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.admin-bar .hdr { top: 32px; }
.admin-bar .hdr.is-hidden { transform: translateY(calc(-100% - 32px)); }
@media (max-width: 782px) { .admin-bar .hdr { top: 46px; } .admin-bar .hdr.is-hidden { transform: translateY(calc(-100% - 46px)); } }
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gut); max-width: 1600px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .mark { width: 26px; color: var(--terra); }
.logo .mark__sun { transform-origin: 20px 22px; transition: transform .6s var(--ease); }
.logo:hover .mark__sun { transform: translateY(-4px) scale(1.12); }
.logo__word { font: 400 1.75rem/1 var(--serif); letter-spacing: -.01em; }
.logo__word em { font-style: italic; color: var(--terra); margin-left: 1px; }
[data-mode="evening"] .logo .mark, [data-mode="evening"] .logo__word em { color: var(--ochre); }

.nav__list { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav__list a {
	font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
	padding: 8px 0;
	background: linear-gradient(var(--terra), var(--terra)) 0 100% / 0 1.5px no-repeat;
	transition: background-size .4s var(--ease);
}
.nav__list a:hover, .nav__list .current-menu-item a { background-size: 100% 1.5px; }
.hdr__tools { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.icon-btn svg { width: 21px; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }

/* The light switch */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 99px; }
.switch__plate { position: relative; width: 26px; height: 38px; border-radius: 7px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, .08); display: grid; place-items: center; }
.switch__toggle { width: 10px; height: 18px; border-radius: 3px; background: linear-gradient(var(--cream), #d8bfa6); box-shadow: 0 3px 0 #b49779, 0 4px 6px rgba(0, 0, 0, .18); transition: transform .35s var(--ease), box-shadow .35s; transform: translateY(-4px); }
[data-mode="evening"] .switch__toggle { transform: translateY(4px); box-shadow: 0 -3px 0 #6d5440, 0 -2px 6px rgba(0, 0, 0, .3); background: linear-gradient(#cdb093, #f6e6d4); }
.switch__lbl { position: relative; display: grid; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; overflow: hidden; height: 1em; }
.switch__lbl > span { grid-area: 1/1; transition: transform .45s var(--ease); }
.switch__eve { transform: translateY(110%); }
[data-mode="evening"] .switch__day { transform: translateY(-110%); }
[data-mode="evening"] .switch__eve { transform: none; }

.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* Full-screen menu */
.menu {
	position: fixed; inset: 0; z-index: 55;
	background: var(--terra); color: var(--cream);
	clip-path: circle(0 at calc(100% - 46px) 39px);
	transition: clip-path .9s var(--ease-io);
	overflow-y: auto;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 46px) 39px); }
.menu-open .hdr { color: var(--cream); }
.menu-open .hdr .logo .mark, .menu-open .hdr .logo__word em { color: var(--cream); }
.menu-open .hdr.is-solid { background: transparent; box-shadow: none; backdrop-filter: none; }
.menu__in { min-height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: calc(var(--hdr) + 40px) var(--gut) 40px; align-content: center; }
.menu__rooms a, .menu__pages a { display: inline-block; font: 400 clamp(2.4rem, 7vw, 4.6rem)/1.08 var(--serif); transition: transform .4s var(--ease), opacity .4s; }
.menu__pages a { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.menu li { overflow: hidden; }
.menu li a { transform: translateY(105%); transition: transform .8s var(--ease); }
.menu-open .menu li a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: .05s; } .menu-open .menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu li:nth-child(4) a { transition-delay: .15s; } .menu-open .menu li:nth-child(5) a { transition-delay: .2s; }
.menu-open .menu li:nth-child(6) a { transition-delay: .25s; }
.menu__rooms a:hover, .menu__pages a:hover { font-style: italic; }
.menu-open { overflow: hidden; }

/* Search overlay */
.search-ov { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.search-open .search-ov { opacity: 1; visibility: visible; }
.search-ov__form { width: min(900px, 90vw); }
.search-ov input { width: 100%; background: none; border: 0; border-bottom: 1.5px solid var(--ink); color: var(--ink); font: 400 clamp(2rem, 6vw, 4.4rem)/1.2 var(--serif); padding: 10px 0; outline: none; }
.search-ov input::placeholder { color: color-mix(in srgb, var(--ink) 35%, transparent); }
.search-ov__x { position: absolute; top: 18px; right: var(--gut); }

/* Cursor bubble (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--ink); color: var(--bg); display: none; place-items: center; transform: translate3d(-200px, -200px, 0); scale: 0; transition: scale .35s var(--ease); }
.cursor span { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .cursor { display: grid; } }
.cursor.on { scale: 1; }

/* ==========================================================================
   1 · Hero: the arch window
   ========================================================================== */
.hero { position: relative; height: 195vh; --p: 0; --aw: min(34vw, 500px); --at: 15vh; --ab: 7vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__light {
	position: absolute; inset: -20% -30%; pointer-events: none; z-index: 1;
	background: repeating-linear-gradient(112deg, transparent 0 70px, rgba(255, 238, 205, .55) 70px 130px, transparent 130px 230px);
	filter: blur(22px); opacity: .55; mix-blend-mode: soft-light;
	animation: bh-sun 22s ease-in-out infinite alternate;
	will-change: transform;
}
@keyframes bh-sun { from { transform: translateX(-6%) rotate(0); } to { transform: translateX(6%) rotate(2deg); } }
[data-mode="evening"] .hero__light { background: radial-gradient(circle at 70% 60%, rgba(255, 170, 80, .55), transparent 45%); filter: blur(30px); mix-blend-mode: screen; opacity: .45; animation: bh-glow 5s ease-in-out infinite alternate; }
@keyframes bh-glow { from { opacity: .3; } to { opacity: .55; } }

.hero__arch {
	position: absolute; inset: 0; z-index: 2;
	--s: calc((100vw - var(--aw)) / 2 * (1 - var(--p)));
	--rad: calc(var(--aw) / 2 * (1 - var(--p)));
	clip-path: inset(calc(var(--at) * (1 - var(--p))) var(--s) calc(var(--ab) * (1 - var(--p))) var(--s) round var(--rad) var(--rad) calc(18px * (1 - var(--p))) calc(18px * (1 - var(--p))));
	will-change: clip-path;
}
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(calc(1.22 - .22 * var(--p))); filter: var(--hero-f); transition: filter .8s; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(25, 14, 8, .72), rgba(25, 14, 8, .05) 55%); opacity: calc((var(--p) - .45) * 2); }

.hero__title {
	position: absolute; inset: 0; z-index: 3; pointer-events: none;
	font: 400 min(8.4vw, 9.6rem)/.9 var(--serif); letter-spacing: -.02em;
}
.hero__l1 { position: absolute; left: 0; right: 0; top: 50%; display: flex; justify-content: center; gap: calc(var(--aw) + 3vw); transform: translateY(-62%); }
.hero__l1 .ln:first-child { transform: translateX(calc(var(--p) * -40vw)); }
.hero__l1 .ln:last-child { transform: translateX(calc(var(--p) * 40vw)); }
.hero__l2 { position: absolute; left: 0; right: 0; bottom: calc(var(--ab) + 5vh); text-align: center; color: var(--cream); text-shadow: 0 4px 40px rgba(60, 25, 5, .35); opacity: calc(1 - var(--p) * 2.2); }
.hero__l2 em { font-style: italic; }
.ln { display: inline-block; overflow: hidden; padding: 0 .04em .08em; }
.ln > span { display: inline-block; }
.js .ln > span { transform: translateY(105%); animation: bh-up 1.2s var(--ease) forwards; animation-delay: calc(var(--d, 0s) + 1.05s); }
.js.seen .ln > span { animation-delay: calc(var(--d, 0s) + .1s); }
.hero__l1 .ln:last-child > span { --d: .08s; }
.hero__l2 .ln > span { --d: .2s; }
@keyframes bh-up { to { transform: none; } }

.hero__meta { position: absolute; z-index: 3; left: var(--gut); bottom: 6vh; max-width: 260px; font-size: .92rem; opacity: calc(1 - var(--p) * 3); }
.hero__meta p { margin: 0; color: var(--ink2); }
.hero__badge { position: absolute; z-index: 3; right: var(--gut); bottom: 5vh; width: 128px; height: 128px; opacity: calc(1 - var(--p) * 3); }
.hero__badge svg { width: 100%; height: 100%; animation: bh-spin 26s linear infinite; }
.hero__badge text { font: 600 8.4px var(--sans); fill: var(--ink); }
.hero__sun { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f5c56b, var(--terra)); box-shadow: 0 0 40px 8px rgba(225, 140, 60, .45); animation: bh-breathe 4s ease-in-out infinite; }
@keyframes bh-spin { to { transform: rotate(360deg); } }
@keyframes bh-breathe { 50% { transform: scale(1.18); box-shadow: 0 0 60px 14px rgba(225, 140, 60, .5); } }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 1.6vh; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font: 600 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: calc(1 - var(--p) * 4); }
.hero__scroll i { width: 1px; height: 26px; background: var(--ink); transform-origin: top; animation: bh-line 1.8s var(--ease) infinite; }
@keyframes bh-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__cover {
	position: absolute; z-index: 4; left: var(--gut); bottom: 8vh; max-width: min(720px, 86vw);
	color: var(--cream);
	opacity: calc((var(--p) - .62) * 3.4);
	transform: translateY(calc((1 - var(--p)) * 60px));
	pointer-events: none;
}
.hero.is-open .hero__cover { pointer-events: auto; }
.hero__cover strong { display: block; font: 400 clamp(2rem, 4.6vw, 4.2rem)/1 var(--serif); margin-bottom: 22px; }
.hero__cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; border-bottom: 1.5px solid; padding-bottom: 5px; }
.hero__cta svg { width: 18px; }

/* ==========================================================================
   2 · Marquee
   ========================================================================== */
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding: 26px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: bh-marq 48s linear infinite; }
.marquee span { font: italic 400 clamp(2.4rem, 5vw, 4.4rem)/1 var(--serif); white-space: nowrap; }
.marquee span.o { font-style: normal; color: transparent; -webkit-text-stroke: 1px var(--bg); }
.marquee i { font-style: normal; color: var(--ochre); font-size: 1.4rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes bh-marq { to { transform: translateX(-50%); } }

/* ==========================================================================
   3 · Floor plan
   ========================================================================== */
.plan { background: var(--plan-bg); color: #f1e6cf; padding: clamp(90px, 12vw, 170px) 0; transition: background .6s; }
.plan .h2 em { color: var(--ochre); }
.plan__head { max-width: 760px; margin-bottom: 60px; }
.plan__head p { color: rgba(241, 230, 207, .78); font-size: 1.08rem; }
.plan__stage { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(30px, 5vw, 90px); align-items: center; }
.fp { width: 100%; overflow: visible; }
.fp__room rect { fill: rgba(241, 230, 207, 0); transition: fill .55s var(--ease); }
.fp__room text { fill: #f1e6cf; transition: fill .4s; pointer-events: none; }
.fp__n { font: 600 10px var(--sans); letter-spacing: .2em; opacity: .7; }
.fp__name { font: 400 26px var(--serif); }
.fp__room:hover rect, .fp__room.is-on rect, .fp__room:focus-visible rect { fill: var(--room); }
.fp__room { cursor: pointer; outline: none; }
.fp__lines * { fill: none; stroke: #f1e6cf; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.fp__wall { stroke-width: 4; }
.fp__dash { stroke-width: 2; stroke-dasharray: 2 9; }
.fp__door { stroke-width: 1.2; opacity: .7; }
.fp__furn { stroke-width: 1.2; opacity: .55; }
.fp__compass { font: 600 11px var(--sans); fill: #f1e6cf; letter-spacing: .2em; opacity: .6; }
.js .fp__wall, .js .fp__door, .js .fp__furn { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.js .fp__furn { transition-delay: .8s; transition-duration: 2s; }
.js .fp__door { transition-delay: 1.2s; }
.js .plan.in .fp__wall, .js .plan.in .fp__door, .js .plan.in .fp__furn { stroke-dashoffset: 0; }
.plan__chips { display: none; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.plan__chips button { padding: 9px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(241, 230, 207, .4); font: 600 .78rem/1 var(--sans); letter-spacing: .08em; transition: background .3s, box-shadow .3s; }
.plan__chips button.is-on { background: var(--room); box-shadow: none; }

.plan__panel { display: grid; }
.room { grid-area: 1/1; display: grid; gap: 26px; visibility: hidden; }
.room.is-on { visibility: visible; }
.room__img { aspect-ratio: 4/5; height: min(60vh, 540px); width: auto; max-width: 100%; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease-io); background: rgba(0, 0, 0, .15); }
.room.is-on .room__img { clip-path: inset(0); }
.room__img img { transform: scale(1.15); transition: transform 1.6s var(--ease); }
.room.is-on .room__img img { transform: none; }
.room__txt { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease); }
.room.is-on .room__txt { opacity: 1; transform: none; transition-delay: .35s; }
.room__count { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--room); filter: brightness(1.5); }
.room h3 { font: 400 clamp(2.2rem, 3.6vw, 3.4rem)/1 var(--serif); margin: 10px 0 12px; }
.room p { color: rgba(241, 230, 207, .78); max-width: 420px; }

/* ==========================================================================
   4 · Cover story
   ========================================================================== */
.cover { padding: clamp(90px, 12vw, 180px) 0; }
.cover__in { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.cover__media { aspect-ratio: 4/5; }
.cover__media img { transform: translateY(var(--py, 0)) scale(1.12); }
.cover__title { font: 400 clamp(2.6rem, 5.4vw, 5.2rem)/.98 var(--serif); letter-spacing: -.015em; margin-bottom: 24px; }
.cover__title a { background: linear-gradient(currentColor, currentColor) 0 92% / 0 2px no-repeat; transition: background-size .7s var(--ease); }
.cover__title a:hover { background-size: 100% 2px; }
.cover__txt p { font-size: 1.12rem; color: var(--ink2); max-width: 520px; margin-bottom: 32px; }
.cover__time { display: block; margin-top: 22px; font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); }

/* ==========================================================================
   5 · Journal + cards
   ========================================================================== */
.journal { padding: clamp(80px, 10vw, 150px) 0; background: var(--bg2); transition: background .6s; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.sec-head__p { max-width: 560px; color: inherit; opacity: .8; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 10px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px currentColor; font: 600 .78rem/1 var(--sans); letter-spacing: .06em; opacity: .7; transition: background .3s, color .3s, opacity .3s; }
.filter:hover { opacity: 1; }
.filter.is-on { background: var(--ink); color: var(--bg); box-shadow: none; opacity: 1; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 30px; }
.grid--mag .card--wide { grid-column: span 2; }
.card__link { display: block; }
.card__media { aspect-ratio: 4/5; overflow: hidden; border-radius: 999px 999px var(--r) var(--r); background: color-mix(in srgb, var(--room) 25%, var(--bg)); }
.card--wide .card__media { aspect-ratio: 16/10.4; border-radius: var(--r); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.06); }
.card__body { padding-top: 22px; }
.card__title { font: 400 clamp(1.6rem, 2.2vw, 2.1rem)/1.06 var(--serif); margin: 14px 0 10px; }
.card--wide .card__title { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.card__title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.card__link:hover .card__title span { background-size: 100% 1px; }
.card__ex { color: var(--ink2); font-size: .98rem; margin: 12px 0 14px; }
.card__more { display: inline-flex; align-items: center; gap: 8px; font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.card__more svg { width: 16px; transition: transform .35s var(--ease); }
.card__link:hover .card__more svg { transform: translateX(5px); }
.card.is-hidden { display: none; }
.card.pop { animation: bh-pop-in .7s var(--ease) both; }
@keyframes bh-pop-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.grid__empty { text-align: center; padding: 40px; color: var(--ink2); }

/* ==========================================================================
   6 · Palette
   ========================================================================== */
.palette { background: var(--sw); color: var(--swt); padding: clamp(90px, 11vw, 170px) 0; transition: background-color .9s var(--ease), color .9s var(--ease); overflow: hidden; }
.palette__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.palette__txt { position: relative; z-index: 12; }
.palette__name { font: 400 clamp(3rem, 6vw, 6.6rem)/.92 var(--serif); letter-spacing: -.02em; margin-bottom: 26px; }
.palette__name.swap { animation: bh-swap .7s var(--ease); }
@keyframes bh-swap { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.palette__tip { font-size: 1.12rem; max-width: 470px; opacity: .9; }
.palette__hex { font: 600 .8rem/1 var(--sans); letter-spacing: .2em; opacity: .7; }
.chips { display: flex; justify-content: center; align-items: flex-end; height: 360px; padding-top: 40px; }
@media (max-width: 1240px) and (min-width: 1001px) { .palette__in { grid-template-columns: 1fr; } .chips { justify-content: flex-start; padding-left: 60px; } }
.chip-card {
	position: relative; flex: 0 0 auto;
	width: 132px; height: 212px; margin: 0 -30px;
	background: #fbf4ea; border-radius: 14px; padding: 10px 10px 14px;
	display: flex; flex-direction: column; gap: 12px; text-align: left; color: #2a1d15;
	box-shadow: 0 18px 40px rgba(20, 10, 4, .25);
	transform-origin: 50% 120%;
	transform: rotate(calc((var(--i) - 2.5) * 8deg)) translateY(calc(var(--lift, 0) * -1px));
	transition: transform .6s var(--ease), box-shadow .6s;
	z-index: var(--i);
}
.chip-card__color { flex: 1; border-radius: 8px; background: var(--c); }
.chip-card__lbl b { display: block; font: 400 1.15rem/1.1 var(--serif); }
.chip-card__lbl small { font: 600 .62rem/1 var(--sans); letter-spacing: .2em; opacity: .55; }
.chip-card:hover { --lift: 26; z-index: 10; }
.chip-card.is-on { --lift: 48; z-index: 11; box-shadow: 0 30px 60px rgba(20, 10, 4, .35); }

/* ==========================================================================
   7 · Material library (horizontal)
   ========================================================================== */
.mats { position: relative; background: var(--espresso); color: #efdcc6; }
.mats__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4vh; }
.mats .h2 em { color: var(--ochre); }
.mats__head { padding-top: var(--hdr); }
.mats__track { display: flex; gap: clamp(18px, 2.4vw, 40px); padding: 0 var(--gut); width: max-content; will-change: transform; }
.mat { margin: 0; width: clamp(240px, 24vw, 380px); flex: 0 0 auto; }
.mat__img { aspect-ratio: 4/5; max-height: 52vh; overflow: hidden; border-radius: var(--r); }
.mat:nth-child(odd) .mat__img { border-radius: 999px 999px var(--r) var(--r); }
.mat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mat:hover .mat__img img { transform: scale(1.07); }
.mat figcaption { padding-top: 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.mat__n { font: 600 .7rem/2.4 var(--sans); letter-spacing: .2em; color: var(--ochre); }
.mat strong { font: 400 1.9rem/1.1 var(--serif); }
.mat p { grid-column: 2; margin: 6px 0 0; font-size: .92rem; color: rgba(239, 220, 198, .7); }
.mats__bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 2.2vh; height: 1px; background: rgba(239, 220, 198, .2); }
.mats__bar i { position: absolute; inset: 0; background: var(--ochre); transform-origin: left; transform: scaleX(var(--mp, 0)); }

/* ==========================================================================
   8 · The Shelf — products displayed in arched alcoves on oak shelves
   ========================================================================== */
.shelf {
	background:
		radial-gradient(ellipse 70% 50% at 15% 0%, rgba(255, 196, 140, .2), transparent 70%),
		radial-gradient(ellipse 60% 60% at 90% 100%, rgba(50, 15, 0, .3), transparent 70%),
		var(--shelf-bg);
	color: #fbe9dc; padding: clamp(90px, 11vw, 170px) 0; transition: background-color .6s;
}
.shelf .h2 em { color: #f6c46e; }
.shelf .filter.is-on { background: #fbe9dc; color: var(--shelf-bg); }
.shelf__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 76px 28px; }
.prod__link { display: flex; flex-direction: column; height: 100%; }
.prod__plinth {
	position: relative; aspect-ratio: 4/5;
	border-radius: 999px 999px 8px 8px;
	background: radial-gradient(ellipse 80% 60% at 50% 32%, #fdf5ea 0%, #f2e1cc 62%, #e5c9ab 100%);
	box-shadow: inset 0 -40px 50px -30px rgba(110, 50, 15, .35), inset 0 0 0 1px rgba(255, 245, 230, .5), inset 0 14px 30px -10px rgba(110, 50, 15, .18);
	transition: transform .7s var(--ease);
}
.prod__glow { position: absolute; left: 18%; right: 18%; bottom: 11%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 40, 10, .32), transparent); transition: transform .7s var(--ease), opacity .7s; }
.prod__plinth img { position: absolute; left: 15%; top: 17%; width: 70%; height: 64%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.prod__plinth::after { /* the oak shelf, continuous across the row */
	content: ""; position: absolute; left: -14px; right: -14px; bottom: -16px; height: 16px;
	background: linear-gradient(#b27c50 0 2px, #8a5a36 2px 9px, #6a4122 9px);
	box-shadow: 0 16px 24px -8px rgba(30, 8, 0, .55);
}
.prod__link:hover .prod__plinth img { transform: translateY(-10px) scale(1.05); }
.prod--photo .prod__plinth img { left: 12%; top: 10%; width: 76%; height: 72%; object-fit: cover; mix-blend-mode: normal; border-radius: 999px 999px 10px 10px; box-shadow: 0 18px 30px -14px rgba(90, 40, 10, .45), 0 0 0 5px rgba(255, 248, 238, .7); }
.prod--photo .prod__glow { opacity: 0; }
.prod__link:hover .prod--photo .prod__plinth img, .prod--photo .prod__link:hover .prod__plinth img { transform: translateY(-6px); }
.prod__link:hover .prod__glow { transform: scaleX(.8); opacity: .7; }
.prod__tag { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; font: 600 .6rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: rgba(42, 29, 21, .08); color: #6a4c38; }
.prod__body { padding-top: 44px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod__brand { display: flex; align-items: baseline; gap: 10px; font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 233, 220, .75); }
.prod__n { font: italic 400 1.9rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: #f6c46e; }
.prod__name { font: 400 1.5rem/1.1 var(--serif); }
.prod__note { font-size: .9rem; opacity: .82; margin: 0; }
.prod__meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; margin-top: auto; padding-top: 6px; }
.stars { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E"); width: 80px; height: 15px; background: linear-gradient(90deg, #f6c46e var(--pct), rgba(251, 233, 220, .3) var(--pct)); -webkit-mask: var(--star) 0 0 / 16px 15px repeat-x; mask: var(--star) 0 0 / 16px 15px repeat-x; }
.prod .btn { align-self: flex-start; margin-top: 10px; background: #fbe9dc; color: #2a1d15; }
.prod .btn svg { width: 15px; height: 15px; }
.prod__link:hover .btn { background: var(--ink); color: #fbe9dc; }
[data-mode="evening"] .prod__link:hover .btn { background: #f6c46e; color: #2a1d15; }
[data-mode="evening"] .prod__plinth { background: radial-gradient(ellipse 80% 60% at 50% 32%, #f7e9d6 0%, #e8cfb1 62%, #d4b08c 100%); }
.prod.is-hidden { display: none; }
.prod.pop { animation: bh-pop-in .7s var(--ease) both; }
.disclosure { margin: 70px 0 0; font-size: .8rem; opacity: .7; }

/* ==========================================================================
   9 · Evening quote
   ========================================================================== */
.eve { position: relative; min-height: 92vh; display: grid; align-items: center; color: #fbeee0; overflow: hidden; }
.eve__bg { position: absolute; inset: -8% 0; }
.eve__bg img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)); }
.eve::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 30% 60%, rgba(30, 16, 8, .45), rgba(20, 10, 5, .8)); }
.eve__in { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 120px; }
.eve__quote { font: 400 clamp(2.2rem, 5.4vw, 5rem)/1.04 var(--serif); max-width: 1180px; letter-spacing: -.01em; margin-bottom: 34px; }
.js .eve__quote .w { opacity: .16; transition: opacity .3s linear; }
.eve__quote .w.on { opacity: 1; }

/* ==========================================================================
   10 · The Wire
   ========================================================================== */
.wire { background: var(--blue); color: #ece2d3; padding: clamp(90px, 11vw, 160px) 0; position: relative; }
.wire .h2 em { color: var(--ochre); }
.wire__list { counter-reset: w; border-bottom: 1px solid rgba(236, 226, 211, .18); }
.wire__row a { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 24px; padding: 26px 0; border-top: 1px solid rgba(236, 226, 211, .18); transition: padding .5s var(--ease), color .4s; }
.wire__n { font: 600 .74rem/1 var(--sans); letter-spacing: .2em; opacity: .55; }
.wire__thumb { display: none; }
.wire__t { font: 400 clamp(1.4rem, 2.4vw, 2.2rem)/1.15 var(--serif); }
.wire__s { display: inline-flex; align-items: center; gap: 8px; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .65; white-space: nowrap; }
.wire__s svg { width: 15px; }
.wire__row a:hover { padding-left: 22px; color: var(--ochre); }
.wire__row a:hover .wire__t { font-style: italic; }
.wire__peek { position: fixed; left: 0; top: 0; z-index: 30; width: 260px; aspect-ratio: 4/5; border-radius: 160px 160px 16px 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-400px, -400px, 0); scale: .6; transition: opacity .35s, scale .45s var(--ease); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.wire__peek img { width: 100%; height: 100%; object-fit: cover; }
.wire__peek.on { opacity: 1; scale: 1; }
.wire__note { margin-top: 40px; font-size: .82rem; opacity: .6; }

/* ==========================================================================
   11 · About strip + newsletter
   ========================================================================== */
.about-strip { padding: clamp(90px, 12vw, 180px) 0; }
.about-strip__in { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(30px, 7vw, 120px); align-items: center; }
.about-strip__img { aspect-ratio: 4/5; }
.about-strip__img img { transform: translateY(var(--py, 0)) scale(1.12); }
.about-strip__txt p { font-size: 1.1rem; color: var(--ink2); max-width: 560px; }
.tick { margin: 26px 0 34px; display: grid; gap: 12px; }
.tick li { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.tick li::before { content: ""; flex: 0 0 auto; width: 14px; height: 18px; border-radius: 99px 99px 2px 2px; background: var(--terra); }

.letters { background: var(--letters-bg); color: var(--letters-ink); padding: clamp(80px, 10vw, 140px) 0; transition: background .6s; }
.letters__in { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; }
.letters .h2 em { color: var(--letters-ink); }
.letters__copy p { max-width: 480px; font-size: 1.08rem; }
.letters__field { display: flex; gap: 8px; background: rgba(255, 248, 236, .55); padding: 7px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(42, 29, 21, .15); }
[data-mode="evening"] .letters__field { background: rgba(255, 248, 236, .08); }
.letters__field input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 20px; color: inherit; font-size: 1.02rem; outline: none; }
.letters__field input::placeholder { color: inherit; opacity: .5; }
.letters__msg { margin: 14px 0 0 20px; font-size: .86rem; opacity: .8; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr { background: #1c130e; color: #e9cfb3; padding: 100px 0 30px; overflow: hidden; }
.ftr .logo .mark, .ftr .logo__word em { color: var(--ochre); }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ftr__brand p { margin-top: 20px; max-width: 340px; color: rgba(233, 207, 179, .7); font-size: .95rem; }
.ftr__list { display: grid; gap: 10px; }
.ftr__list a { color: rgba(233, 207, 179, .82); transition: color .3s, padding .3s var(--ease); }
.ftr__list a:hover { color: var(--ochre); padding-left: 6px; }
.ftr__word {
	font: 400 clamp(5rem, 19vw, 19rem)/.8 var(--serif); letter-spacing: -.03em; white-space: nowrap;
	margin: 80px 0 30px; text-align: center;
	color: transparent; -webkit-text-stroke: 1px rgba(233, 207, 179, .4);
	background: linear-gradient(90deg, var(--ochre), var(--terra)) 0 0 / 0 100% no-repeat;
	-webkit-background-clip: text; background-clip: text;
	transition: background-size 1.4s var(--ease);
}
.ftr__word em { font-style: italic; }
.ftr__word:hover, .ftr.in .ftr__word { background-size: 100% 100%; }
.ftr__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .8rem; color: rgba(233, 207, 179, .55); border-top: 1px solid rgba(233, 207, 179, .14); padding-top: 24px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { padding: calc(var(--hdr) + clamp(60px, 9vw, 120px)) 0 clamp(50px, 6vw, 80px); }
.page-hero__title { font: 400 clamp(3rem, 8vw, 7.4rem)/.92 var(--serif); letter-spacing: -.02em; margin-bottom: 24px; max-width: 1100px; }
.page-hero__dek { font-size: 1.15rem; max-width: 620px; color: var(--ink2); }
.page-hero__split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; }
.page-hero__img { aspect-ratio: 4/5; max-height: 70vh; }
.page-hero--room .page-hero__title { color: color-mix(in srgb, var(--room) 72%, #2a1d15); }
[data-mode="evening"] .page-hero--room .page-hero__title { color: color-mix(in srgb, var(--room) 70%, #fff); }
.page-hero--shelf { background: var(--shelf-bg); color: #fbe9dc; }
.page-hero--shelf .page-hero__dek { color: rgba(251, 233, 220, .8); }
.page-hero--shelf .page-hero__title em { color: #f6c46e; }
.shelf--page { padding-top: 0; }
body:has(.page-hero--shelf) .hdr:not(.is-solid), body:has(.page-hero--wire) .hdr:not(.is-solid) { color: #fbe9dc; }
body:has(.page-hero--shelf) .hdr:not(.is-solid) .logo .mark, body:has(.page-hero--shelf) .hdr:not(.is-solid) .logo__word em,
body:has(.page-hero--wire) .hdr:not(.is-solid) .logo .mark, body:has(.page-hero--wire) .hdr:not(.is-solid) .logo__word em { color: #f6c46e; }
.page-hero--wire { background: var(--blue); color: #ece2d3; }
.page-hero--wire .page-hero__dek { color: rgba(236, 226, 211, .75); }
.page-hero--wire .page-hero__title em { color: var(--ochre); }
.wire--page { padding-top: 10px; }
.room-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.room-pills a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font: 600 .8rem/1 var(--sans); transition: background .3s, color .3s; }
.room-pills a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--room); }
.room-pills a:hover { background: var(--ink); color: var(--bg); }
.listing { padding: 20px 0 clamp(90px, 10vw, 150px); }
.empty { font: 400 1.8rem/1.3 var(--serif); padding: 40px 0; }
.pager { margin-top: 70px; }
.pager .nav-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pager .page-numbers { min-width: 46px; height: 46px; display: inline-grid; place-items: center; padding: 0 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.pager .page-numbers.current, .pager a.page-numbers:hover { background: var(--ink); color: var(--bg); }
.page-body { padding-bottom: clamp(80px, 10vw, 140px); }
.page-body__img { aspect-ratio: 16/8; margin-bottom: 60px; border-radius: var(--r); }
.page-body .prose { margin: 0 auto; }
.sform { display: flex; gap: 8px; max-width: 520px; margin-top: 24px; }
.sform input { flex: 1; padding: 14px 20px; border-radius: 99px; border: 0; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* 404 */
.nf { padding: calc(var(--hdr) + 80px) 0 120px; }
.nf__in { display: grid; grid-template-columns: .7fr 1fr; gap: 60px; align-items: center; }
.nf__arch { aspect-ratio: 3/4; border-radius: 999px 999px 20px 20px; background: linear-gradient(160deg, var(--ochre), var(--terra)); display: grid; place-items: center; color: var(--cream); font: italic 400 clamp(4rem, 10vw, 9rem)/1 var(--serif); box-shadow: inset 0 0 0 14px color-mix(in srgb, var(--bg) 40%, transparent); }

/* ==========================================================================
   Single story
   ========================================================================== */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--room, var(--terra)); transform-origin: left; transform: scaleX(var(--rp, 0)); }
.story__head { padding: calc(var(--hdr) + clamp(40px, 6vw, 90px)) 0 clamp(50px, 7vw, 100px); }
.story__head-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.story__title { font: 400 clamp(2.8rem, 6vw, 5.8rem)/.95 var(--serif); letter-spacing: -.02em; margin: 22px 0 24px; }
.story__dek { font-size: 1.2rem; color: var(--ink2); max-width: 580px; }
.story__meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink2); }
.story__meta span + span::before { content: "✦"; margin-right: 22px; color: var(--room); }
.story__img { aspect-ratio: 4/5; max-height: 78vh; }
.story__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 6vw, 110px); padding-bottom: 60px; }
.prose { max-width: 700px; font-size: 1.12rem; line-height: 1.78; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose .lede::first-letter { float: left; font: 400 5.6em/.8 var(--serif); padding: .06em .12em 0 0; color: var(--room, var(--terra)); }
.prose h2 { font: 400 clamp(2rem, 3.2vw, 2.7rem)/1.05 var(--serif); margin-top: 1.8em; }
.prose h3 { font: 600 1.15rem/1.3 var(--sans); margin-top: 1.6em; }
.prose a { color: inherit; background: linear-gradient(var(--room, var(--terra)), var(--room, var(--terra))) 0 100% / 100% 1.5px no-repeat; padding-bottom: 1px; transition: background-size .3s, color .3s; }
.prose a:hover { color: var(--room, var(--terra)); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 28px; margin: .5em 0; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 14px; border-radius: 99px 99px 2px 2px; background: var(--room, var(--terra)); }
.prose ol { list-style: decimal; }
.prose ol li { margin: .5em 0; padding-left: 6px; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--room, var(--terra)); font: italic 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.2 var(--serif); }
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--r); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .85rem; color: var(--ink2); margin-top: 10px; }
.prose .tip { background: var(--paper); border-radius: var(--r); padding: 24px 28px; font-size: 1rem; }
.prose .tip strong { display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; color: var(--room, var(--terra)); }
.story__aside { position: relative; }
.shop-story { position: sticky; top: calc(var(--hdr) + 30px); background: var(--paper); border-radius: var(--r); padding: 26px; }
.mini { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.mini img { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; }
.mini span { font-size: .86rem; line-height: 1.35; }
.mini b { display: block; font: 600 .66rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.mini em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 700; font-size: .76rem; margin-top: 6px; color: var(--room, var(--terra)); }
.mini em svg { width: 13px; }
.mini:hover span { text-decoration: underline; text-underline-offset: 3px; }
.shop-story .disclosure { margin-top: 14px; font-size: .72rem; }
.story__foot { padding-bottom: 80px; }
.share { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--line); max-width: 700px; }
.share .eyebrow { margin: 0; }
.share a { font-weight: 600; font-size: .9rem; }
.share a:hover { color: var(--terra); }
.related { background: var(--bg2); padding: clamp(80px, 10vw, 140px) 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.shelf__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ftr__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
	.nav { display: none; }
	.burger { display: block; }
	.switch__lbl { display: none; }
	.plan__stage, .cover__in, .about-strip__in, .letters__in, .palette__in, .story__head-in, .page-hero__split, .nf__in { grid-template-columns: 1fr; }
	.plan__chips { display: flex; }
	.plan__panel { margin-top: 10px; }
	.room { grid-template-columns: .8fr 1fr; align-items: center; }
	.room__img { width: 100%; height: auto; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.story__body { grid-template-columns: 1fr; }
	.shop-story { position: static; }
	.story__img, .page-hero__img { max-width: 520px; }
	.chips { height: 320px; }
	.cover__media, .about-strip__img { max-width: 560px; }
	.mats { height: auto !important; }
	.mats__sticky { position: relative; height: auto; padding: 100px 0; }
	.mats__head { padding-top: 0; }
	.mats__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 20px; scrollbar-width: none; }
	.mats__track::-webkit-scrollbar { display: none; }
	.mat { scroll-snap-align: start; width: 64vw; max-width: 340px; }
	.mats__bar { display: none; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	:root { --hdr: 66px; }
	.hero { --aw: 74vw; --at: 31vh; --ab: 5vh; height: 175vh; }
	.hero__title { font-size: 15vw; }
	.hero__l1 { top: calc(var(--hdr) + 3vh); transform: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 0 var(--gut); }
	.hero__l1 .ln:last-child { align-self: flex-end; }
	.hero__l2 { bottom: calc(var(--ab) + 4vh); font-size: 16vw; }
	.hero__meta { display: none; }
	.hero__badge { width: 76px; height: 76px; top: calc(var(--hdr) + 4vh + 14vw); bottom: auto; left: var(--gut); right: auto; }
	.hero__sun { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
	.hero__badge text { font-size: 8.4px; }
	.hero__scroll { display: none; }
	.hero__cover { bottom: 6vh; }
	.room { grid-template-columns: 1fr; }
	.room__img { aspect-ratio: 5/4; border-radius: 999px 999px var(--r) var(--r); }
	.fp__name { font-size: 30px; }
	.fp__n { font-size: 13px; }
	.grid, .grid--mag .card--wide { grid-template-columns: 1fr; grid-column: auto; }
	.card--wide .card__media { aspect-ratio: 4/5; border-radius: 999px 999px var(--r) var(--r); }
	.shelf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 18px; }
	.prod__name { font-size: 1.2rem; }
	.prod__note { display: none; }
	.prod__body { padding-top: 36px; }
	.prod__n { font-size: 1.4rem; }
	.prod__tag { display: none; }
	.prod .btn { padding: 10px 12px; font-size: .74rem; }
	.prod__count { display: none; }
	.chips { justify-content: flex-start; overflow-x: auto; height: auto; padding: 60px 40px 30px 56px; margin: 0 calc(var(--gut) * -1); scrollbar-width: none; }
	.chips::-webkit-scrollbar { display: none; }
	.chip-card { margin: 0 -12px; width: 128px; height: 200px; }
	.wire__row a { grid-template-columns: 64px 1fr; gap: 16px; }
	.wire__n { display: none; }
	.wire__thumb { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 40px 40px 8px 8px; grid-row: span 2; }
	.wire__s { grid-column: 2; }
	.wire__row a:hover { padding-left: 0; }
	.letters__field { flex-direction: column; border-radius: 22px; }
	.letters__field input { padding: 14px; }
	.letters__field .btn { justify-content: center; }
	.ftr__top { grid-template-columns: 1fr; }
	.menu__in { grid-template-columns: 1fr; align-content: start; }
	.sec-head { margin-bottom: 40px; }
	.filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); scrollbar-width: none; }
	.filters::-webkit-scrollbar { display: none; }
	.filter { white-space: nowrap; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .rv { opacity: 1; transform: none; }
	.intro { display: none; }
	.hero { height: 100vh; }
	.js .ln > span { transform: none; }
}
