/*
Theme Name: Hustle Brief
Theme URI: https://dailysidehustle.me
Author: Russell Turley
Author URI: https://dailysidehustle.me
Description: The briefing paper for builders. An editorial daily-brief theme for Daily Side Hustle — typographic masthead, ledger-style indexes, and color-coded sections for the Side Hustle Brief, AI News, and Friday Feature.
Version: 1.0.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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hustle-brief
Tags: blog, news, editorial, one-column, custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   1. TOKENS
   ============================================================ */

:root {
	/* Paper & ink */
	--paper: #f7f2e7;
	--paper-raise: #fbf8f1;
	--paper-deep: #efe7d6;
	--ink: #1d1a13;
	--ink-soft: #5c5544;
	--ink-faint: #8a8270;

	/* Rules */
	--rule: #d3c9b2;
	--rule-strong: #1d1a13;

	/* Brand + section accents */
	--green: #146839;
	--green-bright: #1d8a4e;
	--indigo: #3b4ea0;
	--indigo-bright: #5468c4;
	--ember: #a85e0f;
	--ember-bright: #c97a1e;
	--gold: #c89b3c;

	/* Section accent (overridden contextually) */
	--accent: var(--green);
	--accent-bright: var(--green-bright);

	/* Type */
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Newsreader", Georgia, serif;
	--font-mono: "IBM Plex Mono", "Courier New", monospace;

	/* Rhythm */
	--wrap: 1180px;
	--measure: 720px;
	--radius: 2px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #16130d;
		--paper-raise: #1d1a12;
		--paper-deep: #221e14;
		--ink: #efe7d4;
		--ink-soft: #bab090;
		--ink-faint: #8a8168;
		--rule: #3b3526;
		--rule-strong: #efe7d4;
		--green: #4cc07e;
		--green-bright: #6cd49a;
		--indigo: #96a5ec;
		--indigo-bright: #b0bdf2;
		--ember: #e29c4c;
		--ember-bright: #eeb067;
		--gold: #d4aa54;
	}
}

/* ============================================================
   2. BASE
   ============================================================ */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.7;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--green);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
	color: var(--ink);
}

::selection {
	background: var(--green);
	color: #f7f2e7;
}

:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}

.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: clamp(18px, 4vw, 44px);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 10px 18px;
	z-index: 100;
	text-decoration: none;
}

.skip-link:focus {
	left: 0;
	color: var(--paper);
}

.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;
}

/* ============================================================
   3. MASTHEAD
   ============================================================ */

.topbar {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-soft);
	border-bottom: 1px solid var(--rule);
}

.topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-block: 9px;
}

.topbar-center {
	text-align: center;
	color: var(--ink-faint);
}

.topbar-right {
	text-align: right;
}

.topbar .edition-no {
	color: var(--green);
	font-weight: 600;
}

@media (max-width: 720px) {
	.topbar-center {
		display: none;
	}
}

.site-header {
	border-bottom: 1px solid var(--rule-strong);
}

.masthead {
	text-align: center;
	padding-block: clamp(30px, 5.5vw, 54px) clamp(16px, 3vw, 26px);
}

.site-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(38px, 8.4vw, 96px);
	line-height: 0.98;
	letter-spacing: -0.015em;
	text-transform: uppercase;
}

.site-title a {
	color: var(--ink);
	text-decoration: none;
}

.site-title .word-side {
	font-style: italic;
	font-weight: 600;
	color: var(--green);
	letter-spacing: 0;
}

