/*
Theme Name: Penvue
Theme URI: https://penvue.com/
Author: Muhammad Aqib
Author URI: https://www.fiverr.com/aqibarif74
Description: A deliberately minimal, essay-first WordPress theme for personal-essay and POV-driven publications — modern minimalist meets Medium. Penvue sets Inter against Source Serif 4 on pure white, with a thoughtful violet accent and a single 640px essay column. Categories are reframed as "Lenses", the homepage is a true typographic list with hairline dividers rather than cards, and featured perspectives lead with the writer's own pull quote. No boxes, no shadows, no chrome — typography does the work. Ships an auto table of contents, reading times, a response count, a "Weekly Lens" signup and a full, flash-free dark mode.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
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: penvue
Tags: blog, minimal, custom-menu, custom-logo, featured-images, right-sidebar, two-columns, translation-ready, block-styles, wide-blocks, threaded-comments, footer-widgets, editorial
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--pnv-bg:        #ffffff;
	--pnv-subtle:    #f5f5f5;
	--pnv-primary:   #0a0a0a;
	--pnv-accent:    #6d28d9;
	--pnv-secondary: #0891b2;
	--pnv-text:      #171717;
	--pnv-muted:     #737373;
	--pnv-rule:      #e5e5e5;
	--pnv-rule-soft: #f0f0f0;

	--pnv-font-head: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--pnv-font-body: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;

	--pnv-max:    1120px;
	--pnv-narrow: 720px;
	--pnv-essay:  640px;
	--pnv-gutter: 28px;
}

[data-theme="dark"] {
	--pnv-bg:        #0a0a0a;
	--pnv-subtle:    #171717;
	--pnv-primary:   #fafafa;
	--pnv-accent:    #a78bfa;
	--pnv-secondary: #22d3ee;
	--pnv-text:      #e5e5e5;
	--pnv-muted:     #a3a3a3;
	--pnv-rule:      #262626;
	--pnv-rule-soft: #1c1c1c;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

body {
	margin: 0;
	background: var(--pnv-bg);
	color: var(--pnv-text);
	font-family: var(--pnv-font-body);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background .2s ease, color .2s ease;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pnv-font-head);
	color: var(--pnv-primary);
	line-height: 1.15;
	letter-spacing: -.022em;
	font-weight: 700;
	margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }

a { color: var(--pnv-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

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

figure { margin: 0; }

hr { border: 0; }

:focus-visible {
	outline: 2px solid var(--pnv-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Accessibility helpers */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--pnv-primary);
	color: var(--pnv-bg);
	padding: 12px 20px;
	font-family: var(--pnv-font-head);
	font-size: .85rem;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. Layout
   ========================================================================== */

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

.pnv-narrow  { max-width: var(--pnv-narrow); margin-inline: auto; }
.pnv-measure { max-width: var(--pnv-essay);  margin-inline: auto; }

.pnv-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 72px;
	align-items: start;
	padding-block: 56px;
}
.pnv-layout--full { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 960px) {
	.pnv-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

/* The single hairline that carries the whole design */
.pnv-rule {
	height: 1px;
	background: var(--pnv-rule);
	margin: 72px 0;
}

/* Small uppercase label — lenses, eyebrows, section names */
.pnv-lenstag,
.pnv-eyebrow {
	display: inline-block;
	font-family: var(--pnv-font-head);
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pnv-accent);
	margin: 0;
}
.pnv-lenstag:hover { text-decoration: none; color: var(--pnv-secondary); }
.pnv-eyebrow { color: var(--pnv-muted); }

.pnv-sectionhead {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin: 0 0 8px;
}
.pnv-sectionhead__title {
	margin: 0;
	font-family: var(--pnv-font-head);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pnv-muted);
}
.pnv-sectionhead__more {
	margin-left: auto;
	font-family: var(--pnv-font-head);
	font-size: .74rem;
	font-weight: 500;
	letter-spacing: .04em;
	color: var(--pnv-muted);
}
.pnv-sectionhead__more:hover { color: var(--pnv-accent); text-decoration: none; }

/* ==========================================================================
   4. Header — a wordmark and a few words, nothing else
   ========================================================================== */

.pnv-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--pnv-bg);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.pnv-header.is-stuck { border-bottom-color: var(--pnv-rule); }

