/* ==========================================================================
   PHOTONOTES – main stylesheet
   A flat, editorial newspaper on warm ivory paper. No cards, no shadows.
   ========================================================================== */

:root {
	--pn-paper: #F4F0E6;
	--pn-paper-2: #E7DFCF;
	--pn-paper-3: #FBF8F1;
	--pn-ink: #26231F;
	--pn-ink-soft: #4F483F;     /* 7.4:1 on paper */
	--pn-ink-muted: #62594D;    /* 5.8:1 on paper */
	--pn-rule: #A99576;
	--pn-mustard: #AD843A;      /* decorative only */
	--pn-mustard-ink: #7A5A1E;  /* text-safe accent, 5.6:1 on paper */

	--pn-serif-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--pn-serif-text: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
	--pn-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--pn-wrap: 1240px;
	--pn-article: 760px;
	--pn-gutter: clamp(18px, 3.2vw, 32px);
	--pn-col-gap: clamp(24px, 3vw, 40px);
	--pn-touch: 48px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background-color: var(--pn-paper);
	background-image: var(--pn-paper-texture, none);
	background-repeat: repeat;
	background-size: 240px 240px;
	color: var(--pn-ink);
	font-family: var(--pn-serif-text);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
	text-decoration-color: var(--pn-rule);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color .15s ease, text-decoration-color .15s ease, background-color .15s ease;
}
a:hover { color: var(--pn-mustard-ink); text-decoration-color: currentColor; }

:focus-visible {
	outline: 3px solid var(--pn-mustard-ink);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pn-serif-display);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 .5em;
	color: var(--pn-ink);
	text-wrap: balance;
}

p { margin: 0 0 1em; }

/* Long words and pasted web addresses never break the layout */
p, li, dd, figcaption, blockquote, h1, h2, h3, h4,
.story__text, .lead-story__text, .read-item, .entry-content,
.comment-content, .link-preview__text, .photo-tile__title {
	overflow-wrap: break-word;
	word-wrap: break-word;
}
.entry-content a, .comment-content a, .story__summary, .read-item__comment { overflow-wrap: anywhere; }

hr {
	border: 0;
	border-top: 3px double var(--pn-ink);
	margin: 2.5rem 0;
}

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

.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 1000;
	background: var(--pn-ink); color: var(--pn-paper);
	padding: 12px 18px; font-family: var(--pn-sans); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--pn-paper); }

.site-main:focus { outline: none; }

.print-only { display: none; }

.wrap {
	width: 100%;
	max-width: var(--pn-wrap);
	margin-inline: auto;
	padding-inline: var(--pn-gutter);
}
.wrap--article { max-width: calc(var(--pn-article) + 2 * var(--pn-gutter)); }
.wrap--photo,
.wrap--gallery { max-width: calc(1000px + 2 * var(--pn-gutter)); }

/* ---------- Labels, kickers, buttons ---------- */
.section-label,
.kicker,
.byline,
.story__source,
.read-item__source,
.photo-tile__meta {
	font-family: var(--pn-sans);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pn-ink-muted);
	margin: 0 0 .6rem;
}
.section-label--ruled {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	border-top: 3px double var(--pn-ink);
	padding-top: .9rem;
	margin-bottom: 1.4rem;
	color: var(--pn-ink);
}

.kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.kicker__cat {
	color: var(--pn-mustard-ink);
	text-decoration: none;
}
a.kicker__cat:hover { text-decoration: underline; }
.kicker__sep { color: var(--pn-rule); }

.byline { color: var(--pn-ink-soft); }
.byline__name { color: var(--pn-ink); }

.pn-button,
button.pn-button,
input[type="submit"].pn-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: var(--pn-touch);
	padding: .7rem 1.4rem;
	border: 1px solid var(--pn-ink);
	border-radius: 2px;
	background: var(--pn-ink);
	color: var(--pn-paper);
	font-family: var(--pn-sans);
	font-size: .9rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}
