/*
Theme Name: The Deploy Desk
Theme URI: https://thedeploydesk.com
Author: The Deploy Desk
Description: A fast, clean tech blog theme with dark/light mode, code-friendly typography, copy-to-clipboard code blocks, reading time, reading progress bar and related posts. No external fonts or libraries (GDPR-friendly).
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thedeploydesk
Tags: blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode
*/

/* ------------------------------------------------------------
   1. Design tokens
------------------------------------------------------------ */
:root {
	--bg: #ffffff;
	--bg-soft: #f6f7f9;
	--bg-code: #0f1419;
	--surface: #ffffff;
	--border: #e4e7ec;
	--text: #111827;
	--text-soft: #4b5563;
	--text-muted: #6b7280;
	--accent: #15803d;
	--accent-strong: #166534;
	--accent-soft: #dcfce7;
	--code-text: #e6edf3;
	--inline-code-bg: #eef1f4;
	--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);

	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;

	--radius: 12px;
	--radius-sm: 8px;
	--wrap: 1160px;
	--measure: 720px;
}

[data-theme="dark"] {
	--bg: #0b0f14;
	--bg-soft: #121821;
	--bg-code: #070a0e;
	--surface: #121821;
	--border: #222b37;
	--text: #e6edf3;
	--text-soft: #b4bfcc;
	--text-muted: #8b98a8;
	--accent: #4ade80;
	--accent-strong: #86efac;
	--accent-soft: rgba(74, 222, 128, .12);
	--code-text: #e6edf3;
	--inline-code-bg: #1b2430;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

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

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

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

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

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	letter-spacing: -0.015em;
	margin: 2em 0 .6em;
	font-weight: 700;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto;
	background: var(--surface); color: var(--text);
	padding: .75rem 1rem; z-index: 1000; top: .5rem; left: .5rem;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: calc(var(--measure) + 48px); }

/* ------------------------------------------------------------
   3. Header
------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 64px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 17px;
	color: var(--text);
	white-space: nowrap;
}
.site-brand:hover { color: var(--text); text-decoration: none; }
.site-brand__prompt { color: var(--accent); }
.site-brand__cursor {
	display: inline-block;
	width: .55em;
	height: 1.05em;
	background: var(--accent);
	vertical-align: -0.15em;
	margin-left: 2px;
	animation: tdd-blink 1.1s steps(1) infinite;
}
@keyframes tdd-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .site-brand__cursor { animation: none; } }

.site-brand__mark { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.site-brand__mark .mark-bg { fill: #0b0f14; }
[data-theme="dark"] .site-brand__mark .mark-bg { fill: #121821; stroke: #222b37; stroke-width: 2; }
.site-brand__mark .mark-fg { stroke: #4ade80; fill: none; }
.site-brand__mark .mark-cursor { fill: #4ade80; }
.site-brand__word { font-weight: 800; letter-spacing: -0.03em; }
.site-brand__word em { font-style: normal; color: var(--accent); }
.custom-logo-link img { max-height: 36px; width: auto; display: block; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-soft);
	font-size: 15px;
	font-weight: 500;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-parent > a {
	color: var(--text);
	background: var(--bg-soft);
	text-decoration: none;
}
.primary-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.primary-nav + .header-actions { margin-left: 0; }
.header-actions:first-child { margin-left: auto; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text-soft);
	cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-toggle { display: none; }

.header-search {
	display: none;
	border-top: 1px solid var(--border);
	padding: 16px 0;
}
.header-search.is-open { display: block; }

.reading-progress {
	position: absolute;
	left: 0; bottom: -1px;
	height: 2px;
	width: 0;
	background: var(--accent);
	transition: width .1s linear;
}

@media (max-width: 820px) {
	.menu-toggle { display: inline-flex; }
	.primary-nav {
		display: none;
		position: absolute;
		top: 64px; left: 0; right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		padding: 12px 24px 20px;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; }
	.header-actions { margin-left: auto; }
}

/* ------------------------------------------------------------
   4. Search form
------------------------------------------------------------ */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	font: inherit;
	font-size: 16px;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}
