/*
Theme Name:  Planetblog
Theme URI:   https://github.com/planetblog-theme
Author:      Planetblog
Author URI:  https://github.com/planetblog-theme
Description: A minimal editorial blog theme. Clean typography, content-first layout, built for performance and accessibility. Fully configurable via the WordPress Customizer.
Version:     1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: planetblog
Tags:        blog, minimal, editorial, travel, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
	--pe-ink:        #1a1a18;
	--pe-parchment:  #f7f5f0;
	--pe-terracotta: #c5673a;
	--pe-stone:      #8c8880;
	--pe-cream:      #efece5;
	--pe-rule:       #d8d4cc;
	--pe-white:      #ffffff;

	--pe-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--pe-font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
	--pe-font-mono:    'DM Mono', 'Courier New', monospace;

	--pe-text-xs:   0.6875rem; /* 11px */
	--pe-text-sm:   0.875rem;  /* 14px */
	--pe-text-base: 1.125rem;  /* 18px */
	--pe-text-lg:   1.25rem;   /* 20px */
	--pe-text-xl:   1.625rem;  /* 26px */
	--pe-text-2xl:  2rem;      /* 32px */
	--pe-text-3xl:  2.875rem;  /* 46px */

	--pe-content-width: 680px;
	--pe-wide-width:    860px;
	--pe-gap:           clamp(1.25rem, 5vw, 2.5rem);
}

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

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

body {
	background-color: var(--pe-parchment);
	color: var(--pe-ink);
	font-family: var(--pe-font-body);
	font-size: var(--pe-text-base);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration-skip-ink: auto;
}

ul, ol {
	list-style: none;
}

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

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	background: var(--pe-ink);
	color: var(--pe-parchment);
	padding: 0.5rem 1rem;
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	z-index: 9999;
	border-radius: 0 0 4px 4px;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 0;
	outline: 2px solid var(--pe-terracotta);
	outline-offset: 2px;
}

/* Visually hidden but accessible to screen readers */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ============================================================
   SITE HEADER & NAV
   ============================================================ */
.site-header {
	background: var(--pe-parchment);
	border-bottom: 1px solid var(--pe-rule);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header__inner {
	max-width: var(--pe-wide-width);
	margin: 0 auto;
	padding: 0 var(--pe-gap);
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
}

/* Logo — Playfair Display, sized to sit comfortably in 68px header */
.site-logo a {
	font-family: var(--pe-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--pe-ink);
	text-decoration: none;
	letter-spacing: -0.02em;
	line-height: 1;
	display: flex;
	align-items: center;
}

.site-logo a span,
.site-logo__accent {
	color: var(--pe-terracotta);
}

/* When a custom logo image is used, constrain its height to match */
.site-logo .custom-logo {
	height: 36px;
	width: auto;
	display: block;
}

/* Right-side group: nav + hamburger */
.site-header__right {
	display: flex;
	align-items: center;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	color: var(--pe-ink);
	line-height: 1;
	margin-left: 1rem;
}

.nav-toggle svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
	stroke-width: 1.5;
	fill: none;
}

.primary-nav ul {
	display: flex;
	gap: 1.75rem;
	align-items: center;
}

.primary-nav a {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pe-stone);
	text-decoration: none;
	position: relative;
	padding-bottom: 2px;
	transition: color 0.2s ease;
}

.primary-nav a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--pe-terracotta);
	transition: width 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
	color: var(--pe-ink);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
	width: 100%;
}

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.home-hero {
	max-width: var(--pe-wide-width);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4rem) var(--pe-gap) clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--pe-rule);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
}

.home-hero__title {
	font-family: var(--pe-font-display);
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--pe-ink);
	margin-bottom: 0.75rem;
}

.home-hero__title em {
	font-style: italic;
	color: var(--pe-terracotta);
}

.home-hero__sub {
	font-size: 0.9375rem;
	color: var(--pe-stone);
	max-width: 380px;
	line-height: 1.6;
}