.pnv-header__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: 76px;
}

.pnv-wordmark {
	font-family: var(--pnv-font-head);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -.045em;
	text-transform: lowercase;
	color: var(--pnv-primary);
	line-height: 1;
	flex: 0 0 auto;
}
.pnv-wordmark:hover { text-decoration: none; color: var(--pnv-accent); }
.pnv-wordmark .custom-logo { max-height: 34px; width: auto; }

.pnv-nav { margin-left: auto; }
.pnv-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
}
.pnv-nav a {
	font-family: var(--pnv-font-head);
	font-size: .88rem;
	font-weight: 500;
	letter-spacing: -.005em;
	color: var(--pnv-text);
	padding: 4px 0;
}
.pnv-nav a:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-nav .current-menu-item > a,
.pnv-nav .current_page_item > a { color: var(--pnv-accent); }

/* Sub-menus stay plain: a list, a hairline, no shadow */
.pnv-nav li { position: relative; }
.pnv-nav ul ul {
	position: absolute;
	top: 100%;
	left: -14px;
	min-width: 190px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: var(--pnv-bg);
	border: 1px solid var(--pnv-rule);
	padding: 8px 0;
	display: none;
	z-index: 20;
}
.pnv-nav li:hover > ul,
.pnv-nav li:focus-within > ul { display: flex; }
.pnv-nav ul ul a { display: block; padding: 8px 16px; }

.pnv-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.pnv-iconbtn {
	width: 34px; height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	color: var(--pnv-muted);
	cursor: pointer;
	padding: 0;
	transition: color .2s ease;
}
.pnv-iconbtn:hover { color: var(--pnv-accent); }
.pnv-iconbtn svg { width: 17px; height: 17px; fill: currentColor; }

[data-theme="dark"] .pnv-iconbtn__sun  { display: block; }
[data-theme="dark"] .pnv-iconbtn__moon { display: none; }
.pnv-iconbtn__sun  { display: none; }
.pnv-iconbtn__moon { display: block; }

.pnv-menu-toggle { display: none; }

.pnv-searchdrawer { display: none; padding: 0 0 24px; }
.pnv-searchdrawer.is-open { display: block; }

@media (max-width: 860px) {
	.pnv-menu-toggle { display: inline-flex; }
	.pnv-header__inner { gap: 16px; }
	.pnv-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--pnv-bg);
		border-bottom: 1px solid var(--pnv-rule);
		padding: 8px var(--pnv-gutter) 24px;
	}
	.pnv-nav.is-open { display: block; }
	.pnv-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.pnv-nav ul li { border-top: 1px solid var(--pnv-rule-soft); }
	.pnv-nav ul ul { position: static; display: flex; border: 0; padding: 0 0 0 18px; }
	.pnv-nav a { display: block; padding: 13px 0; font-size: 1rem; }
}

/* ==========================================================================
   5. Homepage hero — pure typography, no image
   ========================================================================== */

.pnv-hero {
	text-align: center;
	padding: clamp(64px, 12vw, 132px) 0 clamp(56px, 9vw, 96px);
}
.pnv-hero__title {
	font-size: clamp(2.6rem, 8vw, 5rem);
	line-height: 1.02;
	letter-spacing: -.04em;
	font-weight: 800;

	/* The measure is set in ch of the headline's own size, not the body's,
	   so the statement keeps its shape from phone to desktop. */
	max-width: 16ch;
	margin: 0 auto;
	text-wrap: balance;
}
.pnv-hero__tagline {
	font-family: var(--pnv-font-body);
	font-style: italic;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: var(--pnv-muted);
	max-width: 42ch;
	margin: 26px auto 0;
	line-height: 1.6;
	letter-spacing: 0;
}

/* Essay of the day */
.pnv-daily {
	text-align: center;
	max-width: 620px;
	margin: 0 auto;
	padding-bottom: 8px;
}
.pnv-daily__title {
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	line-height: 1.16;
	max-width: 24ch;
	margin: 14px auto 0;
	font-weight: 700;
	text-wrap: balance;
}
.pnv-daily__title a { color: var(--pnv-primary); }
.pnv-daily__title a:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-daily__excerpt {
	font-size: 1.06rem;
	color: var(--pnv-muted);
	max-width: 46ch;
	margin: 16px auto 0;
}
.pnv-daily .pnv-meta { justify-content: center; margin-top: 16px; }

