/*
Theme Name: PrivacyForged
Theme URI: https://privacyforged.com/
Author: PrivacyForged
Author URI: https://privacyforged.com/
Description: A dark, evidence-first theme for security and privacy publishing. Measured data over star ratings. Includes a scorecard shortcode, re-test freshness stamps, threat-model navigation and section-coloured duotone accents.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: privacyforged
Tags: blog, news, one-column, dark, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------- */

:root {
	--pf-base: #14161a;
	--pf-surface: #1e222a;
	--pf-surface-2: #262b34;
	--pf-line: #2e343e;
	--pf-line-strong: #3a414c;

	--pf-text: #e7e9ec;
	--pf-text-dim: #b9bec6;
	--pf-text-mute: #8a9099;
	--pf-text-faint: #5f6771;

	--pf-ember: #e8531f;
	--pf-ember-dim: #a63813;
	--pf-ember-wash: #241209;
	--pf-quench: #4a9fb8;
	--pf-steel: #c2c7ce;

	--pf-green: #5fbf8f;
	--pf-amber: #c08b3a;

	--pf-paper: #f4f1ea;
	--pf-paper-2: #fbf9f4;
	--pf-paper-line: #ddd8cc;
	--pf-ink: #14161a;
	--pf-ink-dim: #3a3f46;
	--pf-ink-mute: #8a8478;

	/* Section accent. Overridden per section by body class. */
	--pf-accent: #e8531f;
	--pf-accent-wash: #241209;
	--pf-accent-text: #c99070;

	/* Swap these three lines when licensed webfonts are added. */
	--pf-display: "Archivo Narrow", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
	--pf-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--pf-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--pf-measure: 68ch;
	--pf-wide: 1180px;
	--pf-gutter: 24px;
	--pf-radius: 6px;
}

.pf-section-guides {
	--pf-accent: #4a9fb8;
	--pf-accent-wash: #14252c;
	--pf-accent-text: #8fc2d3;
}

.pf-section-breach {
	--pf-accent: #c2c7ce;
	--pf-accent-wash: #23272d;
	--pf-accent-text: #aab1ba;
}

/* -------------------------------------------------------------------------
   2. Reset and base
   ---------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	background: var(--pf-base);
	color: var(--pf-text);
	font-family: var(--pf-body);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

img {
	display: block;
}

a {
	color: var(--pf-quench);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--pf-ember);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--pf-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.18;
	margin: 2rem 0 0.75rem;
	color: var(--pf-text);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }

p,
ul,
ol,
dl,
figure,
table,
pre,
blockquote {
	margin: 0 0 1.4rem;
}

ul,
ol {
	padding-left: 1.4em;
}

li {
	margin-bottom: 0.4em;
}

code,
kbd,
pre,
samp {
	font-family: var(--pf-mono);
	font-size: 0.9em;
}

code {
	background: var(--pf-surface);
	padding: 0.1em 0.4em;
	border-radius: 3px;
}

pre {
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	padding: 18px;
	overflow-x: auto;
}

pre code {
	background: none;
	padding: 0;
}

blockquote {
	border-left: 2px solid var(--pf-accent);
	padding-left: 20px;
	margin-left: 0;
	color: var(--pf-text);
}

blockquote cite {
	display: block;
	font-family: var(--pf-mono);
	font-size: 0.7em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pf-text-mute);
	font-style: normal;
	margin-top: 10px;
}

hr {
	border: 0;
	height: 1px;
	background: var(--pf-line);
	margin: 2.5rem 0;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--pf-line);
	font-size: 0.9rem;
}

th {
	font-family: var(--pf-mono);
	font-size: 0.7rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pf-text-mute);
	font-weight: 400;
}

/* -------------------------------------------------------------------------
   3. Utilities
   ---------------------------------------------------------------------- */

.pf-wrap {
	width: 100%;
	max-width: var(--pf-wide);
	margin: 0 auto;
	padding: 0 var(--pf-gutter);
}

.pf-narrow {
	width: 100%;
	max-width: var(--pf-measure);
	margin: 0 auto;
	padding: 0 var(--pf-gutter);
}

.pf-kicker {
	font-family: var(--pf-mono);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pf-accent);
	margin: 0;
}

.pf-meta {
	font-family: var(--pf-mono);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pf-text-faint);
}

.pf-mono {
	font-family: var(--pf-mono);
}

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