.home-hero__right {
	flex-shrink: 0;
	text-align: right;
}

.home-hero__count {
	font-family: var(--pe-font-display);
	font-size: clamp(3rem, 6vw, 3.75rem);
	font-weight: 400;
	color: var(--pe-rule);
	line-height: 1;
	letter-spacing: -0.03em;
	margin-bottom: 0.25rem;
}

.home-hero__count-label {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-stone);
}

/* ============================================================
   HOMEPAGE — FILTER BAR
   ============================================================ */
.filter-bar {
	max-width: var(--pe-wide-width);
	margin: 0 auto;
	padding: 0 var(--pe-gap);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--pe-rule);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-tabs {
	display: flex;
	gap: 0;
	flex-shrink: 0;
}

.filter-tab {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pe-stone);
	text-decoration: none;
	padding: 0.875rem 0;
	margin-right: 1.75rem;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: color 0.15s, border-color 0.15s;
}

.filter-tab:hover,
.filter-tab.is-active {
	color: var(--pe-ink);
	border-bottom-color: var(--pe-terracotta);
}

.filter-bar__count {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.06em;
	color: var(--pe-stone);
	flex-shrink: 0;
	padding-left: 1rem;
}

/* ============================================================
   HOMEPAGE — BLOGROLL WRAPPER
   ============================================================ */
.blogroll {
	max-width: var(--pe-wide-width);
	margin: 0 auto;
	padding: 0 var(--pe-gap) clamp(2rem, 5vw, 3.5rem);
}

.no-posts {
	padding: 3rem 0;
	color: var(--pe-stone);
	font-size: var(--pe-text-sm);
}

/* ============================================================
   FEATURED POST CARD (first post, full-width split)
   ============================================================ */
.post-featured {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	border: 1px solid var(--pe-rule);
	background: var(--pe-white);
	overflow: hidden;
	margin-top: 1.5rem;
	margin-bottom: 0;
}

.post-featured__img {
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--pe-cream);
}

.post-featured__img a {
	display: block;
	width: 100%;
	height: 100%;
}

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

.post-featured:hover .post-featured__img img {
	transform: scale(1.03);
}

.post-featured__body {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.post-featured__eyebrow {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-terracotta);
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.post-featured__eyebrow::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 1px;
	background: var(--pe-terracotta);
	flex-shrink: 0;
}

.post-featured__eyebrow a {
	color: var(--pe-terracotta);
	text-decoration: none;
}

.post-featured__title {
	font-family: var(--pe-font-display);
	font-size: clamp(1.375rem, 2.5vw, 1.75rem);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin-bottom: 0.875rem;
}

.post-featured__title a {
	color: var(--pe-ink);
	text-decoration: none;
	transition: color 0.15s;
}

.post-featured:hover .post-featured__title a {
	color: var(--pe-terracotta);
}

.post-featured__excerpt {
	font-size: var(--pe-text-sm);
	color: var(--pe-stone);
	line-height: 1.65;
	flex: 1;
}

.post-featured__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1.5rem;
	padding-top: 1.125rem;
	border-top: 1px solid var(--pe-rule);
}

/* ============================================================
   POST ROW (subsequent posts — horizontal list)
   ============================================================ */
.post-row {
	display: grid !important;
	grid-template-columns: 200px 1fr;
	border-bottom: 1px solid var(--pe-rule);
	padding: 1.75rem 0;
	align-items: start;
}

.post-row__thumb {
	width: 186px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--pe-cream);
	flex-shrink: 0;
}

.post-row__thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.post-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.post-row:hover .post-row__thumb img {
	transform: scale(1.04);
}

.post-row__body {
	padding-left: 1.75rem;
	border-left: 1px solid var(--pe-rule);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 140px;
}

.post-row__top { flex: 1; }

.post-row__cat {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-terracotta);
	margin-bottom: 0.5rem;
}