/* ==========================================================================
   6. Meta line
   ========================================================================== */

.pnv-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--pnv-font-head);
	font-size: .8rem;
	font-weight: 400;
	letter-spacing: -.002em;
	color: var(--pnv-muted);
	margin: 0;
}
.pnv-meta a { color: var(--pnv-muted); }
.pnv-meta a:hover { color: var(--pnv-accent); }
.pnv-meta__author a { color: var(--pnv-text); font-weight: 500; }
.pnv-meta__sep { color: var(--pnv-rule); }
[data-theme="dark"] .pnv-meta__sep { color: var(--pnv-muted); opacity: .5; }

/* ==========================================================================
   7. The essay list — dividers only, never cards
   ========================================================================== */

.pnv-list { display: flex; flex-direction: column; margin: 0; }

.pnv-row {
	padding: 34px 0;
	border-top: 1px solid var(--pnv-rule);
	max-width: 68ch;
}
.pnv-row:first-child { border-top: 0; padding-top: 26px; }

.pnv-row__title {
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	line-height: 1.22;
	margin: 10px 0 0;
	font-weight: 600;
}
.pnv-row__title a { color: var(--pnv-primary); }
.pnv-row__title a:hover { color: var(--pnv-accent); text-decoration: none; }

.pnv-row__excerpt {
	color: var(--pnv-muted);
	font-size: 1.02rem;
	line-height: 1.6;
	margin: 10px 0 14px;
	max-width: 62ch;

	/* Exactly two lines, as designed. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==========================================================================
   8. Featured perspectives — the pull quote leads
   ========================================================================== */

.pnv-perspectives {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
	padding-top: 26px;
}
@media (max-width: 860px) { .pnv-perspectives { grid-template-columns: 1fr; gap: 40px; } }

.pnv-perspective { display: flex; flex-direction: column; gap: 14px; }

.pnv-perspective__quote {
	font-family: var(--pnv-font-body);
	font-style: italic;
	font-size: 1.18rem;
	line-height: 1.5;
	color: var(--pnv-primary);
	border-left: 2px solid var(--pnv-accent);
	padding: 2px 0 2px 20px;
	margin: 0;
	quotes: none;
}
.pnv-perspective__quote::before { content: "\201C"; }
.pnv-perspective__quote::after  { content: "\201D"; }

.pnv-perspective__title {
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	padding-left: 22px;
}
.pnv-perspective__title a { color: var(--pnv-primary); }
.pnv-perspective__title a:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-perspective .pnv-meta { padding-left: 22px; }

/* ==========================================================================
   9. Writers to follow
   ========================================================================== */

.pnv-writers {
	display: flex;
	flex-wrap: wrap;
	gap: 44px;
	padding-top: 30px;
}
@media (max-width: 620px) { .pnv-writers { gap: 30px; } }

.pnv-writer {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 132px;
	gap: 12px;
}
.pnv-writer img {
	width: 76px; height: 76px;
	border-radius: 50%;
	filter: grayscale(1);
	transition: filter .3s ease;
}
.pnv-writer:hover img { filter: grayscale(0); }
.pnv-writer__name {
	font-family: var(--pnv-font-head);
	font-size: .92rem;
	font-weight: 600;
	color: var(--pnv-primary);
	margin: 0;
	line-height: 1.3;
}
.pnv-writer__name a { color: inherit; }
.pnv-writer__name a:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-writer__specialty {
	font-family: var(--pnv-font-head);
	font-size: .74rem;
	line-height: 1.4;
	color: var(--pnv-muted);
	margin: -6px 0 0;
}

/* Writer bios — "The writers" block on the About page */
.pnv-team { display: flex; flex-direction: column; }
.pnv-teammate {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 30px 0;
	border-top: 1px solid var(--pnv-rule);
}
.pnv-teammate:first-child { border-top: 0; }
@media (max-width: 520px) { .pnv-teammate { flex-direction: column; gap: 14px; } }
.pnv-teammate img { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto; filter: grayscale(1); }
.pnv-teammate h3 { font-size: 1.05rem; letter-spacing: -.02em; margin: 0 0 4px; }
.pnv-teammate h3 a { color: var(--pnv-primary); }
.pnv-teammate h3 a:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-teammate__specialty {
	font-family: var(--pnv-font-head);
	font-size: .76rem;
	color: var(--pnv-accent);
	margin: 0 0 10px;
}
.pnv-teammate p { font-size: .98rem; color: var(--pnv-muted); margin: 0; }

/* ==========================================================================
   10. Lenses row
   ========================================================================== */

.pnv-lenses {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	padding-top: 26px;
}
.pnv-lens {
	font-family: var(--pnv-font-head);
	font-size: 1rem;
	font-weight: 500;
	color: var(--pnv-text);
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
}
.pnv-lens:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-lens span {
	font-size: .74rem;
	color: var(--pnv-muted);
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   11. Newsletter — The Weekly Lens. No box, no gradient.
   ========================================================================== */

.pnv-newsletter {
	max-width: var(--pnv-essay);
	margin-inline: auto;
	text-align: center;
}
.pnv-newsletter h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 14px 0 12px;
	letter-spacing: -.03em;
}
.pnv-newsletter p {
	color: var(--pnv-muted);
	max-width: 46ch;
	margin: 0 auto 26px;
	font-style: italic;
}

.pnv-newsletter__form {
	display: flex;
	gap: 0;
	max-width: 420px;
	margin: 0 auto;
	border-bottom: 1px solid var(--pnv-primary);
	align-items: stretch;
}
.pnv-newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 12px 2px;
	border: 0;
	background: none;
	color: var(--pnv-text);
	font-family: var(--pnv-font-body);
	font-size: 1rem;
}
.pnv-newsletter input[type="email"]:focus { outline: none; }
.pnv-newsletter input[type="email"]::placeholder { color: var(--pnv-muted); }
.pnv-newsletter__form button {
	border: 0;
	background: none;
	padding: 12px 0 12px 18px;
	color: var(--pnv-accent);
	font-family: var(--pnv-font-head);
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.pnv-newsletter__form button:hover { color: var(--pnv-primary); }

/* ==========================================================================
   12. Buttons & text links
   ========================================================================== */

.pnv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1px solid var(--pnv-primary);
	background: var(--pnv-primary);
	color: var(--pnv-bg);
	font-family: var(--pnv-font-head);
	font-size: .85rem;
	font-weight: 500;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.pnv-btn:hover { background: transparent; color: var(--pnv-primary); text-decoration: none; }

.pnv-btn--ghost { background: transparent; border-color: var(--pnv-rule); color: var(--pnv-text); }
.pnv-btn--ghost:hover { border-color: var(--pnv-accent); color: var(--pnv-accent); }

.pnv-textlink {
	font-family: var(--pnv-font-head);
	font-size: .85rem;
	font-weight: 500;
	color: var(--pnv-accent);
}
.pnv-textlink::after { content: " \2192"; }
.pnv-textlink:hover { text-decoration: none; color: var(--pnv-primary); }

/* ==========================================================================
   13. Single essay
   ========================================================================== */

.pnv-progress {
	position: fixed;
	top: 0; left: 0;
	height: 2px;
	width: 0;
	background: var(--pnv-accent);
	z-index: 200;
	transition: width .1s linear;
}

.pnv-posthead {
	max-width: var(--pnv-essay);
	margin-inline: auto;
	padding: clamp(40px, 7vw, 76px) 0 0;
}
.pnv-posthead h1 {
	font-size: clamp(2rem, 4.6vw, 3rem);
	line-height: 1.1;
	letter-spacing: -.035em;
	margin: 14px 0 0;
	text-wrap: balance;
}
.pnv-posthead .pnv-dek {
	font-family: var(--pnv-font-body);
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--pnv-muted);
	margin: 18px 0 0;
}