.search-field:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.btn,
.search-submit,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--accent);
	border: 0;
	border-radius: var(--radius-sm);
	cursor: pointer;
}
[data-theme="dark"] .btn,
[data-theme="dark"] .search-submit,
[data-theme="dark"] .comment-form .submit { color: #04130a; }
.btn:hover, .search-submit:hover, .comment-form .submit:hover { background: var(--accent-strong); text-decoration: none; color: #fff; }
[data-theme="dark"] .btn:hover,
[data-theme="dark"] .search-submit:hover,
[data-theme="dark"] .comment-form .submit:hover { color: #04130a; }

/* ------------------------------------------------------------
   5. Hero & listing
------------------------------------------------------------ */
.hero { padding: 72px 0 40px; }
.hero__eyebrow {
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--accent);
	margin: 0 0 16px;
}
.hero__title {
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin: 0 0 18px;
	max-width: 820px;
}
.hero__text { font-size: 19px; color: var(--text-soft); max-width: 640px; margin: 0; }

.archive-header { padding: 56px 0 24px; }
.archive-header__label {
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--accent);
	margin: 0 0 8px;
}
.archive-header__title { font-size: clamp(30px, 4vw, 44px); margin: 0; letter-spacing: -0.025em; }
.archive-header__desc { color: var(--text-soft); max-width: 640px; margin-top: 12px; }
.archive-header__desc p { margin: 0; }

.section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-muted);
	margin: 48px 0 24px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Featured (latest) post */
.featured {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 40px;
	align-items: center;
	padding: 8px 0 8px;
}
.featured__media {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-soft);
	border: 1px solid var(--border);
}
.featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.featured:hover .featured__media img { transform: scale(1.02); }
.featured__title { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 14px; letter-spacing: -0.025em; }
.featured__title a { color: var(--text); }
.featured__excerpt { color: var(--text-soft); margin: 0 0 18px; }
@media (max-width: 820px) { .featured { grid-template-columns: 1fr; gap: 20px; } }

/* Card grid */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 28px;
}
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; }
.card__media {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	margin-bottom: 16px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }

/* Placeholder when a post has no featured image */
.media-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-mono);
	font-size: 15px;
	color: var(--text-muted);
	background:
		linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
		var(--bg-soft);
}
.media-placeholder span { background: var(--bg-soft); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); }
.media-placeholder span::before { content: "$ "; color: var(--accent); }

.card__title { font-size: 20px; margin: 8px 0 8px; letter-spacing: -0.015em; }
.card__title a { color: var(--text); }
.card__title a:hover { color: var(--accent); text-decoration: none; }
.card__excerpt { color: var(--text-soft); font-size: 15.5px; margin: 0 0 12px; }

.badge {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 3px 9px;
	border-radius: 999px;
}
.badge:hover { text-decoration: none; color: var(--accent-strong); }

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 14px;
	color: var(--text-muted);
	margin-top: auto;
}
.meta a { color: var(--text-muted); }
.meta__sep::before { content: "·"; }

/* Pagination */
.pagination { margin: 56px 0 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text-soft);
	font-family: var(--font-mono);
	font-size: 14px;
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .pagination .page-numbers.current { color: #04130a; }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.no-results { padding: 40px 0 80px; color: var(--text-soft); }
.no-results .search-form { max-width: 520px; margin-top: 24px; }

/* ------------------------------------------------------------
   6. Single post
------------------------------------------------------------ */
.entry-header { padding-top: 56px; padding-bottom: 28px; }
.entry-title {
	font-size: clamp(32px, 4.6vw, 50px);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 14px 0 18px;
}
.entry-lead { font-size: 20px; color: var(--text-soft); margin: 0 0 22px; }
.entry-header .meta { font-size: 15px; }
.meta__avatar img { border-radius: 50%; display: block; }
.meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }

