/* =============================================================
   Yasmeen Abdellatif — theme styles
   Palette from the cover: ink black, bone paper, olive green, brick red.
   Type: Bebas Neue (all-caps display) · Cormorant Garamond (story) · Inter (body)
   ============================================================= */

:root {
	--ink: #121110;
	--ink-2: #1b1917;
	--ink-3: #26231f;
	--paper: #f5f0e6;
	--sand: #ebe3d3;
	--sand-2: #ddd2bd;
	--white: #fffdf8;
	--text: #1d1b19;
	--text-soft: #4b453e;
	--text-mute: #7b7369;
	--green: #557a3e;
	--green-light: #8fb36f;
	--green-deep: #233420;
	--red: #c23a2f;
	--red-light: #e2685c;
	--red-deep: #85231d;
	--cream-on-dark: rgba(245, 240, 230, 0.78);
	--line: rgba(29, 27, 25, 0.14);
	--line-light: rgba(245, 240, 230, 0.16);

	--f-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
	--f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4.5vw, 48px);
	--header-h: 76px;
	--radius: 6px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	--tatreez: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0.5 12.5l3 3M3.5 12.5l-3 3M4.5 8.5l3 3M7.5 8.5l-3 3M8.5 4.5l3 3M11.5 4.5l-3 3M12.5 .5l3 3M15.5 .5l-3 3M16.5 .5l3 3M19.5 .5l-3 3M20.5 4.5l3 3M23.5 4.5l-3 3M24.5 8.5l3 3M27.5 8.5l-3 3M28.5 12.5l3 3M31.5 12.5l-3 3M14.5 8.5l3 3M17.5 8.5l-3 3' stroke='%23c23a2f' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	--tatreez-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0.5 12.5l3 3M3.5 12.5l-3 3M4.5 8.5l3 3M7.5 8.5l-3 3M8.5 4.5l3 3M11.5 4.5l-3 3M12.5 .5l3 3M15.5 .5l-3 3M16.5 .5l3 3M19.5 .5l-3 3M20.5 4.5l3 3M23.5 4.5l-3 3M24.5 8.5l3 3M27.5 8.5l-3 3M28.5 12.5l3 3M31.5 12.5l-3 3M14.5 8.5l3 3M17.5 8.5l-3 3' stroke='%23e2685c' stroke-opacity='.55' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	--grain: 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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-x: clip; /* clip doesn't create a scroll container, so sticky elements keep working */
}
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 2px solid var(--red-light); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 0.95;
	margin: 0 0 0.45em;
}
h1 em, h2 em, h3 em { font-style: normal; color: var(--red); }
.on-ink h1 em, .on-ink h2 em { color: var(--red-light); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--red); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Surfaces ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.on-ink { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.on-ink::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); pointer-events: none; z-index: 0; }
.on-ink > * { position: relative; z-index: 1; }
.on-ink p, .on-ink .lede { color: var(--cream-on-dark); }
.on-green { background: var(--green-deep); color: var(--paper); position: relative; overflow: hidden; }
.on-green p { color: var(--cream-on-dark); }
.bg-sand { background: var(--sand); }

/* Smoke (echoes the blurred figures on the cover) */
.smoke { position: absolute; inset: 0; pointer-events: none; z-index: 0 !important; overflow: hidden; }
.smoke span {
	position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
	background: radial-gradient(closest-side, rgba(120, 112, 100, 0.55), rgba(120, 112, 100, 0));
	animation: drift 26s ease-in-out infinite alternate;
}
.smoke span:nth-child(1) { width: 60vw; height: 30vw; left: -10vw; top: 10%; }
.smoke span:nth-child(2) { width: 50vw; height: 26vw; right: -12vw; bottom: 5%; animation-delay: -8s; background: radial-gradient(closest-side, rgba(194, 58, 47, 0.28), rgba(194, 58, 47, 0)); }
.smoke span:nth-child(3) { width: 40vw; height: 22vw; left: 30vw; top: 55%; animation-delay: -15s; background: radial-gradient(closest-side, rgba(85, 122, 62, 0.3), rgba(85, 122, 62, 0)); }
@keyframes drift {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	100% { transform: translate3d(8vw, -4vw, 0) scale(1.15); }
}