.masthead-tag {
	margin: 14px auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	font-family: var(--font-mono);
	font-size: clamp(10px, 1.4vw, 12px);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.masthead-tag::before,
.masthead-tag::after {
	content: "";
	width: clamp(28px, 6vw, 72px);
	height: 1px;
	background: var(--rule);
}

.masthead-tag .tag-star {
	color: var(--gold);
	letter-spacing: 0;
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */

.site-nav {
	border-top: 3px double var(--rule-strong);
}

.site-nav .wrap {
	position: relative;
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink);
	padding: 15px 0;
	width: 100%;
	text-align: center;
}

.nav-toggle .bars {
	display: inline-block;
	vertical-align: middle;
	margin-right: 10px;
}

.nav-toggle .bars span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	margin: 4px auto;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-menu {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-menu > li {
	position: relative;
}

.main-menu a {
	display: block;
	padding: 16px clamp(12px, 2vw, 22px);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.main-menu a:hover {
	color: var(--green);
}

.main-menu .current-menu-item > a,
.main-menu .current_page_item > a,
.main-menu .current-menu-ancestor > a,
.main-menu .current-menu-parent > a {
	color: var(--green);
	border-bottom-color: var(--green);
}

.main-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--paper-raise);
	border: 1px solid var(--rule-strong);
	min-width: 210px;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	z-index: 50;
	box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}

.main-menu .sub-menu a {
	padding: 9px 18px;
	border-bottom: 0;
	white-space: nowrap;
}

@media (max-width: 760px) {
	.nav-toggle {
		display: block;
	}

	.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.main-menu {
		display: none;
		flex-direction: column;
		align-items: stretch;
		padding-bottom: 14px;
	}

	.main-menu.is-open {
		display: flex;
	}

	.main-menu a {
		padding: 12px 8px;
		border-bottom: 1px solid var(--rule);
	}

	.main-menu .sub-menu {
		position: static;
		transform: none;
		border: 0;
		box-shadow: none;
		padding-left: 18px;
	}
}

/* ============================================================
   5. CHIPS & KICKERS
   ============================================================ */

.chip {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 4px 10px 3px;
	border: 1px solid currentColor;
	border-radius: var(--radius);
	text-decoration: none;
	line-height: 1.4;
	white-space: nowrap;
}

.chip:hover {
	color: var(--ink) !important;
	background: var(--paper-deep);
}

.chip.c-green,
.chip.c-default {
	color: var(--green);
}

.chip.c-indigo {
	color: var(--indigo);
}

.chip.c-ember {
	color: var(--ember);
}

.meta-mono {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.kicker-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

/* Section accent contexts */
.acc-green {
	--accent: var(--green);
	--accent-bright: var(--green-bright);
}

.acc-indigo {
	--accent: var(--indigo);
	--accent-bright: var(--indigo-bright);
}

.acc-ember {
	--accent: var(--ember);
	--accent-bright: var(--ember-bright);
}

/* ============================================================
   6. PAGE LAYOUT & SECTION HEADS
   ============================================================ */

.site-main {
	padding-block: clamp(30px, 5vw, 56px) clamp(56px, 8vw, 96px);
	min-height: 46vh;
}

.section-head {
	border-bottom: 1px solid var(--rule-strong);
	padding-bottom: 22px;
	margin-bottom: clamp(26px, 4vw, 40px);
}

.section-head .kicker-row {
	margin-bottom: 14px;
}

.section-head .kicker-label {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent);
}

.section-head .kicker-label::after {
	content: "";
	display: inline-block;
	width: 44px;
	height: 1px;
	background: var(--accent);
	vertical-align: middle;
	margin-left: 12px;
}

.page-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(32px, 5.4vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.page-desc {
	margin: 14px 0 0;
	max-width: 64ch;
	color: var(--ink-soft);
	font-size: 17px;
}

.section-head .post-count {
	margin: 16px 0 0;
}

.rule-accent {
	height: 4px;
	background: var(--accent);
	width: 76px;
	margin-top: 18px;
}

/* ============================================================
   7. LEAD STORY (home)
   ============================================================ */

.lead {
	border-bottom: 3px double var(--rule-strong);
	padding-bottom: clamp(28px, 4vw, 44px);
	margin-bottom: clamp(28px, 4vw, 44px);
}

.lead .kicker-row {
	margin-bottom: 18px;
}

.lead-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(30px, 5vw, 54px);
	line-height: 1.06;
	letter-spacing: -0.012em;
}

.lead-title a {
	color: var(--ink);
	text-decoration: none;
}

.lead-title a:hover {
	color: var(--green);
}

.lead-dek {
	margin: 16px 0 0;
	font-size: clamp(17px, 2.2vw, 20px);
	line-height: 1.65;
	color: var(--ink-soft);
	max-width: 72ch;
}

.lead-meta {
	margin-top: 18px;
}

/* ============================================================
   8. INDEX — the ledger
   ============================================================ */

.index-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--rule-strong);
	margin-bottom: 0;
	padding-bottom: 12px;
}