.screen-reader-text:focus {
	background: var(--pf-surface);
	clip-path: none;
	color: var(--pf-text);
	display: block;
	font-size: 0.85rem;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 6px;
	width: auto;
	z-index: 100000;
}

.skip-link:focus {
	outline: 2px solid var(--pf-ember);
}

/* -------------------------------------------------------------------------
   4. Header
   ---------------------------------------------------------------------- */

.pf-masthead {
	background: var(--pf-surface);
	border-bottom: 1px solid var(--pf-line-strong);
}

.pf-masthead-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 16px;
	padding-bottom: 16px;
	flex-wrap: wrap;
}

.pf-brand {
	font-family: var(--pf-display);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0;
	line-height: 1;
}

.pf-brand a {
	color: var(--pf-text);
	text-decoration: none;
}

.pf-brand a:hover {
	text-decoration: none;
}

.pf-brand em {
	color: var(--pf-ember);
	font-style: normal;
}

.pf-tagline {
	font-family: var(--pf-mono);
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pf-text-faint);
	margin: 5px 0 0;
}

.pf-custom-logo-link img {
	max-height: 40px;
	width: auto;
}

.pf-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
}

.pf-nav li {
	margin: 0;
	position: relative;
}

.pf-nav a {
	color: var(--pf-text-dim);
	font-size: 0.85rem;
	text-decoration: none;
}

.pf-nav a:hover,
.pf-nav .current-menu-item > a,
.pf-nav .current_page_item > a {
	color: var(--pf-ember);
	text-decoration: none;
}

.pf-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--pf-surface-2);
	border: 1px solid var(--pf-line-strong);
	border-radius: var(--pf-radius);
	padding: 10px 16px;
	min-width: 190px;
	flex-direction: column;
	gap: 10px;
	z-index: 50;
}

.pf-nav li:hover > .sub-menu,
.pf-nav li:focus-within > .sub-menu {
	display: flex;
}

/* Threat-model bar */

.pf-threatbar {
	background: #1a1e25;
	border-bottom: 1px solid var(--pf-line);
}

.pf-threatbar-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.pf-threatbar-label {
	font-family: var(--pf-mono);
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pf-text-faint);
	margin-right: 6px;
}

.pf-threatbar ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pf-threatbar li {
	margin: 0;
}

.pf-threatbar a {
	display: inline-block;
	font-size: 0.78rem;
	line-height: 1;
	padding: 6px 14px;
	border: 1px solid var(--pf-line-strong);
	border-radius: 20px;
	color: var(--pf-text-mute);
	text-decoration: none;
}

.pf-threatbar a:hover,
.pf-threatbar .current-menu-item > a {
	background: var(--pf-ember-wash);
	border-color: var(--pf-ember);
	color: #f0834f;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   5. Layout
   ---------------------------------------------------------------------- */

.pf-main {
	padding: 44px 0 64px;
	min-height: 50vh;
}

.pf-page-header {
	margin-bottom: 32px;
}

.pf-page-title {
	margin: 6px 0 0;
	font-size: 2rem;
}

.pf-archive-description {
	color: var(--pf-text-dim);
	max-width: var(--pf-measure);
	margin-top: 12px;
}

/* -------------------------------------------------------------------------
   6. Post cards
   ---------------------------------------------------------------------- */

.pf-feed {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
}

.pf-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 34px;
	align-items: center;
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 40px;
}

.pf-lead-media {
	line-height: 0;
	height: 100%;
}

.pf-lead-media .pf-thumb,
.pf-lead-media img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.pf-lead-body {
	padding: 30px 34px 30px 0;
}

.pf-lead-title {
	font-size: 1.85rem;
	line-height: 1.2;
	margin: 12px 0 12px;
}

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

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

.pf-lead-excerpt {
	color: var(--pf-text-dim);
	font-size: 0.98rem;
	margin-bottom: 16px;
}

.pf-lead-more {
	margin-bottom: 18px;
	font-size: 0.9rem;
}

