/*
Theme Name: Jojo Think Pieces
Author: Codex
Description: A mobile-first editorial WordPress theme for personal think pieces, activist reflection, books, citations, and beautifully designed long-form posts.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jojo-thinkpieces
Tags: blog, custom-logo, featured-images, block-patterns, wide-blocks, threaded-comments
*/

:root {
	--paper: #f3eee4;
	--paper-clean: #fffaf0;
	--ink: #171411;
	--muted-ink: #62594f;
	--faint-ink: rgba(23, 20, 17, 0.13);
	--brick: #8f2439;
	--brick-dark: #64192a;
	--blue: #2f3840;
	--green: #596b54;
	--gold: #9d7b4f;
	--rose: #c9a3a3;
	--shadow: 0 14px 38px rgba(23, 20, 17, 0.12);
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Newsreader", Georgia, "Times New Roman", serif;
	--font-mono: "Spline Sans Mono", "Courier New", monospace;
	--content: min(1120px, calc(100vw - 32px));
	--wide: min(1360px, calc(100vw - 24px));
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23171411' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M0 24H96M0 48H96M0 72H96M24 0V96M48 0V96M72 0V96'/%3E%3C/g%3E%3Cg fill='%23171411' fill-opacity='.035'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='60' cy='36' r='1'/%3E%3Ccircle cx='36' cy='84' r='1'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 96px 96px;
	mix-blend-mode: multiply;
	opacity: 0.55;
}

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

a {
	color: inherit;
	text-decoration-color: rgba(159, 45, 25, 0.55);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--brick-dark);
	text-decoration-color: currentColor;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

::selection {
	background: var(--ink);
	color: var(--paper-clean);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	transform: translateY(-160%);
	background: var(--ink);
	color: var(--paper-clean);
	padding: 0.75rem 1rem;
	border: 2px solid var(--paper-clean);
	text-decoration: none;
}

.skip-link:focus {
	transform: translateY(0);
}

.reading-progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 999;
	height: 5px;
	background: rgba(23, 19, 14, 0.1);
}

.reading-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--brick);
}

.site-header {
	position: sticky;
	top: 5px;
	z-index: 900;
	background: rgba(243, 238, 228, 0.96);
	border-bottom: 1px solid var(--ink);
	backdrop-filter: blur(10px);
}

.header-inner {
	width: var(--wide);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 0.8rem 0;
}

.site-branding {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.2rem 0.75rem;
	align-items: center;
	min-width: 0;
}

.header-wordmark {
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 6vw, 1.8rem);
	font-weight: 850;
	line-height: 0.9;
	text-decoration: none;
}

.header-actions {
	display: flex;
	gap: 0.45rem;
	align-items: center;
	justify-content: flex-end;
}

.contact-icons {
	display: flex;
	gap: 0.35rem;
	align-items: center;
}

.contact-icons a,
.author-photo-button,
.author-modal-close {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--ink);
	border-radius: 0;
	text-decoration: none;
}

.contact-icons svg,
.author-modal-close svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-icons a:hover,
.author-photo-button:hover,
.author-modal-close:hover {
	background: var(--ink);
	color: var(--paper-clean);
}

.author-photo-button {
	width: 42px;
	height: 42px;
	padding: 2px;
	border-color: var(--brick);
	border-radius: 50%;
	overflow: hidden;
}

.author-photo-button img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.header-contact-icons {
	display: flex;
}

.menu-toggle {
	width: 42px;
	height: 42px;
	display: inline-grid;
	place-content: center;
	gap: 5px;
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--ink);
	border-radius: 0;
}

.menu-toggle span:not(.screen-reader-text) {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
}

.site-navigation {
	grid-column: 1 / -1;
	display: none;
	border-top: 1px solid var(--faint-ink);
	padding-top: 0.75rem;
}

.site-navigation.is-open {
	display: block;
}

.author-modal[hidden] {
	display: none;
}

.has-author-modal {
	overflow: hidden;
}

.author-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.author-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(23, 20, 17, 0.48);
}

.author-modal-panel {
	position: relative;
	z-index: 1;
	width: min(760px, calc(100vw - 24px));
	display: grid;
	gap: 1rem;
	background: var(--paper-clean);
	border: 1px solid var(--ink);
	padding: clamp(1rem, 5vw, 1.6rem);
	box-shadow: var(--shadow);
}