.entry-hero {
	max-width: 1000px;
	margin: 8px auto 48px;
	padding: 0 24px;
}
.entry-hero img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.entry-hero figcaption { font-size: 14px; color: var(--text-muted); text-align: center; margin-top: 10px; }

/* Content typography */
.entry-content { font-size: 18px; line-height: 1.78; }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2 { font-size: 30px; margin-top: 2.2em; scroll-margin-top: 88px; }
.entry-content h3 { font-size: 23px; margin-top: 1.9em; scroll-margin-top: 88px; }
.entry-content h4 { font-size: 19px; scroll-margin-top: 88px; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption,
.entry-content .wp-element-caption { font-size: 14px; color: var(--text-muted); text-align: center; margin-top: 8px; }

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-left: 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--accent);
	color: var(--text-soft);
	font-size: 19px;
}
.entry-content blockquote cite { display: block; font-size: 14px; font-style: normal; color: var(--text-muted); margin-top: 8px; }

.entry-content .wp-block-pullquote { border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); padding: 2em 0; }

.alignwide { max-width: 1000px; margin-left: calc((var(--measure) - 1000px) / 2); margin-right: calc((var(--measure) - 1000px) / 2); width: 1000px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
@media (max-width: 1048px) { .alignwide { width: auto; margin-left: 0; margin-right: 0; max-width: 100%; } }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }

/* Tables */
.entry-content table,
.entry-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15.5px;
}
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--bg-soft); font-weight: 600; }

/* Inline code */
code, kbd, samp {
	font-family: var(--font-mono);
	font-size: .88em;
}
:not(pre) > code {
	background: var(--inline-code-bg);
	color: var(--text);
	padding: .15em .4em;
	border-radius: 5px;
	border: 1px solid var(--border);
	word-break: break-word;
}
kbd {
	padding: .1em .45em;
	border: 1px solid var(--border);
	border-bottom-width: 2px;
	border-radius: 5px;
	background: var(--bg-soft);
}

/* Code blocks */
.code-block { position: relative; margin-bottom: 1.6em; }
.entry-content pre,
.wp-block-code,
.wp-block-preformatted {
	background: var(--bg-code);
	color: var(--code-text);
	font-family: var(--font-mono);
	font-size: 14.5px;
	line-height: 1.65;
	padding: 20px 22px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	overflow-x: auto;
	tab-size: 4;
	white-space: pre;
}
.entry-content pre code,
.wp-block-code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.code-block > pre { margin: 0; }
.code-block__lang {
	position: absolute;
	top: 10px; left: 16px;
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #7d8b99;
	pointer-events: none;
}
.code-block--has-lang > pre { padding-top: 38px; }
.copy-btn {
	position: absolute;
	top: 8px; right: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: #c9d4df;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 6px;
	padding: 4px 10px;
	cursor: pointer;
	opacity: 0;
	transition: opacity .15s ease, background .15s ease;
}
.code-block:hover .copy-btn,
.copy-btn:focus-visible,
.copy-btn.is-copied { opacity: 1; }
.copy-btn:hover { background: rgba(255, 255, 255, .12); }
.copy-btn.is-copied { color: #4ade80; border-color: rgba(74, 222, 128, .4); }
@media (hover: none) { .copy-btn { opacity: 1; } }

/* Callout helper: add class "is-style-note" / "is-style-warning" to a paragraph or group */
.entry-content .is-style-note,
.entry-content .is-style-warning,
.entry-content .is-style-tip {
	padding: 16px 20px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	border-left-width: 4px;
	background: var(--bg-soft);
	font-size: 16.5px;
}
.entry-content .is-style-note { border-left-color: #3b82f6; }
.entry-content .is-style-tip { border-left-color: var(--accent); }
.entry-content .is-style-warning { border-left-color: #f59e0b; }

/* Table of contents */
.toc {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px 22px;
	margin: 0 0 2.2em;
	font-size: 15.5px;
}
.toc__title {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-muted);
	margin: 0 0 10px;
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; }
.toc li.toc--h3 { margin-left: 1em; list-style-type: circle; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* Footer of a post */
.entry-footer { margin-top: 48px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--text-soft);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px 12px;
}
.tags a::before { content: "#"; color: var(--accent); }
.tags a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.share {
	display: flex; align-items: center; gap: 8px;
	margin-top: 28px;
	font-size: 14px; color: var(--text-muted);
}
.share a, .share button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border);
	color: var(--text-soft);
	background: transparent;
	cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.share svg { width: 16px; height: 16px; }

.author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 40px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-soft);
}
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box__label { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.author-box__name { font-size: 18px; margin: 2px 0 6px; }
.author-box__bio { margin: 0; color: var(--text-soft); font-size: 15.5px; }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 40px;
}
.post-nav a {
	display: block;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-weight: 600;
	line-height: 1.4;
}
.post-nav a:hover { border-color: var(--accent); text-decoration: none; }
.post-nav span { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.post-nav__next { text-align: right; grid-column: 2; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { grid-column: 1; } }

.related { border-top: 1px solid var(--border); margin-top: 72px; padding-top: 8px; }

/* ------------------------------------------------------------
   7. Comments
------------------------------------------------------------ */
.comments-area { margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--border); }
.comments-title { font-size: 24px; margin-top: 40px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .children { list-style: none; padding-left: 28px; border-left: 2px solid var(--border); }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.comment-meta img { border-radius: 50%; }
.comment-author .fn { color: var(--text); font-weight: 600; font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--text-muted); }
.comment-content { font-size: 16px; }
.reply a { font-family: var(--font-mono); font-size: 13px; }
.comment-form p { margin: 0 0 16px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; color: var(--text-soft); }