/* Byline: photo, name, one line of bio */
.pnv-byline {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 34px 0 0;
	padding: 0;
}
.pnv-byline img {
	width: 44px; height: 44px;
	border-radius: 50%;
	flex: 0 0 auto;
	filter: grayscale(1);
}
.pnv-byline__name {
	font-family: var(--pnv-font-head);
	font-size: .94rem;
	font-weight: 600;
	color: var(--pnv-primary);
	margin: 0;
	line-height: 1.35;
}
.pnv-byline__name a { color: inherit; }
.pnv-byline__name a:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-byline__bio {
	font-family: var(--pnv-font-head);
	font-size: .8rem;
	color: var(--pnv-muted);
	margin: 0;
	line-height: 1.4;
}
.pnv-postmeta {
	margin: 20px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--pnv-rule);
}

/* Understated lead image — only when one exists */
.pnv-leadfigure {
	max-width: 860px;
	margin: 48px auto 0;
}
.pnv-leadfigure img { width: 100%; }
.pnv-leadfigure figcaption {
	font-size: .86rem;
	font-style: italic;
	color: var(--pnv-muted);
	margin-top: 12px;
	max-width: var(--pnv-essay);
	margin-inline: auto;
}

/* The essay column, with a quiet rail for the table of contents */
.pnv-essaywrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	padding: clamp(40px, 6vw, 64px) 0 0;
}
/* Three tracks that add up to exactly the container's content box
   (180 + 640 + 180 + two 32px gaps = 1064), so the essay column keeps its
   full 640px measure instead of being squeezed by the rails. */