.index-heading h2 {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink);
}

.index-heading .index-count {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.index-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.index-row {
	display: grid;
	grid-template-columns: 92px 1fr auto;
	gap: clamp(16px, 3vw, 36px);
	align-items: start;
	padding: 24px 0;
	border-bottom: 1px solid var(--rule);
	position: relative;
	transition: background-color 0.15s ease;
}

.index-row:last-child {
	border-bottom: 1px solid var(--rule-strong);
}

.index-row:hover {
	background: var(--paper-raise);
}

.row-date {
	font-family: var(--font-mono);
	text-align: center;
	border-right: 1px solid var(--rule);
	padding-right: clamp(12px, 2vw, 24px);
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.row-date .row-month {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent);
}

.row-date .row-day {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--ink);
}

.row-date .row-year {
	font-size: 10.5px;
	letter-spacing: 0.16em;
	color: var(--ink-faint);
}

.row-body {
	min-width: 0;
}

.row-title {
	margin: 6px 0 8px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(19px, 2.6vw, 24px);
	line-height: 1.22;
	letter-spacing: -0.008em;
}

.row-title a {
	color: var(--ink);
	text-decoration: none;
}

.row-title a:hover {
	color: var(--green);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.row-excerpt {
	margin: 0;
	color: var(--ink-soft);
	font-size: 16px;
	line-height: 1.65;
	max-width: 68ch;
}

.row-excerpt a {
	color: inherit;
}

.row-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	padding-top: 4px;
}

.row-side .meta-mono {
	writing-mode: vertical-rl;
	font-size: 10px;
	letter-spacing: 0.2em;
}

@media (max-width: 640px) {
	.index-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.row-date {
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
		border-right: 0;
		padding-right: 0;
		text-align: left;
		align-self: auto;
	}

	.row-date .row-day {
		font-size: 18px;
	}

	.row-side {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	.row-side .meta-mono {
		writing-mode: horizontal-tb;
	}
}

/* ============================================================
   9. FEATURE BOX (home)
   ============================================================ */

.feature-box {
	margin-top: clamp(36px, 5vw, 56px);
	background: var(--paper-deep);
	border: 1px solid var(--rule);
	border-top: 4px solid var(--ember);
	padding: clamp(24px, 4vw, 40px);
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	position: relative;
}

.feature-box::after {
	content: "★";
	position: absolute;
	top: -17px;
	right: 22px;
	background: var(--ember);
	color: var(--paper-raise);
	font-size: 11px;
	line-height: 1;
	padding: 7px 9px 5px;
}

.feature-box .kicker-row {
	margin-bottom: 10px;
}

.feature-box .kicker-label {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ember);
}

.feature-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(24px, 3.6vw, 36px);
	line-height: 1.12;
}

.feature-title a {
	color: var(--ink);
	text-decoration: none;
}

.feature-title a:hover {
	color: var(--ember);
}

.feature-dek {
	margin: 12px 0 0;
	color: var(--ink-soft);
	max-width: 70ch;
	font-size: 17px;
}

.feature-link {
	margin-top: 16px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* ============================================================
   10. PAGINATION
   ============================================================ */

.pagination {
	margin-top: clamp(32px, 5vw, 48px);
	border-top: 1px solid var(--rule-strong);
	padding-top: 22px;
}

.nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
}