/* ------------------------------------------------------------
   8. Pages, 404
------------------------------------------------------------ */
.error-404 { padding: 96px 0 120px; text-align: center; }
.error-404__code {
	font-family: var(--font-mono);
	font-size: clamp(64px, 12vw, 120px);
	font-weight: 700;
	color: var(--accent);
	line-height: 1;
	margin: 0;
}
.error-404__term {
	display: inline-block;
	text-align: left;
	font-family: var(--font-mono);
	font-size: 14px;
	background: var(--bg-code);
	color: var(--code-text);
	padding: 16px 20px;
	border-radius: var(--radius);
	margin: 28px 0;
}
.error-404__term .ok { color: #4ade80; }
.error-404__term .err { color: #f87171; }
.error-404 .search-form { max-width: 480px; margin: 0 auto 24px; }

/* ------------------------------------------------------------
   9. Footer
------------------------------------------------------------ */
.site-footer {
	margin-top: 96px;
	border-top: 1px solid var(--border);
	background: var(--bg-soft);
	font-size: 15px;
	color: var(--text-soft);
}
.site-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	padding: 48px 24px;
}
.site-footer__about p { margin: 12px 0 0; max-width: 420px; }
.site-footer h2 {
	font-family: var(--font-mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-muted);
	margin: 4px 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom {
	border-top: 1px solid var(--border);
	padding: 18px 24px;
	font-size: 13.5px;
	color: var(--text-muted);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.site-footer__bottom code { font-size: 12.5px; }
.social { display: flex; gap: 6px; margin-top: 16px; }
.social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	color: var(--text-soft);
	background: var(--bg);
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social svg { width: 17px; height: 17px; }
@media (max-width: 820px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }

/* ------------------------------------------------------------
   10. WordPress core classes
------------------------------------------------------------ */
.sticky .badge::after { content: " · pinned"; }
.bypostauthor > .comment-body .fn::after { content: " (author)"; font-weight: 400; color: var(--accent); font-size: 13px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--text-muted); text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.wp-block-button__link { border-radius: var(--radius-sm); }
.wp-block-separator { border: 0; border-top: 1px solid var(--border); }
.page-links { margin: 2em 0; font-family: var(--font-mono); font-size: 14px; }