@media (min-width: 1180px) {
	.pnv-essaywrap {
		grid-template-columns: 180px minmax(0, var(--pnv-essay)) 180px;
		justify-content: center;
		justify-items: start;
		gap: 32px;
	}
	.pnv-rail { display: block; }
}
.pnv-rail { display: none; position: sticky; top: 120px; align-self: start; }

.pnv-entry {
	width: 100%;
	max-width: var(--pnv-essay);
	font-size: 20px;
	line-height: 1.8;
	letter-spacing: -.003em;
}
.pnv-entry > * + * { margin-top: 1.5em; }
.pnv-entry p { margin: 0; }
.pnv-entry h2 { margin-top: 2em; font-size: 1.6rem; letter-spacing: -.028em; }
.pnv-entry h3 { margin-top: 1.7em; font-size: 1.25rem; letter-spacing: -.022em; }
.pnv-entry em { font-style: italic; }
.pnv-entry figcaption {
	font-size: .86rem;
	font-style: italic;
	color: var(--pnv-muted);
	text-align: center;
	margin-top: 10px;
}
.pnv-entry ul, .pnv-entry ol { padding-left: 1.3em; }
.pnv-entry li + li { margin-top: .5em; }

/* Pull quotes: a vertical violet line and nothing more */
.pnv-entry blockquote,
.pnv-entry .wp-block-quote,
.pnv-entry .wp-block-pullquote {
	margin: 2em 0;
	padding: 4px 0 4px 26px;
	border-left: 2px solid var(--pnv-accent);
	border-top: 0;
	border-bottom: 0;
	font-family: var(--pnv-font-body);
	font-style: italic;
	font-size: 1.32rem;
	line-height: 1.5;
	color: var(--pnv-primary);
	text-align: left;
}
.pnv-entry blockquote p { margin: 0; }
.pnv-entry blockquote p + p { margin-top: .7em; }
.pnv-entry blockquote cite,
.pnv-entry .wp-block-pullquote cite {
	display: block;
	margin-top: 14px;
	font-family: var(--pnv-font-head);
	font-style: normal;
	font-size: .82rem;
	color: var(--pnv-muted);
}

.pnv-entry pre {
	background: var(--pnv-subtle);
	color: var(--pnv-text);
	padding: 20px;
	overflow-x: auto;
	font-size: .88rem;
	line-height: 1.6;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.pnv-entry code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .88em; }
.pnv-entry :not(pre) > code { background: var(--pnv-subtle); padding: 2px 6px; }

.pnv-entry table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.pnv-entry th, .pnv-entry td { border-bottom: 1px solid var(--pnv-rule); padding: 11px 12px 11px 0; text-align: left; }
.pnv-entry th { font-family: var(--pnv-font-head); font-weight: 600; }

/* Table of contents — borderless, in the left rail */
.pnv-toc { font-family: var(--pnv-font-head); }
.pnv-toc h4 {
	margin: 0 0 12px;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pnv-muted);
}
.pnv-toc ol { margin: 0; padding: 0; list-style: none; font-size: .82rem; line-height: 1.45; }
.pnv-toc li { margin-bottom: 10px; }
.pnv-toc a { color: var(--pnv-muted); }
.pnv-toc a:hover { color: var(--pnv-accent); text-decoration: none; }