.pn-button:hover { background: var(--pn-mustard-ink); border-color: var(--pn-mustard-ink); color: #fff; }
.pn-button--ghost { background: transparent; color: var(--pn-ink); }
.pn-button--ghost:hover { background: var(--pn-ink); border-color: var(--pn-ink); color: var(--pn-paper); }

.read-more {
	font-family: var(--pn-sans);
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--pn-mustard-ink);
}
.read-more:hover { text-decoration: underline; }

/* ---------- Masthead ---------- */
.masthead { padding-top: 1rem; }

.masthead__topline {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	border-bottom: 1px solid var(--pn-rule);
	padding-bottom: .55rem;
	font-family: var(--pn-sans);
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pn-ink-muted);
}
.masthead__topline p { margin: 0; }
.masthead__sep { margin: 0 .6em; color: var(--pn-rule); }
.masthead__edition { font-style: normal; }

.masthead__brand {
	text-align: center;
	padding: clamp(1.2rem, 3.5vw, 2.4rem) 0 clamp(1rem, 2.4vw, 1.6rem);
}
.wordmark {
	margin: 0;
	font-family: var(--pn-serif-display);
	font-weight: 800;
	font-size: clamp(2.6rem, 10.5vw, 6.6rem);
	line-height: .95;
	letter-spacing: .045em;
	color: var(--pn-ink);
}
.wordmark a { text-decoration: none; color: inherit; }
.wordmark a:hover { color: var(--pn-ink); }
.masthead__logo img { margin-inline: auto; max-height: 120px; width: auto; }
.masthead__tagline {
	margin: .7rem 0 0;
	font-family: var(--pn-serif-text);
	font-style: italic;
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: var(--pn-ink-soft);
}
.masthead__tagline::before,
.masthead__tagline::after {
	content: "";
	display: inline-block;
	width: 2.2em;
	height: 1px;
	background: var(--pn-mustard);
	vertical-align: middle;
	margin: 0 .8em;
}

.primary-nav {
	border-top: 3px double var(--pn-ink);
	border-bottom: 1px solid var(--pn-ink);
}
.primary-nav__toggle { display: none; }
.primary-nav__menu {
	display: flex; align-items: center; justify-content: center; gap: .25rem;
	position: relative;
}
.primary-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center;
}
.primary-nav li { position: relative; }
.primary-nav li + li::before {
	content: ""; position: absolute; left: 0; top: 30%; bottom: 30%;
	width: 1px; background: var(--pn-rule);
}
.primary-nav a {
	display: flex; align-items: center;
	min-height: var(--pn-touch);
	padding: 0 clamp(.7rem, 1.6vw, 1.4rem);
	font-family: var(--pn-sans);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--pn-ink);
}
.primary-nav a:hover { color: var(--pn-mustard-ink); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-parent > a,
.primary-nav a[aria-current="page"] {
	color: var(--pn-mustard-ink);
	box-shadow: inset 0 -3px 0 var(--pn-mustard);
}
.primary-nav__search-toggle {
	position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: var(--pn-touch); height: var(--pn-touch);
	display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0; color: var(--pn-ink); cursor: pointer;
}
.primary-nav__search-toggle:hover { color: var(--pn-mustard-ink); }

.masthead__search {
	border-bottom: 1px solid var(--pn-rule);
	padding: 1rem 0;
}
.masthead__search .search-form { max-width: 560px; margin-inline: auto; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: .5rem; }
.search-form__field,
.pn-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
	width: 100%;
	min-height: var(--pn-touch);
	padding: .7rem .9rem;
	border: 1px solid var(--pn-rule);
	border-radius: 2px;
	background: var(--pn-paper-3);
	color: var(--pn-ink);
	font-family: var(--pn-sans);
	font-size: 1.05rem; /* ≥16px prevents iOS zoom */
}
.search-form__field:focus,
.pn-field:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	outline: 3px solid var(--pn-mustard-ink);
	outline-offset: 0;
	border-color: var(--pn-ink);
}