.post-row__cat a {
	color: var(--pe-terracotta);
	text-decoration: none;
}

.post-row__title {
	font-family: var(--pe-font-display);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin-bottom: 0.625rem;
}

.post-row__title a {
	color: var(--pe-ink);
	text-decoration: none;
	transition: color 0.15s;
}

.post-row:hover .post-row__title a {
	color: var(--pe-terracotta);
}

.post-row__excerpt {
	font-size: var(--pe-text-sm);
	color: var(--pe-stone);
	line-height: 1.6;
	max-width: 520px;
}

.post-row__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1rem;
	padding-top: 0.875rem;
	border-top: 1px solid var(--pe-cream);
}

.post-row__meta {
	display: flex;
	align-items: center;
	gap: 0.875rem;
}

.meta-comments {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.06em;
	color: var(--pe-stone);
	display: flex;
	align-items: center;
	gap: 4px;
}

.meta-comments svg {
	flex-shrink: 0;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-stone);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 1.5rem;
	margin-bottom: 0;
}

.section-label::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--pe-rule);
}

/* ============================================================
   SHARED POST META ELEMENTS
   ============================================================ */
.meta-date {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	color: var(--pe-stone);
	letter-spacing: 0.06em;
}

.read-link {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pe-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--pe-terracotta);
	padding-bottom: 1px;
	transition: color 0.15s;
	white-space: nowrap;
}

.read-link:hover { color: var(--pe-terracotta); }

.post-category {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-terracotta);
	margin-bottom: 0.75rem;
}

.post-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.pagination {
	max-width: var(--pe-wide-width);
	margin: 0 auto;
	padding: 0 var(--pe-gap) clamp(2rem, 5vw, 3.5rem);
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.pagination a,
.pagination span {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pe-stone);
	text-decoration: none;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--pe-rule);
	transition: all 0.15s;
}

.pagination a:hover {
	color: var(--pe-ink);
	border-color: var(--pe-ink);
}

.pagination .current {
	background: var(--pe-ink);
	color: var(--pe-parchment);
	border-color: var(--pe-ink);
}

/* ============================================================
   SINGLE POST — HEADER
   ============================================================ */
.post-header {
	max-width: var(--pe-content-width);
	margin: 0 auto;
	padding: clamp(2.5rem, 7vw, 4rem) var(--pe-gap) clamp(1.5rem, 4vw, 2.5rem);
}

.post-header__cats {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-terracotta);
	margin-bottom: 1rem;
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.post-header__cats a {
	color: var(--pe-terracotta);
	text-decoration: none;
}

.post-header__cats a:hover { text-decoration: underline; }

.post-header__title {
	font-family: var(--pe-font-display);
	font-size: clamp(2rem, 5vw, 2.875rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--pe-ink);
	margin-bottom: 1.25rem;
}

.post-header__deck {
	font-size: 1.1875rem;
	color: var(--pe-stone);
	line-height: 1.6;
	font-style: italic;
	margin-bottom: 1.75rem;
}

.post-byline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--pe-rule);
}

.post-byline__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.post-byline__avatar--initial {
	background: var(--pe-terracotta);
	font-family: var(--pe-font-display);
	font-size: 0.875rem;
	font-style: italic;
	color: var(--pe-white);
}

.post-byline__avatar--img {
	object-fit: cover;
	display: block;
}

.post-byline__text {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	color: var(--pe-stone);
	letter-spacing: 0.05em;
}

.post-byline__text strong {
	color: var(--pe-ink);
	font-weight: 500;
	display: block;
	margin-bottom: 0.125rem;
	font-size: 0.75rem;
}

/* ============================================================
   SINGLE POST — HERO IMAGE
   The aspect ratio is set on the WRAPPER, not the img tag,
   so WordPress's global img { height: auto } cannot override it.
   object-fit: cover on the img then fills that container.
   body prefix on img rules raises specificity above WP resets.
   ============================================================ */