.author-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
}

.author-modal-photo {
	width: min(180px, 56vw);
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 62% 40%;
	border: 3px solid var(--brick);
	border-radius: 50%;
}

.author-modal h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 10vw, 4.2rem);
	line-height: 0.9;
}

.author-modal p:not(.eyebrow) {
	max-width: 50ch;
	margin: 0.8rem 0 1rem;
	color: var(--muted-ink);
	font-size: 1.15rem;
	line-height: 1.45;
}

.primary-menu,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
}

.primary-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0.35rem 0.7rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
}

.search-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.4rem;
}

.search-field {
	width: 100%;
	min-height: 42px;
	background: var(--paper-clean);
	border: 1px solid var(--ink);
	border-radius: 0;
	color: var(--ink);
	padding: 0.55rem 0.75rem;
}

.search-submit,
.read-more-link,
.copy-link-button,
.rail-button,
.form-submit .submit,
.back-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.55rem 0.85rem;
	background: var(--ink);
	color: var(--paper-clean);
	border: 1px solid var(--ink);
	border-radius: 0;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: uppercase;
}

.search-submit:hover,
.read-more-link:hover,
.copy-link-button:hover,
.rail-button:hover,
.form-submit .submit:hover,
.back-to-top:hover {
	background: var(--brick);
	color: var(--paper-clean);
	border-color: var(--brick);
}

.site-main {
	width: var(--wide);
	margin: 0 auto;
}

.front-hero {
	min-height: auto;
	display: grid;
	align-content: start;
	gap: 1.4rem;
	padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.6rem);
	border-bottom: 1px solid var(--ink);
}

.front-hero-copy {
	max-width: 980px;
}

.eyebrow {
	margin: 0 0 0.65rem;
	color: var(--brick-dark);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.front-hero h1,
.thinkpiece-hero h1,
.archive-header h1,
.page-header h1,
.empty-state h1 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(3rem, 15vw, 10.8rem);
	font-weight: 900;
	line-height: 0.84;
	max-width: 12ch;
}

.front-hero h1 {
	font-size: clamp(2.9rem, 10vw, 8rem);
	line-height: 0.86;
	max-width: 14ch;
}

.thinkpiece-hero h1 {
	font-size: clamp(3rem, 12vw, 7.2rem);
	line-height: 0.88;
	max-width: 14ch;
}

.hero-deck,
.single-deck,
.archive-header p,
.page-header p {
	max-width: 760px;
	margin: 1rem 0 0;
	color: #31291f;
	font-size: clamp(1.18rem, 5vw, 2rem);
	line-height: 1.25;
}

.hero-signature {
	width: min(260px, 60vw);
	margin-top: clamp(1rem, 4vw, 1.8rem);
	opacity: 0.86;
}

.section-heading h2,
.empty-state h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 10vw, 5.8rem);
	font-weight: 850;
	line-height: 0.88;
}

.post-card h3 a {
	text-decoration: none;
}

.front-index,
.archive-main,
.page-main,
.single-main {
	padding: clamp(2.2rem, 8vw, 5.5rem) 0;
}

.single-main {
	padding-top: clamp(0.8rem, 2vw, 1.4rem);
}

.front-index {
	padding-top: clamp(1.4rem, 3vw, 2.4rem);
}

.section-heading {
	display: grid;
	gap: 0.55rem;
	margin-bottom: clamp(1.2rem, 4vw, 2rem);
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--ink);
}

.section-heading p:not(.eyebrow) {
	max-width: 66ch;
	margin: 0;
	color: var(--muted-ink);
	font-size: clamp(1.05rem, 3vw, 1.35rem);
	line-height: 1.35;
}

.post-card-grid {
	display: grid;
	gap: 0.85rem;
}

.post-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(98px, 32%) 1fr;
	gap: 0;
	min-height: 190px;
	background: var(--paper-clean);
	border: 1px solid var(--ink);
	box-shadow: none;
	transition: transform 180ms ease;
}

.post-card:hover {
	transform: translateY(-2px);
}

.post-card-media {
	min-height: 100%;
	background: #ded5c8;
	text-decoration: none;
	overflow: hidden;
}

.post-card-media img,
.post-card-media .featured-media-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-body {
	display: grid;
	align-content: start;
	gap: 0.55rem;
	padding: 0.9rem;
}

