/*
Theme Name: Bookish Intention
Theme URI: https://bookishintention.com
Author: Crystal DeCell
Author URI: https://bookishintention.com
Description: A literary lifestyle theme for Bookish Intention — home to book reviews, essays, short stories, a blog, newsletter, and podcast. Dark academia meets autumnal warmth. WCAG 2.2 compliant.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bookish-intention
Tags: dark, literary, book-reviews, blog, podcast, custom-post-types, accessibility-ready, two-columns, custom-menu, custom-logo, featured-images, wide-blocks
*/

/* =============================================================
   DESIGN TOKENS
   ============================================================= */
:root {
	/* Core palette — derived from mood board + deep plum anchor */
	--plum:          #3B1F4A;
	--plum-dark:     #22102E;
	--plum-mid:      #5C3570;
	--plum-light:    #7A4A90;
	--forest:        #1E2C1A;
	--forest-mid:    #2E4229;
	--moss:          #4A6040;
	--leather:       #7A4A28;
	--leather-light: #A06838;
	--coffee:        #2A180E;
	--amber:         #C48A2A;
	--gold:          #DEB85C;
	--gold-light:    #EDD080;
	--cream:         #F4EDE2;
	--parchment:     #E8DDD0;
	--warm-white:    #FBF7F2;
	--ink:           #150D08;
	--warm-gray:     #8A7A6E;
	--light-gray:    #C8BDB5;
	--mid-gray:      #5C504A;

	/* Semantic roles */
	--bg-primary:    var(--ink);
	--bg-secondary:  var(--coffee);
	--bg-card:       #1E140A;
	--bg-surface:    #241608;
	--text-primary:  var(--cream);
	--text-secondary:var(--parchment);
	--text-muted:    var(--warm-gray);
	--accent:        var(--amber);
	--accent-hover:  var(--gold);
	--border:        rgba(196, 138, 42, 0.25);
	--border-strong: rgba(196, 138, 42, 0.5);

	/* Category accent colors */
	--cat-review:    #5C3570;   /* plum-mid */
	--cat-essay:     #1E2C1A;   /* forest */
	--cat-story:     #2A180E;   /* coffee */
	--cat-podcast:   #3B1F4A;   /* plum */
	--cat-newsletter:#2E4229;   /* forest-mid */
	--cat-blog:      #4A3020;   /* mid brown */

	/* Typography */
	--font-display:  'Playfair Display', 'Georgia', 'Times New Roman', serif;
	--font-body:     'Inter', 'Helvetica Neue', Arial, sans-serif;
	--font-accent:   'Cormorant Garamond', 'Georgia', serif;
	--font-mono:     'Fira Code', 'Courier New', monospace;

	/* Scale */
	--text-xs:    0.75rem;
	--text-sm:    0.875rem;
	--text-base:  1rem;
	--text-md:    1.125rem;
	--text-lg:    1.25rem;
	--text-xl:    1.5rem;
	--text-2xl:   2rem;
	--text-3xl:   2.5rem;
	--text-4xl:   3.25rem;
	--text-5xl:   4.5rem;

	/* Spacing */
	--space-1:  0.25rem;
	--space-2:  0.5rem;
	--space-3:  0.75rem;
	--space-4:  1rem;
	--space-5:  1.25rem;
	--space-6:  1.5rem;
	--space-8:  2rem;
	--space-10: 2.5rem;
	--space-12: 3rem;
	--space-16: 4rem;
	--space-20: 5rem;
	--space-24: 6rem;

	/* Layout */
	--max-width:       1280px;
	--content-width:   780px;
	--sidebar-width:   320px;
	--gutter:          clamp(1rem, 4vw, 2rem);

	/* Effects */
	--radius-sm:  4px;
	--radius-md:  8px;
	--radius-lg:  16px;
	--shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.4);
	--shadow-md:  0 4px 20px rgba(0, 0, 0, 0.5);
	--shadow-lg:  0 8px 40px rgba(0, 0, 0, 0.6);
	--shadow-glow:0 0 30px rgba(196, 138, 42, 0.15);
	--transition: 0.2s ease;
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	padding: 0;
	background-color: var(--bg-primary);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* =============================================================
   ACCESSIBILITY — WCAG 2.2
   ============================================================= */

/* Skip link — 2.4.1 */
.skip-link {
	position: absolute;
	top: -100%;
	left: var(--space-4);
	padding: var(--space-3) var(--space-6);
	background: var(--amber);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--radius-sm);
	z-index: 10000;
	transition: top var(--transition);
}