.post-hero-image {
	width: 100%;
	margin: 0;
	background: var(--pe-cream);
	overflow: hidden;
}

/* High-specificity img rules — beats WP core and plugin resets */
body .post-hero-image img,
body.single .post-hero-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	max-width: none !important;
	aspect-ratio: unset !important;
}

/* 1280×720 — Google Discover (16:9) — DEFAULT */
body .post-hero-image.pe-hero--16x9 {
	aspect-ratio: 16 / 9;
	min-height: 360px;
}

/* 1600×640 — Cinematic (2.5:1) */
body .post-hero-image.pe-hero--cinematic {
	aspect-ratio: 2.5 / 1;
	min-height: 280px;
}

/* 1280×540 — Widescreen (~21:9) */
body .post-hero-image.pe-hero--widescreen {
	aspect-ratio: 21 / 9;
	min-height: 240px;
}

/* 900×900 — Square (1:1) */
body .post-hero-image.pe-hero--square {
	aspect-ratio: 1 / 1;
	max-width: 860px;
	margin: 0 auto;
}

/* 900×1100 — Portrait (3:4) */
body .post-hero-image.pe-hero--tall {
	aspect-ratio: 3 / 4;
	max-width: 640px;
	margin: 0 auto;
}

/* Full size — show complete image, no crop */
body .post-hero-image.pe-hero--full {
	aspect-ratio: unset;
}
body .post-hero-image.pe-hero--full img,
body.single .post-hero-image.pe-hero--full img {
	height: auto !important;
	object-fit: unset !important;
	aspect-ratio: unset !important;
}

/* Caption below hero */
.wp-caption-text,
.post-image-caption {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	color: var(--pe-stone);
	letter-spacing: 0.04em;
	margin-top: 0.5rem;
	padding: 0 var(--pe-gap);
}

/* ============================================================
   SINGLE POST — BODY / ENTRY CONTENT
   ============================================================ */
.entry-content {
	max-width: var(--pe-content-width);
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 2.5rem) var(--pe-gap) clamp(1.5rem, 3vw, 2rem);
}

/* Collapse empty paragraphs WordPress editor often leaves at end of posts */
.entry-content p:empty,
.entry-content p:last-child:empty,
.entry-content p > br:only-child {
	display: none;
}

.entry-content p:empty { margin: 0; padding: 0; }

.entry-content > * + * { margin-top: 1.5rem; }

.entry-content p {
	color: var(--pe-ink);
}

.entry-content a {
	color: var(--pe-terracotta);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.entry-content a:hover { text-decoration-thickness: 2px; }

.entry-content h2 {
	font-family: var(--pe-font-display);
	font-size: clamp(1.375rem, 3vw, 1.625rem);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--pe-ink);
	margin-top: 2.5rem;
}

.entry-content h3 {
	font-family: var(--pe-font-display);
	font-size: 1.25rem;
	font-weight: 400;
	font-style: italic;
	color: var(--pe-ink);
	margin-top: 2rem;
}

.entry-content h4 {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-stone);
	margin-top: 2rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5rem;
}

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

.entry-content li + li { margin-top: 0.375rem; }

.entry-content blockquote,
.entry-content .pullquote {
	border-left: 3px solid var(--pe-terracotta);
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-radius: 0;
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
}

.entry-content blockquote p,
.entry-content .pullquote p {
	font-family: var(--pe-font-display);
	font-size: 1.375rem;
	font-weight: 400;
	font-style: italic;
	line-height: 1.45;
	color: var(--pe-ink);
}

.entry-content figure {
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

.entry-content figure img {
	width: 100%;
}

.entry-content figcaption {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	color: var(--pe-stone);
	letter-spacing: 0.04em;
	margin-top: 0.5rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--pe-text-sm);
	margin-top: 1.5rem;
}

