/* ==========================================================================
   Clay Mom — Studio Stoneware
   Order: tokens · base · chrome · figures · cards · front · archive · article
          · body copy · per-layout · sidebar · related · footer · utility
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	--bone: #f6f1e7;
	--paper: #fdfbf6;
	--paper-2: #f1eade;
	--ink: #241c16;
	--ink-2: #5a4e45;
	--ink-3: #8b7d71;
	--rule: #e2d8c7;
	--rule-2: #efe7d9;

	--terracotta: #b4603a;
	--sage: #77896c;
	--ochre: #c2913f;
	--slate: #4e6472;
	--rose: #bc8377;
	--umber: #6e4e38;

	--accent: var(--terracotta);
	--accent-soft: #f0dcd1;

	--dark: #2b241e;
	--dark-2: #3a3129;

	--ff-d: "Fraunces", "Iowan Old Style", Georgia, serif;
	--ff-b: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-s: 6px;
	--r-m: 12px;
	--r-l: 20px;
	--r-xl: 28px;

	--sh-s: 0 1px 2px rgba(58, 44, 32, .06), 0 3px 8px rgba(58, 44, 32, .05);
	--sh-m: 0 2px 4px rgba(58, 44, 32, .06), 0 10px 24px rgba(58, 44, 32, .08);
	--sh-l: 0 4px 8px rgba(58, 44, 32, .07), 0 22px 50px rgba(58, 44, 32, .12);

	--wrap: 1240px;
	--read: 68ch;

	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Colourways set --accent locally; every tinted component reads that one var. */
