/*
Theme Name: The Erasing of the West
Theme URI: https://example.com/
Author: Northwind Press
Description: A single-book landing theme for "The Erasing of the West" — dark, with white and red sections, an animated migration-corridor map header, and edition cards linking to your store, Amazon and NXR+. Edit every link, price and name under Appearance → Customize → Book & Store Links.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: erasing-west
*/

/* Layout concept: the printed cover carried onto the page — true black ground,
   widely tracked Garamond capitals in white and cover red, an italic lowercase
   "of" as the one flourish. The map header is the only moving thing. */
:root {
	--ink: #000000;
	--ink-2: #0b0b0b;
	--ink-3: #161616;
	--bone: #f3f1ec;
	--paper: #efeeea;
	--paper-2: #e2e1dc;
	--red: #d93b30;
	--red-deep: #b52c24;
	--mute-d: #a09e98;
	--mute-l: #5a5955;
	--line-d: rgba(236, 235, 230, .14);
	--line-l: rgba(22, 22, 22, .16);

	--f-display: "EB Garamond", "Garamond", "Iowan Old Style", "Georgia", serif;
	--f-body: "EB Garamond", "Garamond", "Iowan Old Style", "Georgia", serif;
	--f-label: "EB Garamond", "Garamond", "Iowan Old Style", "Georgia", serif;
	--track: .24em;
	/* Chart series (validated for colorblind separation on black) */
	--c1: #d93b30;
	--c2: #1f9e8f;
	--c3: #c47f12;
	--c4: #8a84e8;

	--gutter: clamp(16px, 4vw, 48px);
	--maxw: 1200px;
	--nav-h: 64px;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
	margin: 0;
	background: var(--ink);
	color: var(--bone);
	font-family: var(--f-body);
	font-size: 1.22rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.ew-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ew-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; }
.ew-skip:focus { left: 8px; }

.ew-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.ew-eyebrow, .ew-kicker, .ew-toc__label, .ew-map__legend, .ew-edition__spec, .ew-cover__author, .ew-cover__pub {
	font-family: var(--f-label);
	text-transform: uppercase;
	letter-spacing: var(--track);
	font-weight: 500;
	font-size: .84rem;
	line-height: 1.5;
}
.ew-kicker { margin: 0 0 1rem; color: var(--red-deep); display: flex; align-items: center; gap: .75rem; }
.ew-kicker::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; }
.ew-kicker--red { color: var(--red); }

.ew-h2 {
	font-family: var(--f-display);
	font-weight: 500;
	font-size: clamp(2.3rem, 4.4vw, 3.5rem);
	line-height: 1.08;
	letter-spacing: .005em;
	margin: 0 0 1.5rem;
	text-wrap: balance;
}
.ew-lead { max-width: 60ch; color: var(--mute-l); margin: 0 0 2.5rem; }