.entry-content th {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pe-stone);
	text-align: left;
	padding: 0.5rem 0.75rem 0.5rem 0;
	border-bottom: 1px solid var(--pe-rule);
	font-weight: 400;
}

.entry-content td {
	padding: 0.5625rem 0.75rem 0.5625rem 0;
	border-bottom: 1px solid var(--pe-cream);
	vertical-align: top;
	line-height: 1.5;
}

.entry-content td:first-child {
	font-family: var(--pe-font-mono);
	font-size: 0.75rem;
	color: var(--pe-terracotta);
	white-space: nowrap;
	padding-right: 1rem;
}

.entry-content hr {
	border: none;
	border-top: 1px solid var(--pe-rule);
	margin: 3rem 0;
}

/* ============================================================
   SINGLE POST — FOOTER (next post + comments)
   ============================================================ */
.post-footer {
	max-width: var(--pe-content-width);
	margin: 0 auto;
	padding: 0 var(--pe-gap);
	border-top: 1px solid var(--pe-rule);
	padding-top: 2rem;
}

.next-post-link {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.next-post-link:focus-visible {
	outline: 2px solid var(--pe-terracotta);
	outline-offset: 4px;
}

.next-post-link:hover .next-post-link__title { color: var(--pe-terracotta); }

.next-post-link__thumb {
	width: 80px;
	height: 60px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--pe-cream);
}

.next-post-link__title {
	font-family: var(--pe-font-display);
	font-size: 1.125rem;
	font-weight: 400;
	color: var(--pe-ink);
	line-height: 1.3;
	transition: color 0.15s;
}

.next-post-link__cat {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pe-stone);
	margin-bottom: 0.25rem;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
	max-width: var(--pe-content-width);
	margin: 1.5rem auto 0;
	padding: 0 var(--pe-gap) clamp(2rem, 6vw, 4rem);
	border-top: 1px solid var(--pe-rule);
	padding-top: 2rem;
}

.comments-title,
.comment-reply-title {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-stone);
	font-weight: 400;
	margin-bottom: 1.5rem;
}

.comment-list { list-style: none; }

/* Nested replies — indent + visual rule to show thread depth */
.comment-list .children {
	list-style: none;
	margin-left: clamp(1rem, 4vw, 2.5rem);
	padding-left: 1.25rem;
	border-left: 1px solid var(--pe-rule);
}

.comment-list .children .comment-body {
	padding-top: 1.25rem;
}

.comment-body {
	border-bottom: 1px solid var(--pe-rule);
	padding: 1.5rem 0;
}

.comment-author .fn {
	font-family: var(--pe-font-display);
	font-size: 1rem;
	font-weight: 400;
}

.comment-metadata {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	color: var(--pe-stone);
	letter-spacing: 0.04em;
	margin-top: 0.25rem;
	margin-bottom: 0.75rem;
}

.comment-metadata a { color: var(--pe-stone); text-decoration: none; }

.comment-content p { font-size: var(--pe-text-sm); line-height: 1.65; }

.reply { margin-top: 0.75rem; }

.comment-reply-link {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pe-stone);
	text-decoration: none;
	border-bottom: 1px solid var(--pe-rule);
	padding-bottom: 1px;
	transition: color 0.15s, border-color 0.15s;
}

.comment-reply-link:hover {
	color: var(--pe-terracotta);
	border-color: var(--pe-terracotta);
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pe-stone);
	display: block;
	margin-bottom: 0.375rem;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
	width: 100%;
	background: var(--pe-white);
	border: 1px solid var(--pe-rule);
	padding: 0.625rem 0.875rem;
	font-family: var(--pe-font-body);
	font-size: var(--pe-text-sm);
	color: var(--pe-ink);
	outline: none;
	border-radius: 0;
	transition: border-color 0.15s;
	margin-bottom: 1rem;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
	border-color: var(--pe-terracotta);
}

.comment-form-comment textarea { height: 110px; resize: vertical; }