.post-card h3 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 6vw, 2.05rem);
	line-height: 0.98;
}

.post-card-featured {
	grid-template-columns: 1fr;
	background: transparent;
	border-width: 1px 0;
}

.post-card-featured .post-card-media,
.post-card-featured .featured-media-fallback {
	min-height: 260px;
}

.post-card-featured .post-card-body {
	padding: clamp(1rem, 5vw, 2rem);
}

.post-card-featured h3 {
	font-size: clamp(2.2rem, 10vw, 5rem);
	line-height: 0.9;
}

.post-card-featured p:not(.eyebrow) {
	max-width: 54ch;
	font-size: 1.1rem;
}

.post-card p:not(.eyebrow) {
	margin: 0;
	color: var(--muted-ink);
	font-size: 0.98rem;
	line-height: 1.4;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.34rem;
	color: var(--muted-ink);
	font-family: var(--font-mono);
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.35;
	text-transform: uppercase;
}

.featured-media-fallback {
	display: grid;
	place-items: center;
	min-height: 210px;
	background-color: #e6dace;
	color: var(--brick);
	box-shadow: inset 0 0 0 10px var(--paper-clean);
}

.featured-media-fallback span {
	font-family: var(--font-display);
	font-size: clamp(4rem, 22vw, 12rem);
	font-weight: 900;
	line-height: 1;
	opacity: 0.72;
}

.archive-header,
.page-header {
	max-width: 980px;
	margin-bottom: 2rem;
}

.archive-description {
	max-width: 62ch;
}

.navigation.pagination {
	margin-top: 2rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0.35rem 0.7rem;
	background: var(--paper-clean);
	border: 2px solid var(--ink);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--ink);
	color: var(--paper-clean);
}

.thinkpiece-hero {
	padding: clamp(0.8rem, 2.5vw, 1.8rem) 0 1.5rem;
}

.thinkpiece-kicker-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	align-items: center;
	margin-bottom: 1rem;
}

.kicker-link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0.3rem 0.7rem;
	background: transparent;
	color: var(--brick-dark);
	border: 1px solid var(--brick);
	border-radius: 0;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
}

.single-byline-panel {
	display: grid;
	gap: 1rem;
	align-items: center;
	margin-top: clamp(1.2rem, 4vw, 2rem);
	padding: 0.85rem 0;
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
}

.single-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: baseline;
	color: var(--muted-ink);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
}

.single-byline a {
	color: var(--ink);
	text-decoration-color: var(--brick);
}

.share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.share-links a,
.share-links button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0.3rem 0.55rem;
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--ink);
	border-radius: 0;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.share-links a:hover,
.share-links button:hover {
	background: var(--ink);
	color: var(--paper-clean);
}

.thinkpiece-hero .reference-card {
	max-width: 860px;
	margin-top: 1rem;
}

.single-hero-media {
	margin-top: 1.5rem;
	border: 1px solid var(--ink);
	background: var(--paper-clean);
	box-shadow: none;
	overflow: hidden;
}

.single-hero-media img,
.single-hero-media .featured-media-fallback {
	width: 100%;
	max-height: 72vh;
	object-fit: cover;
}

.thinkpiece-body-grid {
	display: grid;
	gap: 1.5rem;
	align-items: start;
	padding-bottom: 4rem;
}

.entry-column {
	order: 1;
}

.article-rail {
	display: grid;
	gap: 0.75rem;
	order: 2;
}

.rail-panel,
.reflection-note,
.reference-card,
.source-ledger,
.comments-area,
.post-navigation,
.after-essay-widget {
	background: rgba(255, 250, 240, 0.86);
	border: 1px solid var(--ink);
	box-shadow: none;
}

.rail-panel,
.reflection-note,
.reference-card {
	padding: 0.85rem;
}

.reference-card {
	display: grid;
	gap: 0.85rem;
}

.reference-cover {
	display: block;
	background: var(--paper-clean);
	text-decoration: none;
}

.reference-cover img {
	width: 100%;
	max-height: 280px;
	object-fit: cover;
	border: 1px solid var(--ink);
}

.reference-copy h2 {
	margin: 0 0 0.65rem;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 5vw, 2rem);
	line-height: 0.98;
}

.reference-copy h2 a {
	text-decoration: none;
}

.reference-facts {
	display: grid;
	gap: 0.45rem;
	margin: 0;
}