/* ---------- Section headings ---------- */
.section-heading {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	border-top: 3px double var(--pn-ink);
	padding-top: .8rem;
	margin: 0 0 1.6rem;
}
.section-heading__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	font-weight: 700;
	letter-spacing: .02em;
}
.section-heading__more {
	font-family: var(--pn-sans);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--pn-mustard-ink);
	white-space: nowrap;
	min-height: 44px; display: inline-flex; align-items: center;
}
.section-heading__more:hover { text-decoration: underline; }

/* ---------- Front page ---------- */
.front-page { padding-top: clamp(1.6rem, 3vw, 2.6rem); padding-bottom: 2rem; }

.front-lead {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--pn-col-gap);
	padding-bottom: clamp(2rem, 4vw, 3rem);
}
.front-lead__side {
	border-left: 1px solid var(--pn-rule);
	padding-left: var(--pn-col-gap);
}
.front-lead__side .story + .story {
	border-top: 1px solid var(--pn-rule);
	padding-top: 1.25rem;
	margin-top: 1.25rem;
}

.lead-story__media { display: block; margin-bottom: 1.25rem; }
.lead-story__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lead-story__title {
	font-size: clamp(1.9rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.08;
	margin-bottom: .6rem;
}
.lead-story__title a,
.story__title a,
.read-item__title a { text-decoration: none; }
.lead-story__title a:hover,
.story__title a:hover,
.read-item__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.lead-story__summary {
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--pn-ink-soft);
	max-width: 62ch;
}

.front-section { padding: clamp(1.4rem, 3vw, 2.2rem) 0; }
.front-section__intro { font-style: italic; color: var(--pn-ink-soft); margin-top: -.6rem; }

.front-split {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: var(--pn-col-gap);
}
.front-split > .front-section--reads {
	border-left: 1px solid var(--pn-rule);
	padding-left: var(--pn-col-gap);
}
.front-split > .front-section:only-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }

.older-stories {
	text-align: center;
	border-top: 1px solid var(--pn-rule);
	padding-top: 2rem;
	margin: 1rem 0 0;
}

/* ---------- Story previews ---------- */
.story__media { display: block; margin-bottom: .9rem; }
.story__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story__title {
	font-size: 1.35rem;
	line-height: 1.2;
	margin-bottom: .45rem;
}
.story__summary { color: var(--pn-ink-soft); margin-bottom: .4rem; font-size: 1rem; }
.story__source { margin-top: .4rem; letter-spacing: .08em; }

.story--compact { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 1rem; align-items: start; }
.story--compact .story__media { order: 2; margin: 0; }
.story--compact .story__media img { aspect-ratio: 1; }
.story--compact.no-image { grid-template-columns: 1fr; }
.story--compact .story__title { font-size: 1.2rem; }
.story--compact .story__summary { font-size: .97rem; }

.story-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	row-gap: 2.2rem;
}
.story-grid { column-gap: var(--pn-col-gap); }
.story-grid > .story { position: relative; }
.story-grid > .story:not(:nth-child(3n + 1))::before {
	content: ""; position: absolute; top: 0; bottom: 0;
	left: calc(var(--pn-col-gap) / -2); width: 1px; background: var(--pn-rule);
}

.story-rows > .story--row {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: var(--pn-col-gap);
	padding: 1.8rem 0;
	border-bottom: 1px solid var(--pn-rule);
}
.story-rows > .story--row:first-child { padding-top: 0; }
.story-rows > .story--row.no-image { grid-template-columns: 1fr; }
.story--row .story__media { margin: 0; }
.story--row .story__title { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.story--row .story__summary { font-size: 1.08rem; max-width: 64ch; }

/* ---------- Photography grid ---------- */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.6rem var(--pn-col-gap);
}
.archive-page--photos .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-tile__link { display: block; text-decoration: none; }
.photo-tile__media { display: block; overflow: hidden; background: var(--pn-paper-2); }
.photo-tile__media img {
	width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
	transition: transform .5s ease;
}
.photo-tile__link:hover img { transform: scale(1.025); }
.photo-tile__placeholder { display: block; aspect-ratio: 3 / 2; }
.photo-tile__title {
	display: block;
	margin-top: .7rem;
	font-family: var(--pn-serif-display);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
}
.photo-tile__link:hover .photo-tile__title { text-decoration: underline; text-decoration-thickness: 1px; }
.photo-tile__meta { margin-top: .35rem; display: flex; gap: .5em; letter-spacing: .08em; }