.comment-notes,
.comment-form-cookies-consent {
	font-size: var(--pe-text-xs);
	color: var(--pe-stone);
	font-family: var(--pe-font-mono);
}

.form-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.submit {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: var(--pe-ink);
	color: var(--pe-parchment);
	border: none;
	padding: 0.75rem 1.75rem;
	cursor: pointer;
	border-radius: 0;
	transition: background 0.15s;
}

.submit:hover { background: var(--pe-terracotta); }

.submit:focus-visible {
	outline: 2px solid var(--pe-terracotta);
	outline-offset: 2px;
}

/* ============================================================
   STATIC PAGES
   ============================================================ */
.page-header {
	max-width: var(--pe-content-width);
	margin: 0 auto;
	padding: clamp(2.5rem, 7vw, 4rem) var(--pe-gap) 2rem;
	border-bottom: 1px solid var(--pe-rule);
}

.page-header__title {
	font-family: var(--pe-font-display);
	font-size: clamp(2rem, 5vw, 2.5rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.archive-header {
	max-width: var(--pe-wide-width);
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3rem) var(--pe-gap) 1.5rem;
	border-bottom: 1px solid var(--pe-rule);
}

.archive-header__eyebrow {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-terracotta);
	margin-bottom: 0.75rem;
}

.archive-header__title {
	font-family: var(--pe-font-display);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 400;
	letter-spacing: -0.01em;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
	max-width: var(--pe-content-width);
	margin: 0 auto;
	padding: clamp(3rem, 8vw, 6rem) var(--pe-gap);
	text-align: center;
}

.error-404__code {
	font-family: var(--pe-font-display);
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: 400;
	line-height: 1;
	color: var(--pe-rule);
	margin-bottom: 1rem;
}

.error-404__title {
	font-family: var(--pe-font-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
	margin-bottom: 1rem;
}

.error-404__text { color: var(--pe-stone); margin-bottom: 2rem; }

.error-404 .search-form { display: flex; gap: 0; max-width: 400px; margin: 0 auto; }

.error-404 .search-field {
	flex: 1;
	border: 1px solid var(--pe-rule);
	border-right: none;
	padding: 0.625rem 0.875rem;
	font-family: var(--pe-font-body);
	font-size: var(--pe-text-sm);
	background: var(--pe-white);
	outline: none;
}

.error-404 .search-field:focus { border-color: var(--pe-terracotta); }

.error-404 .search-submit {
	background: var(--pe-ink);
	color: var(--pe-parchment);
	border: none;
	padding: 0.625rem 1.25rem;
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s;
}

.error-404 .search-submit:hover { background: var(--pe-terracotta); }

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
	background: var(--pe-ink);
	color: var(--pe-parchment);
	padding: clamp(2rem, 5vw, 3rem) var(--pe-gap);
}

.about-strip__inner {
	max-width: var(--pe-wide-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 2.5rem;
}

.about-strip__badge {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--pe-terracotta);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--pe-font-display);
	font-size: 1.75rem;
	font-style: italic;
	color: var(--pe-white);
	flex-shrink: 0;
	overflow: hidden;
}

.about-strip__badge.post-byline__avatar--img {
	border: 2px solid var(--pe-terracotta);
	background: var(--pe-cream);
}

.about-strip__eyebrow {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pe-terracotta);
	margin-bottom: 0.5rem;
}

.about-strip__title {
	font-family: var(--pe-font-display);
	font-size: 1.625rem;
	font-weight: 400;
	line-height: 1.3;
	margin-bottom: 0.5rem;
	color: var(--pe-parchment);
}

.about-strip__text {
	font-size: var(--pe-text-sm);
	color: #aaa9a6;
	line-height: 1.65;
	max-width: 480px;
}

.site-footer {
	border-top: 1px solid var(--pe-rule);
}