/* ---------- Buttons ---------- */
.ew-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	font-family: var(--f-label); font-weight: 600; font-size: .92rem;
	letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
	padding: 1rem 1.6rem; border: 2px solid transparent; border-radius: 2px;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
	cursor: pointer; line-height: 1; white-space: nowrap; flex: none;
}
.ew-btn:hover { transform: translateY(-1px); }
.ew-btn--sm { padding: .7rem 1.1rem; font-size: .8rem; }
.ew-btn--block { width: 100%; }
.ew-btn--red { background: var(--red); color: #fff; }
.ew-btn--red:hover { background: var(--red-deep); }
.ew-btn--ghost { border-color: var(--bone); color: var(--bone); }
.ew-btn--ghost:hover { background: var(--bone); color: var(--ink); }
.ew-btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.ew-btn--line:hover { background: var(--ink); color: var(--paper); }
.ew-btn--ink { background: var(--ink); color: var(--bone); }
.ew-btn--ink:hover { background: #1a1a1a; }
.ew-btn--outline-light { border-color: #fff; color: #fff; }
.ew-btn--outline-light:hover { background: #fff; color: var(--red-deep); }

/* ---------- Nav ---------- */
.ew-nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	padding-top: env(safe-area-inset-top, 0px);
	background: rgba(0, 0, 0, .8);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line-d);
}
.admin-bar .ew-nav { top: 32px; }
.ew-nav__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 2rem; }
.ew-nav__brand { text-decoration: none; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .2em; font-size: .9rem; white-space: nowrap; }
.ew-nav__logo { height: 34px; width: auto; display: block; }
.ew-nav__brand .ew-t, .ew-book__spine .ew-t { display: inline; font-size: inherit; letter-spacing: inherit; font-weight: inherit; margin: 0; }
.ew-t--red, .ew-nav__brand .ew-t--red, .ew-title .ew-t--red { color: var(--red); }
.ew-nav__brand .ew-t--of { text-transform: none; letter-spacing: 0; font-size: 1.1em; }
.ew-nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.ew-nav__links a { font-family: var(--f-label); font-size: .84rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--mute-d); }
.ew-nav__links a:hover { color: var(--bone); }
@media (max-width: 820px) {
	.ew-nav__links { display: none; }
	.ew-nav__inner { justify-content: space-between; }
	.ew-nav__brand { font-size: .78rem; letter-spacing: .14em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
	.ew-nav__inner { gap: 1rem; }
}

/* ---------- Hero + map ---------- */
.ew-hero { position: relative; background: var(--ink); isolation: isolate; overflow: hidden; }
.ew-map {
	--map-h: clamp(440px, 56vw, 780px);
	position: absolute; inset: 0 0 auto 0; height: var(--map-h); z-index: -1;
}
.ew-map__canvas { width: 100%; height: 100%; display: block; }
.ew-map::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(0,0,0,.55) 0, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 52%, var(--ink) 100%),
		linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,0) 40%);
}
.ew-hero__legend {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem;
	padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--line-d);
}
.ew-hero__legend-title { margin: 0; font-family: var(--f-label); font-size: .78rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--bone); }
.ew-map__legend {
	list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
	font-size: .74rem; letter-spacing: .14em; color: var(--mute-d);
}
.ew-map__legend li { display: flex; align-items: center; gap: .6rem; }
.ew-key { width: 22px; height: 2px; flex: none; }
.ew-key--red { background: var(--red); }
.ew-key--white { background: var(--bone); }
.ew-key--grey { background: #96948e; }
.ew-key--gold { background: #c47f12; }
.ew-key--dash { background: repeating-linear-gradient(90deg, var(--bone) 0 4px, transparent 4px 7px); }

.ew-hero__body {
	position: relative;
	padding-top: calc(var(--nav-h) + clamp(240px, 33vw, 470px));
	padding-bottom: clamp(48px, 6vw, 88px);
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
	gap: clamp(32px, 5vw, 80px); align-items: end;
}
.ew-hero__text { min-width: 0; }
.ew-eyebrow { color: var(--mute-d); margin: 0 0 1.1rem; }
.ew-title {
	margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
	line-height: 1.05; color: var(--bone);
}
.ew-t { display: block; max-width: 100%; }
.ew-t--the  { font-size: clamp(1.9rem, 3.6vw, 3.1rem); letter-spacing: .42em; }
.ew-t--key  { font-size: clamp(2.2rem, 5.6vw, 5.2rem); letter-spacing: .3em; margin: .12em 0 .1em; }
.ew-t--of   { font-style: italic; text-transform: none; letter-spacing: 0; font-size: .92em; }
.ew-t--the2 { font-size: clamp(1.2rem, 2.2vw, 1.9rem); letter-spacing: .36em; margin: .35em 0 .15em; }
.ew-t--last { font-size: clamp(3rem, 7.4vw, 6.6rem); letter-spacing: .2em; font-weight: 600; }
@media (max-width: 600px) {
	.ew-t--the  { font-size: 8vw; letter-spacing: .34em; }
	.ew-t--key  { font-size: 9.2vw; letter-spacing: .2em; }
	.ew-t--the2 { font-size: 5.4vw; letter-spacing: .3em; }
	.ew-t--last { font-size: 15vw; letter-spacing: .14em; }
}
.ew-hero__sub {
	margin: 1.6rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--red); max-width: 36ch;
	font-family: var(--f-display); text-transform: uppercase; letter-spacing: .26em;
	font-size: clamp(.95rem, 1.35vw, 1.12rem); line-height: 1.75; color: var(--bone); text-wrap: balance;
}
.ew-byline { margin: 1.1rem 0 0; color: var(--red); display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; }
.ew-byline__main { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.ew-byline__co { font-style: italic; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(.9rem, 1.2vw, 1.05rem); }
.ew-hero__lede { color: #c9c7c1; max-width: 52ch; margin: 1.4rem 0 2rem; }
.ew-hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.ew-hero__also { margin: 1.2rem 0 0; font-family: var(--f-label); font-size: .95rem; letter-spacing: .04em; color: var(--mute-d); }
.ew-hero__also a { color: var(--bone); text-underline-offset: 3px; }
.ew-hero__book { display: flex; justify-content: center; padding-bottom: 12px; min-width: 0; }

@media (max-width: 900px) {
	.ew-hero__body { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + clamp(250px, 58vw, 440px)); }
	/* Phones & tablets: book centered, with a soft glow so it lifts off the black */
	.ew-hero__book { justify-content: center; padding: 28px 0 40px 28px; position: relative; isolation: isolate; }
	.ew-hero__book::before {
		content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
		width: min(92vw, 460px); aspect-ratio: 1; transform: translate(-50%, -50%);
		background: radial-gradient(closest-side, rgba(217, 59, 48, .62), rgba(217, 59, 48, .30) 42%, rgba(217, 59, 48, .10) 68%, transparent 100%);
		filter: blur(6px);
		pointer-events: none;
	}
	.ew-hero__book .ew-book__front { box-shadow: 14px 18px 36px rgba(0, 0, 0, .45); }
	.ew-hero__book .ew-book { --w: clamp(170px, 42vw, 240px); }
	.ew-map { --map-h: clamp(380px, 92vw, 640px); }
}
@media (max-width: 700px) {
	.ew-hero__legend { display: none; }
	.ew-hero__body { padding-top: calc(var(--nav-h) + 80vw); }
}
@media (max-width: 480px) {
	.ew-hero__ctas .ew-btn { flex: 1 1 100%; }
}

/* ---------- Book mockup ---------- */
.ew-book {
	--w: clamp(220px, 24vw, 330px);
	--thick: 34px;
	position: relative; width: var(--w); aspect-ratio: 750 / 1220; max-width: 100%;
	transform: perspective(1800px) rotateY(24deg) rotateX(2deg);
	transform-style: preserve-3d;
	transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.ew-hero__book .ew-book:hover { transform: perspective(1800px) rotateY(12deg) rotateX(1deg); }
.ew-book::after { /* floor shadow */
	content: ""; position: absolute; left: 6%; right: -8%; bottom: -26px; height: 30px;
	background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent);
	transform: translateZ(-40px); pointer-events: none;
}
.ew-book__front { position: absolute; inset: 0; box-shadow: 18px 22px 50px rgba(0,0,0,.55); }
.ew-book__front::after { /* page-edge gloss */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(100deg, rgba(255,255,255,.1) 0, rgba(255,255,255,0) 8%, rgba(0,0,0,0) 85%, rgba(0,0,0,.25) 100%);
}
.ew-book__spine {
	position: absolute; top: 0; left: calc(-1 * var(--thick)); width: var(--thick); height: 100%;
	transform-origin: right center; transform: rotateY(-90deg);
	background: linear-gradient(90deg, #050505, #1c1c1c 45%, #080808);
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ew-book__spine span {
	writing-mode: vertical-rl; font-family: var(--f-display); font-weight: 500;
	text-transform: uppercase; color: var(--bone); font-size: calc(var(--thick) * .36); letter-spacing: .22em; white-space: nowrap;
}
.ew-book__spine .ew-t--of { text-transform: none; letter-spacing: 0; }
.ew-book__spine::before, .ew-book__spine::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--red); }
.ew-book__spine::before { top: 7%; }
.ew-book__spine::after { bottom: 7%; }
.ew-book--small { --w: clamp(150px, 15vw, 190px); }
.ew-book--hardback { --thick: 26px; }
.ew-book--paperback { --thick: 16px; transform: perspective(1800px) rotateY(22deg); }
.ew-book--paperback .ew-book__spine { background: linear-gradient(90deg, #080808, #1e1e1e 50%, #080808); }
.ew-book--paperback .ew-book__spine::before, .ew-book--paperback .ew-book__spine::after { display: none; }
@media (prefers-reduced-motion: reduce) { .ew-book { transition: none; } }

/* ---------- Cover ---------- */
.ew-cover { background: #000; overflow: hidden; }
.ew-cover__img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Red thesis band ---------- */
.ew-band { background: var(--red); color: #fff; }
.ew-band__inner { padding-block: clamp(48px, 6vw, 88px); }
.ew-band__line {
	margin: 0; max-width: 30ch;
	font-family: var(--f-display); font-weight: 500;
	font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.2; text-wrap: balance;
}

/* ---------- Sections ---------- */
.ew-section { padding-block: clamp(72px, 9vw, 136px); }
.ew-section--paper { background: var(--paper); color: var(--ink); }
.ew-section--ink { background: var(--ink); color: var(--bone); }

.ew-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ew-split__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.ew-about__book { margin: clamp(52px, 6vw, 80px) 0 0; padding: 0 0 8px 30px; display: grid; justify-items: start; gap: clamp(52px, 5vw, 68px); }
.ew-book--about { --w: clamp(190px, 20vw, 270px); transform: perspective(1800px) rotateY(20deg) rotateX(2deg); }
.ew-book--about::after { background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); }
.ew-book--about .ew-book__front { box-shadow: 16px 20px 40px rgba(0,0,0,.28); }
.ew-about__book .ew-about__cap { margin: 0; padding: 0; }
.ew-about__book a.ew-about__link { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; color: var(--red-deep); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ew-about__book a.ew-about__link:hover { color: var(--ink); }
.ew-prose { min-width: 0; max-width: 64ch; }
.ew-prose p { margin: 0 0 1.25rem; }
.ew-dropcap::first-letter {
	float: left; font-family: var(--f-display); font-weight: 500;
	font-size: 4.2em; line-height: .8; margin: .06em .1em 0 0; color: var(--red);
}
.ew-note { margin-top: 2rem !important; padding: 1.2rem 1.4rem; background: var(--paper-2); font-size: 1rem; color: #33322f; }
.ew-note strong { font-family: var(--f-label); font-size: .84rem; letter-spacing: var(--track); font-weight: 600; text-transform: uppercase; display: block; margin-bottom: .3rem; color: var(--ink); }

.ew-themes { list-style: none; padding: 0; margin: clamp(56px, 7vw, 96px) auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.ew-themes li { padding: 1.6rem 1.6rem 0 0; min-width: 0; }
.ew-themes li + li { padding-left: 1.6rem; border-left: 1px solid var(--line-l); }
.ew-themes h3 { margin: 0 0 .6rem; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .22em; color: var(--red-deep); }
.ew-themes p { margin: 0; font-size: 1rem; color: var(--mute-l); }
@media (max-width: 900px) {
	.ew-split { grid-template-columns: 1fr; }
	.ew-split__head { position: static; }
	.ew-about__book { margin-top: 2.75rem; gap: 3.25rem; }
	.ew-book--about { --w: clamp(150px, 40vw, 200px); }
	.ew-about__book a.ew-about__link { letter-spacing: .1em; font-size: .76rem; white-space: nowrap; }
	.ew-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ew-themes li, .ew-themes li + li { padding: 1.4rem 1.2rem 1.4rem 0; border-left: 0; }
	.ew-themes li:nth-child(even) { padding-left: 1.2rem; border-left: 1px solid var(--line-l); }
	.ew-themes li:nth-child(n+3) { border-top: 1px solid var(--line-l); }
}
@media (max-width: 520px) {
	.ew-themes { grid-template-columns: 1fr; }
	.ew-themes li, .ew-themes li:nth-child(even) { padding: 1.2rem 0; border-left: 0; }
	.ew-themes li + li { border-top: 1px solid var(--line-l); }
}

/* ---------- Demographic record (charts) ---------- */
.ew-section--rule { border-top: 1px solid var(--line-d); }
.ew-record__lede { max-width: 62ch; color: #d0cec8; margin: 0 0 3rem; }
.ew-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.ew-chart { margin: 0; min-width: 0; border-top: 1px solid var(--line-d); padding-top: 1.4rem; }
.ew-chart__head { display: grid; gap: .35rem; margin-bottom: 1rem; }
.ew-chart__title { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .18em; font-size: .9rem; font-weight: 600; color: var(--bone); }
.ew-chart__big { display: flex; align-items: baseline; gap: .6rem; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 500; line-height: 1.1; color: var(--bone); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ew-chart__big--red span:last-child { color: var(--red); }
.ew-chart__arrow { color: var(--mute-d); font-size: .7em; }
.ew-chart__sub { color: var(--mute-d); font-size: 1rem; font-style: italic; }
.ew-chart__plot { position: relative; height: clamp(260px, 30vw, 340px); touch-action: pan-y; }
.ew-chart__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ew-chart__plot text { font-family: var(--f-label); fill: var(--mute-d); font-size: 13px; }
.ew-chart__plot .ew-lbl { fill: var(--bone); font-size: 14px; font-variant-numeric: tabular-nums; }
.ew-tip {
	position: absolute; top: 0; pointer-events: none; z-index: 2;
	background: #111; border: 1px solid var(--line-d); padding: .55rem .75rem; min-width: 190px;
	font-size: .95rem; line-height: 1.35; color: var(--bone); font-variant-numeric: tabular-nums;
	box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.ew-tip__yr { font-weight: 600; letter-spacing: .12em; margin-bottom: .25rem; }
.ew-tip__row { display: grid; grid-template-columns: 12px 1fr auto; gap: .5rem; align-items: center; }
.ew-tip__row i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ew-tip__note { color: var(--mute-d); font-style: italic; font-size: .85rem; margin-top: .2rem; }
.ew-chart__legend { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; color: #d0cec8; }
.ew-chart__legend li { display: flex; align-items: center; gap: .5rem; }
.ew-swatch { width: 22px; height: 3px; border-radius: 2px; background: var(--c); flex: none; }
.ew-swatch--thin { height: 2px; }
.ew-record__table { margin-top: 2.5rem; }
.ew-record__table summary { cursor: pointer; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; color: var(--bone); }
.ew-table-wrap { overflow-x: auto; margin-top: 1rem; }
.ew-record__table table { border-collapse: collapse; width: 100%; min-width: 620px; font-variant-numeric: tabular-nums; font-size: 1rem; }
.ew-record__table th, .ew-record__table td { padding: .5rem .8rem; border-bottom: 1px solid var(--line-d); text-align: right; }
.ew-record__table th:first-child { text-align: left; }
.ew-record__table thead th { color: var(--mute-d); font-weight: 500; font-size: .9rem; }
.ew-record__source { margin: 2rem 0 0; max-width: 80ch; color: var(--mute-d); font-size: .92rem; line-height: 1.5; }
.ew-record__source strong { color: var(--bone); font-weight: 600; }
@media (max-width: 900px) { .ew-charts { grid-template-columns: 1fr; } }

/* ---------- Contents ---------- */
.ew-toc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 3rem; }
.ew-toc__part { border-top: 1px solid var(--line-d); padding-top: 1.3rem; min-width: 0; }
.ew-toc__label { color: var(--red); margin: 0 0 .4rem; }
.ew-toc__title { margin: 0 0 1.2rem; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .2em; line-height: 1.3; }
.ew-toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ew-toc__list li { display: grid; grid-template-columns: 2.1rem 1fr; font-size: 1.02rem; line-height: 1.35; color: #d5d3cd; }
.ew-toc__num { font-family: var(--f-label); font-size: .95rem; font-weight: 500; font-style: italic; color: var(--mute-d); font-variant-numeric: tabular-nums; padding-top: .2rem; }
@media (max-width: 1000px) { .ew-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ew-toc { grid-template-columns: 1fr; } }

/* ---------- Praise ---------- */
.ew-praise { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 3vw, 48px); }
.ew-praise__item { margin: 0; }
.ew-praise__item blockquote { margin: 0 0 1rem; font-size: 1.25rem; line-height: 1.45; }
.ew-praise__item blockquote p::before { content: "“"; color: var(--red); font-family: var(--f-display); font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-right: .08em; }
.ew-praise__item figcaption { font-family: var(--f-label); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; display: grid; gap: .15rem; }
.ew-praise__item figcaption span { color: var(--mute-l); }

/* ---------- Editions ---------- */
.ew-section--editions { border-top: 1px solid var(--line-l); }
.ew-editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ew-edition { background: #fff; border: 1px solid var(--line-l); display: flex; flex-direction: column; min-width: 0; }
.ew-edition__art { background: var(--paper-2); aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center; padding: 1.5rem; overflow: hidden; }

/* Edition tiles: just the image, whole and centered */
.ew-edition__art { padding: 1.5rem; }
.ew-edition__img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ew-edition__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ew-edition__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.ew-edition__name { margin: 0; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .24em; line-height: 1.1; }
.ew-edition__spec { margin: .6rem 0 0; color: var(--mute-l); font-size: .78rem; }
.ew-edition__price { margin: .9rem 0 0; font-family: var(--f-label); font-weight: 600; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.ew-edition__ctas { margin-top: auto; padding-top: 1.4rem; display: grid; gap: .6rem; }
.ew-audio-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(62%, 200px); }
.ew-audio-tile .ew-cover__img { object-position: 50% 12%; }
.ew-cover--square { position: relative; width: 100%; aspect-ratio: 1; box-shadow: 10px 14px 34px rgba(0,0,0,.35); }
.ew-audio-tile__wave { display: flex; align-items: center; gap: 2px; height: 28px; width: 100%; }
.ew-audio-tile__wave i { flex: 1; height: var(--h); background: var(--red); }
@media (max-width: 900px) { .ew-editions { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Authors ---------- */
.ew-authors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin-top: 1rem; }
.ew-authors--1 { grid-template-columns: minmax(0, 820px); }
.ew-author { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 1.75rem; align-items: start; border-top: 1px solid var(--line-d); padding-top: 1.75rem; }
.ew-author__photo { aspect-ratio: 4 / 5; background: var(--ink-3); position: relative; overflow: hidden; max-width: 100%; }
.ew-author__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.ew-author__mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 500; font-size: 3.2rem; letter-spacing: .12em; padding-left: .12em; color: var(--red); }
.ew-author__name { margin: 0 0 .7rem; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; color: var(--red); }
.ew-author__bio { max-width: 58ch; color: #d0cec8; margin: 0; }
@media (max-width: 900px) { .ew-authors { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ew-author { grid-template-columns: 1fr; } .ew-author__photo { width: min(180px, 100%); } }

/* ---------- Final CTA ---------- */
.ew-cta { background: var(--red); color: #fff; }
.ew-cta__inner { padding-block: clamp(64px, 8vw, 112px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.ew-cta__h { margin: 0; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.8rem); letter-spacing: .16em; line-height: 1.15; max-width: 18ch; text-wrap: balance; }
.ew-cta__btns { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 480px) { .ew-cta__btns .ew-btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.ew-footer { background: #0a0a0a; color: var(--mute-d); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); font-family: var(--f-label); font-size: .95rem; }
.ew-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.ew-footer__title { margin: 0; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .22em; color: var(--bone); font-size: 1rem; }
.ew-footer__meta { margin: .2rem 0 0; letter-spacing: .08em; }
.ew-footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.ew-footer__links a { text-decoration: none; letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; font-weight: 500; }
.ew-footer__links a:hover { color: var(--bone); }
.ew-footer__copy { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line-d); font-size: .85rem; }
@media (max-width: 700px) { .ew-footer__inner { grid-template-columns: 1fr; } }

/* ---------- WordPress basics ---------- */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: .85rem; color: var(--mute-l); }