.skip-link:focus {
	top: var(--space-4);
}

/* Focus styles — 2.4.11 Focus Appearance (WCAG 2.2)
   Minimum: 2px solid, 3:1 contrast with adjacent color */
:focus-visible {
	outline: 3px solid var(--amber);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
	outline: none;
}

/* High-contrast interactive elements get extra ring on dark backgrounds */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
	border-radius: 2px;
	box-shadow: 0 0 0 6px rgba(222, 184, 92, 0.25);
}

/* Screen reader only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.2;
	color: var(--cream);
	margin-top: 0;
	margin-bottom: var(--space-4);
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
	margin-top: 0;
	margin-bottom: var(--space-6);
	color: var(--text-secondary);
}

a {
	color: var(--gold);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--transition);
}

a:hover {
	color: var(--gold-light);
	text-decoration-thickness: 2px;
}

/* No-decoration links inherit color cleanly */
a.no-underline { text-decoration: none; }

strong, b { font-weight: 700; color: var(--cream); }
em, i { font-style: italic; }

small { font-size: var(--text-sm); }

blockquote {
	margin: var(--space-10) 0;
	padding: var(--space-6) var(--space-8);
	border-left: 4px solid var(--amber);
	background: rgba(59, 31, 74, 0.3);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	font-family: var(--font-accent);
	font-size: var(--text-xl);
	font-style: italic;
	line-height: 1.5;
	color: var(--gold-light);
	position: relative;
}

blockquote::before {
	content: '\201C';
	position: absolute;
	top: -0.3em;
	left: var(--space-4);
	font-size: 4rem;
	line-height: 1;
	color: var(--amber);
	font-family: var(--font-display);
	opacity: 0.6;
}

blockquote p { color: inherit; margin-bottom: 0; }
blockquote cite {
	display: block;
	margin-top: var(--space-4);
	font-size: var(--text-sm);
	font-style: normal;
	font-family: var(--font-body);
	color: var(--warm-gray);
}
blockquote cite::before { content: '— '; }

pre, code {
	font-family: var(--font-mono);
	font-size: var(--text-sm);
}

pre {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: var(--space-6);
	overflow-x: auto;
	margin-bottom: var(--space-6);
}

code {
	background: rgba(59, 31, 74, 0.4);
	padding: 0.1em 0.4em;
	border-radius: var(--radius-sm);
	color: var(--gold-light);
}

pre code {
	background: none;
	padding: 0;
	color: var(--cream);
}

hr {
	border: none;
	height: 1px;
	background: var(--border);
	margin: var(--space-12) auto;
	max-width: 200px;
	position: relative;
}

/* Ornamental divider */
.ornament-divider {
	text-align: center;
	margin: var(--space-12) 0;
	color: var(--amber);
	font-size: var(--text-lg);
	letter-spacing: 0.5em;
}

.ornament-divider::before {
	content: '✦ ❧ ✦';
}

/* Drop cap for article openers */
.entry-content > p:first-of-type::first-letter,
.has-drop-cap > p:first-of-type::first-letter {
	float: left;
	font-family: var(--font-display);
	font-size: 5rem;
	font-weight: 700;
	line-height: 0.75;
	margin: 0.05em var(--space-3) 0 0;
	color: var(--amber);
	padding: var(--space-2);
}

/* =============================================================
   LAYOUT
   ============================================================= */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

.container {
	width: 100%;
	max-width: var(--max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.container--narrow {
	max-width: var(--content-width);
}

.container--wide {
	max-width: 1440px;
}

/* Two-column layout with sidebar */
.content-area {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-12);
}

@media (min-width: 1024px) {
	.content-area {
		grid-template-columns: 1fr var(--sidebar-width);
		align-items: start;
	}

	.content-area--no-sidebar {
		grid-template-columns: 1fr;
	}
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
	background: linear-gradient(180deg, var(--plum-dark) 0%, var(--plum) 100%);
	border-bottom: 1px solid var(--border-strong);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: var(--shadow-md);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: var(--space-5);
	padding-bottom: var(--space-5);
	gap: var(--space-8);
}

/* Site branding */
.site-branding {
	flex-shrink: 0;
}

.custom-logo-link {
	display: block;
	text-decoration: none;
}

.custom-logo {
	max-height: 64px;
	width: auto;
}

.site-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--text-xl);
	line-height: 1.1;
}