/* ---------- Type pieces ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 14px;
	font-family: var(--f-body); font-size: 12px; font-weight: 700;
	letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.on-ink .eyebrow, .on-green .eyebrow { color: var(--red-light); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--text-soft); max-width: 58ch; }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section-head h2 { font-size: clamp(46px, 6.5vw, 92px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head.split > div:first-child { max-width: 720px; }

.stitch { height: 16px; background: var(--tatreez) repeat-x center; }
.stitch.light { background-image: var(--tatreez-light); }
.stitch.short { width: 160px; margin: 0 auto 28px; }
.stitch.edge-top, .stitch.edge-bottom { position: absolute; left: 0; right: 0; z-index: 1; }
.stitch.edge-top { top: 22px; }
.stitch.edge-bottom { bottom: 22px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 28px;
	border: 2px solid transparent; border-radius: 999px;
	font-family: var(--f-body); font-size: 13px; font-weight: 700;
	letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; white-space: nowrap;
	transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 30px -12px rgba(194, 58, 47, 0.7); }
.btn-red:hover { background: var(--red-deep); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--red); }
.btn-dark-outline { border-color: var(--ink); color: var(--ink); }
.btn-dark-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { border-color: rgba(245, 240, 230, 0.45); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.text-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--red); text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-actions.center { justify-content: center; }

/* ---------- Header: logo left · menu centered · socials right ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	color: var(--paper);
	border-bottom: 1px solid rgba(245, 240, 230, 0.08);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(18, 17, 16, 0.94);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner {
	max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
	height: var(--header-h);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.header-left { justify-self: start; }
.header-right { justify-self: end; display: flex; align-items: center; gap: 8px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 4px;
	background: var(--red); color: #fff;
	font-family: var(--f-display); font-size: 23px; letter-spacing: 0.04em; line-height: 1; padding-top: 3px;
}
.brand-name {
	font-family: var(--f-display); font-size: 25px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
}
.brand-name span { color: var(--red-light); }
.custom-logo { max-height: 52px; width: auto; }

.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(8px, 2vw, 34px); }
.main-nav .menu a {
	position: relative; display: block; padding: 10px 2px;
	font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
	text-decoration: none; color: rgba(245, 240, 230, 0.75);
	transition: color 0.2s;
}
.main-nav .menu a::after {
	content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; border-radius: 50%;
	background: var(--red-light); transform: translateX(-50%) scale(0); transition: transform 0.3s var(--ease);
}
.main-nav .menu a:hover { color: #fff; }
.main-nav .menu a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after,
.main-nav .current_page_parent > a::after { transform: translateX(-50%) scale(1); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current_page_parent > a { color: #fff; }

.social-icons { display: flex; align-items: center; gap: 6px; }
.social-icons a {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	color: currentColor; border: 1px solid rgba(245, 240, 230, 0.2);
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.social-icons a svg { width: 17px; height: 17px; }
.social-icons a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social-icons.dark a { border-color: var(--line); color: var(--text); }
.social-icons.dark a:hover { color: #fff; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; margin-right: -8px; color: var(--paper); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-only { display: none; }

@media (max-width: 1080px) {
	.header-inner { grid-template-columns: 1fr auto; }
	.nav-toggle { display: block; }
	.desktop-only { display: none; }
	.mobile-only { display: block; }
	.main-nav {
		position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
		background: var(--ink);
		display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 36px;
		padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
		opacity: 0; visibility: hidden; transform: translateY(-12px);
		transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
		overflow-y: auto;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.main-nav .menu { flex-direction: column; gap: 4px; text-align: center; }
	.main-nav .menu a { font-family: var(--f-display); font-weight: 400; font-size: clamp(42px, 11vw, 64px); letter-spacing: 0.04em; line-height: 1.1; padding: 4px 0; }
	.main-nav .menu a::after { bottom: 50%; left: auto; right: -22px; transform: translateY(50%) scale(0); width: 10px; height: 10px; }
	.main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after, .main-nav .current_page_parent > a::after { transform: translateY(50%) scale(1); }
	.main-nav .menu a:hover::after { transform: translateY(50%) scale(1); }
	.mobile-menu-foot .social-icons a { width: 48px; height: 48px; }
}
@media (max-width: 420px) {
	:root { --header-h: 66px; }
	.brand-mark { width: 36px; height: 36px; font-size: 20px; }
	.brand-name { font-size: 21px; letter-spacing: 0.06em; }
}

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-title { font-size: clamp(56px, 7.4vw, 140px); line-height: 0.86; letter-spacing: 0.005em; margin-bottom: 28px; }
.hero-title span { display: block; white-space: nowrap; }
@media (max-width: 900px) { .hero-title { font-size: min(17vw, 120px); } }
@media (max-width: 340px) { .hero-title span { white-space: normal; } }
.t-green { color: var(--green-light); }
.t-red { color: var(--red-light); }
.hero-hook { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; color: var(--paper) !important; max-width: 24ch; margin-bottom: 0; }
.hero-meta { list-style: none; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-meta li { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245, 240, 230, 0.6); }
.hero-meta li::before { content: "✕"; color: var(--red-light); margin-right: 10px; font-size: 10px; }

.hero-book { position: relative; display: flex; justify-content: center; }
.book-glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(194, 58, 47, 0.35), transparent 75%); filter: blur(30px); }
.book {
	position: relative; display: block; width: min(100%, 440px);
	border-radius: 3px 8px 8px 3px; overflow: hidden;
	box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.8), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
	transform: perspective(1600px) rotateY(-16deg) rotateX(3deg);
	transition: transform 0.9s var(--ease);
}
.book::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 16px; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.3) 45%, transparent); }
.book:hover { transform: perspective(1600px) rotateY(-5deg) rotateX(0); }
.stamp {
	position: absolute; left: 0; bottom: 12%;
	width: 120px; height: 120px; border-radius: 50%;
	background: var(--red); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	transform: rotate(-12deg); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
	outline: 2px dashed rgba(255, 255, 255, 0.45); outline-offset: -9px;
}
.stamp span { font-size: 10px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
.stamp strong { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: 0.04em; }

.scroll-cue {
	position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
	border: 1px solid var(--line-light); color: var(--paper);
	animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 20px; height: 20px; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

@media (max-width: 900px) {
	.hero { min-height: 0; }
	.hero-grid { grid-template-columns: 1fr; text-align: center; }
	.hero-book { order: -1; }
	.book { width: min(64vw, 300px); transform: perspective(1600px) rotateY(-10deg); }
	.stamp { width: 92px; height: 92px; left: max(0px, calc(50% - 190px)); }
	.stamp strong { font-size: 26px; }
	.hero-hook { margin-left: auto; margin-right: auto; }
	.hero-actions, .hero-meta { justify-content: center; }
	.hero-copy .eyebrow::before { display: none; }
	.scroll-cue { display: none; }
}
@media (max-width: 420px) {
	.hero-actions .btn { width: 100%; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 16px 0; border-top: 1px solid var(--red-deep); border-bottom: 1px solid var(--red-deep); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(26px, 3vw, 40px); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; padding: 0 26px; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 14px; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story chapters ---------- */