.pnv-tags { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 44px auto 0; max-width: var(--pnv-essay); }
.pnv-tag { font-family: var(--pnv-font-head); font-size: .82rem; color: var(--pnv-muted); }
.pnv-tag:hover { color: var(--pnv-accent); text-decoration: none; }

/* Foot of the essay: the writer, their handles, their other essays */
.pnv-authorfoot {
	max-width: var(--pnv-essay);
	margin: 64px auto 0;
	padding-top: 34px;
	border-top: 1px solid var(--pnv-rule);
}
.pnv-authorfoot__head { display: flex; align-items: flex-start; gap: 18px; }
.pnv-authorfoot img { width: 62px; height: 62px; border-radius: 50%; flex: 0 0 auto; filter: grayscale(1); }
.pnv-authorfoot h2 {
	font-size: 1.12rem;
	margin: 0 0 6px;
	letter-spacing: -.02em;
}
.pnv-authorfoot h2 a { color: var(--pnv-primary); }
.pnv-authorfoot h2 a:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-authorfoot p { color: var(--pnv-muted); font-size: .98rem; margin: 0; }

.pnv-handles { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0 !important; }
.pnv-handles a { font-family: var(--pnv-font-head); font-size: .82rem; color: var(--pnv-muted); }
.pnv-handles a:hover { color: var(--pnv-accent); text-decoration: none; }

.pnv-otheressays { margin-top: 30px; }
.pnv-otheressays .pnv-row { max-width: none; padding: 20px 0; }
.pnv-otheressays .pnv-row__title { font-size: 1.1rem; }
.pnv-otheressays .pnv-row__excerpt { display: none; }

/* Previous / next */
.pnv-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	max-width: var(--pnv-essay);
	margin: 56px auto 0;
	padding-top: 34px;
	border-top: 1px solid var(--pnv-rule);
}
@media (max-width: 600px) { .pnv-postnav { grid-template-columns: 1fr; gap: 26px; } }
.pnv-postnav a { color: var(--pnv-primary); font-family: var(--pnv-font-head); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.pnv-postnav a:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-postnav span {
	display: block;
	font-family: var(--pnv-font-head);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pnv-muted);
	margin-bottom: 10px;
}
.pnv-postnav .is-next { text-align: right; }

/* ==========================================================================
   14. Page heads (archive / search / author / 404 / page)
   ========================================================================== */

.pnv-pagehead {
	padding: clamp(56px, 9vw, 104px) 0 clamp(30px, 5vw, 48px);
	max-width: var(--pnv-narrow);
}
.pnv-pagehead h1 {
	font-size: clamp(2.2rem, 5.4vw, 3.4rem);
	letter-spacing: -.038em;
	margin: 12px 0 0;
	text-wrap: balance;
}
.pnv-pagehead p {
	color: var(--pnv-muted);
	font-style: italic;
	font-size: 1.12rem;
	max-width: 54ch;
	margin: 20px 0 0;
	line-height: 1.6;
}
.pnv-pagehead--center { margin-inline: auto; text-align: center; }
.pnv-pagehead--center p { margin-inline: auto; }

/* Author */
.pnv-authorhero { display: flex; align-items: flex-start; gap: 26px; }
@media (max-width: 620px) { .pnv-authorhero { flex-direction: column; gap: 18px; } }
.pnv-authorhero img { width: 96px; height: 96px; border-radius: 50%; flex: 0 0 auto; filter: grayscale(1); }
.pnv-authorhero h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin: 0; }
.pnv-authorhero__stats {
	font-family: var(--pnv-font-head);
	font-size: .82rem;
	font-style: normal !important;
	color: var(--pnv-muted);
	margin-top: 16px !important;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* 404 */
.pnv-404 { padding: clamp(80px, 16vw, 180px) 0; text-align: center; max-width: 560px; margin-inline: auto; }
.pnv-404 h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.038em; max-width: 15ch; margin: 0 auto; }
.pnv-404 p { color: var(--pnv-muted); font-style: italic; margin: 22px auto 30px; max-width: 44ch; }