.site-title a {
	color: var(--cream);
	text-decoration: none;
	letter-spacing: 0.02em;
}

.site-title a:hover { color: var(--gold); }

.site-description {
	margin: var(--space-1) 0 0;
	font-family: var(--font-accent);
	font-size: var(--text-sm);
	font-style: italic;
	color: var(--warm-gray);
	letter-spacing: 0.05em;
}

/* Primary navigation */
.primary-navigation {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--space-1);
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nav-menu li { position: relative; }

.nav-menu a {
	display: block;
	padding: var(--space-2) var(--space-4);
	color: var(--parchment);
	text-decoration: none;
	font-size: var(--text-sm);
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	transition: background var(--transition), color var(--transition);
	/* 2.5.8: min 24px touch target */
	min-height: 44px;
	display: flex;
	align-items: center;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	background: rgba(196, 138, 42, 0.15);
	color: var(--gold);
}

/* Dropdown */
.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--plum-dark);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	padding: var(--space-2) 0;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
	z-index: 100;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu a {
	min-height: 44px;
	padding: var(--space-2) var(--space-5);
	font-size: var(--text-sm);
	text-transform: none;
	letter-spacing: 0;
	border-radius: 0;
}

/* Mobile menu toggle — 2.5.8: min 44x44px */
.menu-toggle {
	display: none;
	background: none;
	border: 2px solid var(--border-strong);
	color: var(--cream);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	min-width: 44px;
	min-height: 44px;
	transition: background var(--transition), color var(--transition);
}

.menu-toggle:hover {
	background: rgba(196, 138, 42, 0.2);
	color: var(--gold);
}

@media (max-width: 768px) {
	.menu-toggle { display: flex; align-items: center; gap: var(--space-2); }

	.primary-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--plum-dark);
		border-bottom: 1px solid var(--border-strong);
		box-shadow: var(--shadow-lg);
		padding: var(--space-4) var(--gutter);
		display: none;
	}

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

	.nav-menu {
		flex-direction: column;
		gap: 0;
		justify-content: flex-start;
	}

	.nav-menu a { min-height: 48px; }

	.nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-left: 2px solid var(--border);
		margin-left: var(--space-4);
		padding: 0;
		background: transparent;
	}
}

/* =============================================================
   HERO / BANNER
   ============================================================= */
.site-hero {
	position: relative;
	background: linear-gradient(
		135deg,
		var(--plum-dark) 0%,
		var(--forest) 50%,
		var(--coffee) 100%
	);
	padding: var(--space-24) 0;
	overflow: hidden;
	text-align: center;
}

.site-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center top, rgba(196, 138, 42, 0.1) 0%, transparent 70%);
	pointer-events: none;
}

.site-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.hero-eyebrow {
	display: inline-block;
	font-family: var(--font-accent);
	font-size: var(--text-sm);
	font-style: italic;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--amber);
	margin-bottom: var(--space-4);
}

.hero-title {
	font-size: clamp(var(--text-4xl), 8vw, var(--text-5xl));
	color: var(--cream);
	margin-bottom: var(--space-4);
	text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
	font-family: var(--font-accent);
	font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
	font-style: italic;
	color: var(--parchment);
	max-width: 600px;
	margin: 0 auto var(--space-8);
}

/* =============================================================
   FEATURED POST (LitHub-style lead card)
   ============================================================= */
.featured-post {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	margin-bottom: var(--space-16);
	box-shadow: var(--shadow-lg);
	min-height: 500px;
	display: flex;
	align-items: flex-end;
}

.featured-post__image {
	position: absolute;
	inset: 0;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.featured-post__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(21, 13, 8, 0.95) 0%,
		rgba(21, 13, 8, 0.7) 40%,
		rgba(21, 13, 8, 0.2) 100%
	);
}

.featured-post__content {
	position: relative;
	padding: var(--space-10);
	width: 100%;
}

.featured-post__label {
	display: inline-block;
	background: var(--amber);
	color: var(--ink);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-4);
}

.featured-post__title {
	font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
	color: var(--warm-white);
	margin-bottom: var(--space-4);
	line-height: 1.15;
}

.featured-post__title a {
	color: inherit;
	text-decoration: none;
}

.featured-post__title a:hover { color: var(--gold); }

