/*
Theme Name: Tony Odoh
Theme URI: https://www.tonyodoh.org
Author: Tony Odoh
Description: Author website for Tony Odoh — dark, editorial one-page theme with a Reserve book download, YouTube section, quotes carousel and newsletter sign-up. All links, images and copy are editable from Appearance → Customize → Tony Odoh Site.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tony-odoh
*/

/* ═══ Tokens (from the Figma file) ═══════════════════════════ */
:root {
	--bg: #101110;
	--fg: #f1ede3;
	--card: #191b19;
	--secondary: #20221f;
	--gold: #b8a078;
	--ink: #11130f;
	--muted: #acada4;
	--subtle: #777b72;
	--border: #363a33;
	--error: #e08a7c;
	--serif: "Cormorant Garamond", Cormorant, Georgia, serif;
	--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--gutter: 24px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 640px) { :root { --gutter: 40px; } }
@media (min-width: 1280px) { :root { --gutter: 88px; } }

/* ═══ Base ═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; user-select: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(184, 160, 120, 0.35); color: var(--fg); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.icon { width: 17px; height: 17px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 16px; font-size: 12px; }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.micro { font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; }

/* Reveal on scroll (only when JS is running). */
.js .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Safety net: if the script is blocked, minified wrongly or delayed by a cache plugin, reveal content anyway. */
.js .reveal:not(.is-visible) { animation: reveal-fallback 0.01s 3s forwards; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ═══ Buttons & links ════════════════════════════════════════ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	height: 54px; gap: 28px; padding: 0 24px;
	font-size: 13px; font-weight: 500; white-space: nowrap;
	border: 1px solid var(--gold);
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--fg); border-color: var(--fg); }
.btn--outline { background: transparent; color: var(--fg); }
.btn--outline:hover { background: var(--gold); color: var(--ink); }
.btn--link { height: auto; gap: 16px; padding: 0 0 7px; border: 0; border-bottom: 1px solid var(--border); font-weight: 400; color: var(--fg); }
.btn--link:hover { border-bottom-color: var(--gold); color: var(--gold); }
.btn--link .icon { width: 16px; height: 16px; }
.btn--circle { width: 44px; height: 44px; padding: 0; border-radius: 50%; border-color: var(--border); color: var(--fg); }
.btn--circle .icon { width: 18px; height: 18px; }
.btn--circle:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn__arrow { transition: transform 0.3s var(--ease); }
a:hover > .btn__arrow, .btn:hover .btn__arrow, .video:hover .btn__arrow { transform: translate(2px, -2px); }
.text-link { font-size: 13px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color 0.3s; }
.text-link:hover { color: var(--gold); }

/* ═══ Header ═════════════════════════════════════════════════ */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	border-bottom: 1px solid rgba(241, 237, 227, 0.15);
	transition: background-color 0.5s, border-color 0.5s, backdrop-filter 0.5s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { background: rgba(16, 17, 16, 0.85); border-bottom-color: var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 72px; transition: height 0.5s; }