.reference-facts div {
	display: grid;
	gap: 0.1rem;
	padding-top: 0.45rem;
	border-top: 1px solid var(--faint-ink);
}

.reference-facts dt {
	color: var(--brick-dark);
	font-family: var(--font-mono);
	font-size: 0.66rem;
	font-weight: 700;
	text-transform: uppercase;
}

.reference-facts dd {
	margin: 0;
	color: var(--ink);
	font-size: 0.98rem;
	line-height: 1.25;
}

.article-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.article-toc a,
.rail-link {
	display: block;
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	text-transform: uppercase;
}

.article-toc a {
	padding: 0.35rem 0;
	border-bottom: 1px solid rgba(23, 19, 14, 0.15);
}

.article-toc a.is-active {
	color: var(--brick);
}

.toc-depth-3 {
	padding-left: 0.8rem !important;
	color: var(--muted-ink) !important;
}

.toc-empty {
	margin: 0;
	color: var(--muted-ink);
	font-size: 0.9rem;
}

.rail-link {
	width: 100%;
	margin-top: 0.45rem;
	text-align: left;
}

.rail-button {
	background: transparent;
	color: var(--ink);
	justify-content: flex-start;
	padding-left: 0;
	border: 0;
}

.reflection-note p:last-child {
	margin-bottom: 0;
}

.entry-column {
	min-width: 0;
}

.entry-content {
	max-width: 760px;
	margin: 0 auto;
	font-size: clamp(1.16rem, 4.8vw, 1.42rem);
	line-height: 1.72;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content p {
	text-wrap: pretty;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	font-weight: 850;
	line-height: 0.98;
	text-wrap: balance;
}

.entry-content h2 {
	margin-top: 2.1em;
	padding-top: 0.65em;
	border-top: 2px solid var(--ink);
	font-size: clamp(2.1rem, 10vw, 4.7rem);
}

.entry-content h3 {
	margin-top: 1.8em;
	font-size: clamp(1.55rem, 7vw, 2.8rem);
}

.entry-content h4 {
	font-size: 1.2em;
}

.entry-content a {
	color: var(--brick-dark);
	text-decoration-thickness: 0.11em;
}

.entry-content strong {
	font-weight: 800;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.2em;
}

.entry-content li + li {
	margin-top: 0.45em;
}

.entry-content blockquote,
.wp-block-pullquote {
	position: relative;
	margin: 2rem 0;
	background: var(--paper-clean);
	border: 1px solid var(--ink);
	border-left: 8px solid var(--brick);
	padding: clamp(1rem, 5vw, 1.6rem);
	box-shadow: none;
}

.entry-content blockquote p,
.wp-block-pullquote p {
	font-family: var(--font-display);
	font-size: clamp(1.55rem, 7vw, 3.2rem);
	font-weight: 680;
	line-height: 1;
}

.entry-content blockquote cite,
.wp-block-pullquote cite {
	display: block;
	margin-top: 1rem;
	color: var(--muted-ink);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-style: normal;
	text-transform: uppercase;
}

.entry-content .wp-block-image,
.entry-content .wp-block-gallery,
.entry-content .wp-block-cover,
.entry-content .wp-block-table,
.entry-content .wp-block-embed {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img {
	border: 1px solid var(--ink);
	box-shadow: none;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: 0.7rem;
	color: var(--muted-ink);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	line-height: 1.45;
	text-transform: uppercase;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	background: var(--paper-clean);
	border: 1px solid var(--ink);
	font-size: 0.9em;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--ink);
	padding: 0.65rem;
	vertical-align: top;
}

.entry-content th {
	background: var(--ink);
	color: var(--paper-clean);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
}

.entry-content code {
	background: rgba(31, 79, 143, 0.12);
	border: 1px solid rgba(31, 79, 143, 0.22);
	padding: 0.05em 0.25em;
	font-family: var(--font-mono);
	font-size: 0.82em;
}

.entry-content pre {
	overflow-x: auto;
	background: var(--ink);
	color: var(--paper-clean);
	border: 1px solid var(--ink);
	padding: 1rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	line-height: 1.5;
}

.entry-content .wp-block-separator {
	width: 100%;
	height: 2px;
	border: 0;
	background: var(--ink);
}

.entry-content .wp-block-footnotes {
	margin-top: 3rem;
	padding: 1rem;
	background: #fffdf6;
	border: 1px solid var(--blue);
	box-shadow: none;
	font-size: 0.9em;
}

.entry-content .wp-block-footnotes::before {
	content: "Footnotes";
	display: block;
	margin-bottom: 0.75rem;
	color: var(--blue);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
}

.reflection-box,
.action-afterthought,
.in-content-source-ledger {
	background: var(--paper-clean);
	border: 1px solid var(--ink);
	box-shadow: none;
	padding: clamp(1rem, 5vw, 1.35rem);
}

.action-afterthought {
	border-color: var(--green);
}

.source-ledger {
	max-width: 900px;
	margin: 3rem auto 0;
	padding: clamp(1rem, 5vw, 1.5rem);
}

.source-ledger-header {
	display: grid;
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.source-ledger-header p:not(.eyebrow) {
	max-width: 56ch;
	margin: 0;
	color: var(--muted-ink);
	font-size: 1rem;
	line-height: 1.4;
}

.source-ledger h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2rem, 10vw, 4rem);
	line-height: 0.9;
}