.featured-post__meta {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	flex-wrap: wrap;
	font-size: var(--text-sm);
	color: var(--light-gray);
}

.featured-post__excerpt {
	color: var(--parchment);
	margin-bottom: var(--space-6);
	max-width: 65ch;
	font-size: var(--text-md);
}

/* =============================================================
   POST CARDS
   ============================================================= */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: var(--space-8);
}

.posts-grid--two { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
.posts-grid--three { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.posts-grid--four { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

.post-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
	border-color: var(--border-strong);
	box-shadow: var(--shadow-glow);
	transform: translateY(-2px);
}

.post-card__thumbnail {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bg-surface);
	flex-shrink: 0;
}

.post-card__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.post-card:hover .post-card__thumbnail img {
	transform: scale(1.04);
}

/* Placeholder pattern when no image */
.post-card__thumbnail--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--plum-dark) 0%, var(--forest) 100%);
	color: var(--amber);
	font-size: 2.5rem;
}

.post-card__body {
	padding: var(--space-6);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.post-card__category {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--amber);
	text-decoration: none;
	margin-bottom: var(--space-3);
	min-height: 24px; /* 2.5.8 */
}

.post-card__category:hover { color: var(--gold); }

.post-card__title {
	font-size: var(--text-xl);
	margin-bottom: var(--space-3);
	line-height: 1.3;
}

.post-card__title a {
	color: var(--cream);
	text-decoration: none;
}

.post-card__title a:hover { color: var(--gold); }

.post-card__excerpt {
	font-size: var(--text-sm);
	color: var(--warm-gray);
	flex: 1;
	margin-bottom: var(--space-5);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding-top: var(--space-4);
	border-top: 1px solid var(--border);
	font-size: var(--text-xs);
	color: var(--warm-gray);
}

.post-card__read-more {
	color: var(--amber);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--text-sm);
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	min-height: 24px; /* 2.5.8 */
	transition: gap var(--transition), color var(--transition);
}

.post-card__read-more:hover {
	color: var(--gold);
	gap: var(--space-3);
}

/* Book review card variant */
.post-card--book-review .post-card__thumbnail {
	aspect-ratio: 2 / 3;
	max-height: 280px;
}

.post-card--book-review .post-card__thumbnail img {
	object-position: center top;
}

/* =============================================================
   STAR RATING (Book Reviews)
   ============================================================= */
.star-rating {
	display: inline-flex;
	gap: 2px;
	color: var(--amber);
	font-size: 1.1rem;
	line-height: 1;
}

.star-rating .star { color: var(--amber); }
.star-rating .star--empty { color: var(--mid-gray); }

/* =============================================================
   BOOK REVIEW SPECIFIC
   ============================================================= */
.book-info-panel {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	display: flex;
	gap: var(--space-6);
	align-items: flex-start;
	margin-bottom: var(--space-10);
}

@media (max-width: 640px) {
	.book-info-panel { flex-direction: column; align-items: center; text-align: center; }
}

.book-cover {
	flex-shrink: 0;
	width: 120px;
}

.book-cover img {
	width: 100%;
	border-radius: 2px;
	box-shadow: 4px 4px 16px rgba(0,0,0,0.6);
}

.book-cover--placeholder {
	width: 120px;
	height: 180px;
	background: linear-gradient(135deg, var(--plum) 0%, var(--forest) 100%);
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--amber);
	font-size: 2rem;
	box-shadow: 4px 4px 16px rgba(0,0,0,0.6);
}

.book-details { flex: 1; }
.book-details__title {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	color: var(--cream);
	margin-bottom: var(--space-1);
}
.book-details__author {
	font-family: var(--font-accent);
	font-size: var(--text-md);
	font-style: italic;
	color: var(--warm-gray);
	margin-bottom: var(--space-4);
}
.book-details__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	margin-bottom: var(--space-4);
	font-size: var(--text-sm);
	color: var(--warm-gray);
}
.book-details__meta span {
	display: flex;
	align-items: center;
	gap: var(--space-1);
}

/* =============================================================
   PODCAST EPISODE
   ============================================================= */
.podcast-player {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	margin-bottom: var(--space-8);
}

.podcast-player audio {
	width: 100%;
	margin-top: var(--space-3);
	border-radius: var(--radius-sm);
	accent-color: var(--amber);
}

.episode-number {
	font-family: var(--font-accent);
	font-size: var(--text-sm);
	font-style: italic;
	color: var(--amber);
	letter-spacing: 0.05em;
}