.story .section-head h2 { max-width: 14ch; }
.story-grid { display: grid; grid-template-columns: minmax(220px, 0.42fr) 1fr; gap: clamp(32px, 6vw, 110px); }
.story-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.story-numeral {
	font-family: var(--f-display); font-size: clamp(160px, 18vw, 280px); line-height: 0.8;
	color: transparent; -webkit-text-stroke: 2px var(--red);
	transition: opacity 0.4s;
}
.story-label { font-family: var(--f-display); font-size: 34px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-top: 18px; }
.story-progress { margin-top: 22px; height: 3px; background: var(--sand-2); max-width: 220px; }
.story-progress span { display: block; height: 100%; width: 25%; background: var(--red); transition: width 0.5s var(--ease); }

.chapter { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); min-height: 42vh; display: flex; flex-direction: column; justify-content: center; }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter-num { font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.chapter h3 { font-size: clamp(44px, 5.4vw, 76px); }
.chapter p { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.45; color: var(--text-soft); max-width: 34ch; }
.chapter-strike .strike-line {
	font-family: var(--f-display); font-size: clamp(56px, 8vw, 128px); line-height: 0.9;
	text-transform: uppercase; color: var(--red); max-width: none; letter-spacing: 0.01em;
}
.story-finale { margin-top: clamp(48px, 7vw, 96px); padding: clamp(40px, 6vw, 72px) var(--gutter); background: var(--ink); color: var(--paper); text-align: center; border-radius: var(--radius); position: relative; overflow: hidden; }
.story-finale::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 120%, rgba(194, 58, 47, 0.45), transparent); }
.story-finale > * { position: relative; }
.finale-q { font-family: var(--f-display); font-size: clamp(46px, 7vw, 108px); line-height: 0.92; text-transform: uppercase; margin: 0 0 28px; color: var(--paper); }