/* ==========================================================================
   15. Sidebar & widgets — no boxes
   ========================================================================== */

.pnv-sidebar { display: flex; flex-direction: column; gap: 40px; position: sticky; top: 120px; }
@media (max-width: 960px) { .pnv-sidebar { position: static; } }

.pnv-widget { font-family: var(--pnv-font-head); font-size: .9rem; }
.pnv-widget__title,
.pnv-widget .widget-title,
.pnv-widget > h2,
.pnv-widget > h3,
.pnv-widget .wp-block-heading,
.pnv-widget .wp-block-search__label {
	display: block;
	font-family: var(--pnv-font-head);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pnv-muted);
	margin: 0 0 16px;
	line-height: 1.3;
}
.pnv-widget ul { list-style: none; margin: 0; padding: 0; }
.pnv-widget li + li { margin-top: 12px; }
.pnv-widget a { color: var(--pnv-text); }
.pnv-widget a:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-widget p { font-size: .9rem; color: var(--pnv-muted); }
.pnv-widget select,
.pnv-widget input[type="text"],
.pnv-widget input[type="search"] { width: 100%; }
.pnv-widget .tagcloud { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pnv-widget .tagcloud a { font-size: .82rem !important; color: var(--pnv-muted); }

/* Search form — an underline, not a box */
.pnv-searchform {
	display: flex;
	align-items: stretch;
	gap: 0;
	border-bottom: 1px solid var(--pnv-rule);
	transition: border-color .2s ease;
}
.pnv-searchform:focus-within { border-bottom-color: var(--pnv-accent); }
.pnv-searchform input[type="search"],
.pnv-searchform input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 11px 2px;
	border: 0;
	background: none;
	color: var(--pnv-text);
	font-family: var(--pnv-font-body);
	font-size: 1rem;
}
.pnv-searchform input[type="search"]:focus,
.pnv-searchform input[type="email"]:focus { outline: none; }
.pnv-searchform input[type="search"]::placeholder,
.pnv-searchform input[type="email"]::placeholder { color: var(--pnv-muted); }
.pnv-searchform button {
	border: 0;
	background: none;
	padding: 11px 0 11px 16px;
	color: var(--pnv-accent);
	font-family: var(--pnv-font-head);
	font-size: .82rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.pnv-searchform button:hover { color: var(--pnv-primary); }

/* ==========================================================================
   16. Responses (comments)
   ========================================================================== */

.pnv-responses {
	max-width: var(--pnv-essay);
	margin: 64px auto 0;
	padding-top: 40px;
	border-top: 1px solid var(--pnv-rule);
}
.pnv-responses ol { list-style: none; margin: 0; padding: 0; }
.pnv-responses .children { list-style: none; padding-left: 26px; margin-top: 24px; }
.pnv-responses .comment-body { padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--pnv-rule-soft); }
.pnv-responses .comment-author { display: flex; align-items: center; gap: 12px; }
.pnv-responses .comment-author img { width: 40px; height: 40px; border-radius: 50%; filter: grayscale(1); }
.pnv-responses .comment-author .fn { font-family: var(--pnv-font-head); font-size: .92rem; font-weight: 600; font-style: normal; color: var(--pnv-primary); }
.pnv-responses .comment-author .fn a { color: inherit; }
.pnv-responses .comment-metadata { font-family: var(--pnv-font-head); font-size: .76rem; color: var(--pnv-muted); margin: 6px 0 12px 52px; }
.pnv-responses .comment-metadata a { color: var(--pnv-muted); }
.pnv-responses .comment-content { font-size: 1.02rem; }
.pnv-responses .comment-content p:last-child { margin-bottom: 0; }
.pnv-responses .reply { font-family: var(--pnv-font-head); font-size: .8rem; margin-top: 10px; }
.pnv-responses .reply a { color: var(--pnv-muted); }
.pnv-responses .reply a:hover { color: var(--pnv-accent); text-decoration: none; }