/* ---------- Interesting Reads ---------- */
.reads-list > .read-item { padding: 1.1rem 0; border-bottom: 1px dotted var(--pn-rule); }
.reads-list > .read-item:first-child { padding-top: 0; }
.reads-list > .read-item:last-child { border-bottom: 0; }
.reads-list--archive { max-width: 820px; }
.reads-list--archive > .read-item { padding: 1.6rem 0; border-bottom-style: solid; }
.read-item__source { color: var(--pn-mustard-ink); display: flex; gap: .5em; flex-wrap: wrap; }
.read-item__source time { color: var(--pn-ink-muted); }
.read-item__title { font-size: 1.2rem; margin-bottom: .45rem; }
.reads-list--archive .read-item__title { font-size: 1.55rem; }
.read-item__comment { font-size: 1rem; color: var(--pn-ink-soft); margin-bottom: .5rem; }
.read-item__joe { font-style: italic; color: var(--pn-ink); }
.read-item__out {
	font-family: var(--pn-sans); font-size: .82rem; font-weight: 600;
	letter-spacing: .06em; text-transform: uppercase;
	color: var(--pn-mustard-ink); text-decoration: none;
	display: inline-flex; min-height: 44px; align-items: center;
}
.read-item__out:hover { text-decoration: underline; }

/* ---------- Archive pages ---------- */
.archive-page { padding-top: clamp(1.6rem, 3vw, 2.6rem); padding-bottom: 3rem; }
.archive-header {
	text-align: center;
	padding-bottom: 1.6rem;
	margin-bottom: 2.2rem;
	border-bottom: 3px double var(--pn-ink);
}
.archive-header__title {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 800;
	margin: 0;
}
.archive-header__desc {
	max-width: 62ch;
	margin: .8rem auto 0;
	font-style: italic;
	color: var(--pn-ink-soft);
}
.archive-header__search { max-width: 520px; margin: 1.2rem auto 0; }