@media (max-width: 860px) {
	.story-grid { grid-template-columns: 1fr; }
	.story-aside { display: none; }
	.chapter { min-height: 0; }
}

/* ---------- Praise ---------- */
.praise { padding-top: clamp(96px, 11vw, 150px); padding-bottom: clamp(96px, 11vw, 150px); }
.praise .section-head h2 { font-size: clamp(42px, 5.5vw, 80px); }
.praise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.quote { margin: 0; padding: clamp(28px, 3.5vw, 48px); background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line-light); border-radius: var(--radius); display: flex; flex-direction: column; }
.quote-icon { color: var(--red-light); width: 46px; margin-bottom: 22px; }
.quote blockquote { margin: 0 0 28px; font-family: var(--f-serif); font-size: clamp(23px, 2.2vw, 31px); line-height: 1.35; color: var(--paper); font-style: italic; }
.quote figcaption { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.quote cite { font-style: normal; font-family: var(--f-display); font-size: 26px; letter-spacing: 0.06em; color: #fff; }
.quote figcaption a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-light); text-decoration: none; }
.quote figcaption a svg { width: 14px; height: 14px; }
.quote figcaption a:hover { color: #fff; }
@media (max-width: 860px) { .praise-grid { grid-template-columns: 1fr; } }

/* ---------- Where to buy ---------- */
.buy-grid { display: grid; grid-template-columns: minmax(200px, 0.34fr) 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.buy-book img { width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: 0 40px 60px -28px rgba(0, 0, 0, 0.55); transform: rotate(-4deg); }
.buy .section-head h2 { font-size: clamp(42px, 5.5vw, 78px); }
.retailers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.retailer {
	display: flex; flex-direction: column; gap: 16px;
	padding: 22px 22px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.retailer:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, 0.35); }
.retailer-logo { display: flex; align-items: center; justify-content: center; height: 64px; }
.retailer-logo img { max-height: 54px; width: auto; max-width: 100%; }
.retailer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.retailer-note { font-size: 12px; color: var(--text-mute); }
.retailer-go { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.retailer-go svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.retailer:hover .retailer-go svg { transform: translateX(4px); }
@media (max-width: 860px) {
	.buy-grid { grid-template-columns: 1fr; }
	.buy-book { max-width: 200px; margin: 0 auto; }
}
@media (max-width: 480px) {
	.retailers { grid-template-columns: 1fr; }
}

/* ---------- Videos ---------- */
.videos .section-head h2 { font-size: clamp(46px, 6vw, 88px); }
.videos .section-head .lede { margin-left: auto; margin-right: auto; }

/* Even grid: 3 across on desktop, 2 on tablets and phones */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.video-card {
	position: relative; display: block; overflow: hidden; isolation: isolate;
	aspect-ratio: 4 / 5; border-radius: 14px; text-decoration: none; color: #fff;
	background: var(--ink-3); border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.video-card:hover, .video-card:focus-visible { transform: translateY(-6px); border-color: rgba(226, 104, 92, 0.6); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.95); }
.video-poster, .video-shade { position: absolute; inset: 0; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 0.9s var(--ease), filter 0.5s; filter: saturate(0.85); }
.video-card:hover .video-poster img { transform: scale(1.06); filter: saturate(1); }
.video-shade { background: linear-gradient(180deg, rgba(10, 9, 8, 0.25) 0%, rgba(10, 9, 8, 0) 30%, rgba(10, 9, 8, 0.45) 55%, rgba(10, 9, 8, 0.95) 100%); }

.video-badge {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	display: inline-flex; align-items: center; gap: 7px;
	padding: 7px 12px 7px 10px; border-radius: 999px;
	font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	background: rgba(10, 9, 8, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.video-badge svg { width: 14px; height: 14px; }
.is-tiktok .video-badge svg { color: #25f4ee; filter: drop-shadow(1px 1px 0 #fe2c55); }
.is-instagram .video-badge svg { color: #f77737; }
.is-youtube .video-badge svg { color: #ff0033; }

.video-play {
	position: absolute; top: 44%; left: 50%; z-index: 2;
	width: clamp(54px, 6vw, 72px); height: clamp(54px, 6vw, 72px); border-radius: 50%;
	display: grid; place-items: center;
	background: var(--red); color: #fff;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 0 rgba(194, 58, 47, 0.55);
	transition: transform 0.35s var(--ease), background 0.3s;
	animation: play-ring 2.6s ease-in-out infinite;
}
.video-play svg { width: 42%; height: 42%; margin-left: 8%; }
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.1); background: var(--red-deep); }
@keyframes play-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(194, 58, 47, 0.5); } 60% { box-shadow: 0 0 0 16px rgba(194, 58, 47, 0); } }

.video-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(14px, 2vw, 22px); display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 8px; align-items: baseline; }
.video-num { font-family: var(--f-display); font-size: clamp(18px, 1.8vw, 24px); color: var(--red-light); line-height: 1; }
.video-title { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 30px); letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; }
.video-cta { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.video-cta svg { width: 13px; height: 13px; }
.video-card:hover .video-cta { color: #fff; }

/* Follow buttons in brand colors */
.video-follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.video-follow .btn svg { width: 18px; height: 18px; }
.btn-tiktok { background: #fff; color: #111; }
.btn-tiktok svg { filter: drop-shadow(1.5px 1.5px 0 #fe2c55) drop-shadow(-1px -1px 0 #25f4ee); }
.btn-tiktok:hover { background: #111; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4); color: #fff; }
.btn-instagram:hover { filter: brightness(1.08); }

@media (max-width: 640px) {
	.video-card { aspect-ratio: 3 / 4; border-radius: 12px; }
	.video-badge { top: 10px; left: 10px; padding: 6px 9px; font-size: 9px; letter-spacing: 0.1em; }
	.video-badge svg { width: 12px; height: 12px; }
	.video-info { padding: 12px; row-gap: 6px; }
	.video-title { font-size: 18px; }
	.video-num { font-size: 16px; }
	.video-cta { font-size: 9px; letter-spacing: 0.08em; white-space: nowrap; }
	.video-play { top: 36%; width: 46px; height: 46px; }
	.video-follow .btn { flex: 1 1 100%; }
}
@media (max-width: 360px) {
	.video-grid { grid-template-columns: 1fr; }
	.video-card { aspect-ratio: 4 / 3; }
	.video-play { top: 44%; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .video-play { animation: none; } }

/* ---------- Author ---------- */
.author-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.author-photos { position: relative; padding: 0 12% 12% 0; }
.photo-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); }
.photo-main { position: relative; }
.photo-main::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 2px solid var(--red); border-radius: var(--radius); z-index: -1; }
.photo-float { position: absolute; right: 0; bottom: 0; width: 42%; border: 8px solid var(--paper); border-radius: var(--radius); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.45); transform: rotate(3deg); }
.photo-float img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.author-copy h2 { font-size: clamp(54px, 7vw, 104px); }
.author-copy .lede { color: var(--text); font-family: var(--f-serif); font-size: clamp(23px, 2vw, 28px); line-height: 1.4; }
.author-copy p { color: var(--text-soft); }

.facts { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 18px 16px 18px 0; }
.facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.facts span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.facts strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
@media (max-width: 900px) {
	.author-grid { grid-template-columns: 1fr; }
	.author-photos { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
	.facts { grid-template-columns: 1fr; }
	.facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Finale ---------- */
.finale { padding: clamp(96px, 13vw, 180px) 0; text-align: center; }
.finale h2 { font-size: clamp(54px, 9vw, 150px); line-height: 0.88; max-width: 14ch; margin: 0 auto; }
.finale .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(72px, 10vw, 140px) 0 clamp(80px, 10vw, 140px); }
.page-hero h1 { font-size: clamp(72px, 12vw, 190px); line-height: 0.86; margin-bottom: 20px; }
.page-hero .lede { color: var(--cream-on-dark); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: stretch; }
.about-photo { position: relative; }
.about-photo .frame { position: sticky; top: calc(var(--header-h) + 32px); }
.admin-bar .about-photo .frame { top: calc(var(--header-h) + 64px); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); }
.about-photo .frame::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--red); border-radius: var(--radius); z-index: -1; }
.about-body p { font-size: 19px; color: var(--text-soft); }
.about-body .big { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(38px, 4.2vw, 62px); line-height: 0.98; color: var(--text); margin-bottom: 32px; letter-spacing: 0.01em; }
@media (max-width: 900px) {
	.about-grid { grid-template-columns: 1fr; }
	.about-photo { max-width: 460px; margin-right: 18px; }
	.about-photo .frame { position: relative; top: 0; }
}

.gallery { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-tall { grid-row: span 2; min-height: 100%; }
.gallery .g-tall img { position: absolute; inset: 0; object-position: 50% 25%; }
.gallery .g-a img, .gallery .g-b img { aspect-ratio: 4 / 3; }
.gallery .g-a img { object-position: 50% 35%; }
.gallery .g-b img { object-position: 50% 80%; }
.gallery figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
@media (max-width: 700px) {
	.gallery { grid-template-columns: 1fr 1fr; }
	.gallery .g-tall { grid-column: span 2; grid-row: auto; }
	.gallery .g-tall img { position: static; aspect-ratio: 4 / 5; }
}

/* ---------- Books ---------- */
/* Cover column stretches to the full height of the text so the cover can stay pinned while reading */
.book-feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: stretch; }
.book-feature-cover { position: relative; }
.book-sticky { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; align-items: center; }
.admin-bar .book-sticky { top: calc(var(--header-h) + 72px); }
/* Cover sized so the whole pinned book (plus its buy link) fits on short laptop screens too */
.book-feature .book { width: min(100%, 420px, calc((100vh - var(--header-h) - 190px) * 0.6785)); }
.book-title { font-size: clamp(56px, 7.5vw, 116px); line-height: 0.86; }
.book-title span { display: block; }
.book-title .t-green { color: var(--green); }
.book-title .t-red { color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 30px; }
.tags span { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--text-soft); }
.synopsis p { font-size: 18px; color: var(--text-soft); }
.synopsis .dropcap::first-letter { float: left; font-family: var(--f-display); font-size: 92px; line-height: 0.8; padding: 8px 12px 0 0; color: var(--red); }
.synopsis .pull { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.35; color: var(--text); padding-left: 22px; border-left: 3px solid var(--red); margin-top: 30px; }
.buy-box { margin-top: 48px; padding: clamp(22px, 3vw, 34px); background: var(--sand); border-radius: var(--radius); }
.buy-box h3 { font-size: 42px; margin-bottom: 20px; }
.isbn { margin-top: 18px; font-size: 13px; color: var(--text-mute); }
@media (max-width: 900px) {
	.book-feature { grid-template-columns: 1fr; }
	.book-sticky { position: relative; top: 0; }
	.admin-bar .book-sticky { top: 0; }
	.book-feature .book { width: min(64vw, 300px); }
}

/* Phones: a slim pinned bar with the cover while the synopsis is being read */
.book-mini-bar { display: none; }
@media (max-width: 900px) {
	.book-mini-bar {
		display: flex; align-items: center; gap: 12px;
		position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
		padding: 8px 8px 8px 10px; border-radius: 14px;
		background: rgba(18, 17, 16, 0.95); color: var(--paper);
		box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
		transform: translateY(140%); transition: transform 0.4s var(--ease);
	}
	.book-mini-bar.show { transform: none; }
	.mini-cover img { width: 40px; height: auto; border-radius: 2px 4px 4px 2px; }
	.mini-title { flex: 1; font-family: var(--f-display); font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.05; }
	.book-mini-bar .btn { min-height: 42px; padding: 10px 18px; }
}

.coming-next { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border: 2px dashed var(--sand-2); border-radius: var(--radius); }
.ghost-book { width: 90px; aspect-ratio: 2 / 3; border-radius: 3px 6px 6px 3px; display: grid; place-items: center; font-family: var(--f-display); font-size: 48px; color: var(--text-mute); background: repeating-linear-gradient(135deg, var(--sand) 0 8px, var(--sand-2) 8px 16px); }
.coming-next h3 { font-size: clamp(32px, 3.5vw, 48px); }
.coming-next p { color: var(--text-soft); }
@media (max-width: 700px) { .coming-next { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -28px rgba(0, 0, 0, 0.45); }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb.placeholder { background: var(--ink) var(--tatreez-light); background-size: 48px 24px; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.on-ink .post-meta { color: var(--green-light); }
.post-card h3 { font-size: 34px; }
.post-card p { font-size: 15px; color: var(--text-soft); }
.post-card .text-link { margin-top: auto; padding-top: 18px; }
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

.blog-empty { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.blog-empty h2 { font-size: clamp(40px, 5vw, 64px); }
.blog-empty p { color: var(--text-soft); max-width: 46ch; margin: 0 auto; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.post-header { padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px); }
.post-header h1 { font-size: clamp(52px, 8vw, 110px); line-height: 0.9; }
.post-cover { margin: 0 0 48px; border-radius: var(--radius); overflow: hidden; }
.post-cover img { width: 100%; }
.post-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Editor content */
.entry-content { font-size: 19px; line-height: 1.8; color: var(--text-soft); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(38px, 4vw, 56px); color: var(--text); margin-top: 1.4em; }
.entry-content h3 { font-size: clamp(30px, 3vw, 40px); color: var(--text); margin-top: 1.3em; }
.entry-content a { color: var(--red); }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 1.6em 0; padding-left: 24px; border-left: 3px solid var(--red); font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.4; color: var(--text); }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-block-image { text-align: center; }
.entry-content .wp-block-image img { max-height: 78vh; width: auto; margin: 0 auto; display: block; }
.entry-content .wp-block-image figcaption { text-align: center; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 14px; color: var(--text-mute); margin-top: 8px; }
.entry-content .alignwide { margin-left: calc(-8vw); margin-right: calc(-8vw); max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 960px) { .entry-content .alignwide { margin-left: 0; margin-right: 0; } }
.entry-content iframe, .wp-block-embed__wrapper iframe { max-width: 100%; }
.wp-block-embed { margin: 1.6em 0; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em 0; } }

/* Comments */
.comments-area { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-card { padding: clamp(26px, 3.5vw, 44px); border-radius: var(--radius); }
.contact-card h2 { font-size: clamp(40px, 4vw, 56px); }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 40px; }
.contact-lines li { padding: 18px 0; border-top: 1px solid var(--line-light); }
.contact-lines li:last-child { border-bottom: 1px solid var(--line-light); }
.contact-lines .label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red-light); margin-bottom: 6px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; text-decoration: none; color: var(--paper); word-break: break-all; }
.contact-lines a svg { width: 18px; height: 18px; flex: none; }
.contact-lines a:hover { color: var(--red-light); }
.form-title { font-size: clamp(44px, 5vw, 72px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--text);
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(194, 58, 47, 0.14); }
.field .btn { justify-self: start; align-self: flex-start; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin: 8px 0 20px; font-size: 15px; }
.notice.success { background: #e3eedb; color: #2d4a1f; border: 1px solid #b9d3a5; }
.notice.error { background: #f8e0dc; color: #7c211c; border: 1px solid #e9b3aa; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .field .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245, 240, 230, 0.7); padding: 72px 0 32px; font-size: 15px; }
.site-footer .stitch { margin-bottom: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: var(--paper); margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; margin-bottom: 22px; }
.site-footer h4 { font-size: 26px; letter-spacing: 0.08em; color: var(--paper); margin-bottom: 16px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-menu .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.footer-menu a { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(245, 240, 230, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(245, 240, 230, 0.45); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 400px) { .footer-grid { grid-template-columns: 1fr; } }

.sticky-buy { margin-top: 32px; }

/* ---------- Interactive preloader ---------- */
.preloader { display: none; }
.js.ya-loading { overflow: hidden; }
.js .preloader {
	--mx: 0; --my: 0; --p: 0;
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	background: var(--ink); color: var(--paper);
	overflow: hidden; touch-action: none;
	transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.js .preloader::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); pointer-events: none; }
.preloader.pl-done { opacity: 0; visibility: hidden; pointer-events: none; }

.pl-smoke { position: absolute; inset: -10%; pointer-events: none; }
.pl-smoke span {
	position: absolute; border-radius: 50%; filter: blur(70px);
	transition: transform 1.2s var(--ease);
}
.pl-smoke span:nth-child(1) { width: 55vmax; height: 30vmax; left: 0; top: 10%; background: radial-gradient(closest-side, rgba(130, 120, 108, 0.45), transparent); transform: translate(calc(var(--mx) * 6vw), calc(var(--my) * 5vh)); }
.pl-smoke span:nth-child(2) { width: 45vmax; height: 28vmax; right: 0; bottom: 5%; background: radial-gradient(closest-side, rgba(194, 58, 47, 0.35), transparent); transform: translate(calc(var(--mx) * -8vw), calc(var(--my) * -6vh)); }
.pl-smoke span:nth-child(3) { width: 35vmax; height: 22vmax; left: 35%; top: 40%; background: radial-gradient(closest-side, rgba(85, 122, 62, 0.35), transparent); transform: translate(calc(var(--mx) * 10vw), calc(var(--my) * 8vh)); }

.pl-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px var(--gutter); width: 100%; max-width: 560px; }
.pl-book {
	position: relative; width: clamp(130px, 22vh, 200px); aspect-ratio: 2714 / 4000;
	padding: 0; border: 0; background: none; cursor: default;
	perspective: 1200px; margin-bottom: clamp(20px, 4vh, 36px);
	transform: rotateY(calc(var(--mx) * 22deg)) rotateX(calc(var(--my) * -14deg));
	transform-style: preserve-3d; transition: transform 0.5s var(--ease);
	animation: pl-float 4s ease-in-out infinite;
}
.pl-ready .pl-book { cursor: pointer; }
.pl-pages { position: absolute; inset: 2% 0 2% 3%; background: repeating-linear-gradient(90deg, #f3ecdf 0 2px, #ddd3c0 2px 3px); border-radius: 2px 6px 6px 2px; box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.9); }
.pl-cover { position: absolute; inset: 0; transform-origin: left center; transition: transform 1s var(--ease); border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.9); backface-visibility: hidden; }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 60%); background-size: 250% 100%; background-position: calc(100% - var(--p) * 1%) 0; }
.pl-opening .pl-cover { transform: rotateY(-155deg); }
.pl-opening .pl-book { animation: none; transform: none; }
@keyframes pl-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.pl-title { font-family: var(--f-display); font-size: clamp(30px, 6vw, 52px); line-height: 0.95; letter-spacing: 0.02em; text-transform: uppercase; }
.pl-title span { display: block; clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0); transition: clip-path 0.3s linear; }
.pl-title .t-green { color: var(--green-light); }
.pl-title .t-red { color: var(--red-light); }