/* =============================================================
   SECTION HEADINGS (editorial style)
   ============================================================= */
.section-heading {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin-bottom: var(--space-8);
}

.section-heading__text {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	color: var(--cream);
	white-space: nowrap;
	margin: 0;
}

.section-heading__line {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--border-strong), transparent);
}

.section-heading__label {
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--amber);
	background: rgba(196, 138, 42, 0.12);
	padding: var(--space-1) var(--space-3);
	border-radius: 99px;
	border: 1px solid var(--border);
	white-space: nowrap;
}

/* =============================================================
   BUTTONS — all meet 44x44 minimum (2.5.8)
   ============================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 44px;
	padding: var(--space-3) var(--space-6);
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
	border: 2px solid transparent;
	white-space: nowrap;
}

.btn--primary {
	background: var(--amber);
	color: var(--ink);
	border-color: var(--amber);
}

.btn--primary:hover {
	background: var(--gold);
	color: var(--ink);
	border-color: var(--gold);
	box-shadow: 0 0 20px rgba(196, 138, 42, 0.4);
}

.btn--secondary {
	background: transparent;
	color: var(--amber);
	border-color: var(--amber);
}

.btn--secondary:hover {
	background: rgba(196, 138, 42, 0.12);
	color: var(--gold);
	border-color: var(--gold);
}

.btn--ghost {
	background: transparent;
	color: var(--cream);
	border-color: var(--border-strong);
}

.btn--ghost:hover {
	background: rgba(255,255,255,0.05);
	border-color: var(--cream);
}

.btn--sm {
	min-height: 36px;
	padding: var(--space-2) var(--space-4);
	font-size: var(--text-xs);
}

/* =============================================================
   BADGES / CATEGORY TAGS
   ============================================================= */
.badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: var(--space-1) var(--space-3);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 99px;
	text-decoration: none;
	transition: opacity var(--transition);
}

.badge:hover { opacity: 0.85; }