.nav-links a,
.nav-links .current {
	display: inline-block;
	padding: 8px 14px;
	color: var(--ink);
	text-decoration: none;
	border: 1px solid var(--rule);
}

.nav-links a:hover {
	border-color: var(--green);
	color: var(--green);
}

.nav-links .current {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

.nav-links .prev,
.nav-links .next {
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.14em;
}

.nav-links .dots {
	padding: 8px 6px;
	color: var(--ink-faint);
}

/* ============================================================
   11. SINGLE POST
   ============================================================ */

.crumb {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 22px;
}

.crumb a {
	color: var(--ink-faint);
	text-decoration: none;
}

.crumb a:hover {
	color: var(--green);
}

.entry-header {
	border-bottom: 1px solid var(--rule-strong);
	padding-bottom: clamp(24px, 4vw, 36px);
	margin-bottom: clamp(28px, 4vw, 40px);
}

.entry-header .kicker-row {
	margin-bottom: 18px;
}

.entry-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(28px, 4.8vw, 50px);
	line-height: 1.08;
	letter-spacing: -0.012em;
}

.entry-dek {
	margin: 18px 0 0;
	font-size: clamp(17px, 2.2vw, 21px);
	line-height: 1.6;
	color: var(--ink-soft);
	font-style: italic;
	max-width: 70ch;
}