.cw-terracotta { --accent: var(--terracotta); --accent-soft: #f2ddd2; }
.cw-sage       { --accent: var(--sage);       --accent-soft: #e3e8dd; }
.cw-ochre      { --accent: var(--ochre);      --accent-soft: #f4e7cc; }
.cw-slate      { --accent: var(--slate);      --accent-soft: #dbe3e8; }
.cw-rose       { --accent: var(--rose);       --accent-soft: #f4e0da; }
.cw-umber      { --accent: var(--umber);      --accent-soft: #e8ddd2; }

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
	margin: 0;
	background: var(--bone);
	color: var(--ink);
	font-family: var(--ff-b);
	font-size: 17px;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* The whole page sits on a faint clay tooth. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image: var(--grain);
	opacity: .035;
	pointer-events: none;
	z-index: 9999;
}

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

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

h1, h2, h3, h4 {
	font-family: var(--ff-d);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.012em;
	margin: 0;
	font-variation-settings: "SOFT" 22, "WONK" 1;
}

p { margin: 0 0 1.1em; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

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

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink);
	color: var(--paper);
	padding: 12px 18px;
	z-index: 10000;
	border-radius: 0 0 var(--r-s) 0;
}
.skip:focus { left: 0; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

.main { display: block; min-height: 50vh; }

/* Shared small caps label. */
.lbl, .kicker, .sbox-lbl, .toc-lbl, .make-tag, .hero-eyebrow, .ps-lbl, .arch-kick, .share-lbl, .drawer-lbl {
	font-family: var(--ff-b);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   3. Masthead
   -------------------------------------------------------------------------- */

.mast {
	position: sticky;
	top: 0;
	z-index: 200;
	background: color-mix(in srgb, var(--bone) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--rule);
}

.mast-in {
	width: min(100% - 44px, var(--wrap));
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 28px;
	height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { color: var(--terracotta); display: grid; place-items: center; }
.brand-txt { font-family: var(--ff-d); font-size: 23px; letter-spacing: -.02em; line-height: 1; }
.brand-txt .b1 { font-weight: 600; }
.brand-txt .b2 { font-weight: 300; font-style: italic; color: var(--terracotta); }

.nav { flex: 1; min-width: 0; }
.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 22px;
	align-items: center;
	overflow-x: auto;
	scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink-2);
	white-space: nowrap;
	padding: 6px 0;
	position: relative;
}
.nav-list a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%; bottom: 2px;
	height: 1.5px;
	background: var(--terracotta);
	transition: right .28s cubic-bezier(.2,.7,.3,1);
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after { right: 0; }

.mast-act { display: flex; gap: 6px; flex: none; }
.isearch, .iburger {
	width: 38px; height: 38px;
	display: grid; place-items: center;
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: 50%;
	color: var(--ink-2);
	transition: background .2s, color .2s, border-color .2s;
}
.isearch:hover, .iburger:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.iburger { flex-direction: column; gap: 4px; }
.iburger span { display: block; width: 15px; height: 1.5px; background: currentColor; }

.searchbar { border-top: 1px solid var(--rule); background: var(--paper); }
.searchbar form {
	width: min(100% - 44px, 720px);
	margin-inline: auto;
	display: flex;
	gap: 10px;
	padding: 18px 0;
}
.searchbar input {
	flex: 1;
	font: inherit;
	padding: 12px 16px;
	border: 1px solid var(--rule);
	border-radius: var(--r-s);
	background: var(--bone);
	color: var(--ink);
}
.searchbar input:focus { outline: none; border-color: var(--terracotta); }
.searchbar button {
	padding: 12px 22px;
	border: 0;
	border-radius: var(--r-s);
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	font-size: 15px;
}

/* Drawer — all eleven sections */
.drawer {
	position: fixed;
	inset: 68px 0 auto;
	z-index: 190;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
	box-shadow: var(--sh-l);
	max-height: calc(100vh - 68px);
	overflow-y: auto;
}
.drawer-in { width: min(100% - 44px, var(--wrap)); margin-inline: auto; padding: 30px 0 40px; }
.drawer-lbl { margin: 0 0 18px; }
.drawer-list {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 2px 28px;
}
.drawer-list li { border-top: 1px solid var(--rule-2); padding: 14px 0; }
.drawer-list a {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	text-decoration: none;
	font-family: var(--ff-d);
	font-size: 19px;
	font-weight: 500;
}
.drawer-list a:hover .dn { color: var(--accent); }
.drawer-list .dn { transition: color .2s; }
.drawer-list .dc { font-family: var(--ff-b); font-size: 12px; color: var(--ink-3); font-weight: 600; }
.drawer-list .dd { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; margin-top: 3px; }

/* --------------------------------------------------------------------------
   4. Figures — the one image treatment
   -------------------------------------------------------------------------- */

.marble {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--r-m);
	background: var(--accent-soft);
	isolation: isolate;
}
.marble .ink-l {
	position: absolute; inset: 0;
	background:
		radial-gradient(120% 80% at 20% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%),
		linear-gradient(155deg, var(--accent-soft), color-mix(in srgb, var(--accent) 14%, var(--paper-2)));
	z-index: 0;
}
.marble .photo, .marble img {
	position: relative;
	z-index: 1;
	width: 100%; height: 100%;
	object-fit: cover;
}
.marble .grain {
	position: absolute; inset: 0; z-index: 2;
	background-image: var(--grain);
	opacity: .12;
	mix-blend-mode: multiply;
	pointer-events: none;
}
.marble .sheen {
	position: absolute; inset: 0; z-index: 3;
	background: linear-gradient(158deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,0) 42%);
	pointer-events: none;
}
.marble.noimg::after {
	content: "";
	position: absolute; inset: 0; z-index: 2;
	background: radial-gradient(60% 40% at 50% 55%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
}

.r45 { aspect-ratio: 4 / 5; }
.r34 { aspect-ratio: 3 / 4; }
.r23 { aspect-ratio: 2 / 3; }
.r32 { aspect-ratio: 3 / 2; }
.r11 { aspect-ratio: 1 / 1; }

.save {
	position: absolute;
	top: 10px; right: 10px;
	z-index: 5;
	border: 0;
	border-radius: 100px;
	padding: 8px 15px;
	background: #c8232c;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .02em;
	box-shadow: 0 3px 10px rgba(0,0,0,.22);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .22s, transform .22s, background .2s;
}
.save:hover { background: #a81b24; }
.pin-card:hover .save,
.pin-card:focus-within .save,
.item:hover .save,
.item:focus-within .save,
.lede:hover .save,
.lede:focus-within .save,
.post-body figure.shot:hover .save,
.post-body figure.shot:focus-within .save,
.save:focus-visible {
	opacity: 1;
	transform: none;
}

/* In-body figures */
.post-body figure.shot {
	margin: 34px 0;
	box-shadow: var(--sh-m);
}
/* wpautop wraps the loose <img> and <button> of a body-authored marble figure
   in <p> tags, which would push the photo down by a paragraph margin and clip
   it against the figure's overflow. Collapsing those wrappers onto the figure
   box restores the layout cm_marble() produces in PHP. */
.post-body figure.shot > p {
	position: absolute;
	inset: 0;
	margin: 0;
}
.post-body figure.shot figcaption,
.post-body figcaption {
	font-size: 13.5px;
	color: var(--ink-3);
	padding: 10px 2px 0;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */

.pin-card { position: relative; display: flex; flex-direction: column; }
.card-img { display: block; text-decoration: none; border-radius: var(--r-m); }
.pin-card .marble { box-shadow: var(--sh-s); transition: box-shadow .3s, transform .3s; }
.pin-card:hover .marble { box-shadow: var(--sh-l); transform: translateY(-3px); }

.card-body { padding: 14px 2px 0; }
.card-kick { display: flex; align-items: center; gap: 9px; margin: 0 0 7px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ck-cat { color: var(--accent); }
.ck-lay { color: var(--ink-3); position: relative; padding-left: 11px; }
.ck-lay::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--rule); transform: translateY(-50%); }

.card-title { font-size: 20px; line-height: 1.22; margin: 0 0 8px; font-weight: 500; }
.card-title a { text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .34s cubic-bezier(.2,.7,.3,1); }
.pin-card:hover .card-title a { background-size: 100% 1.5px; }

.card-dek { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 9px; }
.card-facts { display: flex; gap: 7px; flex-wrap: wrap; margin: 0; }
.fct { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); border-radius: 100px; padding: 3px 10px; }

.card-lg .card-title { font-size: clamp(26px, 3vw, 34px); }
.card-lg .card-dek { font-size: 16px; }
.card-sm .card-title { font-size: 16.5px; }

.card-n {
	position: absolute;
	top: -10px; left: -8px;
	z-index: 6;
	font-family: var(--ff-d);
	font-size: 44px;
	font-weight: 600;
	color: var(--paper);
	text-shadow: 0 2px 10px rgba(0,0,0,.25);
	line-height: 1;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. Front page
   -------------------------------------------------------------------------- */

/* Scoped to the element, not the bare class — `.hero` alone would also catch
   any figure that happened to carry it. */
section.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 90px);
	border-bottom: 1px solid var(--rule);
}
.hero-in { width: min(100% - 44px, var(--wrap)); margin-inline: auto; position: relative; z-index: 2; max-width: 780px; }
.hero-eyebrow { margin: 0 0 22px; }
.hero-h {
	font-size: clamp(44px, 8.5vw, 96px);
	line-height: .98;
	letter-spacing: -.03em;
	font-weight: 500;
	margin: 0 0 24px;
}
.hero-h em { font-style: italic; font-weight: 300; color: var(--terracotta); }
.hero-d { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 56ch; line-height: 1.6; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
	display: inline-block;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 13px 26px;
	border-radius: 100px;
	transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-p { background: var(--ink); color: var(--paper); }
.btn-p:hover { background: var(--terracotta); }
.btn-s { border: 1px solid var(--rule); color: var(--ink); }
.btn-s:hover { border-color: var(--ink); background: var(--paper); }

/* --- Hero with a photographic background -------------------------------
   The scrim is a horizontal gradient rather than a flat overlay, so the left
   stays readable while the right of the photo is left alone. Swapping the
   image is an option change; only the tone class changes here. */

/* --- Hero with a photograph -------------------------------------------
   The photo sits below the headline rather than behind it. Overlaying text
   on a flat lay means either cropping the photo's empty area away or
   burying the objects under a scrim — both were worse than simply
   stacking them. Nothing is cropped and no veil is needed. */

/* --- Hero with a photograph -------------------------------------------
   Full-bleed photo behind the hero, with a horizontal scrim that keeps the
   left readable and lets the right of the image come through. Type keeps its
   normal size and its normal position in the container. */

section.hero.has-bg {
	background-image: var(--hero-img-s, var(--hero-img));
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #f4efe9;
	/* Fixed band height rather than the image's own ratio. This is a deliberate
	   trade: a 16:9 photo shown whole would be ~800px tall, which reads as
	   stretched, so the band is kept at hero proportions and `cover` crops the
	   top and bottom. `--hero-ar` is still emitted by front-page.php if we ever
	   want to switch back to a fully uncropped hero. */
	min-height: clamp(460px, 38vw, 600px);
	display: flex;
	align-items: center;
}
section.hero.has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg,
		rgba(246,241,231,.95) 0%,
		rgba(246,241,231,.88) 30%,
		rgba(246,241,231,.55) 52%,
		rgba(246,241,231,.15) 76%,
		rgba(246,241,231,0) 92%);
}
section.hero.has-bg .hero-in { position: relative; z-index: 2; }

/* The hero photo is the LCP element, so each breakpoint gets the smallest
   variant that still covers it rather than the 2560px original. cm-perf.php
   emits a matching `<link rel=preload>` per query, which is the only way the
   preload scanner can discover a CSS background image. Keep these queries and
   that preload's `media` attributes identical, or the browser downloads one
   variant and paints another. */
@media (min-width: 700px) {
	section.hero.has-bg { background-image: var(--hero-img-m, var(--hero-img)); }
}
@media (min-width: 1300px) {
	section.hero.has-bg { background-image: var(--hero-img-l, var(--hero-img)); }
}

.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.blob.b1 { width: 340px; height: 400px; right: -60px; top: -70px; background: radial-gradient(circle at 35% 30%, #e8c9b4, #d9a583); border-radius: 56% 44% 50% 50% / 48% 52% 48% 52%; }
.blob.b2 { width: 220px; height: 220px; right: 190px; bottom: -80px; background: radial-gradient(circle at 40% 35%, #dfe3d5, #b8c2a9); border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; opacity: .55; }
.blob.b3 { width: 130px; height: 150px; right: 60px; bottom: 60px; background: radial-gradient(circle at 40% 35%, #f0dcc0, #ddb87f); border-radius: 52% 48% 56% 44% / 44% 56% 44% 56%; opacity: .45; }

.lead { padding: clamp(40px, 6vw, 72px) 0 0; }
.lead-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 28px; align-items: start; }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 0 0 30px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 500; }
.sec-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 46ch; font-size: 15.5px; }
.sec-all { font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.sec-all:hover { color: var(--terracotta); border-color: var(--terracotta); }

.sections { padding: clamp(56px, 8vw, 100px) 0 0; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }
.sec-tile {
	position: relative;
	overflow: hidden;
	display: block;
	text-decoration: none;
	padding: 24px 22px 46px;
	border-radius: var(--r-l);
	background: var(--paper);
	border: 1px solid var(--rule-2);
	transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.sec-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-m); border-color: transparent; }
.st-ink {
	position: absolute;
	right: -50px; top: -50px;
	width: 150px; height: 150px;
	border-radius: 52% 48% 44% 56% / 48% 56% 44% 52%;
	background: color-mix(in srgb, var(--accent) 20%, transparent);
	transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.sec-tile:hover .st-ink { transform: scale(1.35) rotate(18deg); }
.st-n { position: relative; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.sec-tile h3 { position: relative; font-size: 23px; font-weight: 500; margin: 8px 0 7px; }
.sec-tile p { position: relative; font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.st-go { position: absolute; left: 22px; bottom: 20px; color: var(--accent); font-size: 19px; transition: transform .3s; }
.sec-tile:hover .st-go { transform: translateX(6px); }

.wall { padding: clamp(56px, 8vw, 100px) 0 0; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 34px 26px; }

.pinstrip { margin: clamp(64px, 9vw, 112px) 0 0; background: var(--dark); color: #ece3d6; }
.pinstrip-in {
	width: min(100% - 44px, var(--wrap));
	margin-inline: auto;
	padding: clamp(40px, 6vw, 72px) 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}
.pinstrip .ps-lbl { color: #a4907a; margin: 0 0 12px; }
.pinstrip h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; max-width: 20ch; color: var(--paper); }
.ps-d { margin: 12px 0 0; color: #b8ac9c; max-width: 48ch; font-size: 15.5px; }
.pinstrip .btn-p { background: var(--paper); color: var(--ink); }
.pinstrip .btn-p:hover { background: var(--terracotta); color: var(--paper); }

/* --------------------------------------------------------------------------
   7. Archive
   -------------------------------------------------------------------------- */

.arch-head {
	padding: clamp(34px, 5vw, 60px) 0 clamp(30px, 4vw, 48px);
	border-bottom: 1px solid var(--rule);
	margin-bottom: clamp(34px, 5vw, 56px);
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent);
}
.arch-head h1 { font-size: clamp(34px, 6vw, 62px); font-weight: 500; letter-spacing: -.025em; margin: 10px 0 0; }
.arch-d { margin: 14px 0 0; color: var(--ink-2); max-width: 60ch; font-size: 17px; }
.arch-n { margin: 16px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.arch-kick { margin: 0 0 4px; }
.arch-grid .card-lg { grid-column: span 2; }
.arch-search { display: flex; gap: 10px; max-width: 520px; margin-top: 22px; }
.arch-search input { flex: 1; font: inherit; padding: 12px 16px; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--paper); }
.arch-search input:focus { outline: none; border-color: var(--accent); }
.arch-search button { padding: 12px 22px; border: 0; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-weight: 600; }

.crumb { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb .here { color: var(--ink-2); }

.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 56px 0 80px; }
.page-numbers {
	min-width: 40px; height: 40px;
	display: grid; place-items: center;
	padding: 0 14px;
	border-radius: 100px;
	border: 1px solid var(--rule);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 600;
}
.page-numbers:hover { border-color: var(--ink); }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.empty { text-align: center; color: var(--ink-2); padding: 70px 0 100px; font-size: 18px; }

/* --------------------------------------------------------------------------
   8. Article head — shared by all layouts
   -------------------------------------------------------------------------- */

.art { padding-bottom: 40px; }

.art-head {
	width: min(100% - 44px, 820px);
	margin: clamp(30px, 4vw, 52px) auto 0;
}
.art-head .crumb { margin-bottom: 22px; }

.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.k-cat { color: var(--accent); text-decoration: none; }
.k-cat:hover { text-decoration: underline; }
.k-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); }
.k-lay { color: var(--ink-3); }

.art-title {
	font-size: clamp(32px, 5.4vw, 58px);
	line-height: 1.06;
	letter-spacing: -.028em;
	font-weight: 500;
	margin: 0 0 20px;
}

.dek {
	font-size: clamp(17px, 1.9vw, 21px);
	line-height: 1.55;
	color: var(--ink-2);
	font-family: var(--ff-d);
	font-weight: 300;
	margin: 0 0 26px;
	max-width: 60ch;
}

.rail {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	padding: 14px 0;
	margin: 0 0 20px;
}
.rail-i { display: flex; flex-direction: column; gap: 2px; padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--rule-2); font-size: 14.5px; color: var(--ink); }
.rail-i:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.rail-i b { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.share { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 34px; }
.share-lbl { margin-right: 3px; }
.sh {
	display: inline-flex; align-items: center; gap: 7px;
	text-decoration: none;
	font-size: 13.5px; font-weight: 600;
	padding: 8px 16px;
	border-radius: 100px;
	border: 1px solid var(--rule);
	background: transparent;
	color: var(--ink-2);
	transition: background .2s, color .2s, border-color .2s;
}
.sh:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sh-pin:hover { background: #c8232c; border-color: #c8232c; }

.lede { margin: 0 0 clamp(34px, 5vw, 56px); }
.lede .marble {
	box-shadow: var(--sh-l);
	border-radius: var(--r-l);
	/* Every image on this site is generated 4:5 vertical for Pinterest, so a
	   landscape hero always crops. Cap the height so it reads as a banner
	   rather than filling the viewport — without this the breakout below makes
	   the hero ~830px tall and slices the subject in half. */
	max-height: min(58vh, 540px);
}

/* Wide layouts break the hero out past the text column — but only to 1080px,
   not the full container, or the crop gets severe. */
.art-roundup .lede, .art-project .lede { width: min(100vw - 44px, 1080px); margin-inline: calc(50% - min(50vw - 22px, 540px)); }

/* --------------------------------------------------------------------------
   9. Article grids
   -------------------------------------------------------------------------- */

.art-grid {
	width: min(100% - 44px, var(--wrap));
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 60px;
	align-items: start;
}
.art-main { min-width: 0; max-width: 760px; }

.art-narrow { width: min(100% - 44px, 720px); margin-inline: auto; }
.art-read { width: min(100% - 44px, 700px); margin-inline: auto; }
.art-wide { width: min(100% - 44px, 980px); margin-inline: auto; }

/* --------------------------------------------------------------------------
   10. Post body — shared typography
   -------------------------------------------------------------------------- */

.post-body { font-size: 17.5px; line-height: 1.72; color: var(--ink); }
.post-body > * { max-width: var(--read); }
.post-body > figure, .post-body > .tablewrap, .post-body > .item, .post-body > .fault, .post-body > .jump { max-width: none; }

.post-body h2 {
	font-size: clamp(25px, 3vw, 33px);
	font-weight: 500;
	line-height: 1.16;
	margin: 2.2em 0 .55em;
	letter-spacing: -.018em;
}
.post-body h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; margin: 1.9em 0 .5em; }
.post-body h4 { font-size: 17px; font-weight: 700; font-family: var(--ff-b); letter-spacing: .01em; margin: 1.6em 0 .4em; }
.post-body > h2:first-child, .post-body > h3:first-child { margin-top: 0; }

.post-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2.5px; }
.post-body a:hover { background: var(--accent-soft); }

.post-body ul, .post-body ol { padding-left: 1.35em; margin: 0 0 1.3em; }
.post-body li { margin-bottom: .55em; }
.post-body li::marker { color: var(--accent); }

.post-body strong, .post-body b { font-weight: 700; }
.post-body em { font-style: italic; }

.post-body blockquote {
	margin: 34px 0;
	padding: 4px 0 4px 26px;
	border-left: 2px solid var(--accent);
	font-family: var(--ff-d);
	font-size: clamp(20px, 2.4vw, 25px);
	line-height: 1.42;
	font-weight: 300;
	font-style: italic;
	color: var(--ink);
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body hr { border: 0; border-top: 1px solid var(--rule); margin: 44px 0; max-width: var(--read); }

.post-body code {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .88em;
	background: var(--paper-2);
	padding: 2px 6px;
	border-radius: 4px;
}

/* Callouts usable in any layout */
.tip, .note, .warn {
	position: relative;
	margin: 32px 0;
	padding: 20px 24px 20px 26px;
	border-radius: var(--r-m);
	background: var(--paper);
	border: 1px solid var(--rule-2);
	border-left: 3px solid var(--accent);
	font-size: 16px;
	line-height: 1.62;
}
.tip b, .note b, .warn b {
	display: block;
	font-family: var(--ff-b);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 6px;
}
.tip p:last-child, .note p:last-child, .warn p:last-child { margin-bottom: 0; }
.warn { border-left-color: #b8462f; background: #fbf1ec; }
.warn b { color: #b8462f; }
.note { border-left-color: var(--slate); }
.note b { color: var(--slate); }

/* Tables */
.tablewrap { overflow-x: auto; margin: 32px 0; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--paper); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--rule-2); }
.post-body th { font-family: var(--ff-b); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.post-body tr:last-child td { border-bottom: 0; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 100px; background: var(--paper-2); color: var(--ink-2); }
.pill.good { background: #e2ebdd; color: #4d6641; }
.pill.mid { background: #f6e9cd; color: #8a6a1f; }
.pill.bad { background: #f6ded7; color: #a3402a; }

/* Cost breakdown */
.costs { margin: 32px 0; padding: 22px 24px; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--paper); }
.costrow { display: grid; grid-template-columns: 1fr 2fr auto; gap: 14px; align-items: center; margin-bottom: 11px; font-size: 15px; }
.costrow .track { height: 6px; background: var(--paper-2); border-radius: 100px; overflow: hidden; }
.costrow .fill { display: block; height: 100%; background: var(--accent); border-radius: 100px; }
.costrow .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.costtotal { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--rule); font-size: 16px; }
.costtotal b { font-family: var(--ff-d); font-size: 21px; }

/* At a glance */
.glance { margin: 0 0 34px; padding: 24px 26px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--rule-2); }
.glance h2 { font-size: 13px !important; font-family: var(--ff-b) !important; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px !important; }
.glance ul { list-style: none; padding: 0; margin: 0; }
.glance li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule-2); font-size: 15.5px; }
.glance li:last-child { border-bottom: 0; }
.glance li b { flex: none; min-width: 130px; color: var(--ink-3); font-weight: 600; }

.checklist { margin: 32px 0; padding: 22px 24px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--rule-2); }
.checklist h3 { font-size: 13px; font-family: var(--ff-b); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.checklist ul, .tick { list-style: none; padding: 0; margin: 0; }
.checklist li, .tick li { margin-bottom: 9px; }
.checklist label, .tick label { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: 15.5px; line-height: 1.5; }
.checklist input, .tick input { margin-top: 5px; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.checklist input:checked + span, .tick input:checked + span { color: var(--ink-3); text-decoration: line-through; }

.disclose { margin: 44px 0 0; padding: 14px 18px; border-radius: var(--r-s); background: var(--paper-2); font-size: 13.5px; color: var(--ink-3); max-width: var(--read); }

/* --------------------------------------------------------------------------
   11. Make panel
   -------------------------------------------------------------------------- */

.make {
	margin: 0 0 40px;
	padding: 26px 28px 28px;
	border-radius: var(--r-l);
	background: var(--paper);
	border: 1px solid var(--rule-2);
	box-shadow: var(--sh-s);
	position: relative;
	overflow: hidden;
}
.make::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.make-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.make-top h2 { font-size: 24px; font-weight: 500; margin: 0; }
.make-tag { color: var(--accent); }

.spec { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 2px; border: 1px solid var(--rule-2); border-radius: var(--r-s); overflow: hidden; }
.spec li { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px; background: var(--paper-2); }
.spec b { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.spec span { font-family: var(--ff-d); font-size: 18px; font-weight: 500; }

.make-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.make-col h3 { font-size: 11.5px; font-family: var(--ff-b); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }

/* --------------------------------------------------------------------------
   12. Layout — tutorial (numbered steps)
   -------------------------------------------------------------------------- */

.post-body.steps { counter-reset: step; }
.post-body.steps > h2 {
	counter-increment: step;
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding-top: 26px;
	border-top: 1px solid var(--rule);
}
.post-body.steps > h2::before {
	content: counter(step, decimal-leading-zero);
	flex: none;
	font-family: var(--ff-b);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--accent);
	background: var(--accent-soft);
	width: 38px; height: 38px;
	border-radius: 50%;
	display: grid; place-items: center;
	transform: translateY(-2px);
}
.post-body.steps > h2:first-child { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------------------------
   13. Layout — project (floating make card)
   -------------------------------------------------------------------------- */

.proj-float { width: min(100% - 44px, 720px); margin: -70px auto 44px; position: relative; z-index: 5; }
.proj-float .make { box-shadow: var(--sh-l); background: var(--paper); }
.proj-tail { width: min(100% - 44px, var(--wrap)); margin: 60px auto 0; }
.proj-tail .side-stick { position: static; }
.proj-tail .side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.proj-tail .side-stick { display: contents; }

/* --------------------------------------------------------------------------
   14. Layout — roundup (numbered items)
   -------------------------------------------------------------------------- */

.rintro { font-size: 19px; line-height: 1.6; color: var(--ink-2); font-family: var(--ff-d); font-weight: 300; margin-bottom: 34px; max-width: 62ch; }

.jump { margin: 0 0 52px; padding: 26px 28px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--rule-2); }
.jump h2 { font-size: 12px !important; font-family: var(--ff-b) !important; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px !important; }
.jumplist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 34px; }
.jumplist li { break-inside: avoid; margin-bottom: 9px; }
.jumplist a { display: flex; gap: 12px; text-decoration: none; font-size: 15.5px; align-items: baseline; }
.jumplist a:hover { color: var(--accent); }
.jumplist .n { font-size: 11.5px; font-weight: 700; color: var(--accent); flex: none; font-variant-numeric: tabular-nums; }

.item {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 36px;
	align-items: start;
	padding: 40px 0;
	border-top: 1px solid var(--rule);
	position: relative;
}
.item:nth-child(even of .item) { grid-template-columns: 1fr 320px; }
.item:nth-child(even of .item) .item-shot { order: 2; }
.item-shot { position: relative; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--sh-m); background: var(--accent-soft); }
.item-shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.item-num { display: inline-block; font-family: var(--ff-d); font-size: 40px; font-weight: 600; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.item h3 { font-size: clamp(23px, 2.7vw, 30px); font-weight: 500; margin: 0 0 12px; }
.item-facts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; }
.item-facts .fact { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 100px; background: var(--paper-2); color: var(--ink-2); }
.item-facts .fact.lvl { background: var(--accent-soft); color: var(--accent); }
.item p { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.item-go { display: inline-block; margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* --------------------------------------------------------------------------
   15. Layout — compare (verdict)
   -------------------------------------------------------------------------- */

.verdict {
	width: min(100% - 44px, 820px);
	margin: 0 auto 44px;
	padding: 26px 30px;
	border-radius: var(--r-l);
	background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 13%, var(--paper)), var(--paper));
	border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
	position: relative;
}
.v-lbl { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.v-name { font-family: var(--ff-d); font-size: clamp(24px, 3vw, 32px); font-weight: 500; margin: 0 0 8px; line-height: 1.15; }
.v-why { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 60ch; }

.post-body.compare > h2 { padding-left: 0; }
.post-body.compare table th:first-child { min-width: 150px; }

/* --------------------------------------------------------------------------
   16. Layout — guide (left contents rail)
   -------------------------------------------------------------------------- */

.guide-grid {
	width: min(100% - 44px, var(--wrap));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}
.guide-main { min-width: 0; max-width: 720px; }
.toc-stick { position: sticky; top: 92px; }
.toc-lbl { margin: 0 0 14px; }
.toc-list { list-style: none; padding: 0; margin: 0; counter-reset: none; border-left: 1px solid var(--rule); }
.toc-list li { margin: 0; }
.toc-list a {
	display: flex; gap: 12px; align-items: baseline;
	padding: 9px 0 9px 18px;
	margin-left: -1px;
	border-left: 2px solid transparent;
	text-decoration: none;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--ink-2);
	transition: color .2s, border-color .2s;
}
.toc-list a:hover, .toc-list a.on { color: var(--ink); border-left-color: var(--accent); }
.toc-list .tn { font-size: 11px; font-weight: 700; color: var(--accent); flex: none; font-variant-numeric: tabular-nums; }

.post-body.guide > h2 { border-top: 1px solid var(--rule); padding-top: 30px; }
.post-body.guide > h2:first-child { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------------------------
   17. Layout — essay (reading)
   -------------------------------------------------------------------------- */

.post-body.essay { font-family: var(--ff-d); font-size: 19.5px; line-height: 1.72; font-weight: 300; }
.post-body.essay > p:first-of-type::first-letter {
	float: left;
	font-size: 4.6em;
	line-height: .82;
	font-weight: 500;
	padding: 4px 12px 0 0;
	color: var(--accent);
}
.post-body.essay h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 500; font-style: italic; margin: 2em 0 .5em; }
.post-body.essay blockquote {
	border-left: 0;
	padding: 0;
	text-align: center;
	margin: 48px auto;
	font-size: clamp(23px, 3vw, 30px);
	font-style: normal;
	max-width: 22ch;
}
.post-body.essay blockquote::before { content: ""; display: block; width: 40px; height: 1px; background: var(--accent); margin: 0 auto 24px; }
.post-body.essay blockquote::after { content: ""; display: block; width: 40px; height: 1px; background: var(--accent); margin: 24px auto 0; }
.post-body.essay ul li::marker { color: var(--accent); }

.essay-end { display: flex; gap: 9px; justify-content: center; margin: 56px 0 0; }
.essay-end span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .5; }
.essay-end span:nth-child(2) { opacity: .75; }
.essay-end span:nth-child(3) { opacity: 1; }

/* --------------------------------------------------------------------------
   18. Layout — workshop (dark band + timeline)
   -------------------------------------------------------------------------- */

.band { background: var(--dark); color: #ece3d6; margin: 0 0 clamp(36px, 5vw, 56px); }
.band-in {
	width: min(100% - 44px, var(--wrap));
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 24px 0;
}
.band-i { display: flex; flex-direction: column; gap: 4px; padding: 4px 36px; border-right: 1px solid rgba(255,255,255,.12); }
.band-i:first-child { padding-left: 0; }
.band-i:last-child { border-right: 0; }
.band-i b { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #a4907a; }
.band-i span { font-family: var(--ff-d); font-size: 20px; font-weight: 500; color: var(--paper); }

.post-body.timeline { position: relative; }
.post-body.timeline > h2 {
	position: relative;
	padding-left: 46px;
	margin-top: 2.4em;
}
.post-body.timeline > h2::before {
	content: "";
	position: absolute;
	left: 13px; top: 50%;
	width: 11px; height: 11px;
	border-radius: 50%;
	background: var(--paper);
	border: 2.5px solid var(--accent);
	transform: translateY(-50%);
	z-index: 2;
}
.post-body.timeline > h2::after {
	content: "";
	position: absolute;
	left: 18px; top: 50%;
	bottom: -3em;
	width: 1px;
	background: var(--rule);
	z-index: 1;
}
.post-body.timeline > h2:last-of-type::after { display: none; }
.post-body.timeline > p, .post-body.timeline > ul, .post-body.timeline > ol, .post-body.timeline > .tip { padding-left: 46px; max-width: calc(var(--read) + 46px); }

/* --------------------------------------------------------------------------
   19. Layout — troubleshoot (triage + faults)
   -------------------------------------------------------------------------- */

.triage { margin: 0 0 44px; padding: 26px 28px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--rule-2); }
.triage h2 { font-size: 21px !important; margin: 0 0 4px !important; }
.triage .sub { font-size: 15px; color: var(--ink-3); margin: 0 0 18px; }
.symptoms { list-style: none; padding: 0; margin: 0; }
.symptoms li { border-top: 1px solid var(--rule-2); }
.symptoms a { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; text-decoration: none; font-size: 16px; }
.symptoms a:hover { color: var(--accent); }
.symptoms .n { font-size: 11.5px; font-weight: 700; color: var(--accent); flex: none; font-variant-numeric: tabular-nums; }

.fault { margin: 0 0 26px; border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; background: var(--paper); scroll-margin-top: 100px; }
.fault-top { display: flex; align-items: center; gap: 14px; padding: 18px 24px; background: var(--paper-2); border-bottom: 1px solid var(--rule-2); }
.fault-top .idx { font-family: var(--ff-b); font-size: 12px; font-weight: 700; color: var(--accent); }
.fault-top h3 { flex: 1; font-size: 21px; font-weight: 500; margin: 0; }
.verdict-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px; border-radius: 100px; flex: none; }
/* v- prefixed so these never collide with the .save pin button, which is
   absolutely positioned and starts at opacity 0. */
.verdict-tag.v-save { background: #e2ebdd; color: #4d6641; }
.verdict-tag.v-rework { background: #f6e9cd; color: #8a6a1f; }
.verdict-tag.v-bin { background: #f6ded7; color: #a3402a; }
.fault-grid { display: grid; grid-template-columns: 1fr 1fr; }
.fault-grid > div { padding: 20px 24px; }
.fault-grid > div:first-child { border-right: 1px solid var(--rule-2); }
.fault-grid h4 { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.fault-grid .fix h4 { color: var(--accent); }
.fault-grid p { font-size: 15.5px; line-height: 1.6; margin: 0; }
.fault-note { padding: 13px 24px; background: var(--paper-2); font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--rule-2); }

/* A fault can carry its own photo. The marble figure sits flush between the
   header strip and the why/fix grid so it reads as part of the card, not as a
   loose in-body image that happens to land there. */
.faults .fault > figure.shot { margin: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--rule-2); }

.prevent { margin: 40px 0 0; padding: 24px 28px; border-radius: var(--r-l); background: var(--dark); color: #ece3d6; }
.prevent h3 { color: var(--paper); font-size: 21px; font-weight: 500; margin: 0 0 14px; }
.prevent ul { padding-left: 1.2em; margin: 0; }
.prevent li { margin-bottom: 8px; color: #c5b9aa; }
.prevent li::marker { color: var(--terracotta); }

/* --------------------------------------------------------------------------
   20. Sidebar
   -------------------------------------------------------------------------- */

.side { min-width: 0; }
.side-stick { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }

.sbox { padding: 22px 24px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--rule-2); }
.sbox-lbl { margin: 0 0 12px; }
.sbox h3 { font-size: 21px; font-weight: 500; margin: 0 0 8px; }
.sbox h3 a { text-decoration: none; }
.sbox h3 a:hover { color: var(--accent); }
.sbox-d { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; }
.sbox-go { font-size: 13.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.sbox-go:hover { text-decoration: underline; }
.sbox-cat { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 12%, var(--paper)), var(--paper)); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }

.slist { list-style: none; padding: 0; margin: 0; }
.slist li { border-top: 1px solid var(--rule-2); }
.slist li:first-child { border-top: 0; }
.slist a { display: flex; gap: 13px; align-items: center; padding: 11px 0; text-decoration: none; }
.slist .th { flex: none; width: 52px; height: 66px; border-radius: var(--r-s); overflow: hidden; background: var(--accent-soft); }
.slist .th img { width: 100%; height: 100%; object-fit: cover; }
.slist .sl-t { font-size: 14.5px; line-height: 1.4; font-weight: 500; }
.slist a:hover .sl-t { color: var(--accent); }

.sbox-pin { background: linear-gradient(150deg, #fbeceb, var(--paper)); border-color: #f0d5d3; }
.sbox-btn { display: block; text-align: center; background: #c8232c; color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 11px; border-radius: 100px; }
.sbox-btn:hover { background: #a81b24; }

/* --------------------------------------------------------------------------
   21. Related
   -------------------------------------------------------------------------- */

.related {
	width: min(100% - 44px, var(--wrap));
	margin: clamp(56px, 8vw, 96px) auto 0;
	padding-top: clamp(36px, 5vw, 56px);
	border-top: 1px solid var(--rule);
}
.rel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.rel-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 500; }
.rel-all { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.rel-all:hover { color: var(--accent); }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 22px; }

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */

.foot { margin-top: clamp(64px, 9vw, 110px); background: var(--dark); color: #b8ac9c; }
.foot-in {
	width: min(100% - 44px, var(--wrap));
	margin-inline: auto;
	padding: clamp(46px, 6vw, 74px) 0 clamp(36px, 5vw, 54px);
	display: grid;
	grid-template-columns: 1.2fr 2fr;
	gap: 50px;
}
.foot-mark { font-family: var(--ff-d); font-size: 30px; color: var(--paper); margin: 0 0 12px; letter-spacing: -.02em; }
.foot-mark span { font-style: italic; font-weight: 300; color: var(--terracotta); }
.foot-line { font-size: 15px; line-height: 1.6; max-width: 40ch; margin: 0; }

.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.foot-col h3 { font-family: var(--ff-b); font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #8a7a68; margin: 0 0 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { text-decoration: none; font-size: 14.5px; color: #cabeae; }
.foot-col a:hover { color: var(--paper); }

.foot-bar {
	border-top: 1px solid rgba(255,255,255,.1);
}
.foot-bar > * { margin: 0; }
.foot-bar {
	width: 100%;
}
.foot-bar {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #8a7a68;
	padding: 20px max(22px, calc(50% - var(--wrap) / 2));
}
.foot-nav { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--paper); }
.foot-note { font-style: italic; }

/* --------------------------------------------------------------------------
   23. 404
   -------------------------------------------------------------------------- */

.e404 { text-align: center; padding: clamp(56px, 9vw, 110px) 0; }
.e-n { font-family: var(--ff-d); font-size: clamp(80px, 16vw, 170px); line-height: 1; color: var(--rule); margin: 0 0 6px; font-weight: 600; }
.e404 h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 500; margin: 0 0 12px; }
.e-d { color: var(--ink-2); margin: 0 0 26px; }
.e404 .arch-search { margin-inline: auto; }
.e-cats { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.e-chip { text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 8px 17px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); }
.e-chip:hover { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   24. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
	.art-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.side-stick { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start; }
	.guide-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.toc-stick { position: static; }
	.toc-list { columns: 2; column-gap: 30px; border-left: 0; }
	.toc-list a { border-left: 0; padding-left: 0; }
	.lead-grid { grid-template-columns: 1fr 1fr; }
	.lead-grid .card-lg { grid-column: span 2; }
}

@media (max-width: 860px) {
	/* Text runs full width on a phone, so the side-to-side scrim stops working. */
	section.hero.has-bg { background-position: 72% center; aspect-ratio: auto; min-height: 0; max-height: none; }
	section.hero.has-bg::before {
		background: linear-gradient(180deg,
			rgba(246,241,231,.95) 0%,
			rgba(246,241,231,.9) 50%,
			rgba(246,241,231,.72) 100%);
	}

	.mast-in { height: 60px; gap: 16px; }
	.nav { display: none; }
	.drawer { inset-block-start: 60px; }
	.item, .item:nth-child(even of .item) { grid-template-columns: 1fr; gap: 20px; }
	.item:nth-child(even of .item) .item-shot { order: 0; }
	.item-shot img { aspect-ratio: 3 / 2; }
	.fault-grid { grid-template-columns: 1fr; }
	.fault-grid > div:first-child { border-right: 0; border-bottom: 1px solid var(--rule-2); }
	.make-cols { grid-template-columns: 1fr; gap: 20px; }
	.foot-in { grid-template-columns: 1fr; gap: 34px; }
	.band-in { gap: 0 4px; }
	.band-i { padding: 8px 20px 8px 0; border-right: 0; flex: 1 1 40%; }
	.jumplist { columns: 1; }
	.proj-float { margin-top: -40px; }
	.rail-i { padding-right: 18px; margin-right: 18px; }
	.post-body.timeline > h2 { padding-left: 38px; }
	.post-body.timeline > p, .post-body.timeline > ul, .post-body.timeline > ol, .post-body.timeline > .tip { padding-left: 38px; }
	.arch-grid .card-lg { grid-column: span 1; }
}

@media (max-width: 560px) {
	body { font-size: 16.5px; }
	.wrap, .mast-in, .art-head, .art-narrow, .art-read, .art-wide, .art-grid, .guide-grid, .related, .verdict, .proj-float { width: calc(100% - 32px); }
	.wall-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 14px; }
	.rel-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
	.card-title { font-size: 16px; }
	.card-dek { display: none; }
	.card-lg .card-dek { display: block; font-size: 15px; }
	.lead-grid { grid-template-columns: 1fr; }
	.lead-grid .card-lg { grid-column: span 1; }
	.sec-grid { grid-template-columns: 1fr; }
	.toc-list { columns: 1; }
	.spec { grid-template-columns: 1fr 1fr; }
	.post-body.essay { font-size: 18px; }
	.pinstrip-in { flex-direction: column; align-items: flex-start; }
	.save { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   25. Preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
	.mast, .drawer, .side, .related, .foot, .share, .save, .pinstrip { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	body::before { display: none; }
	.art-grid, .guide-grid { display: block; }
}