.site-footer__inner {
	max-width: var(--pe-wide-width);
	margin: 0 auto;
	padding: 1.5rem var(--pe-gap);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.site-footer__right {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.site-footer__rss {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pe-stone);
	text-decoration: none;
	border: 1px solid var(--pe-rule);
	padding: 4px 10px;
	transition: border-color 0.15s, color 0.15s;
}

.site-footer__rss:hover {
	border-color: var(--pe-terracotta);
	color: var(--pe-terracotta);
}

.site-footer__logo {
	font-family: var(--pe-font-display);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--pe-ink);
}

.site-footer__logo a {
	color: var(--pe-ink);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.site-footer__logo .site-logo__accent {
	color: var(--pe-terracotta);
}

.site-footer__copy {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	color: var(--pe-stone);
	letter-spacing: 0.04em;
}

/* ============================================================
   WORDPRESS CORE — ALIGNMENT & BLOCKS
   ============================================================ */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.alignwide  { max-width: var(--pe-wide-width); margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; }

.wp-block-image figcaption {
	font-family: var(--pe-font-mono);
	font-size: var(--pe-text-xs);
	color: var(--pe-stone);
	letter-spacing: 0.04em;
	text-align: center;
	margin-top: 0.5rem;
}

.wp-block-quote {
	border-left: 3px solid var(--pe-terracotta);
	padding-left: 1.5rem;
	border-radius: 0;
	margin: 2rem 0;
}

.wp-block-quote p {
	font-family: var(--pe-font-display);
	font-style: italic;
	font-size: 1.25rem;
}

.wp-block-separator {
	border: none;
	border-top: 1px solid var(--pe-rule);
	margin: 3rem 0;
}

/* ============================================================
   FOCUS STYLES (ACCESSIBILITY)
   ============================================================ */
:focus-visible {
	outline: 2px solid var(--pe-terracotta);
	outline-offset: 3px;
}

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

/* ============================================================
   RESPONSIVE — TABLET (max 768px)
   ============================================================ */
@media (max-width: 768px) {
	.post-featured {
		grid-template-columns: 1fr;
	}

	.post-featured__img {
		aspect-ratio: 16 / 9;
	}

	.home-hero {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.home-hero__right { text-align: left; }

	.post-row {
		grid-template-columns: 160px 1fr;
	}

	.post-row__thumb { width: 148px; }

	.about-strip__inner {
		flex-direction: column;
		text-align: center;
	}

	.about-strip__text { max-width: 100%; }

	.form-two-col {
		grid-template-columns: 1fr;
	}

	body .post-hero-image.pe-hero--16x9      { min-height: 200px; }
	body .post-hero-image.pe-hero--cinematic  { min-height: 160px; }
	body .post-hero-image.pe-hero--widescreen { min-height: 140px; }
	body .post-hero-image.pe-hero--square     { max-width: 100%; }
	body .post-hero-image.pe-hero--tall       { max-width: 100%; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
	.nav-toggle { display: flex; }

	.primary-nav {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		background: var(--pe-parchment);
		border-bottom: 1px solid var(--pe-rule);
		padding: 1rem var(--pe-gap) 1.5rem;
		z-index: 99;
	}

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

	.primary-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.post-row {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.post-row__thumb {
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.post-row__body {
		padding-left: 0;
		border-left: none;
		border-top: 1px solid var(--pe-rule);
		padding-top: 1rem;
		min-height: unset;
	}

	.site-footer__inner { flex-direction: column; align-items: flex-start; }
	.site-footer__right { flex-wrap: wrap; gap: 0.5rem; }

	.error-404 .search-form { flex-direction: column; }
	.error-404 .search-field { border-right: 1px solid var(--pe-rule); border-bottom: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
	.site-header,
	.site-footer,
	.comments-area,
	.post-footer,
	.about-strip,
	.nav-toggle { display: none; }

	body {
		background: white;
		color: black;
		font-size: 12pt;
	}

	.entry-content a::after {
		content: ' (' attr(href) ')';
		font-size: 0.75em;
		color: #666;
	}
}