@media (max-width: 860px) {
	.pf-lead {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.pf-lead-body {
		padding: 24px 24px 26px;
	}
}

.pf-card {
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.pf-card-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.pf-card-title {
	font-size: 1.2rem;
	margin: 10px 0 8px;
	line-height: 1.25;
}

.pf-card-title a {
	color: var(--pf-text);
	text-decoration: none;
}

.pf-card-title a:hover {
	color: var(--pf-accent);
	text-decoration: none;
}

.pf-card-excerpt {
	font-size: 0.92rem;
	color: var(--pf-text-dim);
	line-height: 1.6;
	margin: 0 0 16px;
}

.pf-card-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

/* Featured image: ember rule plus touchmark, applied in CSS so authors
   do not have to burn them into every file. */

.pf-thumb {
	position: relative;
	display: block;
	line-height: 0;
	background: var(--pf-surface-2);
}

.pf-thumb img {
	width: 100%;
	height: auto;
}

.pf-thumb::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 33%;
	height: 4px;
	background: var(--pf-accent);
}

.pf-touchmark {
	position: absolute;
	right: 4%;
	bottom: 6%;
	width: 6%;
	min-width: 26px;
	max-width: 46px;
	height: auto;
	pointer-events: none;
}

.pf-touchmark path,
.pf-touchmark text {
	fill: none;
	stroke: var(--pf-ember);
	stroke-width: 6;
}

.pf-touchmark text {
	fill: var(--pf-ember);
	stroke: none;
	font-family: var(--pf-display);
	font-weight: 700;
}

/* -------------------------------------------------------------------------
   7. Freshness stamp
   ---------------------------------------------------------------------- */

.pf-stamp {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--pf-mono);
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pf-text-mute);
}

.pf-stamp::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}

.pf-stamp.is-fresh { color: var(--pf-green); }
.pf-stamp.is-ageing { color: var(--pf-amber); }
.pf-stamp.is-stale { color: var(--pf-ember); }

/* -------------------------------------------------------------------------
   8. Single post
   ---------------------------------------------------------------------- */

.pf-entry-header {
	margin-bottom: 26px;
}

.pf-entry-title {
	font-size: 2.6rem;
	margin: 10px 0 14px;
}

.pf-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-family: var(--pf-mono);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pf-text-faint);
}

.pf-entry-meta a {
	color: var(--pf-text-mute);
}

.pf-featured {
	margin: 0 0 32px;
	border-radius: 10px;
	overflow: hidden;
}

.pf-entry-content {
	font-size: 1.06rem;
}

.pf-entry-content > * {
	max-width: var(--pf-measure);
	margin-left: auto;
	margin-right: auto;
}

.pf-entry-content > .alignwide,
.pf-entry-content > .alignfull,
.pf-entry-content > .pf-scorecard,
.pf-entry-content > figure.wp-block-image.alignwide,
.pf-entry-content > figure.wp-block-image.alignfull {
	max-width: 100%;
}

.pf-entry-footer {
	max-width: var(--pf-measure);
	margin: 40px auto 0;
	padding-top: 22px;
	border-top: 1px solid var(--pf-line);
}

.pf-tags a {
	display: inline-block;
	font-family: var(--pf-mono);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 12px;
	border: 1px solid var(--pf-line-strong);
	border-radius: 20px;
	margin: 0 6px 8px 0;
	color: var(--pf-text-mute);
	text-decoration: none;
}

.pf-tags a:hover {
	border-color: var(--pf-accent);
	color: var(--pf-accent);
	text-decoration: none;
}

/* Disclosure block */

.pf-disclosure {
	border-left: 2px solid var(--pf-ember);
	background: var(--pf-ember-wash);
	padding: 14px 18px;
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--pf-accent-text);
	margin: 0 auto 30px;
	max-width: var(--pf-measure);
}

/* -------------------------------------------------------------------------
   9. Scorecard shortcode
   ---------------------------------------------------------------------- */

.pf-scorecard {
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: 10px;
	padding: 22px 24px 8px;
	margin: 34px auto;
	max-width: var(--pf-measure);
}

.pf-scorecard-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.pf-scorecard-title {
	font-family: var(--pf-mono);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pf-text-mute);
	margin: 0;
}

.pf-scorecard-method {
	font-family: var(--pf-mono);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
}

.pf-scorecard table {
	margin: 0;
}

.pf-scorecard th,
.pf-scorecard td {
	padding: 11px 0;
	border-bottom: 1px solid var(--pf-surface-2);
}

.pf-scorecard tr:last-child th,
.pf-scorecard tr:last-child td {
	border-bottom: 0;
}

.pf-scorecard th {
	font-family: var(--pf-body);
	font-size: 0.92rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--pf-text-dim);
	font-weight: 400;
}

.pf-scorecard td {
	font-family: var(--pf-mono);
	font-size: 0.95rem;
	text-align: right;
	color: var(--pf-text);
	white-space: nowrap;
}