.pagination {
	margin-top: 2.6rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--pn-rule);
	display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
	font-family: var(--pn-sans);
}
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: var(--pn-touch); min-height: var(--pn-touch);
	padding: 0 .9rem;
	border: 1px solid transparent;
	text-decoration: none;
	font-weight: 600;
	font-size: .9rem;
}
.pagination a.page-numbers:hover { border-color: var(--pn-ink); color: var(--pn-ink); }
.pagination .current { border-color: var(--pn-ink); background: var(--pn-ink); color: var(--pn-paper); }
.pagination .prev,
.pagination .next { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

/* ---------- Empty states ---------- */
.empty-state {
	text-align: center;
	max-width: 560px;
	margin: 1rem auto 3rem;
	padding: 2.4rem 1rem;
	border-top: 1px solid var(--pn-rule);
	border-bottom: 1px solid var(--pn-rule);
}
.empty-state__ornament { font-size: 1.8rem; color: var(--pn-mustard); margin-bottom: .4rem; }
.empty-state__title { font-size: 1.7rem; }
.empty-state__message { color: var(--pn-ink-soft); font-size: 1.1rem; }
.empty-state__search { margin: 1.4rem auto; max-width: 440px; }

/* ---------- Single article ---------- */
.article { padding-top: clamp(1.8rem, 4vw, 3.2rem); }

.article__header { text-align: center; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.article__header .kicker { justify-content: center; }
.article__title {
	font-size: clamp(2.1rem, 5.4vw, 3.6rem);
	font-weight: 800;
	line-height: 1.07;
	margin: .2rem 0 .9rem;
}
.article__dek {
	font-size: 1.3rem;
	font-style: italic;
	color: var(--pn-ink-soft);
	max-width: 46ch;
	margin: 0 auto 1rem;
}
.article__header .byline {
	display: inline-block;
	border-top: 1px solid var(--pn-rule);
	border-bottom: 1px solid var(--pn-rule);
	padding: .55rem 1.2rem;
	margin: 0;
}

.article__lead-photo { margin: 0 auto clamp(1.8rem, 3.5vw, 2.6rem); }
.article__lead-photo img { width: 100%; }
.article__lead-photo figcaption,
.article-gallery figcaption,
.entry-content figcaption,
.wp-caption-text {
	margin-top: .55rem;
	font-family: var(--pn-sans);
	font-size: .88rem;
	line-height: 1.45;
	color: var(--pn-ink-muted);
}
.article__lead-photo figcaption {
	border-bottom: 1px solid var(--pn-rule);
	padding-bottom: .55rem;
}

.entry-content {
	font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); /* 18.4–20.8px */
	line-height: 1.72;
}
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: 1.6em; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3em; margin-top: 1.4em; }
.entry-content a { color: var(--pn-mustard-ink); text-decoration-color: currentColor; }
.entry-content a:hover { color: var(--pn-ink); }
.entry-content strong, .entry-content b { font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content img { margin-inline: auto; }

/* Subtle drop cap on the first paragraph of stories */
.article:not(.article--page):not(.article--shared) .article__body > p:first-child::first-letter {
	float: left;
	font-family: var(--pn-serif-display);
	font-weight: 700;
	font-size: 3.6em;
	line-height: .82;
	padding: .08em .1em 0 0;
	color: var(--pn-mustard-ink);
}

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 1.1em 0 1.1em 1.4em;
	border-left: 3px solid var(--pn-mustard);
	font-style: italic;
	font-size: 1.12em;
	color: var(--pn-ink-soft);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content .wp-block-pullquote,
.entry-content blockquote.is-style-large {
	border: 0;
	border-top: 3px double var(--pn-ink);
	border-bottom: 1px solid var(--pn-ink);
	padding: 1.2em 0;
	text-align: center;
	font-family: var(--pn-serif-display);
	font-size: 1.45em;
	line-height: 1.3;
	color: var(--pn-ink);
}

.article__end { color: var(--pn-mustard); font-size: .7rem; text-align: left; margin-top: -.5em; }

/* Gallery */
.article-gallery { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.article-gallery__count { color: var(--pn-ink-muted); font-weight: 500; }
.article-gallery__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem var(--pn-col-gap);
}
.article-gallery--1 .article-gallery__grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
.article-gallery--2 .article-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-gallery--4 .article-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-gallery figure { margin: 0; }
.article-gallery__link { display: block; cursor: zoom-in; overflow: hidden; background: var(--pn-paper-2); }
.article-gallery__link img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease, opacity .2s; }
.article-gallery--1 .article-gallery__link img { aspect-ratio: auto; }
.article-gallery__link:hover img { transform: scale(1.02); }