.comment-respond { margin-top: 16px; }
.comment-reply-title { font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 6px; }
.comment-form .comment-notes,
.comment-form .logged-in-as { font-family: var(--pnv-font-head); font-size: .82rem; color: var(--pnv-muted); }
.comment-form label { display: block; font-family: var(--pnv-font-head); font-size: .78rem; font-weight: 500; color: var(--pnv-muted); margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 2px;
	border: 0;
	border-bottom: 1px solid var(--pnv-rule);
	background: none;
	color: var(--pnv-text);
	font-family: var(--pnv-font-body);
	font-size: 1rem;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus { outline: none; border-bottom-color: var(--pnv-accent); }
.comment-form textarea { min-height: 140px; line-height: 1.7; resize: vertical; }
.comment-form p { margin-bottom: 20px; }
.comment-form input[type="submit"] {
	background: var(--pnv-primary);
	color: var(--pnv-bg);
	border: 1px solid var(--pnv-primary);
	padding: 11px 26px;
	font-family: var(--pnv-font-head);
	font-size: .85rem;
	font-weight: 500;
	width: auto;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.comment-form input[type="submit"]:hover { background: transparent; color: var(--pnv-primary); }

/* ==========================================================================
   17. Pagination
   ========================================================================== */

.pnv-pagination {
	display: flex;
	justify-content: center;
	gap: 18px;
	margin: 64px 0 0;
	padding-top: 34px;
	border-top: 1px solid var(--pnv-rule);
	flex-wrap: wrap;
	font-family: var(--pnv-font-head);
}
.pnv-pagination .page-numbers {
	font-size: .88rem;
	font-weight: 500;
	color: var(--pnv-muted);
	padding: 2px 0;
	border-bottom: 1px solid transparent;
}
.pnv-pagination .page-numbers:hover { color: var(--pnv-accent); text-decoration: none; }
.pnv-pagination .page-numbers.current { color: var(--pnv-primary); border-bottom-color: var(--pnv-accent); }

.comments-pagination { font-family: var(--pnv-font-head); font-size: .85rem; margin-top: 24px; }

/* ==========================================================================
   18. Footer — mostly type
   ========================================================================== */

.pnv-footer {
	margin-top: clamp(72px, 10vw, 120px);
	border-top: 1px solid var(--pnv-rule);
	padding: 56px 0 44px;
}

.pnv-footer__cols {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 48px;
	padding-bottom: 44px;
}
@media (max-width: 860px) { .pnv-footer__cols { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .pnv-footer__cols { grid-template-columns: 1fr; gap: 32px; } }

.pnv-footer__about {
	font-size: .96rem;
	font-style: italic;
	color: var(--pnv-muted);
	max-width: 34ch;
	margin: 14px 0 0;
}
.pnv-footer .pnv-widget { font-size: .9rem; }
.pnv-footer ul { list-style: none; margin: 0; padding: 0; }
.pnv-footer li + li { margin-top: 11px; }
.pnv-footer a { color: var(--pnv-text); font-family: var(--pnv-font-head); font-size: .9rem; }
.pnv-footer a:hover { color: var(--pnv-accent); text-decoration: none; }

.pnv-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 26px;
	border-top: 1px solid var(--pnv-rule);
	font-family: var(--pnv-font-head);
	font-size: .8rem;
	color: var(--pnv-muted);
}
.pnv-footer__bottom ul { display: flex; gap: 22px; flex-wrap: wrap; }
.pnv-footer__bottom a { font-size: .8rem; color: var(--pnv-muted); }

/* ==========================================================================
   19. WordPress core classes
   ========================================================================== */

.alignleft   { float: left;  margin: .4em 1.6em 1em 0; }
.alignright  { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide   { max-width: 860px; margin-inline: auto; }
.alignfull   { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-style: italic; font-size: .86rem; color: var(--pnv-muted); text-align: center; }
.gallery-caption { font-size: .86rem; }
.sticky .pnv-row__title a { color: var(--pnv-accent); }
.bypostauthor > .comment-body .fn::after {
	content: "\00b7 " attr(data-label);
}

.pnv-entry .wp-block-image { margin-block: 2em; }
.pnv-entry .wp-block-button__link { background: var(--pnv-primary); border-radius: 0; font-family: var(--pnv-font-head); }
.pnv-entry .wp-block-separator { border-top: 1px solid var(--pnv-rule); max-width: 120px; margin-inline: auto; }

/* Admin bar offset for the sticky header */
.admin-bar .pnv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pnv-header { top: 46px; } }

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