.pl-progress { display: flex; align-items: center; gap: 14px; width: min(320px, 80vw); margin: 22px 0 26px; }
.pl-track { flex: 1; height: 16px; position: relative; }
.pl-track::before { content: ""; position: absolute; inset: 0; background: var(--tatreez-light) repeat-x left center; opacity: 0.35; }
.pl-track span { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 1%); background: var(--tatreez) repeat-x left center; }
.pl-count { font-family: var(--f-display); font-size: 26px; min-width: 3ch; color: var(--paper); text-align: right; }

.pl-enter { min-width: 220px; }
.pl-enter:disabled { background: transparent; border-color: rgba(245, 240, 230, 0.25); color: rgba(245, 240, 230, 0.6); box-shadow: none; cursor: progress; transform: none; }
.pl-ready .pl-enter { animation: pl-pulse 2s ease-in-out infinite; }
@keyframes pl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(194, 58, 47, 0.55); } 50% { box-shadow: 0 0 0 14px rgba(194, 58, 47, 0); } }
.pl-hint { margin: 16px 0 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 240, 230, 0.45); }
.pl-skip {
	position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2;
	background: none; border: 1px solid rgba(245, 240, 230, 0.25); color: rgba(245, 240, 230, 0.7);
	padding: 8px 16px; border-radius: 999px; font: 600 11px/1 var(--f-body); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
}
.pl-skip:hover { border-color: var(--paper); color: #fff; }

/* Quick mode on later pages in the same visit: just the mark and a thin bar */
.pl-mini { display: none; position: relative; z-index: 1; flex-direction: column; align-items: center; gap: 18px; }
.pl-mini .brand-mark { width: 64px; height: 64px; font-size: 34px; animation: pl-beat 1.2s ease-in-out infinite; }
.pl-mini-bar { width: 120px; height: 2px; background: rgba(245, 240, 230, 0.15); overflow: hidden; }
.pl-mini-bar span { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--red-light); transition: width 0.2s linear; }
@keyframes pl-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.ya-seen .pl-stage, .ya-seen .pl-skip { display: none; }
.ya-seen .pl-mini { display: flex; }

@media (max-height: 560px) {
	.pl-book { width: 96px; margin-bottom: 14px; }
	.pl-title { font-size: 28px; }
	.pl-progress { margin: 12px 0 14px; }
	.pl-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pl-book, .pl-ready .pl-enter, .pl-mini .brand-mark { animation: none; }
	.pl-smoke span, .pl-book, .pl-cover { transition: none; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.marquee-track, .smoke span, .scroll-cue { animation: none; }
	.book, .book:hover { transition: none; }
}

/* ---------- Large screens ---------- */
@media (min-width: 1800px) {
	:root { --wrap: 1400px; }
	body { font-size: 18px; }
}