.pf-scorecard td.is-fail { color: var(--pf-ember); }
.pf-scorecard td.is-pass { color: var(--pf-green); }

/* Metric tiles */

.pf-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 30px auto;
	max-width: var(--pf-measure);
}

.pf-metric {
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	padding: 14px 16px;
}

.pf-metric-label {
	font-size: 0.76rem;
	color: var(--pf-text-mute);
	margin: 0 0 4px;
	line-height: 1.3;
}

.pf-metric-value {
	font-family: var(--pf-mono);
	font-size: 1.5rem;
	line-height: 1.1;
	margin: 0;
}

.pf-metric-unit {
	font-size: 0.7rem;
	color: var(--pf-text-faint);
}

.pf-metric.is-fail .pf-metric-value { color: var(--pf-ember); }

/* -------------------------------------------------------------------------
   10. Paper reading mode
   ---------------------------------------------------------------------- */

body.pf-paper {
	background: var(--pf-paper);
	color: var(--pf-ink);
}

body.pf-paper .pf-main {
	background: var(--pf-paper);
}

body.pf-paper h1,
body.pf-paper h2,
body.pf-paper h3,
body.pf-paper h4,
body.pf-paper h5,
body.pf-paper h6,
body.pf-paper .pf-entry-title {
	color: var(--pf-ink);
}

body.pf-paper .pf-entry-content {
	color: var(--pf-ink-dim);
}

body.pf-paper .pf-entry-meta,
body.pf-paper .pf-meta {
	color: var(--pf-ink-mute);
}

body.pf-paper .pf-entry-meta a,
body.pf-paper .pf-tags a {
	color: #6a6459;
}

body.pf-paper a {
	color: #1d6f88;
}

body.pf-paper blockquote {
	color: var(--pf-ink);
	border-left-color: var(--pf-ember);
}

body.pf-paper code,
body.pf-paper pre {
	background: #ebe7dd;
	color: var(--pf-ink);
	border-color: var(--pf-paper-line);
}

body.pf-paper hr,
body.pf-paper .pf-entry-footer,
body.pf-paper th,
body.pf-paper td {
	border-color: var(--pf-paper-line);
}

body.pf-paper .pf-tags a {
	border-color: var(--pf-paper-line);
}

body.pf-paper .pf-scorecard,
body.pf-paper .pf-metric {
	background: var(--pf-paper-2);
	border-color: var(--pf-paper-line);
}

body.pf-paper .pf-scorecard th {
	color: var(--pf-ink-dim);
}

body.pf-paper .pf-scorecard td,
body.pf-paper .pf-metric-value {
	color: var(--pf-ink);
}

body.pf-paper .pf-scorecard th,
body.pf-paper .pf-scorecard td {
	border-bottom-color: #e6e1d5;
}

body.pf-paper .pf-comments {
	border-top-color: var(--pf-paper-line);
}

body.pf-paper .pf-comment {
	border-bottom-color: var(--pf-paper-line);
}

body.pf-paper input[type="text"],
body.pf-paper input[type="email"],
body.pf-paper input[type="url"],
body.pf-paper input[type="search"],
body.pf-paper textarea {
	background: var(--pf-paper-2);
	border-color: var(--pf-paper-line);
	color: var(--pf-ink);
}

/* -------------------------------------------------------------------------
   11. Navigation, pagination, forms
   ---------------------------------------------------------------------- */

.pf-pagination {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--pf-line);
}

.pf-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.pf-pagination .page-numbers {
	font-family: var(--pf-mono);
	font-size: 0.82rem;
	padding: 8px 14px;
	border: 1px solid var(--pf-line-strong);
	border-radius: var(--pf-radius);
	color: var(--pf-text-dim);
	text-decoration: none;
}

.pf-pagination .page-numbers:hover,
.pf-pagination .page-numbers.current {
	background: var(--pf-ember);
	border-color: var(--pf-ember);
	color: var(--pf-base);
	text-decoration: none;
}

.pf-post-nav {
	max-width: var(--pf-measure);
	margin: 44px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--pf-line);
}

.pf-post-nav .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: space-between;
}

.pf-post-nav .nav-previous,
.pf-post-nav .nav-next {
	flex: 1 1 240px;
}

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

.pf-post-nav a {
	color: var(--pf-text);
	font-family: var(--pf-display);
	font-size: 1.05rem;
	line-height: 1.3;
	text-decoration: none;
}