/* Share panel */
.article__footer { margin-top: clamp(2rem, 4vw, 3rem); }
.share-panel {
	border-top: 3px double var(--pn-ink);
	border-bottom: 1px solid var(--pn-rule);
	padding: 1.2rem 0 1.4rem;
}
.share-panel__title {
	font-family: var(--pn-sans);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
.share-panel__buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.share-btn {
	display: inline-flex; align-items: center; gap: .5rem;
	min-height: var(--pn-touch);
	padding: .55rem 1.05rem;
	border: 1px solid var(--pn-ink);
	border-radius: 2px;
	background: transparent;
	color: var(--pn-ink);
	font-family: var(--pn-sans);
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
}
.share-btn:hover,
.share-btn:focus-visible { background: var(--pn-ink); color: var(--pn-paper); }
.share-btn--native,
.share-btn--copy { background: var(--pn-ink); color: var(--pn-paper); }
.share-btn--native:hover,
.share-btn--copy:hover { background: var(--pn-mustard-ink); border-color: var(--pn-mustard-ink); color: #fff; }
.share-btn.is-done { background: var(--pn-mustard-ink); border-color: var(--pn-mustard-ink); color: #fff; }
.share-panel__status {
	min-height: 1.5em;
	margin: .8rem 0 0;
	font-family: var(--pn-sans);
	font-size: .95rem;
	font-weight: 600;
	color: var(--pn-mustard-ink);
}

/* Shared article (link post) */
.shared-comment { margin-bottom: 2rem; }
.shared-comment .section-label { color: var(--pn-mustard-ink); }
.link-preview {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	border-top: 3px double var(--pn-ink);
	border-bottom: 1px solid var(--pn-ink);
	padding: 1.4rem 0;
	text-decoration: none;
	color: var(--pn-ink);
}
.link-preview.has-image { grid-template-columns: 220px minmax(0, 1fr); gap: 1.4rem; }
.link-preview__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.link-preview__text { display: flex; flex-direction: column; gap: .45rem; }
.link-preview__site {
	font-family: var(--pn-sans); font-size: .78rem; font-weight: 600;
	letter-spacing: .12em; text-transform: uppercase; color: var(--pn-mustard-ink);
}
.link-preview__title { font-family: var(--pn-serif-display); font-weight: 700; font-size: 1.55rem; line-height: 1.2; }
.link-preview__desc { color: var(--pn-ink-soft); font-size: 1.05rem; }
.link-preview__cta {
	margin-top: .4rem;
	font-family: var(--pn-sans); font-size: .9rem; font-weight: 600;
	color: var(--pn-mustard-ink);
}
.link-preview:hover { color: var(--pn-ink); }
.link-preview:hover .link-preview__title,
.link-preview:hover .link-preview__cta { text-decoration: underline; }

/* Related */
.related { padding-top: clamp(2.4rem, 5vw, 3.6rem); padding-bottom: 1rem; }

/* ---------- Comments ---------- */
.comments { margin-top: clamp(2.2rem, 4vw, 3rem); }
.comment-list,
.comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: clamp(1rem, 4vw, 2.2rem); border-left: 1px solid var(--pn-rule); padding-left: clamp(1rem, 3vw, 1.6rem); }
.comment-body { padding: 1.2rem 0; border-bottom: 1px solid var(--pn-rule); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: .5rem; }
.comment-author { font-family: var(--pn-serif-display); font-weight: 700; font-size: 1.1rem; }
.comment-date { font-family: var(--pn-sans); font-size: .8rem; color: var(--pn-ink-muted); text-decoration: none; }
.comment-content { font-size: 1.08rem; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-awaiting { font-family: var(--pn-sans); font-size: .9rem; color: var(--pn-mustard-ink); }
.comment-reply a {
	font-family: var(--pn-sans); font-size: .8rem; font-weight: 600; letter-spacing: .08em;
	text-transform: uppercase; color: var(--pn-mustard-ink); text-decoration: none;
	display: inline-flex; min-height: 44px; align-items: center;
}
.comments__empty,
.comments__closed { font-style: italic; color: var(--pn-ink-soft); }

.comment-respond { margin-top: 2rem; }
.comment-reply-title small a { margin-left: 1em; font-size: .8rem; }
.comment-notes,
.logged-in-as { font-family: var(--pn-sans); font-size: .9rem; color: var(--pn-ink-muted); }
.comment-form label {
	display: block; margin-bottom: .35rem;
	font-family: var(--pn-sans); font-size: .9rem; font-weight: 600;
}
.comment-form p { margin-bottom: 1.1rem; }
.comment-form textarea { min-height: 160px; font-family: var(--pn-serif-text); font-size: 1.1rem; line-height: 1.55; }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent input { width: 22px; height: 22px; margin-top: .15rem; flex: none; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- Contact ---------- */
.contact-email { font-size: 1.2rem; }
.contact-email .section-label { display: inline-block; margin-bottom: .2rem; }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: clamp(2.4rem, 5vw, 4rem);
	background: var(--pn-paper-2);
	border-top: 3px double var(--pn-ink);
	padding: clamp(2rem, 4vw, 3rem) 0 1.4rem;
	font-size: 1rem;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--pn-col-gap);
}
.site-footer__col + .site-footer__col { border-left: 1px solid var(--pn-rule); padding-left: var(--pn-col-gap); }
.site-footer__wordmark {
	font-family: var(--pn-serif-display);
	font-weight: 800;
	font-size: 1.9rem;
	letter-spacing: .05em;
	margin-bottom: .5rem;
}
.site-footer__about p:not(.site-footer__wordmark) { color: var(--pn-ink-soft); max-width: 46ch; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu a {
	display: inline-flex; align-items: center; min-height: 40px;
	font-family: var(--pn-sans); font-size: .95rem; text-decoration: none;
}
.footer-menu a:hover { text-decoration: underline; }
.site-footer__bottom {
	display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	margin-top: 2rem; padding-top: 1rem;
	border-top: 1px solid var(--pn-rule);
	font-family: var(--pn-sans); font-size: .82rem; color: var(--pn-ink-muted);
}
.site-footer__bottom p { margin: 0; }
.site-footer__top { text-decoration: none; }
.site-footer__login a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 .2rem;
	color: var(--pn-ink-muted); text-decoration: none;
}
.site-footer__login a:hover { color: var(--pn-mustard-ink); text-decoration: underline; }
.site-footer__login span { color: var(--pn-rule); margin: 0 .3rem; }
.site-footer__bottom { align-items: center; }
.site-footer__credit a { text-decoration: none; color: var(--pn-ink-muted); }
.site-footer__credit a:hover { color: var(--pn-mustard-ink); text-decoration: underline; }

/* ---------- Lightbox ---------- */
.pn-lightbox {
	position: fixed; inset: 0; z-index: 9999;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: rgba(24, 22, 19, .96);
	color: #F4F0E6;
	padding: 64px 12px 16px;
}
.pn-lightbox[hidden] { display: none; }
.pn-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.pn-lightbox__img {
	max-width: min(1400px, 94vw);
	max-height: calc(100vh - 170px);
	max-height: calc(100dvh - 170px);
	width: auto; height: auto;
	object-fit: contain;
	background: #000;
}
.pn-lightbox__caption {
	margin-top: .8rem; max-width: 70ch; text-align: center;
	font-family: var(--pn-sans); font-size: 1rem; line-height: 1.45;
}
.pn-lightbox__counter {
	position: absolute; top: 18px; left: 20px;
	font-family: var(--pn-sans); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
}
.pn-lightbox__btn {
	position: absolute;
	width: 56px; height: 56px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(244, 240, 230, .1);
	border: 1px solid rgba(244, 240, 230, .45);
	border-radius: 2px;
	color: #F4F0E6;
	font-size: 1.6rem;
	cursor: pointer;
}
.pn-lightbox__btn:hover,
.pn-lightbox__btn:focus-visible { background: #F4F0E6; color: var(--pn-ink); }
.pn-lightbox__close { top: 6px; right: 8px; }
.pn-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.pn-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.pn-lightbox:not(.has-many) .pn-lightbox__prev,
.pn-lightbox:not(.has-many) .pn-lightbox__next { display: none; }
body.pn-lightbox-open { overflow: hidden; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.aligncenter { margin-inline: auto; }
.sticky,
.bypostauthor,
.gallery-caption { /* required by theme review */ }
.page-links { font-family: var(--pn-sans); }

/* Anti-spam honeypot from the Author Desk plugin (kept hidden even if the plugin CSS is not loaded) */
.pn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
