/*
Theme Name: Shina
Theme URI: https://oluwashinapeter.com/
Author: Oluwashina Peter
Description: An editorial personal-site theme for oluwashinapeter.com. Homepage with hero, track record, featured essay, writing list, research and ebooks; a writing archive grouped by year; and a reading-focused single post layout. Everything is editable in Appearance → Customize and Appearance → Menus.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.8
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: shina
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #F5F3EE;
	--surface: #FFFFFF;
	--ink: #15140F;
	--ink-2: #3D3B35;
	--muted: #5C5A52;
	--line: #DDD8CC;
	--line-2: #CFC9BB;
	--dark: #15140F;
	--dark-line: #3A3832;
	--dark-muted: #B9B5A8;
	--accent: #2F5D55;
	--accent-soft: #E6EFEC;
	--accent-ink: #234740;
	--serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--read: "Source Serif 4", Georgia, serif;
	--wrap: 1200px;
	--gutter: 24px;
	--radius: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	overflow-wrap: break-word;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none; height: auto; width: auto; margin: 0;
	left: 8px; top: 8px; z-index: 100000; padding: 12px 16px;
	background: var(--ink); color: var(--bg); border-radius: 8px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow {
	font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
	text-transform: uppercase; color: var(--muted);
}
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border-radius: 999px;
	font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1;
	border: 1px solid transparent; cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { color: #fff; filter: brightness(1.08); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { color: var(--bg); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { color: var(--ink); }
.btn--ghost-light { border-color: var(--bg); color: #fff; }
.btn--ghost-light:hover { background: var(--bg); color: var(--ink); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding-top: 18px; padding-bottom: 18px;
}
.site-brand { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--ink); }
.site-brand img { max-height: 44px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.menu-primary { display: flex; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.menu-primary li { position: relative; }
.menu-primary a { display: inline-flex; align-items: center; min-height: 44px; }
.menu-primary .current-menu-item > a,
.menu-primary .current_page_parent > a,
.menu-primary .current-menu-ancestor > a { color: var(--accent); }
.menu-primary .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-left: 8px; margin-top: -3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.menu-primary .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 300px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
	padding: 8px; box-shadow: 0 12px 32px rgba(21,20,15,.08);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.menu-primary li:hover > .sub-menu,
.menu-primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu-primary .sub-menu a { display: block; padding: 10px 12px; min-height: 0; border-radius: 8px; font-weight: 400; line-height: 1.4; }
.menu-primary .sub-menu a:hover { background: var(--bg); }

.nav-toggle {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		background: var(--bg); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 24px;
	}
	.site-nav.is-open { display: flex; }
	.menu-primary { flex-direction: column; align-items: stretch; gap: 0; font-size: 18px; }
	.menu-primary > li { border-bottom: 1px solid var(--line); }
	.menu-primary a { min-height: 52px; }
	.menu-primary .menu-item-has-children > a::after { display: none; }
	.menu-primary .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; background: transparent; padding: 0 0 12px 12px; min-width: 0;
	}
	.menu-primary .sub-menu a { font-size: 15px; color: var(--ink-2); padding: 8px 0; }
	.site-nav .btn { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__eyebrow { font-size: 13px; }
.hero__title { font-size: clamp(46px, 6vw, 84px); line-height: 1.02; letter-spacing: -.01em; }
.hero__title em { color: var(--accent); }
.hero__bio { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero__bio p + p { margin-top: 12px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__social { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 13px; }
.hero__social a { color: var(--muted); }
.hero__social a:hover { color: var(--accent); }
.hero__figure { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero__figure img {
	display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%;
	border-radius: var(--radius);
}
.hero__badge {
	position: absolute; left: 16px; right: 16px; bottom: 16px;
	background: var(--bg); border-radius: 14px; padding: 14px 16px;
	display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45;
}
.hero__badge strong { font-weight: 600; display: block; }
.hero__dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #3BA55C; box-shadow: 0 0 0 4px rgba(59,165,92,.18); }

/* ---------- Partners ---------- */
.partners { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 28px; padding-bottom: 28px; }
.partners__list { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; padding: 0; list-style: none; font-family: var(--serif); font-size: 26px; line-height: 1.2; color: #2A2924; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 32px; padding-top: 72px; padding-bottom: 72px; }
.stat { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 20px; }
.stat__value { font-family: var(--serif); font-size: 64px; line-height: 1; }
.stat__label { color: var(--muted); font-size: 15px; }

/* ---------- Featured ---------- */
.featured { padding-bottom: 80px; }
.featured__card {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center;
	background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; color: var(--ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.featured__card:hover { color: var(--ink); border-color: var(--line-2); box-shadow: 0 12px 40px rgba(21,20,15,.06); }
.featured__media img, .featured__media .placeholder { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.featured__body { display: flex; flex-direction: column; gap: 16px; padding: 8px 16px 8px 0; }
.featured__body .eyebrow { color: var(--accent); }
.featured__title { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
.featured__excerpt { color: var(--ink-2); }
.readmore { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.readmore svg { width: 16px; height: 16px; transition: transform .15s ease; }
a:hover .readmore svg { transform: translateX(3px); }
.placeholder { background: var(--accent-soft); }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.section-title { font-size: 48px; line-height: 1.1; }
.link-underline { font-weight: 500; border-bottom: 1px solid currentColor; }

/* ---------- Post rows ---------- */
.writing { padding-bottom: 88px; }
.post-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-rows li { border-bottom: 1px solid var(--line); }
.post-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding: 22px 0; color: var(--ink); }
.post-row:hover { color: var(--ink); }
.post-row:hover .post-row__title { color: var(--accent); }
.post-row__date { flex: 0 0 120px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.post-row__title { flex: 999 1 420px; font-family: var(--serif); font-size: 28px; line-height: 1.2; transition: color .15s ease; }
.post-row__cat { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ---------- Dark band: research + ebooks ---------- */
.band { background: var(--dark); color: var(--bg); }
.band a { color: var(--bg); }
.band a:hover { color: #fff; }
.band__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; padding-top: 88px; padding-bottom: 88px; }
.band__col { display: flex; flex-direction: column; gap: 24px; }
.band .eyebrow { color: var(--dark-muted); }
.band__title { font-size: 48px; line-height: 1.05; }
.numbered { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.numbered li { border-top: 1px solid var(--dark-line); counter-increment: n; }
.numbered a { display: flex; gap: 20px; padding: 16px 0; align-items: baseline; font-size: 18px; line-height: 1.4; }
.numbered a::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--dark-muted); }
.numbered a:hover { text-decoration: underline; text-underline-offset: 4px; }
.numbered .sub-menu { display: none; }
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.book {
	display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
	min-height: 260px; height: 100%; padding: 24px; border-radius: 16px;
	transition: transform .15s ease;
}
.book:hover { transform: translateY(-3px); }
.books li:nth-child(odd) .book { background: var(--accent); color: #fff; }
.books li:nth-child(even) .book { background: var(--bg); color: var(--ink); }
.book__kicker { font-family: var(--mono); font-size: 12px; }
.book__title { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.book__cta { font-size: 14px; font-weight: 500; }

/* ---------- Topics ---------- */
.topics { display: flex; flex-direction: column; gap: 24px; padding-top: 80px; padding-bottom: 40px; }
.topics__title { font-size: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px;
	border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 15px; color: var(--ink);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip__count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.chip.is-active .chip__count { color: #E3EEEA; }

/* ---------- Contact / newsletter ---------- */
.contact { padding-top: 40px; padding-bottom: 96px; }
.contact__card {
	background: var(--accent); color: #fff; border-radius: 28px; padding: clamp(32px, 6vw, 72px);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: end;
}
.contact__card a:not(.btn) { color: #fff; text-decoration: underline; }
.contact__copy { display: flex; flex-direction: column; gap: 20px; }
.contact__title { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
.contact__text { font-size: 17px; color: #E3EEEA; max-width: 480px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.newsletter { display: flex; flex-direction: column; gap: 12px; }
.newsletter label, .newsletter__label { font-weight: 600; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input[type="email"], .newsletter input[type="text"] {
	flex: 1 1 220px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0;
	font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.newsletter button, .newsletter input[type="submit"] {
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
	background: var(--ink); color: var(--bg); font: inherit; font-weight: 500; cursor: pointer;
}
.newsletter__note { font-size: 13px; color: #E3EEEA; }
/* Make popular newsletter plugin forms match */
.newsletter .mc4wp-form-fields p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Archive ---------- */
.archive-head { display: flex; flex-direction: column; gap: 20px; padding-top: 72px; padding-bottom: 32px; }
.archive-title { font-size: clamp(56px, 7vw, 96px); line-height: 1; }
.archive-desc { font-size: 18px; color: var(--ink-2); max-width: 620px; }
.archive-chips { padding-top: 12px; }
.archive-body { display: flex; flex-direction: column; gap: 48px; padding-top: 16px; padding-bottom: 96px; }
.year-group { display: flex; flex-wrap: wrap; gap: 16px 48px; border-top: 1px solid var(--ink); padding-top: 20px; }
.year-group__year { flex: 0 0 140px; font-size: 44px; line-height: 1; }
.year-group__list { flex: 999 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.year-group__list li { border-bottom: 1px solid var(--line); }
.entry-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 0 20px; color: var(--ink); }
.entry-card:hover { color: var(--ink); }
.entry-card:hover .entry-card__title { color: var(--accent); }
.entry-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.entry-card__title { font-family: var(--serif); font-size: 30px; line-height: 1.15; transition: color .15s ease; }
.entry-card__excerpt { overflow-wrap: anywhere; font-size: 15px; color: var(--ink-2); max-width: 720px; }
.empty-state { padding: 40px 0; color: var(--ink-2); }

.pagination { padding-bottom: 80px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Single post ---------- */
.post-header { max-width: 820px; margin: 0 auto; padding: 72px var(--gutter) 40px; display: flex; flex-direction: column; gap: 24px; }
.back-link { font-size: 14px; font-weight: 500; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag {
	display: inline-block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
	padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
}
.tag:hover { background: var(--accent); color: #fff; }
.post-title { font-size: clamp(42px, 6vw, 76px); line-height: 1.03; }
.byline { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.byline__text { display: flex; flex-direction: column; line-height: 1.35; }
.byline__name { font-weight: 600; }
.byline__meta { color: var(--muted); font-size: 14px; }
.post-cover { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* Reading typography */
.prose {
	max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) 64px;
	font-family: var(--read); font-size: 20px; line-height: 1.7; color: #24231E;
}
.prose > * + * { margin-top: 1.2em; }
.prose > p:first-child { font-size: 1.2em; line-height: 1.5; }
.prose h2 { font-size: 40px; line-height: 1.15; margin-top: 1.6em; color: var(--ink); }
.prose h3 { font-size: 30px; line-height: 1.2; margin-top: 1.4em; color: var(--ink); }
.prose h4 { font-family: var(--sans); font-weight: 600; font-size: 18px; margin-top: 1.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote, .prose .wp-block-quote, .prose .wp-block-pullquote {
	margin: 1.6em 0; padding: 0; border: 0; font-family: var(--serif); font-size: 34px; line-height: 1.2; color: var(--accent);
}
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 12px; font-family: var(--sans); font-size: 14px; font-style: normal; color: var(--muted); }
.prose img, .prose figure { border-radius: 12px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .alignwide { margin-left: calc(50% - min(520px, 50vw - var(--gutter))); margin-right: calc(50% - min(520px, 50vw - var(--gutter))); max-width: none; }
.prose .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; border-radius: 0; }
.prose .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.prose code { font-family: var(--mono); font-size: .85em; background: #ECE8DE; padding: 2px 6px; border-radius: 6px; }
.prose pre { font-family: var(--mono); font-size: 15px; background: var(--ink); color: var(--bg); padding: 20px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose iframe { width: 100%; border-radius: 12px; }
.prose .wp-block-embed__wrapper iframe { aspect-ratio: 16 / 9; height: auto; }
.prose .wp-block-button__link { background: var(--accent); color: #fff; text-decoration: none; border-radius: 999px; padding: 14px 24px; font-family: var(--sans); font-size: 15px; }
.page-links { font-family: var(--sans); font-size: 15px; }

.author-box-wrap { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.author-box { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 28px 0; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.author-box__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.author-box__name { font-weight: 600; }
.author-box__bio { color: var(--ink-2); font-size: 15px; }
.share { display: flex; gap: 8px; }
.share a, .share button {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.share svg { width: 18px; height: 18px; }
.share button.is-copied { background: var(--accent); border-color: var(--accent); color: #fff; }

.post-newsletter { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) 72px; }
.post-newsletter .newsletter { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 32px; gap: 14px; }
.post-newsletter .newsletter__label { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; }

.related { border-top: 1px solid var(--line); }
.related__inner { display: flex; flex-direction: column; gap: 28px; padding-top: 64px; padding-bottom: 88px; }
.related__title { font-size: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.card {
	display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 200px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; color: var(--ink);
}
.card:hover { border-color: var(--line-2); color: var(--ink); }
.card:hover .card__title { color: var(--accent); }
.card__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.card__title { font-family: var(--serif); font-size: 26px; line-height: 1.15; transition: color .15s ease; }

/* ---------- Pages ---------- */
.page-header { max-width: 820px; margin: 0 auto; padding: 72px var(--gutter) 32px; }
.page-title { font-size: clamp(48px, 6vw, 80px); line-height: 1.03; }
.page-builder-content { width: 100%; }

/* ---------- Comments ---------- */
.comments { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) 72px; }
.comments__title { font-size: 32px; margin-bottom: 24px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { border-top: 1px solid var(--line); padding: 20px 0; }
.comment-meta { font-size: 14px; color: var(--muted); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-author .fn { font-weight: 600; color: var(--ink); font-style: normal; }
.comment-content { margin-top: 8px; }
.comment-form label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-form input[type="search"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; font: inherit; background: var(--surface); color: var(--ink);
}
.comment-form p { margin-bottom: 16px; }
.comment-form .submit { min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-weight: 500; cursor: pointer; }

/* ---------- 404 / search ---------- */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-form button { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-weight: 500; cursor: pointer; }

/* ---------- WordPress core alignment helpers ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, .wp-element-caption { font-size: 14px; color: var(--muted); }
.sticky, .bypostauthor, .gallery-caption { }

@media (max-width: 600px) {
	:root { --gutter: 16px; }
	.hero { padding-top: 48px; gap: 40px; }
	.section-title, .band__title { font-size: 40px; }
	.stat__value { font-size: 52px; }
	.post-row__date { flex-basis: 100%; }
	.year-group__year { flex-basis: 100%; }
	.prose { font-size: 18px; }
	.prose blockquote { font-size: 28px; }
	.featured__body { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Work ---------- */
.work { padding-bottom: 88px; }
.work__head { align-items: flex-end; margin-bottom: 8px; }
.work__head .eyebrow { margin-bottom: 8px; }
.work__intro { color: var(--muted); font-size: 16px; }
.work__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.job {
	display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px 56px;
	padding: 36px 0; border-bottom: 1px solid var(--line);
}
.job__meta { display: flex; flex-direction: column; gap: 6px; }
.job__years { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.job__company { font-size: 40px; line-height: 1.05; }
.job__company a:hover { color: var(--accent); }
.job__company span { font-size: .6em; vertical-align: .25em; }
.job__role { font-size: 15px; color: var(--ink-2); }
.job__body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.job__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px 28px; margin: 0; }
.job__stat { display: flex; flex-direction: column; gap: 4px; }
.job__stat dt { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.job__stat dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.job__points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.job__points li { position: relative; padding-left: 20px; }
.job__points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--ink); }
@media (max-width: 860px) {
	.job { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 0; }
}

.job__more {
	display: none; align-self: flex-start; min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}

/* ---------- Tap targets ---------- */
.site-brand { display: inline-flex; align-items: center; min-height: 44px; }
.link-underline { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 0; text-decoration: underline; text-underline-offset: 6px; }
.tag { padding: 12px 14px; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
	body { font-size: 16px; }
	.site-header__inner { padding-top: 12px; padding-bottom: 12px; }
	.site-brand { font-size: 24px; }

	.hero { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
	.hero__copy { gap: 20px; }
	.hero__title { font-size: clamp(40px, 11.5vw, 52px); }
	.hero__bio { font-size: 17px; }
	.hero__actions .btn { flex: 1 1 auto; justify-content: center; }
	.hero__figure { max-width: none; }
	.hero__figure img { aspect-ratio: 1 / 1; object-position: center 18%; border-radius: 16px; }
	.hero__badge { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; font-size: 13px; }

	.partners__inner { padding-top: 20px; padding-bottom: 20px; gap: 12px; }
	.partners__list { font-size: 22px; gap: 6px 22px; }

	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-top: 40px; padding-bottom: 48px; }
	.stat { padding-top: 14px; gap: 6px; }
	.stat__value { font-size: 40px; }
	.stat__label { font-size: 13px; line-height: 1.45; }

	.work { padding-bottom: 56px; }
	.job { padding: 24px 0; gap: 14px; }
	.job__company { font-size: 32px; }
	.job__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.job__stat dt { font-size: 30px; }
	.job__stat dd { font-size: 13px; }
	.job__points li.is-extra { display: none; }
	.job__points.is-open li.is-extra { display: list-item; }
	.job__more { display: inline-flex; align-items: center; }

	.featured { padding-bottom: 56px; }
	.featured__card { padding: 14px; gap: 20px; border-radius: 18px; }
	.featured__body { padding: 0 6px 8px; gap: 12px; }
	.featured__title { font-size: 30px; }

	.section-title { font-size: 36px; }
	.writing { padding-bottom: 56px; }
	.post-row { padding: 18px 0; gap: 4px 16px; }
	.post-row__title { font-size: 23px; }

	.band__inner { padding-top: 56px; padding-bottom: 56px; gap: 48px; }
	.band__title { font-size: 36px; }
	.numbered a { font-size: 16px; padding: 14px 0; }
	.books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.book { min-height: 200px; gap: 20px; padding: 18px; }
	.book__title { font-size: 22px; }

	.topics { padding-top: 56px; padding-bottom: 24px; }
	.topics__title { font-size: 32px; }

	.contact { padding-top: 24px; padding-bottom: 56px; }
	.contact__card { gap: 32px; border-radius: 20px; padding: 28px 20px; }
	.contact__actions .btn { flex: 1 1 auto; justify-content: center; }

	.archive-head { padding-top: 40px; padding-bottom: 20px; gap: 14px; }
	.archive-title { font-size: 52px; }
	.archive-desc { font-size: 16px; }
	.archive-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter); scrollbar-width: none; }
	.archive-chips::-webkit-scrollbar { display: none; }
	.archive-chips li { flex: none; }
	.archive-body { gap: 32px; padding-bottom: 56px; }
	.year-group__year { font-size: 36px; }
	.entry-card__title { font-size: 25px; }

	.post-header { padding-top: 32px; padding-bottom: 24px; gap: 16px; }
	.post-title { font-size: clamp(34px, 9.5vw, 44px); }
	.post-cover { padding-bottom: 32px; }
	.post-cover img { border-radius: 14px; }
	.prose { font-size: 18px; line-height: 1.65; padding-bottom: 40px; }
	.prose h2 { font-size: 30px; }
	.prose h3 { font-size: 24px; }
	.prose blockquote, .prose .wp-block-quote { font-size: 26px; }
	.author-box { gap: 14px; }
	.post-newsletter .newsletter { padding: 24px 20px; }
	.post-newsletter .newsletter__label { font-size: 26px; }
	.related__inner { padding-top: 48px; padding-bottom: 56px; }
	.related__title { font-size: 32px; }
	.card { min-height: 0; }

	.page-header { padding-top: 40px; padding-bottom: 20px; }
	.page-title { font-size: 44px; }
}


/* =========================================================
   v1.4 homepage: press, experience, contact, light band
   ========================================================= */

/* Research & ebooks band: light, so it doesn't sit next to the dark press band */
.band { background: #ECE8DE; color: var(--ink); }
.band a { color: var(--ink); }
.band a:hover { color: var(--accent); }
.band .eyebrow { color: var(--muted); }
.band__inner { padding-top: 64px; padding-bottom: 64px; }
.band__title { font-size: 40px; }
.numbered li { border-top-color: var(--line-2); }
.numbered a::before { color: var(--muted); }
.books li:nth-child(even) .book { background: var(--surface); }

/* ---------- Press ---------- */
.press { background: var(--dark); color: var(--bg); }
.press__inner { display: flex; flex-direction: column; gap: 28px; padding-top: 72px; padding-bottom: 64px; }
.press__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.press__titles { display: flex; flex-direction: column; gap: 8px; }
.press .eyebrow { color: var(--dark-muted); }
.press__title { font-size: clamp(36px, 4vw, 52px); line-height: 1.05; }
.press__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.press__filter {
	min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
	font: inherit; font-size: 14px; border: 1px solid #5C5A52; background: transparent; color: var(--bg);
}
.press__filter:hover { border-color: var(--bg); }
.press__filter[aria-pressed="true"] { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.press__outlets {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; margin: 0;
	padding: 16px 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line);
	font-family: var(--serif); font-size: 22px; line-height: 1.3; color: #D8D4C8;
}
.press__outlets .is-italic { font-style: italic; }
.press__rail-wrap { position: relative; }
.press__rail {
	position: relative;
	list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px;
	display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
	scrollbar-width: thin; scrollbar-color: #5C5A52 transparent;
}
.press__rail:focus-visible { outline-offset: -2px; }
.clip { flex: 0 0 280px; scroll-snap-align: start; display: flex; position: relative; }
.clip--featured { flex-basis: 340px; }
.clip[hidden] { display: none; }
.clip__link {
	display: flex; flex-direction: column; width: 100%; min-height: 340px; overflow: hidden;
	background: var(--bg); color: var(--ink); border-radius: 18px; transition: transform .15s ease;
}
.clip__link:hover { color: var(--ink); transform: translateY(-3px); }
.clip__link:hover .clip__title { color: var(--accent); }
.clip__mast {
	display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
	height: 130px; padding: 16px 18px; background: var(--clip-color, var(--accent)); color: #fff;
}
.clip--featured .clip__mast { background: #CEFA50; color: var(--ink); }
.clip__kind { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.clip__outlet { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.clip__body { display: flex; flex-direction: column; gap: 12px; padding: 18px; flex: 1; }
.clip__title { font-family: var(--serif); font-size: 22px; line-height: 1.2; transition: color .15s ease; }
.clip__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.clip__tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.clip__cta { font-weight: 600; white-space: nowrap; }
.press__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.press__arrow {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid #5C5A52; background: transparent; color: var(--bg);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.press__arrow:hover:not(:disabled) { border-color: var(--bg); }
.press__arrow:disabled { opacity: .35; cursor: default; }
.press__arrow svg { width: 18px; height: 18px; }

/* ---------- Experience (compact, expandable) ---------- */
.experience { padding-top: 72px; padding-bottom: 72px; position: relative; }
.experience #work { position: absolute; top: 0; }
.experience .section-head { align-items: flex-end; margin-bottom: 16px; }
.experience .eyebrow { margin-bottom: 8px; }
.experience__intro { color: var(--muted); font-size: 15px; }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.role { border-bottom: 1px solid var(--line); }
.role__row {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 18px 0; list-style: none;
}
summary.role__row { cursor: pointer; }
summary.role__row::-webkit-details-marker { display: none; }
summary.role__row::marker { content: ""; }
summary.role__row:hover .role__company { color: var(--accent); }
.role__years { flex: 0 0 130px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.role__who { flex: 1 1 220px; display: flex; flex-direction: column; min-width: 0; }
.role__company { font-family: var(--serif); font-size: 28px; line-height: 1.1; transition: color .15s ease; }
.role__title { font-size: 14px; color: var(--ink-2); }
.role__head { flex: 0 1 280px; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.role__value { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--accent); white-space: nowrap; }
.role__label { font-size: 13px; line-height: 1.35; color: var(--muted); }
.role__chev {
	flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	transition: transform .2s ease;
}
.role__details .role__chev { border: 1px solid var(--line-2); }
.role__chev svg { width: 16px; height: 16px; }
.role__details[open] .role__chev { transform: rotate(180deg); }
.role__more { padding: 0 0 24px; display: flex; flex-direction: column; gap: 16px; }
.role__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 24px; margin: 0; }
.role__stat { display: flex; flex-direction: column; gap: 2px; }
.role__stat dt { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent); }
.role__stat dd { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.role__points { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.role__points li { position: relative; padding-left: 20px; }
.role__points li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--ink); }
.role__link { font-weight: 500; color: var(--accent); align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Contact ---------- */
.contact { padding-top: 56px; }
.contact__card { align-items: center; }
.contact__eyebrow { color: #CFE3DD; }
.contact__ways { display: flex; flex-direction: column; gap: 12px; }
.way {
	display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 14px 18px;
	background: var(--bg); color: var(--ink); border-radius: 16px; transition: transform .15s ease;
}
.contact__card a.way { color: var(--ink); text-decoration: none; }
.way:hover { transform: translateY(-2px); }
.way__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.way__icon svg { width: 18px; height: 18px; }
.way__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.way__text strong { font-weight: 600; }
.way__text span { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.way__go { margin-left: auto; }

@media (min-width: 901px) {
	.press__rail { margin: 0; padding-left: 0; padding-right: 0; scroll-padding-left: 0; }
}
@media (max-width: 900px) {
	.press__nav { display: none; }
}
@media (max-width: 600px) {
	.press__inner { padding-top: 48px; padding-bottom: 40px; gap: 20px; }
	.press__outlets { font-size: 18px; gap: 4px 18px; padding: 12px 0; }
	.press__filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
	.press__filters::-webkit-scrollbar { display: none; }
	.press__filter { flex: none; }
	.clip { flex-basis: 78%; }
	.clip--featured { flex-basis: 85%; }
	.clip__link { min-height: 300px; }
	.clip__mast { height: 112px; }
	.clip__outlet { font-size: 30px; }
	.clip__title { font-size: 20px; }

	.experience { padding-top: 48px; padding-bottom: 48px; }
	.role__row { gap: 4px 12px; padding: 16px 0; align-items: flex-start; }
	.role__years { flex-basis: 100%; }
	.role__who { flex: 1 1 0; }
	.role__company { font-size: 24px; }
	.role__head { order: 4; flex-basis: 100%; padding-right: 48px; }
	.role__value { font-size: 24px; }
	.role__chev { order: 3; }
	.role__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
	.role__stat dt { font-size: 26px; }

	.band__inner { padding-top: 48px; padding-bottom: 48px; }
	.contact__card { padding: 28px 20px; }
	.way { padding: 12px 14px; }
}
@media (min-width: 601px) {
	.role__more { padding-left: 154px; }
}