.badge--review  { background: rgba(92, 53, 112, 0.4); color: #C99EE0; border: 1px solid rgba(92, 53, 112, 0.6); }
.badge--essay   { background: rgba(30, 44, 26, 0.4); color: #9ABF90; border: 1px solid rgba(30, 44, 26, 0.6); }
.badge--story   { background: rgba(42, 24, 14, 0.4); color: #C09070; border: 1px solid rgba(42, 24, 14, 0.6); }
.badge--podcast { background: rgba(59, 31, 74, 0.4); color: #B890D8; border: 1px solid rgba(59, 31, 74, 0.6); }
.badge--newsletter { background: rgba(46, 66, 41, 0.4); color: #88B880; border: 1px solid rgba(46, 66, 41, 0.6); }
.badge--blog    { background: rgba(74, 48, 32, 0.4); color: #C09A70; border: 1px solid rgba(74, 48, 32, 0.6); }
.badge--amber   { background: rgba(196, 138, 42, 0.2); color: var(--gold); border: 1px solid var(--border); }

/* =============================================================
   POST META
   ============================================================= */
.post-meta {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	flex-wrap: wrap;
	font-size: var(--text-sm);
	color: var(--warm-gray);
}

.post-meta a { color: var(--warm-gray); }
.post-meta a:hover { color: var(--gold); }

.post-meta__separator {
	color: var(--border-strong);
	font-size: var(--text-xs);
}

.reading-time {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-size: var(--text-sm);
	color: var(--warm-gray);
}

/* =============================================================
   SINGLE POST / ENTRY CONTENT
   ============================================================= */
.entry-header {
	padding: var(--space-16) 0 var(--space-12);
	text-align: center;
	max-width: 900px;
	margin: 0 auto;
}

.entry-header .post-meta { justify-content: center; margin-bottom: var(--space-6); }

.entry-title {
	font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
	color: var(--cream);
	margin-bottom: var(--space-6);
	line-height: 1.15;
}

.entry-thumbnail {
	aspect-ratio: 16 / 7;
	overflow: hidden;
	border-radius: var(--radius-lg);
	margin-bottom: var(--space-12);
}

.entry-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-content {
	max-width: var(--content-width);
	margin: 0 auto;
	font-size: var(--text-md);
	line-height: 1.8;
}

.entry-content h2 { margin-top: var(--space-12); font-size: var(--text-2xl); }
.entry-content h3 { margin-top: var(--space-10); }
.entry-content ul,
.entry-content ol {
	padding-left: var(--space-8);
	margin-bottom: var(--space-6);
	color: var(--text-secondary);
}
.entry-content li { margin-bottom: var(--space-2); }

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
	margin: var(--space-8) auto;
	display: block;
}

.entry-content .wp-block-image figcaption,
.entry-content figcaption {
	text-align: center;
	font-size: var(--text-sm);
	font-style: italic;
	color: var(--warm-gray);
	margin-top: var(--space-2);
}

/* Pull quote */
.entry-content .wp-block-pullquote,
.pull-quote {
	padding: var(--space-8) var(--space-10);
	border-top: 3px solid var(--amber);
	border-bottom: 3px solid var(--amber);
	margin: var(--space-12) auto;
	max-width: 620px;
	text-align: center;
}

.entry-content .wp-block-pullquote p,
.pull-quote p {
	font-family: var(--font-accent);
	font-size: var(--text-2xl);
	font-style: italic;
	color: var(--gold-light);
	line-height: 1.4;
	margin-bottom: 0;
}

/* =============================================================
   NEWSLETTER CTA
   ============================================================= */
.newsletter-cta {
	background: linear-gradient(135deg, var(--plum-dark) 0%, var(--forest) 100%);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	padding: var(--space-12) var(--space-10);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.newsletter-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(196, 138, 42, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

.newsletter-cta__icon {
	font-size: 2.5rem;
	margin-bottom: var(--space-4);
	display: block;
}

.newsletter-cta__title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-3);
}

.newsletter-cta__subtitle {
	color: var(--warm-gray);
	margin-bottom: var(--space-8);
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.newsletter-form {
	display: flex;
	gap: var(--space-3);
	max-width: 480px;
	margin: 0 auto;
	flex-wrap: wrap;
	justify-content: center;
}

.newsletter-form__input {
	flex: 1;
	min-width: 240px;
	padding: var(--space-3) var(--space-5);
	background: rgba(255, 255, 255, 0.07);
	border: 2px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--cream);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	min-height: 44px; /* 2.5.8 */
	transition: border-color var(--transition);
}

.newsletter-form__input::placeholder { color: var(--warm-gray); }

.newsletter-form__input:focus {
	outline: none;
	border-color: var(--amber);
	box-shadow: 0 0 0 3px rgba(196, 138, 42, 0.2);
}

/* =============================================================
   SIDEBAR
   ============================================================= */
.widget-area {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.widget {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
}

.widget-title {
	font-family: var(--font-display);
	font-size: var(--text-md);
	color: var(--amber);
	margin-bottom: var(--space-5);
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--border);
	letter-spacing: 0.05em;
}

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

.widget ul li {
	border-bottom: 1px solid var(--border);
	padding: var(--space-3) 0;
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
	color: var(--parchment);
	font-size: var(--text-sm);
	display: block;
	min-height: 24px; /* 2.5.8 */
}

.widget ul li a:hover { color: var(--gold); }

/* =============================================================
   PAGINATION
   ============================================================= */
.posts-pagination,
.post-navigation {
	margin-top: var(--space-16);
}

.nav-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-4);
	flex-wrap: wrap;
}

.page-numbers {
	display: flex;
	list-style: none;
	gap: var(--space-2);
	padding: 0;
	margin: 0;
	justify-content: center;
	flex-wrap: wrap;
}

.page-numbers a,
.page-numbers .current,
.page-numbers span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px; /* 2.5.8 */
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--parchment);
	text-decoration: none;
	font-size: var(--text-sm);
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.page-numbers a:hover {
	background: rgba(196, 138, 42, 0.12);
	color: var(--gold);
	border-color: var(--amber);
}

.page-numbers .current {
	background: var(--amber);
	color: var(--ink);
	border-color: var(--amber);
	font-weight: 700;
}

/* =============================================================
   ARCHIVE HEADER
   ============================================================= */
.archive-header {
	padding: var(--space-16) 0 var(--space-12);
	border-bottom: 1px solid var(--border);
	margin-bottom: var(--space-12);
}

.archive-title {
	font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
	margin-bottom: var(--space-3);
}

.archive-description {
	color: var(--warm-gray);
	max-width: 60ch;
	margin: 0;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
	background: var(--plum-dark);
	border-top: 1px solid var(--border);
	margin-top: var(--space-24);
}

.footer-main {
	padding: var(--space-16) 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--space-10);
}

.footer-brand__title {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	color: var(--cream);
	margin-bottom: var(--space-2);
}

.footer-brand__tagline {
	font-family: var(--font-accent);
	font-style: italic;
	color: var(--warm-gray);
	font-size: var(--text-sm);
	margin-bottom: var(--space-5);
}

.footer-heading {
	font-family: var(--font-display);
	font-size: var(--text-base);
	color: var(--amber);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--space-5);
}