.entry-meta {
	margin-top: 20px;
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.entry-meta .meta-sep {
	color: var(--rule);
}

/* ---- Reading column ---- */

.entry-content {
	max-width: var(--measure);
	margin-inline: auto;
	font-size: 19px;
	line-height: 1.78;
}

.entry-content > * {
	margin-block: 0 1.4em;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.008em;
	margin-block: 2em 0.8em;
}

.entry-content h2 {
	font-size: 29px;
	padding-top: 0.6em;
	border-top: 1px solid var(--rule);
}

.entry-content h3 {
	font-size: 24px;
}

.entry-content h4 {
	font-size: 20px;
}

/* The numbered brief — the signature treatment */
.entry-content > ol,
.entry-content > .wp-block-list {
	list-style: none;
	counter-reset: brief;
	margin-block: 2em;
	padding: 0;
}

.entry-content > ol > li,
.entry-content > .wp-block-list > li {
	counter-increment: brief;
	position: relative;
	padding-left: 66px;
	margin-bottom: 2.2em;
	min-height: 40px;
}

.entry-content > ol > li + li,
.entry-content > .wp-block-list > li + li {
	border-top: 1px solid var(--rule);
	padding-top: 1.8em;
}

.entry-content > ol > li::before,
.entry-content > .wp-block-list > li::before {
	content: counter(brief, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0.02em;
	font-family: var(--font-mono);
	font-size: 24px;
	font-weight: 600;
	color: var(--accent);
	line-height: 1.35;
}

.entry-content > ol > li + li::before,
.entry-content > .wp-block-list > li + li::before {
	top: 1.86em;
}

.entry-content li p {
	margin: 0 0 0.9em;
}

.entry-content li p:last-child {
	margin-bottom: 0;
}

/* Nested lists stay quiet */
.entry-content li ul,
.entry-content li ol {
	list-style: disc;
	padding-left: 1.4em;
	margin: 0.9em 0;
}

.entry-content li ol {
	list-style: decimal;
}

.entry-content li ol > li::before {
	content: none;
}

/* Takeaway callout */
.entry-content blockquote {
	margin-block: 2.2em;
	background: var(--paper-deep);
	border-left: 4px solid var(--accent);
	padding: 22px 26px 20px;
	font-size: 20px;
	font-style: italic;
	line-height: 1.6;
}

.entry-content blockquote::before {
	content: "Takeaway";
	display: block;
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 600;
	font-style: normal;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 10px;
}

.entry-content blockquote p {
	margin: 0;
}

.entry-content blockquote p + p {
	margin-top: 0.8em;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 12px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-style: normal;
	letter-spacing: 0.08em;
	color: var(--ink-faint);
}

/* Links inside the brief */
.entry-content a {
	text-decoration-thickness: 2px;
}

.entry-content a:hover {
	background: var(--paper-deep);
}

/* Friday Feature essays get a drop cap */
.acc-ember .entry-content > p:first-of-type::first-letter {
	float: left;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 74px;
	line-height: 0.78;
	padding: 8px 12px 0 0;
	color: var(--ember);
}

/* Figures & media */
.entry-content img,
.entry-content .wp-caption {
	border: 1px solid var(--rule);
}

.entry-content .wp-caption {
	padding: 10px;
	background: var(--paper-raise);
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--ink-faint);
	border: 0;
}

/* Inline bits */
.entry-content code,
.entry-content kbd {
	font-family: var(--font-mono);
	font-size: 0.82em;
	background: var(--paper-deep);
	padding: 2px 6px;
	border-radius: var(--radius);
}

.entry-content pre {
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.7;
	padding: 20px 24px;
	overflow-x: auto;
	border-radius: var(--radius);
}

.entry-content pre code {
	background: none;
	padding: 0;
}

.entry-content hr {
	border: 0;
	margin-block: 2.6em;
}

.entry-content hr::before {
	content: "";
	display: block;
	width: 130px;
	margin-inline: auto;
	border-top: 3px double var(--rule-strong);
}

/* Tables */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.entry-content th {
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: left;
	color: var(--ink-soft);
}

.entry-content th,
.entry-content td {
	padding: 10px 14px 10px 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}

/* Blocks */
.entry-content .alignwide {
	max-width: 980px;
	margin-inline: auto;
}

.entry-content .alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wp-block-button__link {
	font-family: var(--font-mono) !important;
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: var(--green) !important;
	color: #f7f2e7 !important;
	border-radius: var(--radius);
	padding: 14px 26px !important;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.wp-block-button__link:hover {
	background: var(--ink) !important;
	color: var(--paper) !important;
}

/* ============================================================
   12. POST FOOTER NAV
   ============================================================ */

.post-footer {
	max-width: var(--measure);
	margin: clamp(36px, 6vw, 56px) auto 0;
	border-top: 3px double var(--rule-strong);
	padding-top: 26px;
}

.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.post-navigation .nav-next,
.post-navigation .nav-previous {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.7;
}

.post-navigation .nav-previous {
	text-align: left;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .meta-mono-label {
	display: block;
	color: var(--ink-faint);
	margin-bottom: 6px;
}

.post-navigation a {
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 2px solid var(--accent);
}

.post-navigation a:hover {
	color: var(--accent);
}

@media (max-width: 640px) {
	.post-navigation {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}
}

/* ============================================================
   13. SEARCH, 404, PAGE
   ============================================================ */

.search-form {
	display: flex;
	max-width: 560px;
}

.search-form label {
	flex: 1;
	display: flex;
}

.search-field {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--rule-strong);
	font-family: var(--font-mono);
	font-size: 16px;
	padding: 12px 4px;
	color: var(--ink);
}

.search-field:focus {
	outline: none;
	border-bottom-color: var(--green);
}

.search-field::placeholder {
	color: var(--ink-faint);
}

.search-submit,
.btn {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	background: var(--ink);
	color: var(--paper);
	border: 1px solid var(--ink);
	padding: 12px 22px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.search-submit:hover,
.btn:hover {
	background: var(--green);
	border-color: var(--green);
	color: #f7f2e7;
}

.btn-green {
	background: var(--green);
	border-color: var(--green);
	color: #f7f2e7;
}

.big-404 {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(90px, 18vw, 190px);
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--accent);
}

.page-content .search-form {
	margin-block: 26px;
}

.no-results .page-title {
	font-size: clamp(24px, 3vw, 34px);
}

.no-results p {
	max-width: 60ch;
}

.links-grid {
	padding-top: 34px;
}

/* ============================================================
   14. COMMENTS (minimal)
   ============================================================ */

.comments-area {
	max-width: var(--measure);
	margin: clamp(40px, 6vw, 64px) auto 0;
	border-top: 1px solid var(--rule-strong);
	padding-top: 28px;
}

.comments-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 26px;
	margin: 0 0 22px;
}

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

.comment-list .comment {
	border: 1px solid var(--rule);
	background: var(--paper-raise);
	padding: 18px 22px;
	margin-bottom: 18px;
}

.comment-list .children {
	list-style: none;
	margin-top: 18px;
	padding-left: 22px;
}

.comment-meta {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 10px;
}

.comment-author {
	font-weight: 600;
	color: var(--ink);
}

.comment-author img {
	width: 28px;
	height: 28px;
	margin-right: 8px;
	vertical-align: middle;
	border-radius: var(--radius);
}

.comment-content p {
	margin: 0 0 0.8em;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-reply-link {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.comment-respond {
	margin-top: 28px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--paper-raise);
	border: 1px solid var(--rule);
	font-family: var(--font-body);
	font-size: 16px;
	padding: 11px 14px;
	color: var(--ink);
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--green);
}

.comment-form label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	display: block;
	margin-bottom: 6px;
}