.site-header.is-scrolled .site-header__bar { height: 76px; }
.wordmark { font-family: var(--serif); font-size: 28px; line-height: 1; transition: color 0.3s; }
.wordmark:hover { color: var(--gold); }
.primary-nav { display: none; align-items: center; gap: 34px; }
.nav-link { position: relative; padding: 4px 0; font-size: 12px; transition: color 0.3s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.menu-toggle { margin-right: -8px; padding: 8px; transition: color 0.3s; }
.menu-toggle:hover { color: var(--gold); }
.menu-toggle .icon { width: 24px; height: 24px; }
@media (min-width: 1024px) {
	.site-header__bar { height: 104px; }
	.wordmark { font-size: 32px; }
	.primary-nav { display: flex; }
	.menu-toggle { display: none; }
}

/* Mobile drawer */
.drawer-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(16, 17, 16, 0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer {
	position: fixed; inset: 0 0 0 auto; z-index: 61; display: flex; flex-direction: column;
	width: 88%; max-width: 384px; padding: 32px; background: var(--card); border-left: 1px solid var(--border);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6); overflow-y: auto;
	animation: drawer-in 0.45s var(--ease);
}
.drawer[hidden], .drawer-overlay[hidden] { display: none; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer__close { position: absolute; right: 24px; top: 24px; padding: 8px; transition: color 0.3s; }
.drawer__close:hover { color: var(--gold); }
.drawer__close .icon { width: 20px; height: 20px; }
.drawer__nav { display: flex; flex-direction: column; margin-top: 56px; }
.drawer__nav a { padding: 20px 0; border-bottom: 1px solid var(--border); font-family: var(--serif); font-size: 36px; line-height: 1.1; transition: color 0.3s; }
.drawer__nav a:hover { color: var(--gold); }
.drawer__cta { align-self: flex-start; margin-top: 40px; }
.drawer__social { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: auto; padding-top: 40px; font-size: 11px; color: var(--muted); }
.drawer__social a:hover { color: var(--gold); }

/* ═══ Hero ═══════════════════════════════════════════════════ */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.hero__stage { position: relative; display: flex; flex-direction: column; max-width: 1440px; min-height: 780px; margin-inline: auto; }
.hero__portrait { position: absolute; inset: 0; z-index: -2; }
.hero__portrait img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; opacity: 0.4; }
.hero__fade { position: absolute; z-index: -1; }
.hero__fade--mobile { inset: 0; background: linear-gradient(to top, var(--bg), rgba(16, 17, 16, 0.7) 45%, rgba(16, 17, 16, 0.2)); }
.hero__fade--desktop { display: none; }
.hero__scrim { position: absolute; inset: 0 0 auto 0; z-index: -1; height: 175px; background: linear-gradient(to bottom, rgba(16, 17, 16, 0.9), rgba(16, 17, 16, 0.6) 60%, transparent); }
.hero__inner { display: flex; flex: 1; flex-direction: column; padding-top: 148px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 850px; }
.hero__title { max-width: 762px; font-family: var(--serif); font-size: clamp(3rem, 9vw, 6.75rem); font-weight: 400; line-height: 0.94; }
.hero__title span { display: block; }
.hero__intro { max-width: 420px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding-top: 8px; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: auto; padding: 48px 0 32px; }
.hero__footnote { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); transition: color 0.3s; }
.hero__footnote:hover { color: var(--gold); }
.hero__rule { flex: none; width: 30px; height: 1px; background: var(--gold); transition: width 0.5s var(--ease); }
.hero__footnote:hover .hero__rule { width: 44px; }
.hero__cue { display: none; align-items: flex-start; gap: 12px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; transition: color 0.3s; }
.hero__cue:hover { color: var(--gold); }
.cue-arrow { width: 16px; height: 16px; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (min-width: 640px) { .hero__cue { display: flex; } }
@media (min-width: 1024px) {
	.hero__stage { height: 870px; min-height: 0; }
	.hero__portrait { left: 44.24%; right: auto; width: 62.5%; }
	.hero__portrait img { top: -2.12%; height: 126.28%; object-position: center; opacity: 1; }
	.hero__fade--mobile { display: none; }
	.hero__fade--desktop { display: block; top: 0; bottom: 0; left: 23.06%; width: 67.36%; background: linear-gradient(to right, var(--bg), rgba(16, 17, 16, 0.47) 40%, transparent 72%); }
	.hero__inner { padding-top: 209px; }
	.hero__foot { padding-bottom: 59px; }
}

/* ═══ Reader reception ═══════════════════════════════════════ */
.proof { border-bottom: 1px solid var(--border); }
.proof__inner { display: grid; gap: 32px; padding-block: 38px; }
.proof__intro { display: flex; flex-direction: column; gap: 9px; }
.proof__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.proof__note { font-size: 10px; line-height: 1.5; color: var(--subtle); }
.proof__item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.proof__value { font-family: var(--serif); font-size: 30px; line-height: normal; }
.proof__caption { color: var(--muted); }
@media (min-width: 640px) { .proof__inner { grid-template-columns: repeat(3, 1fr); } .proof__intro { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
	.proof__inner { display: flex; align-items: center; gap: 76px; }
	.proof__intro { flex: none; width: 240px; }
	.proof__item { flex: 1; }
}

/* ═══ Latest book ════════════════════════════════════════════ */
.latest__inner { display: flex; flex-direction: column; align-items: center; gap: 56px; padding-block: 64px; }
.latest__display { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 520px; background: var(--card); }
.latest__frame { position: absolute; inset: 24px; border: 1px solid var(--border); }
.latest__note { position: absolute; left: 36px; top: 40px; color: var(--subtle); }
.latest__edition { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; color: var(--muted); }
.latest__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; min-width: 0; }
.latest__title { font-family: var(--serif); font-size: clamp(3.5rem, 6vw, 4.5rem); font-weight: 400; line-height: 0.98; }
.latest__hook { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.6875rem); font-style: italic; line-height: 1.25; color: var(--gold); }
.latest__synopsis { font-size: 15px; line-height: 1.8; color: var(--muted); }
.latest__formats { color: var(--muted); }
.latest__copy .btn { margin-top: 8px; }
@media (min-width: 640px) { .latest__display { height: 570px; } }
@media (min-width: 1024px) {
	.latest__inner { flex-direction: row; gap: 108px; padding-block: 96px; }
	.latest__display { flex: none; width: 566px; }
	.latest__copy { flex: 1; }
}