.source-list {
	counter-reset: sources;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.source-list li {
	counter-increment: sources;
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.85rem 0.85rem 0.85rem 3.1rem;
	background: rgba(243, 238, 228, 0.72);
	border-top: 1px solid rgba(23, 20, 17, 0.22);
}

.source-list li::before {
	content: counter(sources, decimal-leading-zero);
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	color: var(--brick);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 700;
}

.source-list a {
	font-weight: 760;
}

.source-cover {
	width: 54px;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border: 1px solid var(--ink);
}

.source-copy {
	display: grid;
	gap: 0.18rem;
	align-content: start;
	grid-column: 1 / -1;
}

.source-cover + .source-copy {
	grid-column: auto;
}

.source-title {
	font-family: var(--font-display);
	font-size: 1.12rem;
	font-weight: 760;
	line-height: 1.05;
}

.source-detail {
	color: var(--muted-ink);
	font-size: 0.95rem;
	line-height: 1.25;
}

.source-host {
	color: var(--muted-ink);
	font-family: var(--font-mono);
	font-size: 0.68rem;
	text-transform: uppercase;
}

.entry-footer,
.after-essay-widgets,
.post-navigation,
.comments-area,
.post-reflection-area {
	max-width: 900px;
	margin: 2rem auto 0;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
	color: var(--muted-ink);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
}

.tag-list a {
	display: inline-flex;
	padding: 0.32rem 0.62rem;
	background: var(--paper-clean);
	border: 1px solid var(--ink);
	border-radius: 999px;
	text-decoration: none;
}

.post-navigation {
	padding: 1rem;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

.post-navigation a {
	display: grid;
	gap: 0.25rem;
	text-decoration: none;
}

.nav-subtitle {
	color: var(--brick);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
}

.nav-title {
	font-family: var(--font-display);
	font-size: 1.45rem;
	font-weight: 780;
	line-height: 1;
}

.after-essay-widget {
	padding: 1rem;
}

.after-essay-title,
.comments-title {
	margin: 0 0 1rem;
	font-family: var(--font-display);
	font-size: 2rem;
	line-height: 1;
}

.comments-area {
	padding: clamp(1rem, 5vw, 1.5rem);
}

.post-reflection-area .comments-area {
	margin-top: 0;
}

.comment-list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.comment-list .comment {
	padding: 1rem 0;
	border-top: 1px solid var(--faint-ink);
}

.comment-form {
	display: grid;
	gap: 0.85rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
	width: 100%;
	background: var(--paper-clean);
	border: 2px solid var(--ink);
	border-radius: 3px;
	padding: 0.7rem;
}

.page-layout {
	max-width: 900px;
	margin: 0 auto;
}

.empty-state {
	max-width: 860px;
	padding: clamp(1.4rem, 7vw, 3rem);
	background: var(--paper-clean);
	border: 2px solid var(--ink);
	box-shadow: 7px 7px 0 var(--ink);
}

.empty-state p {
	max-width: 58ch;
}

.site-footer {
	background: var(--ink);
	color: var(--paper-clean);
	margin-top: 2rem;
}

.footer-inner {
	width: var(--wide);
	margin: 0 auto;
	display: grid;
	gap: 1.5rem;
	padding: 2rem 0;
}

.footer-identity {
	display: grid;
	gap: 0.8rem;
}

.footer-brand {
	margin: 0 0 0.5rem;
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 850;
	line-height: 0.9;
}

.footer-signature {
	width: min(240px, 62vw);
	filter: invert(1);
	opacity: 0.86;
}

.footer-quote {
	max-width: 680px;
	margin: 0;
	padding: 0;
	border: 0;
}

.footer-quote p {
	margin: 0;
	color: var(--paper-clean);
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 5vw, 2.6rem);
	font-weight: 720;
	line-height: 1.02;
}

.footer-quote cite {
	display: block;
	margin-top: 0.55rem;
	color: rgba(255, 248, 235, 0.72);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-style: normal;
	font-weight: 700;
	text-transform: uppercase;
}

.footer-contact {
	display: grid;
	gap: 0.55rem;
}

.footer-contact .contact-icons a {
	color: var(--paper-clean);
	border-color: rgba(255, 248, 235, 0.72);
}

.footer-contact .contact-icons a:hover {
	background: var(--paper-clean);
	color: var(--ink);
}

.footer-contact p {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
}

.footer-contact a {
	color: var(--paper-clean);
}

.site-footer p {
	max-width: 62ch;
	color: rgba(255, 248, 235, 0.75);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.footer-menu a {
	color: var(--paper-clean);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
}

@media (min-width: 700px) {
	body {
		font-size: 19px;
	}

	.header-inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.site-navigation {
		grid-column: 2;
		grid-row: 1;
	}

	.header-actions {
		grid-column: 3;
		grid-row: 1;
	}

	.contact-icons a {
		width: 38px;
		height: 38px;
	}

	.author-photo-button,
	.menu-toggle {
		width: 46px;
		height: 46px;
	}

	.menu-toggle {
		display: none;
	}

	.site-navigation {
		grid-column: 2;
		grid-row: 1;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 1rem;
		border-top: 0;
		padding-top: 0;
	}

	.primary-menu {
		margin-bottom: 0;
		justify-content: flex-end;
	}

	.search-form {
		max-width: 270px;
	}

	.search-submit {
		padding-inline: 0.7rem;
	}

	.post-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-card {
		grid-template-columns: 1fr;
		grid-template-rows: 260px 1fr;
		min-height: 0;
	}

	.post-card-featured {
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 0.96fr) minmax(320px, 1.04fr);
		grid-template-rows: minmax(420px, auto);
	}

	.source-ledger-header {
		grid-template-columns: 1fr auto;
		align-items: start;
	}

	.source-ledger-header .eyebrow {
		grid-column: 1 / -1;
	}

	.source-ledger-header p:not(.eyebrow) {
		grid-column: 1;
	}

	.single-byline-panel {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.thinkpiece-hero .reference-card {
		grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
		align-items: start;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.footer-inner {
		grid-template-columns: 1fr auto;
		align-items: start;
	}
}

@media (min-width: 980px) {
	.front-hero {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		align-content: start;
	}

	.front-hero h1 {
		font-size: clamp(4.2rem, 7.5vw, 6.8rem);
		max-width: 15ch;
	}

	.thinkpiece-hero h1 {
		font-size: clamp(4.6rem, 8vw, 7.4rem);
		max-width: 15ch;
	}

	.post-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.archive-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.thinkpiece-body-grid {
		grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
		gap: clamp(2rem, 4vw, 4rem);
	}

	.article-rail {
		order: 1;
	}

	.entry-column {
		order: 2;
	}

	.article-rail {
		position: sticky;
		top: 96px;
	}

	.entry-content {
		font-size: clamp(1.22rem, 1.9vw, 1.48rem);
	}
}

@media (min-width: 1220px) {
	.front-hero h1 {
		max-width: 13ch;
	}

	.thinkpiece-hero h1 {
		max-width: 15ch;
	}

	.entry-content .alignwide,
	.entry-content .wp-block-image.alignwide,
	.entry-content .wp-block-gallery.alignwide,
	.entry-content .wp-block-cover.alignwide {
		width: min(1050px, calc(100vw - 340px));
		max-width: none;
		margin-left: 50%;
		transform: translateX(-50%);
	}

	.entry-content .alignfull,
	.entry-content .wp-block-image.alignfull,
	.entry-content .wp-block-cover.alignfull {
		width: min(1180px, calc(100vw - 48px));
		max-width: none;
		margin-left: 50%;
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