.comment-form p {
	margin-bottom: 18px;
}

/* ============================================================
   15. FOOTER
   ============================================================ */

.site-footer {
	border-top: 3px double var(--rule-strong);
	background: var(--paper-deep);
	margin-top: 0;
}

.footer-cta {
	text-align: center;
	padding-block: clamp(40px, 7vw, 72px);
	border-bottom: 1px solid var(--rule);
}

.footer-cta h2 {
	margin: 0 0 12px;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(26px, 4.4vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.footer-cta h2 .cta-accent {
	color: var(--green);
	font-style: italic;
	font-weight: 600;
}

.footer-cta p {
	margin: 0 auto 24px;
	max-width: 52ch;
	color: var(--ink-soft);
	font-size: 17px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	padding-block: clamp(30px, 5vw, 48px);
}

@media (max-width: 760px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

.footer-col h3 {
	margin: 0 0 14px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.footer-col p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 16px;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li {
	margin-bottom: 8px;
}

.footer-col a {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--rule);
}

.footer-col a:hover {
	color: var(--green);
	border-bottom-color: var(--green);
}

.footer-widgets {
	padding-block: 0 clamp(20px, 3vw, 32px);
}

.colophon {
	border-top: 1px solid var(--rule);
	padding-block: 20px;
	display: flex;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.colophon a {
	color: var(--ink-faint);
}

.colophon a:hover {
	color: var(--green);
}

/* ============================================================
   16. MOTION
   ============================================================ */

@keyframes hb-rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.lead,
	.index-row,
	.section-head,
	.feature-box {
		animation: hb-rise 0.5s ease both;
	}

	.index-row:nth-child(1) { animation-delay: 0.05s; }
	.index-row:nth-child(2) { animation-delay: 0.1s; }
	.index-row:nth-child(3) { animation-delay: 0.15s; }
	.index-row:nth-child(4) { animation-delay: 0.2s; }
	.index-row:nth-child(5) { animation-delay: 0.25s; }
	.index-row:nth-child(6) { animation-delay: 0.3s; }
	.index-row:nth-child(7) { animation-delay: 0.35s; }
	.index-row:nth-child(8) { animation-delay: 0.4s; }

	.feature-box {
		animation-delay: 0.2s;
	}
}

/* ============================================================
   17. PRINT
   ============================================================ */

@media print {
	.site-nav,
	.site-footer,
	.topbar,
	.pagination,
	.post-navigation,
	.comments-area,
	.footer-cta {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 12pt;
	}

	.lead-title a,
	.row-title a,
	.entry-title {
		color: #000;
	}
}