/* Book cover */
.cover-link { display: block; }
.cover { position: relative; display: block; overflow: hidden; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__spine { position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: rgba(255, 255, 255, 0.09); }
.cover--lg { width: 272px; max-width: 100%; height: 404px; }
.cover--md { width: 208px; height: 306px; }
.cover-link:hover .cover, .shelf__card:hover .cover { transform: translateY(-6px); box-shadow: 0 36px 60px -24px rgba(0, 0, 0, 0.85); }

/* ═══ Inside the book ════════════════════════════════════════ */
.ideas__inner { display: flex; flex-direction: column; gap: 32px; padding-bottom: 88px; }
.ideas__head { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; font-size: 11px; }
.ideas__eyebrow { text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.ideas__note { color: var(--subtle); }
.ideas__grid { display: grid; gap: 48px; }
.idea { display: flex; flex-direction: column; gap: 20px; height: 100%; padding-top: 26px; border-top: 1px solid var(--border); transition: border-color 0.5s, transform 0.5s var(--ease); }
.idea:hover { border-top-color: rgba(184, 160, 120, 0.7); }
.idea__top { display: flex; align-items: flex-start; justify-content: space-between; }
.idea__num { font-size: 10px; color: var(--subtle); }
.idea__icon { width: 24px; height: 24px; stroke-width: 1.25; color: var(--muted); transition: color 0.5s; }
.idea:hover .idea__icon { color: var(--gold); }
.idea__title { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: normal; }
.idea__text { font-size: 14px; line-height: 1.8; color: var(--muted); }
@media (min-width: 640px) { .ideas__head { flex-direction: row; } }
@media (min-width: 768px) { .ideas__grid { grid-template-columns: repeat(3, 1fr); } }

/* ═══ About ══════════════════════════════════════════════════ */
.about { background: var(--card); }
.about__inner { display: flex; flex-direction: column; gap: 56px; padding-block: 64px; }
.about__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
.about__title { font-family: var(--serif); font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 400; line-height: 1.02; }
.about__title span { display: block; }
.about__bio { font-size: 15px; line-height: 1.85; color: var(--muted); }
.about__signature { padding-top: 10px; font-family: var(--serif); font-size: 34px; font-style: italic; color: var(--gold); }
.about__media { width: 100%; }
.about__figure { position: relative; height: 420px; overflow: hidden; background: var(--card); }
.about__figure img { position: absolute; left: 0; top: 0; width: 100%; height: 576px; object-fit: cover; object-position: top; }
.about__figure figcaption { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(340px, 100%); height: 67px; padding: 20px; background: var(--bg); }
.about__figure .micro { font-size: 10px; color: var(--muted); }
.about__coords { font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--gold); }
@media (min-width: 640px) { .about__figure { height: 490px; } }
@media (min-width: 1024px) {
	.about__inner { flex-direction: row; align-items: center; gap: 110px; padding-block: 88px; }
	.about__copy { flex: 1; }
	.about__media { flex: none; width: 510px; }
}

/* ═══ RESERVE interlude ══════════════════════════════════════ */
.interlude__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 70px; padding-bottom: 65px; }
.interlude__overline { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.interlude__link { display: block; width: 100%; }
.interlude__lettering {
	display: block; text-align: center;
	font-family: var(--serif); font-size: clamp(4rem, 17vw, 11.4375rem); font-weight: 600; line-height: 1.05;
	color: transparent;
	background: linear-gradient(120deg, #8c7a58 0%, #d9c9a3 45%, #b8a078 70%, #7d6c4e 100%);
	background-size: cover; background-position: center;
	-webkit-background-clip: text; background-clip: text;
	transition: filter 0.7s var(--ease), background-position 0.7s var(--ease);
}
.interlude__img { display: block; width: min(100%, 780px); height: auto; margin-inline: auto; transition: filter 0.7s var(--ease); }
.interlude__link:hover .interlude__img { filter: brightness(1.25); }
.interlude__link:hover .interlude__lettering { filter: brightness(1.25); background-position: center 35%; }
.interlude__quote { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 14px; }
.interlude__line { width: 70px; height: 1px; background: var(--border); transition: background-color 0.5s; }
.interlude__text { font-family: var(--serif); font-size: 25px; font-style: italic; color: var(--muted); transition: color 0.5s; }
.interlude__link:hover .interlude__line { background: var(--gold); }
.interlude__link:hover .interlude__text { color: var(--fg); }

/* ═══ Section heads ══════════════════════════════════════════ */
.section-head { display: flex; flex-direction: column; gap: 24px; }
.section-head__titles { display: flex; flex-direction: column; gap: 14px; }
.section-title { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; line-height: 1; }
.section-title--md { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: normal; }
.section-head .btn--link { align-self: flex-start; }
@media (min-width: 640px) {
	.section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
	.section-head .btn--link { align-self: auto; }
}

/* ═══ Bookshelf ══════════════════════════════════════════════ */
.shelf__inner { display: flex; flex-direction: column; gap: 44px; padding-top: 56px; padding-bottom: 88px; }
.shelf__card { display: flex; flex-direction: column; gap: 20px; transition: transform 0.5s var(--ease); }
.shelf__display { display: flex; align-items: center; justify-content: center; width: 100%; height: 370px; background: var(--card); }
.shelf__meta { display: flex; align-items: flex-start; justify-content: space-between; color: var(--subtle); }
.shelf__category { color: var(--gold); }
.shelf__year { font-size: 10px; }
.shelf__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.shelf__name { font-family: var(--serif); font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: normal; transition: color 0.3s; }
.shelf__arrow { width: 20px; height: 20px; stroke-width: 1.25; transition: transform 0.3s var(--ease), color 0.3s; }
.shelf__card:hover .shelf__name, .shelf__card:hover .shelf__arrow { color: var(--gold); }
.shelf__card:hover .shelf__arrow { transform: translate(2px, -2px); }

/* ═══ Quotes carousel ════════════════════════════════════════ */
.quotes { background: var(--card); }
.quotes__inner { display: flex; flex-direction: column; gap: 36px; padding-block: 72px; }
.section-head--center { align-items: flex-end; flex-direction: row; justify-content: space-between; }
.carousel__controls { display: flex; gap: 12px; }
.carousel { --gap: 32px; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; margin-left: calc(var(--gap) * -1); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { display: flex; flex: 0 0 100%; flex-direction: column; min-width: 0; padding-left: var(--gap); scroll-snap-align: start; }
.blog-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 14px; color: var(--muted); }

/* Post cards (homepage carousel + blog page) */
.post-card { display: flex; flex-direction: column; gap: 18px; height: 100%; transition: transform 0.5s var(--ease); }
.post-card__thumb { position: relative; display: block; aspect-ratio: 720 / 440; overflow: hidden; background: var(--bg); }
.post-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__meta { display: flex; align-items: flex-start; justify-content: space-between; }
.post-card__cat { color: var(--gold); }
.post-card__date { color: var(--subtle); }
.post-card__title { font-family: var(--serif); font-size: 30px; line-height: 1.1; transition: color 0.3s; }
.post-card:hover .post-card__title { color: var(--gold); }
.post-card__text { font-size: 13px; line-height: 1.7; color: var(--muted); }
.post-card:hover .video__cta { border-bottom-color: var(--gold); }
.post-card:hover .btn__arrow { transform: translate(2px, -2px); }
.post-grid { display: grid; gap: 56px 32px; }
.page-shell--wide { max-width: 1440px; }
.entry__image { margin-top: 24px; }
.entry__image img { width: 100%; height: auto; }
.entry--single { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.quotes__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.quotes__note { font-size: 10px; color: var(--subtle); }
.carousel__dots { display: flex; align-items: center; flex: none; }
.carousel__dots button { padding: 4px; }
.carousel__dots span { display: block; width: 5px; height: 5px; border-radius: 50%; background: rgba(119, 123, 114, 0.6); transition: background-color 0.3s; }
.carousel__dots button[aria-current="true"] span { background: var(--gold); }
@media (min-width: 768px) { .carousel__slide { flex-basis: 50%; } }
@media (min-width: 1024px) { .carousel__slide { flex-basis: 33.3333%; } }

/* ═══ Videos ═════════════════════════════════════════════════ */
.videos__inner { display: flex; flex-direction: column; gap: 40px; padding-block: 64px; }
.videos__grid { display: grid; gap: 40px; }
.video { display: flex; flex-direction: column; gap: 18px; height: 100%; transition: transform 0.5s var(--ease); }
.video__thumb { position: relative; display: block; height: 230px; overflow: hidden; background: var(--card); }
.video__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.video:hover .video__thumb img { transform: scale(1.04); }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16, 17, 16, 0.3); opacity: 0; transition: opacity 0.5s; }
.video__play > span { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(241, 237, 227, 0.6); border-radius: 50%; background: rgba(16, 17, 16, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.video__play .icon { width: 20px; height: 20px; margin-left: 2px; }
.video:hover .video__play { opacity: 1; }
.video__meta { display: flex; align-items: flex-start; justify-content: space-between; }
.video__cat { color: var(--gold); }
.video__time { color: var(--subtle); }
.video__title { font-family: var(--serif); font-size: 32px; line-height: 1.1; transition: color 0.3s; }
.video:hover .video__title { color: var(--gold); }
.video__text { font-size: 13px; line-height: 1.7; color: var(--muted); }
.video__cta { display: flex; align-items: flex-start; justify-content: space-between; margin-top: auto; padding: 3px 0 12px; border-bottom: 1px solid var(--border); font-size: 11px; transition: border-color 0.5s; }
.video:hover .video__cta { border-bottom-color: var(--gold); }
@media (min-width: 640px) { .videos__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .videos__inner { padding-block: 88px; } .videos__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ═══ Newsletter ═════════════════════════════════════════════ */
.newsletter { background: var(--secondary); border-block: 1px solid var(--border); }
.newsletter__inner { display: flex; flex-direction: column; gap: 56px; padding-block: 64px; }
.newsletter__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
.newsletter__title { font-family: var(--serif); font-size: clamp(2.75rem, 5vw, 4.25rem); font-weight: 400; line-height: 1; }
.newsletter__title span { display: block; }
.newsletter__desc { max-width: 480px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.newsletter__form-wrap { flex: 1; min-width: 0; }
.newsletter-form { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.field-label { font-size: 11px; line-height: 1; }
.field { position: relative; width: 100%; }
.input { display: block; width: 100%; height: 57px; padding: 0 56px 0 18px; font: inherit; font-size: 13px; color: var(--fg); background: var(--card); border: 1px solid var(--subtle); border-radius: 0; transition: border-color 0.3s; }
.input::placeholder { color: var(--subtle); }
.input:hover { border-color: var(--muted); }
.input:focus { outline: 1px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field__icon { position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; stroke-width: 1.25; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 10px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.checkbox { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 14px; height: 14px; margin: 0; background: transparent; border: 1px solid var(--subtle); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.checkbox:hover { border-color: var(--gold); }
.checkbox:checked { background: var(--gold); border-color: var(--gold); }
.checkbox:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid var(--ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.form-status { width: 100%; min-height: 15px; font-size: 11px; line-height: 1.5; }
.form-status.is-success { color: var(--gold); }
.form-status.is-error { color: var(--error); }
.newsletter__assurance { font-size: 10px; line-height: 1.5; color: var(--subtle); }
.newsletter__assurance a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.3s; }
.newsletter__assurance a:hover { color: var(--gold); }
@media (min-width: 1024px) {
	.newsletter__inner { flex-direction: row; align-items: center; gap: 100px; padding-block: 80px; }
	.newsletter__copy { flex: none; width: 580px; }
}

/* ═══ Footer ═════════════════════════════════════════════════ */
.site-footer { padding: 58px 0 28px; background: var(--bg); }
.site-footer__inner { display: flex; flex-direction: column; gap: 48px; }
.site-footer__top { display: flex; flex-direction: column; gap: 40px; }
.site-footer__id { display: flex; flex-direction: column; gap: 10px; }
.site-footer__name { font-family: var(--serif); font-size: 38px; line-height: 1; }
.site-footer__tagline { font-size: 11px; color: var(--muted); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 30px; font-size: 12px; color: var(--muted); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 11px; }
.site-footer__nav a, .site-footer__social a { transition: color 0.3s; }
.site-footer__nav a:hover, .site-footer__social a:hover { color: var(--gold); }
.site-footer__bottom { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 9px; color: var(--subtle); }
.site-footer__legal { display: flex; gap: 24px; }
.site-footer__legal a:hover { color: var(--fg); }
.back-to-top { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); transition: color 0.3s; }
.back-to-top:hover { color: var(--gold); }
.back-to-top .icon { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.back-to-top:hover .icon { transform: translateY(-2px); }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (min-width: 1024px) { .site-footer__top { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ═══ Inner pages (index.php / 404.php) ══════════════════════ */
.page-shell { padding-top: 160px; padding-bottom: 96px; max-width: 880px; }
.page-shell.container { max-width: 880px; }
.page-shell.page-shell--wide { max-width: 1440px; }
.page-shell--center { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.page-shell__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.page-title { margin-bottom: 24px; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; line-height: 1.02; }
.entry { padding-block: 32px; border-top: 1px solid var(--border); }
.entry__meta { margin-bottom: 8px; color: var(--subtle); }
.entry__title { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.1; }
.entry__title a:hover { color: var(--gold); }
.entry__content { margin-top: 12px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.entry__content > * + * { margin-top: 1.2em; }
.entry__content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.entry__content h2, .entry__content h3 { font-family: var(--serif); font-weight: 400; color: var(--fg); line-height: 1.15; }
.entry__content h2 { font-size: 34px; }
.entry__content h3 { font-size: 26px; }
.entry__content img { height: auto; }
.pagination { padding-top: 24px; font-size: 12px; }
.pagination .nav-links { display: flex; gap: 16px; }
.pagination a:hover { color: var(--gold); }

/* ═══ Motion (subtle) ════════════════════════════════════════ */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes portrait-in { from { opacity: 0; transform: scale(1.03); } }

/* Hero: gentle staggered entrance on load. */
.hero__copy > * { animation: rise 0.9s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: 0.05s; }
.hero__copy > :nth-child(2) { animation-delay: 0.14s; }
.hero__copy > :nth-child(3) { animation-delay: 0.26s; }
.hero__copy > :nth-child(4) { animation-delay: 0.38s; }
.hero__foot { animation: fade-in 1s var(--ease) 0.6s both; }
.hero__portrait img { animation: portrait-in 1.6s var(--ease) both; }

/* Photos settle in as their section reveals. */
.js .about__media img { transform: scale(1.04); transition: transform 1.6s var(--ease); }
.js .about__media.is-visible img { transform: none; }

/* Buttons: responsive to press, subtle lift + glow on hover. */
.btn { transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.25s var(--ease), box-shadow 0.3s; }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn--circle:active { transform: scale(0.94); }
.text-link {
	text-decoration: none; padding-bottom: 3px;
	background-image: linear-gradient(rgba(241, 237, 227, 0.55), rgba(241, 237, 227, 0.55)), linear-gradient(var(--gold), var(--gold));
	background-repeat: no-repeat; background-position: 0 100%, 0 100%; background-size: 100% 1px, 0 1px;
	transition: color 0.3s, background-size 0.5s var(--ease);
}
.text-link:hover { background-size: 100% 1px, 100% 1px; }

/* Carousel dots: the active dot stretches into a pill. */
.carousel__dots span { transition: background-color 0.3s, width 0.4s var(--ease); }
.carousel__dots button[aria-current="true"] span { width: 16px; border-radius: 3px; }

/* Hover lifts — only on devices that can really hover, so touch screens never get "stuck" states. */
@media (hover: hover) and (pointer: fine) {
	.btn--gold:hover, .btn--outline:hover { transform: translateY(-1px); }
	.btn--gold:hover { box-shadow: 0 10px 24px -12px rgba(184, 160, 120, 0.6); }
	.idea:hover, .video:hover, .post-card:hover { transform: translateY(-4px); }
	.shelf__card:hover { transform: translateY(-3px); }
	.btn--circle:hover:not(:disabled) { transform: translateY(-1px); }
	.latest__display:hover .cover, .shelf__card:hover .cover { transform: translateY(-6px); }
}

/* ═══ Mobile polish ══════════════════════════════════════════ */
html { -webkit-tap-highlight-color: transparent; }
body { overflow-x: clip; }
.container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.site-header { padding-top: env(safe-area-inset-top); }
.site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.drawer { height: 100vh; height: 100dvh; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.carousel__track { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.menu-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 767px) {
	.carousel__slide { flex-basis: 86%; }            /* peek at the next card so people know to swipe */
	.carousel__dots button { padding: 10px 5px; }     /* 44px-ish tap area */
	.section-head--center { align-items: flex-end; }
}

@media (max-width: 639px) {
	.hero__stage { min-height: max(640px, min(780px, 100svh)); }
	.hero__title { font-size: clamp(3rem, 15vw, 4.25rem); }
	.btn { height: 52px; }
	.hero__actions .btn { flex: 1 1 100%; }          /* full-width primary button on phones */
	.drawer__nav a { padding: 18px 0; }

	/* Legibility: nothing under 10–11px on a phone. */
	.micro { font-size: 10px; }
	.proof__note, .newsletter__assurance, .quote__context, .about__figure .micro, .idea__num, .shelf__year, .ideas__note { font-size: 11px; }
	.consent { font-size: 12px; padding: 6px 0; }
	.checkbox { width: 18px; height: 18px; }
	.checkbox:checked::after { left: 5px; top: 2px; width: 4px; height: 8px; }
	.video__cta, .hero__footnote, .form-status, .ideas__head { font-size: 12px; }
	.site-footer__bottom { font-size: 11px; gap: 12px; }
	.site-footer__nav a, .site-footer__social a, .site-footer__legal a, .back-to-top { display: inline-flex; align-items: center; min-height: 44px; }
	.site-footer__nav, .site-footer__social { gap: 0 24px; }

	/* iOS zooms into inputs smaller than 16px. */
	.input { font-size: 16px; }

	.latest__display { height: 480px; }
	.latest__note { left: 28px; top: 34px; }
	.shelf__display { height: 340px; }
	.interlude__quote { gap: 14px; }
	.interlude__line { width: 36px; }
	.interlude__text { font-size: 21px; }
	.post-card__title, .video__title { font-size: 28px; }
}

/* Touch devices: crisp press feedback instead of hover. */
@media (hover: none) {
	.idea:active, .video:active, .post-card:active, .shelf__card:active { transform: scale(0.985); }
	.video__play { display: none; }
}

/* ═══ Reduced motion ═════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