.footer-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.footer-nav a {
	color: var(--warm-gray);
	text-decoration: none;
	font-size: var(--text-sm);
	display: block;
	min-height: 24px; /* 2.5.8 */
	transition: color var(--transition);
}

.footer-nav a:hover { color: var(--gold); }

.footer-social {
	display: flex;
	gap: var(--space-3);
	flex-wrap: wrap;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px; /* 2.5.8 */
	background: rgba(255,255,255,0.06);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--warm-gray);
	text-decoration: none;
	font-size: var(--text-lg);
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer-social a:hover {
	background: rgba(196, 138, 42, 0.15);
	color: var(--gold);
	border-color: var(--amber);
}

.footer-bottom {
	border-top: 1px solid var(--border);
	padding: var(--space-6) 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
	font-size: var(--text-sm);
	color: var(--warm-gray);
}

.footer-bottom a { color: var(--warm-gray); }
.footer-bottom a:hover { color: var(--gold); }

/* =============================================================
   FORMS (comments, search, etc.)
   ============================================================= */
label {
	display: block;
	margin-bottom: var(--space-2);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--parchment);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: var(--space-3) var(--space-4);
	background: rgba(255, 255, 255, 0.05);
	border: 2px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--cream);
	font-family: var(--font-body);
	font-size: var(--text-base);
	min-height: 44px; /* 2.5.8 */
	transition: border-color var(--transition);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--amber);
	box-shadow: 0 0 0 3px rgba(196, 138, 42, 0.2);
}

input::placeholder,
textarea::placeholder { color: var(--warm-gray); }

.search-form {
	display: flex;
	gap: var(--space-2);
}

.search-form input[type="search"] {
	flex: 1;
}

/* =============================================================
   COMMENTS
   ============================================================= */
.comments-area {
	max-width: var(--content-width);
	margin: var(--space-16) auto 0;
	padding-top: var(--space-12);
	border-top: 1px solid var(--border);
}

.comments-title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-8);
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-12);
}

.comment {
	padding: var(--space-6) 0;
	border-bottom: 1px solid var(--border);
}

.comment-author .fn {
	font-weight: 700;
	color: var(--cream);
}

.comment-meta {
	font-size: var(--text-sm);
	color: var(--warm-gray);
	margin-bottom: var(--space-4);
}

.comment-content { color: var(--parchment); }

.reply a {
	font-size: var(--text-sm);
	color: var(--amber);
}

/* =============================================================
   404
   ============================================================= */
.error-404 {
	text-align: center;
	padding: var(--space-24) 0;
}

.error-404__number {
	font-size: clamp(6rem, 20vw, 12rem);
	font-family: var(--font-display);
	color: var(--plum-mid);
	line-height: 1;
	margin-bottom: var(--space-4);
	opacity: 0.4;
}

.error-404__title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-4);
}

/* =============================================================
   UTILITY CLASSES
   ============================================================= */
.text-center { text-align: center; }
.text-muted   { color: var(--warm-gray); }
.text-amber   { color: var(--amber); }
.text-gold    { color: var(--gold); }
.text-cream   { color: var(--cream); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.visually-hidden { /* alias */ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =============================================================
   BREADCRUMB
   ============================================================= */
.breadcrumb {
	margin-bottom: var(--space-6);
}

.breadcrumb__list {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	font-size: var(--text-sm);
}

.breadcrumb__item {
	color: var(--warm-gray);
}

.breadcrumb__item a {
	color: var(--warm-gray);
	text-decoration: none;
}

.breadcrumb__item a:hover { color: var(--gold); }

.breadcrumb__item[aria-current="page"] {
	color: var(--parchment);
}

/* =============================================================
   PRINT
   ============================================================= */
@media print {
	.site-header, .site-footer, .widget-area, .newsletter-cta { display: none; }
	body { background: white; color: black; font-size: 12pt; }
	a { color: black; text-decoration: underline; }
	.entry-content { max-width: 100%; }
}