.pf-post-nav a:hover {
	color: var(--pf-accent);
	text-decoration: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	background: var(--pf-surface);
	border: 1px solid var(--pf-line-strong);
	border-radius: var(--pf-radius);
	color: var(--pf-text);
	font-family: inherit;
	font-size: 0.95rem;
	padding: 11px 14px;
}

textarea {
	min-height: 150px;
	line-height: 1.6;
}

input[type="submit"],
button,
.pf-button {
	display: inline-block;
	background: var(--pf-ember);
	border: 1px solid var(--pf-ember);
	border-radius: var(--pf-radius);
	color: var(--pf-base);
	font-family: var(--pf-body);
	font-size: 0.9rem;
	font-weight: 500;
	padding: 11px 22px;
	cursor: pointer;
	text-decoration: none;
	width: auto;
}

input[type="submit"]:hover,
button:hover,
.pf-button:hover {
	background: var(--pf-ember-dim);
	border-color: var(--pf-ember-dim);
	text-decoration: none;
}

.pf-search-form {
	display: flex;
	gap: 10px;
	max-width: 460px;
}

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

/* -------------------------------------------------------------------------
   12. Comments
   ---------------------------------------------------------------------- */

.pf-comments {
	max-width: var(--pf-measure);
	margin: 52px auto 0;
	padding-top: 30px;
	border-top: 1px solid var(--pf-line);
}

.pf-comments-title {
	font-size: 1.3rem;
	margin-top: 0;
}

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

.pf-comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 26px;
}

.pf-comment {
	border-bottom: 1px solid var(--pf-line);
	padding: 18px 0;
	margin: 0;
}

.pf-comment-meta {
	font-family: var(--pf-mono);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pf-text-faint);
	margin-bottom: 8px;
}

.pf-comment-author {
	color: var(--pf-text);
}

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

.comment-respond label {
	display: block;
	font-family: var(--pf-mono);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pf-text-mute);
	margin-bottom: 6px;
}

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

.comment-form .comment-form-cookies-consent label,
.comment-form .comment-form-cookies-consent input {
	display: inline;
	width: auto;
}

/* -------------------------------------------------------------------------
   13. Footer
   ---------------------------------------------------------------------- */

.pf-footer {
	background: var(--pf-surface);
	border-top: 1px solid var(--pf-line-strong);
	padding: 42px 0 34px;
	color: var(--pf-text-mute);
	font-size: 0.88rem;
}

body.pf-paper .pf-footer {
	background: var(--pf-base);
	color: var(--pf-text-mute);
}

.pf-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
	margin-bottom: 32px;
}

.pf-footer h2,
.pf-footer h3,
.pf-footer .widget-title {
	font-family: var(--pf-mono);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pf-text-faint);
	font-weight: 400;
	margin: 0 0 14px;
}

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

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

.pf-footer a {
	color: var(--pf-text-dim);
}

.pf-colophon {
	border-top: 1px solid var(--pf-line);
	padding-top: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	font-family: var(--pf-mono);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pf-text-faint);
}

/* -------------------------------------------------------------------------
   14. WordPress core classes
   ---------------------------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0.4rem 1.6rem 1.2rem 0;
}

.alignright {
	float: right;
	margin: 0.4rem 0 1.2rem 1.6rem;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-element-caption,
figcaption {
	font-family: var(--pf-mono);
	font-size: 0.7rem;
	line-height: 1.5;
	letter-spacing: 0.03em;
	color: var(--pf-text-mute);
	margin-top: 8px;
}

body.pf-paper .wp-caption-text,
body.pf-paper .wp-element-caption,
body.pf-paper figcaption {
	color: var(--pf-ink-mute);
}

.sticky .pf-card-title::before {
	content: "\2605";
	color: var(--pf-ember);
	margin-right: 8px;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin-bottom: 1.4rem;
}

.gallery-item {
	margin: 0;
}

.bypostauthor > .pf-comment .pf-comment-author::after {
	content: " \00b7 author";
	color: var(--pf-ember);
}

/* -------------------------------------------------------------------------
   15. Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 782px) {
	body {
		font-size: 17px;
	}

	.pf-entry-title {
		font-size: 1.9rem;
	}

	h1 {
		font-size: 1.9rem;
	}

	.pf-masthead-inner {
		align-items: flex-start;
	}

	.pf-nav ul {
		gap: 14px;
	}

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

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.pf-masthead,
	.pf-threatbar,
	.pf-footer,
	.pf-comments,
	.pf-post-nav {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
