/* ==========================================================================
   JeffXL Terminal — single posts, pages, code blocks, TOC and comments.
   Loaded on singular views only.
   ========================================================================== */

/* Entry header ------------------------------------------------------------ */
.entry-header,
.entry-footer,
.post-navigation,
.comments-area {
	max-width: var(--measure);
	margin-inline: auto;
}

.entry-header {
	margin-bottom: 2rem;
}

.entry-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 1rem;
	color: var(--muted);
	font: 500 0.82rem/1.4 var(--font-mono);
}

.entry-crumbs a {
	color: var(--muted);
	text-decoration: none;
}

.entry-crumbs a:hover {
	color: var(--accent);
}

.entry-title {
	margin-bottom: 1rem;
	font-size: clamp(1.85rem, 1.2rem + 3vw, 2.75rem);
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	color: var(--muted);
	font: 500 0.82rem/1.4 var(--font-mono);
}

.entry-meta .avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
}

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

/* Same block as the header, so the image's left edge lines up with the title. */
.entry-thumb {
	max-width: var(--measure);
	margin: 0 auto 2.5rem;
}

.entry-thumb img {
	display: block;
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

/* Layout with optional sticky TOC ----------------------------------------- */
.entry-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	max-width: var(--measure);
	margin-inline: auto;
}

@media (min-width: 1200px) {
	/* Keep header, footer, navigation and comments on the same left edge as the text column. */
	.single-container:has(.toc:not([hidden])) :is(.entry-header, .entry-footer, .post-navigation, .comments-area) {
		max-width: calc(var(--measure) + 230px + 3rem);
		padding-right: calc(230px + 3rem);
	}

	/* The image spans the text and TOC columns: left edge on the text, right edge on the TOC. */
	.single-container:has(.toc:not([hidden])) .entry-thumb {
		max-width: calc(var(--measure) + 230px + 3rem);
	}

	.entry-layout:has(> .toc:not([hidden])) {
		grid-template-columns: minmax(0, var(--measure)) 230px;
		column-gap: 3rem;
		max-width: calc(var(--measure) + 230px + 3rem);
	}

	.entry-layout > .toc {
		position: sticky;
		top: calc(var(--header-h) + 24px);
		grid-row: 1;
		grid-column: 2;
		align-self: start;
		max-height: calc(100vh - var(--header-h) - 48px);
		overflow-y: auto;
	}
}

.toc details {
	padding: 0.8rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.toc summary {
	color: var(--muted);
	font: 600 0.75rem/1.4 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

.toc summary::-webkit-details-marker {
	display: none;
}

.toc summary::before {
	content: "▸ ";
	color: var(--accent);
}

.toc details[open] summary::before {
	content: "▾ ";
}

.toc ol {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.toc li {
	margin: 0.15rem 0;
}

.toc .toc-h3 {
	padding-left: 0.85rem;
}

.toc a {
	display: block;
	padding: 0.2rem 0 0.2rem 0.65rem;
	border-left: 2px solid var(--border);
	color: var(--muted);
	line-height: 1.4;
	text-decoration: none;
}

.toc a:hover {
	color: var(--text-strong);
}

.toc a.is-active {
	border-left-color: var(--accent);
	color: var(--accent);
}

@media (min-width: 1200px) {
	.toc details {
		padding: 0;
		border: 0;
		background: none;
	}
}

/* Prose ------------------------------------------------------------------- */
.prose {
	min-width: 0;
	color: var(--text);
	font-size: 1.0625rem;
	line-height: 1.78;
	overflow-wrap: break-word;
}

.prose > * {
	margin-block: 0;
}

.prose > * + * {
	margin-top: 1.25em;
}

.prose h2 {
	margin-top: 2.4em;
	font-size: 1.55rem;
}

.prose h3 {
	margin-top: 2em;
	font-size: 1.25rem;
}

.prose h4 {
	margin-top: 1.75em;
	font-size: 1.05rem;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
	margin-top: 0.75em;
}

.prose h2::before,
.prose h3::before {
	color: var(--accent);
	font-family: var(--font-mono);
	font-weight: 500;
}

.prose h2::before {
	content: "## ";
	content: "## " / "";
}

.prose h3::before {
	content: "### ";
	content: "### " / "";
}

.prose a {
	color: var(--accent);
	text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.prose a:hover {
	text-decoration-color: currentColor;
}

.prose strong {
	color: var(--text-strong);
}

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

.prose li + li {
	margin-top: 0.35em;
}

.prose ul li::marker {
	color: var(--accent);
}

.prose ol li::marker {
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 0.9em;
}

.prose blockquote {
	margin-inline: 0;
	padding: 0.9rem 1.2rem;
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--bg-elev);
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.prose blockquote cite {
	color: var(--muted);
	font-size: 0.85rem;
	font-style: normal;
}

.prose hr {
	margin-block: 2.5em;
	border: 0;
	border-top: 1px dashed var(--border-strong);
}

.prose img {
	border-radius: var(--radius-sm);
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption,
.prose .wp-element-caption {
	margin-top: 0.6rem;
	color: var(--muted);
	font-size: 0.85rem;
	text-align: center;
}

.prose :not(pre) > code {
	padding: 0.12em 0.4em;
	border: 1px solid var(--border);
	border-radius: 5px;
	background: var(--bg-soft);
	color: var(--text-strong);
	font: 0.86em var(--font-mono);
	overflow-wrap: anywhere;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.prose > table,
.prose .wp-block-table {
	display: block;
	overflow-x: auto;
}

.prose .wp-block-table table {
	min-width: 100%;
}

.prose th,
.prose td {
	padding: 0.6rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.prose th {
	color: var(--muted);
	font: 600 0.78rem/1.4 var(--font-mono);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.prose iframe,
.prose embed,
.prose object {
	max-width: 100%;
}

.prose .alignleft {
	float: left;
	max-width: 50%;
	margin: 0.3em 1.5em 1em 0;
}

.prose .alignright {
	float: right;
	max-width: 50%;
	margin: 0.3em 0 1em 1.5em;
}

.prose .aligncenter {
	display: block;
	margin-inline: auto;
}

.prose .alignwide,
.prose .alignfull {
	width: 100%;
}

.prose::after {
	content: "";
	display: table;
	clear: both;
}

.prose h1 {
	margin-top: 1.5em;
	font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2rem);
	line-height: 1.2;
}

/* Phones: reading mode — larger text, shorter headings, readable metadata. */
@media (max-width: 719px) {
	.prose {
		font-size: 1.125rem;
		line-height: 1.72;
	}

	.prose > * + *,
	.prose p + p {
		margin-top: 1.1em;
	}

	.prose h1 {
		font-size: 1.5rem;
	}

	.prose h2 {
		margin-top: 2em;
		font-size: 1.35rem;
		line-height: 1.3;
	}

	.prose h3 {
		font-size: 1.18rem;
		line-height: 1.35;
	}

	.prose ul,
	.prose ol {
		padding-left: 1.2em;
	}

	.prose li + li {
		margin-top: 0.5em;
	}

	.prose figcaption,
	.prose .wp-element-caption,
	.prose blockquote cite {
		font-size: 0.9rem;
	}

	.prose pre {
		font-size: 0.875rem;
	}

	.entry-title {
		font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.1rem);
		line-height: 1.2;
	}

	.entry-meta,
	.entry-crumbs {
		font-size: 0.875rem;
	}

	.author-bio,
	.comment-meta {
		font-size: 0.95rem;
	}
}

@media (max-width: 559px) {
	.prose .alignleft,
	.prose .alignright {
		float: none;
		max-width: 100%;
		margin: 0 0 1em;
	}
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 2rem;
	font-family: var(--font-mono);
}

/* Code blocks (always dark, like a terminal) ------------------------------- */
.prose pre {
	margin-block: 1.6em;
	padding: 1rem 1.1rem;
	overflow-x: auto;
	border: 1px solid var(--code-border);
	border-radius: var(--radius);
	background: var(--code-bg);
	color: var(--code-text);
	font: 0.86rem/1.65 var(--font-mono);
	tab-size: 2;
	-webkit-overflow-scrolling: touch;
}

.prose pre code,
.prose .wp-block-code code {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	white-space: pre;
	overflow-wrap: normal;
}

.code-block {
	margin-block: 1.6em;
	overflow: hidden;
	border: 1px solid var(--code-border);
	border-radius: var(--radius);
	background: var(--code-bg);
}

.prose > .code-block + * {
	margin-top: 1.6em;
}

.code-block pre,
.prose .code-block pre {
	margin: 0;
	border: 0;
	border-radius: 0;
}

.code-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.45rem 0.6rem 0.45rem 0.85rem;
	border-bottom: 1px solid var(--code-border);
	background: var(--code-bar);
}

.code-bar .dots i {
	width: 10px;
	height: 10px;
}

.code-lang {
	margin-right: auto;
	color: #8b949e;
	font: 500 0.72rem/1 var(--font-mono);
	text-transform: lowercase;
}

.code-copy {
	padding: 0.4rem 0.65rem;
	border: 1px solid #30363d;
	border-radius: 5px;
	background: transparent;
	color: #c9d1d9;
	font: 500 0.72rem/1 var(--font-mono);
	cursor: pointer;
}

.code-copy:hover {
	border-color: #4ade80;
	color: #4ade80;
}

.hljs {
	background: transparent;
	color: var(--code-text);
}

.hljs-comment,
.hljs-quote {
	color: #7d8590;
	font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-doctag,
.hljs-meta .hljs-keyword {
	color: #c792ea;
}

.hljs-string,
.hljs-regexp,
.hljs-meta .hljs-string {
	color: #a5e075;
}

.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet {
	color: #f78c6c;
}

.hljs-title,
.hljs-title.function_,
.hljs-section {
	color: #82aaff;
}

.hljs-built_in,
.hljs-type,
.hljs-title.class_ {
	color: #ffcb6b;
}

.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-selector-class,
.hljs-selector-id {
	color: #89ddff;
}

.hljs-variable,
.hljs-template-variable,
.hljs-params {
	color: #f2c48d;
}

.hljs-tag,
.hljs-name,
.hljs-meta {
	color: #ff757f;
}

.hljs-addition {
	background: rgb(46 160 67 / 0.18);
	color: #7ee787;
}

.hljs-deletion {
	background: rgb(248 81 73 / 0.18);
	color: #ffa198;
}

.hljs-emphasis {
	font-style: italic;
}

.hljs-strong {
	font-weight: 700;
}

/* Entry footer ------------------------------------------------------------ */
.entry-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px dashed var(--border);
}

.author-box {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.author-box .avatar {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
}

.author-name {
	margin: 0 0 0.25rem;
	font: 700 0.95rem/1.4 var(--font-mono);
}

.author-name a {
	color: var(--text-strong);
	text-decoration: none;
}

.author-bio {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.post-navigation {
	margin-top: 2.5rem;
}

.post-navigation .nav-links {
	display: grid;
	gap: 1rem;
	justify-content: stretch;
}

@media (min-width: 640px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.post-navigation .nav-next {
		grid-column: 2;
		text-align: right;
	}
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
	text-decoration: none;
}

.post-navigation a:hover {
	border-color: var(--accent);
}

.nav-label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--muted);
	font: 500 0.75rem/1 var(--font-mono);
}

.nav-title {
	color: var(--text-strong);
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Comments ---------------------------------------------------------------- */
.comments-area {
	margin-top: 3rem;
}

.comments-title,
.comment-reply-title {
	font: 700 1.05rem/1.3 var(--font-mono);
	letter-spacing: 0;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 0.5rem;
	padding-left: 1rem;
	border-left: 1px dashed var(--border);
}

@media (min-width: 720px) {
	.comment-list .children {
		padding-left: 1.5rem;
	}
}

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

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	font-size: 0.88rem;
}

.comment-author .avatar {
	margin-right: 0.5rem;
	border-radius: 50%;
	vertical-align: middle;
}

.comment-author .fn {
	color: var(--text-strong);
	font-style: normal;
	font-weight: 600;
}

.comment-author .says {
	display: none;
}

.comment-metadata a {
	color: var(--muted);
	font: 500 0.75rem/1.4 var(--font-mono);
	text-decoration: none;
}

.comment-content {
	margin-top: 0.5rem;
	overflow-wrap: break-word;
}

.reply a {
	font: 600 0.75rem/1 var(--font-mono);
	text-decoration: none;
}

.comment-respond {
	margin-top: 2rem;
	padding: 1.25rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.comment-form p {
	margin: 0 0 1rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--muted);
	font: 500 0.8rem/1.4 var(--font-mono);
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
}

.comment-notes,
.logged-in-as {
	color: var(--muted);
	font-size: 0.85rem;
}

/* Terminal sessions (```console blocks): "$" prompt, dimmed output ----------- */
.prose pre.is-console .ps1 {
	color: #4ade80;
	user-select: none;
}

.prose pre.is-console .term-cmd {
	color: var(--code-text);
}

.prose pre.is-console .term-out {
	color: #8b949e;
}

/* Details block (FAQ accordions) --------------------------------------------- */
.prose .wp-block-details {
	margin-block: 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
	transition: border-color 0.15s;
}

.prose .wp-block-details[open],
.prose .wp-block-details:hover {
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.prose .wp-block-details > summary {
	padding: 0.85rem 1rem;
	color: var(--text-strong);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.prose .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.prose .wp-block-details > summary::before {
	content: "+ ";
	content: "+ " / "";
	color: var(--accent);
	font-family: var(--font-mono);
}

.prose .wp-block-details[open] > summary::before {
	content: "− ";
	content: "− " / "";
}

.prose .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 1rem 0.9rem 2.1rem;
	color: var(--text);
}

/* Read mode (phones) -------------------------------------------------------
   Book-like reading toggled by the "Read mode" button: serif text, paper or
   night colors, adjustable size, distractions hidden. main.js sets
   data-read / data-read-tone / data-read-size on <html>. */
.read-fab,
.read-mode {
	display: none;
}

@media (max-width: 719px) {
	.read-fab {
		position: fixed;
		right: var(--gutter);
		bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
		z-index: 40;
		display: inline-flex;
		align-items: center;
		gap: 0.45rem;
		padding: 0.7rem 1rem;
		border: 1px solid var(--border-strong);
		border-radius: 999px;
		background: var(--bg-elev);
		color: var(--text-strong);
		font: 600 0.9rem/1 var(--font-sans);
		box-shadow: var(--shadow);
		cursor: pointer;
	}

	.read-fab .icon {
		color: var(--accent);
	}

	:root[data-read="on"] body.single {
		--read-bg: #f4ecd8;
		--read-text: #3b3024;
		--read-muted: #7c6b56;
		--read-accent: #8a4f1d;
		--read-border: #e0d3b8;
		--read-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
		background: var(--read-bg);
		color: var(--read-text);
		color-scheme: light;
	}

	:root[data-read="on"][data-read-tone="night"] body.single {
		--read-bg: #15130f;
		--read-text: #d8cebd;
		--read-muted: #978b78;
		--read-accent: #d9a066;
		--read-border: #2d2721;
		color-scheme: dark;
	}

	:root[data-read="on"] body.single :is(.site-banner, .site-header, .site-footer, .entry-crumbs, .tag-list, .toc, .entry-footer, .post-navigation, .comments-area, .read-fab) {
		display: none;
	}

	:root[data-read="on"] body.single .read-mode {
		display: block;
	}

	:root[data-read="on"] body.single .site-main {
		padding-top: 1.5rem;
		padding-bottom: 6rem;
	}

	:root[data-read="on"] body.single :is(.entry-title, .prose h1, .prose h2, .prose h3, .prose h4) {
		color: var(--read-text);
		font-family: var(--read-serif);
		letter-spacing: 0;
	}

	:root[data-read="on"] body.single .entry-meta {
		color: var(--read-muted);
	}

	:root[data-read="on"] body.single .entry-author {
		color: var(--read-text);
	}

	:root[data-read="on"] body.single .prose {
		color: var(--read-text);
		font-family: var(--read-serif);
		font-size: 1.1875rem;
		line-height: 1.75;
		text-wrap: pretty;
	}

	:root[data-read="on"][data-read-size="0"] body.single .prose {
		font-size: 1.0625rem;
	}

	:root[data-read="on"][data-read-size="2"] body.single .prose {
		font-size: 1.3125rem;
	}

	:root[data-read="on"][data-read-size="3"] body.single .prose {
		font-size: 1.4375rem;
	}

	:root[data-read="on"][data-read-size="4"] body.single .prose {
		font-size: 1.5625rem;
	}

	:root[data-read="on"] body.single .prose :is(h2, h3)::before {
		content: none;
	}

	:root[data-read="on"] body.single .prose :is(strong, a) {
		color: inherit;
	}

	:root[data-read="on"] body.single .prose a {
		text-decoration-color: var(--read-accent);
	}

	:root[data-read="on"] body.single .prose :is(ul li, ol li)::marker {
		color: var(--read-accent);
	}

	:root[data-read="on"] body.single .prose blockquote {
		border-left-color: var(--read-accent);
		background: transparent;
		font-style: italic;
	}

	:root[data-read="on"] body.single .prose :not(pre) > code {
		border-color: var(--read-border);
		background: color-mix(in srgb, var(--read-text) 7%, transparent);
		color: var(--read-text);
	}

	:root[data-read="on"] body.single .prose hr {
		border-top-color: var(--read-border);
	}

	.read-progress {
		position: fixed;
		inset: 0 0 auto;
		z-index: 41;
		height: 3px;
		background: var(--read-border);
	}

	.read-progress span {
		display: block;
		width: 0;
		height: 100%;
		background: var(--read-accent);
	}

	.read-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 41;
		display: flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--read-border);
		background: var(--read-bg);
	}

	.read-btn {
		min-width: 44px;
		min-height: 44px;
		padding: 0 0.75rem;
		border: 1px solid var(--read-border);
		border-radius: var(--radius-sm);
		background: transparent;
		color: var(--read-text);
		font: 600 0.95rem/1 var(--read-serif);
		cursor: pointer;
	}

	.read-btn--big {
		font-size: 1.15rem;
	}

	.read-btn .icon {
		vertical-align: middle;
	}

	.read-percent {
		margin-left: auto;
		color: var(--read-muted);
		font: 500 0.85rem/1 var(--font-mono);
	}

	.read-exit {
		font-family: var(--font-sans);
	}
}/* ==========================================================================
   JeffXL Terminal — About and Legal page templates, index cards, editor block styles
   (Cards, Chips, Callout) and Contact Form 7. Loaded on singular views.
   ========================================================================== */

/* About: hero --------------------------------------------------------------- */
.about-hero {
	max-width: 960px;
	margin: 0 auto 3rem;
}

.about-hero-body {
	display: grid;
	gap: 1.5rem;
	justify-items: center;
	padding: 1.75rem 1.25rem;
	text-align: center;
}

@media (min-width: 720px) {
	.about-hero-body {
		grid-template-columns: 168px minmax(0, 1fr);
		align-items: center;
		justify-items: start;
		gap: 2.25rem;
		padding: 2.25rem 2.5rem;
		text-align: left;
	}
}

.about-avatar img,
.about-monogram {
	display: block;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px var(--bg-elev), 0 0 0 6px var(--accent), 0 12px 40px var(--glow);
}

@media (min-width: 720px) {
	.about-avatar img,
	.about-monogram {
		width: 168px;
		height: 168px;
	}
}

.about-monogram {
	display: grid;
	place-items: center;
	background: var(--bg-soft);
	color: var(--accent);
	font: 700 3.5rem/1 var(--font-mono);
}

.about-title {
	margin: 0.25rem 0 0.75rem;
	font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.about-lead {
	max-width: 56ch;
	margin: 0 0 1.25rem;
	color: var(--text);
	font-size: 1.12rem;
	line-height: 1.6;
}

.about-intro .social-links {
	justify-content: center;
}

@media (min-width: 720px) {
	.about-intro .social-links {
		justify-content: flex-start;
	}
}

.about-intro .social-links .icon-btn {
	border-color: var(--border);
	background: var(--bg-soft);
}

.about-stats {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin: 0;
	border-top: 1px solid var(--border);
}

/* Number above label; dt stays first in the markup for screen readers. */
.about-stats > div {
	display: flex;
	flex-direction: column-reverse;
	padding: 1rem 0.5rem;
	text-align: center;
}

.about-stats > div + div {
	border-left: 1px dashed var(--border);
}

.about-stats dt {
	color: var(--muted);
	font: 500 0.72rem/1.4 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.about-stats dd {
	margin: 0;
	color: var(--accent);
	font: 700 1.6rem/1.2 var(--font-mono);
}

/* About: content and latest posts ------------------------------------------ */
.about-content {
	max-width: var(--measure);
	margin-inline: auto;
}

.about-content > h2:first-child {
	margin-top: 0;
}

/* About: profile told as a terminal session (Custom HTML block in the page content). */
.prose .about-term {
	margin-block: 2em;
}

.about-term .terminal-cmd:not(:first-child) {
	margin-top: 1.6rem;
}

.about-term-status {
	margin: 0 0 0.9rem;
	color: var(--muted);
	font: 500 0.85rem/1.6 var(--font-mono);
	overflow-wrap: anywhere;
}

.about-term-status > span {
	display: block;
}

.about-term-status > span + span {
	padding-left: 1.2em;
}

.about-term-status .is-up {
	color: var(--accent);
}

.about-term-caret {
	display: inline-block;
	width: 0.6em;
	height: 1.1em;
	vertical-align: text-bottom;
	background: var(--accent);
	animation: about-blink 1.1s steps(1) infinite;
}

@keyframes about-blink {
	50% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-term-caret {
		animation: none;
	}
}

/* Beats ".section:first-child { margin-top: 0 }": this section is first in its own container. */
.section.latest-posts {
	max-width: 960px;
	margin-inline: auto;
	margin-top: 4rem;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 1rem;
}

/* Buttons ------------------------------------------------------------------- */
.prose .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.prose .wp-block-button__link {
	color: var(--accent-contrast);
	text-decoration: none;
}

.prose .is-style-outline .wp-block-button__link {
	border: 1px solid var(--accent);
	background: transparent;
	color: var(--accent);
}

.prose .is-style-outline .wp-block-button__link:hover {
	background: var(--accent-soft);
	color: var(--accent);
	filter: none;
}

/* Block style: Columns → Cards ---------------------------------------------- */
.prose .wp-block-columns.is-style-cards {
	gap: 1rem;
	margin-block: 1.25em;
}

.prose .is-style-cards > .wp-block-column {
	padding: 1.15rem 1.25rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
	transition: border-color 0.15s;
}

.prose .is-style-cards > .wp-block-column:hover {
	border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.prose .is-style-cards > .wp-block-column > * {
	margin-block: 0;
}

.prose .is-style-cards > .wp-block-column > * + * {
	margin-top: 0.5em;
}

.prose .is-style-cards h3 {
	font-size: 1.05rem;
}

.prose .is-style-cards h3::before {
	content: "> ";
	content: "> " / "";
}

.prose .is-style-cards p {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* Block style: List → Chips -------------------------------------------------- */
.prose ul.is-style-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	list-style: none;
}

.prose ul.is-style-chips li {
	margin: 0;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg-elev);
	color: var(--text);
	font: 500 0.82rem/1 var(--font-mono);
}

.prose ul.is-style-chips li::before {
	content: "#";
	margin-right: 0.15rem;
	color: var(--accent);
}

/* Block style: Group → Callout ----------------------------------------------- */
.prose .wp-block-group.is-style-callout,
.legal-summary {
	padding: 1rem 1.25rem;
	border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
	border-radius: var(--radius);
	background: var(--accent-soft);
}

.prose .is-style-callout > * {
	margin-block: 0;
}

.prose .is-style-callout > * + * {
	margin-top: 0.6em;
}

/* Legal template ------------------------------------------------------------ */
.legal-summary {
	margin-top: 1.5rem;
}

.legal-summary p {
	margin: 0;
}

.legal-summary .legal-summary-label {
	margin-bottom: 0.35rem;
	color: var(--accent);
	font: 700 0.75rem/1.4 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.legal .prose {
	counter-reset: legal-section;
}

.legal .prose h2 {
	counter-increment: legal-section;
	padding-top: 1.75rem;
	border-top: 1px dashed var(--border);
}

.legal .prose h2::before {
	content: counter(legal-section, decimal-leading-zero) "  ";
	content: counter(legal-section, decimal-leading-zero) "  " / "";
}

.legal .prose h3::before {
	content: none;
}

.legal .prose table {
	font-size: 0.9rem;
}

.legal .prose td:first-child {
	font-family: var(--font-mono);
	font-size: 0.85em;
	white-space: nowrap;
}

/* Contact Form 7 ------------------------------------------------------------- */
.prose .wpcf7 {
	padding: 1.25rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.prose .wpcf7 form > p,
.prose .wpcf7 form > div > p {
	margin: 0 0 1rem;
}

.prose .wpcf7 label {
	display: block;
	color: var(--muted);
	font: 500 0.8rem/1.4 var(--font-mono);
}

.prose .wpcf7 label .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.35rem;
	font: 400 1rem/1.5 var(--font-sans);
}

.prose .wpcf7 textarea {
	min-height: 140px;
}

.prose .wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	color: #f87171;
	font: 500 0.78rem/1.4 var(--font-mono);
}

.prose .wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
}

.prose .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--accent);
	color: var(--accent);
}

.prose .wpcf7 form.invalid .wpcf7-response-output,
.prose .wpcf7 form.failed .wpcf7-response-output {
	border-color: #f87171;
	color: #f87171;
}

/* Terminal cards (Cheatsheets and Tutorials index templates) ------------------
   Every card has the same size on both pages: one-line title, a description box
   of exactly four lines (longer text ends in "…") and equal-height grid rows. */
.term-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	grid-auto-rows: 1fr;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.term-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s;
}

.term-card:hover {
	border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
	color: var(--text);
	transform: translateY(-2px);
}

.term-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
}

.term-card .terminal-cmd {
	margin: 0;
}

.term-card-title {
	color: var(--text-strong);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.term-card-desc {
	display: -webkit-box;
	height: 6.4em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

.term-card-meta {
	margin-top: auto;
	padding-top: 0.5rem;
	color: var(--accent);
	font: 500 0.78rem/1.4 var(--font-mono);
}

@media (prefers-reduced-motion: reduce) {
	.term-card,
	.term-card:hover {
		transform: none;
	}
}

/* Roadmap route colors ------------------------------------------------------ */
/* Each roadmap has its own route color (the "color" field in roadmaps/*.json), used by
   its ticket on the Roadmaps index and by its roadmap page, like lines on a transit map.
   Green is the site accent; the derived tokens are repeated because custom properties
   resolve where they are declared. Violet and amber are taken by the 2027 and 2026 badges. */
.rm-color--sky {
	--accent: #38bdf8;
	--accent-contrast: #03131d;
	--accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
	--glow: color-mix(in srgb, var(--accent) 10%, transparent);
}

:root[data-theme="light"] .rm-color--sky {
	--accent: #0369a1;
	--accent-contrast: #ffffff;
	--accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
	--glow: color-mix(in srgb, var(--accent) 8%, transparent);
}/* ==========================================================================
   JeffXL Terminal — Game promo template (Kube Harbor). Loaded only on pages
   using page-templates/game.php. The page takes the game's sea-green accent,
   the same way the Archive page switches to amber.
   ========================================================================== */

.kh {
	--accent: #89c8b3;
	--accent-contrast: #102b23;
	--accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
	--glow: color-mix(in srgb, var(--accent) 12%, transparent);
	--kh-amber: #edc089;
	--kh-danger: #f08a7e;
	--kh-purple: #c1b7db;
	/* The live stage is a "screen", dark in both themes. */
	--kh-screen: #0b1214;
	--kh-screen-bar: #141e21;
	--kh-screen-line: #2b3a3f;
	--kh-screen-text: #e9eeec;
	--kh-screen-muted: #93a7ab;
	position: relative;
	overflow-x: clip;
	margin-top: -2rem; /* Sit the hero under the header, the waves reach the edges. */
}

:root[data-theme="light"] .kh {
	--accent: #25614d;
	--accent-contrast: #ffffff;
	--accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
	--glow: color-mix(in srgb, var(--accent) 9%, transparent);
	--kh-amber: #87540f;
	--kh-danger: #b4382c;
}

.kh .ps1 {
	color: var(--accent);
}

.kh section {
	margin-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.kh-h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
	font-weight: 750;
	letter-spacing: -0.02em;
	color: var(--text-strong);
}

/* Hero ---------------------------------------------------------------------- */
.kh-hero {
	position: relative;
	display: grid;
	gap: 2.5rem;
	align-items: center;
	padding-top: 3rem;
	margin-top: 0 !important;
}

.kh-hero::before {
	content: "";
	position: absolute;
	inset: -2rem -50vw -4rem;
	z-index: -1;
	background:
		radial-gradient(ellipse 60% 55% at 75% 35%, var(--glow), transparent 70%),
		radial-gradient(var(--border) 1px, transparent 1.4px) 0 0 / 28px 28px;
	mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

@media (min-width: 960px) {
	.kh-hero {
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
		gap: 3rem;
		padding-block: 3.5rem 1rem;
	}
}

.kh-title {
	margin: 0.25rem 0 1.25rem;
	line-height: 0.98;
	letter-spacing: -0.035em;
	color: var(--text-strong);
}

.kh-title-top {
	display: block;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
	font-weight: 600;
	color: var(--muted);
}

.kh-title-main {
	display: block;
	font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);
	font-weight: 800;
}

.kh-dot {
	color: var(--accent);
}

.kh-lead {
	max-width: 34rem;
	margin: 0 0 1.75rem;
	font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
	line-height: 1.65;
	color: var(--text);
}

.kh-lead strong {
	color: var(--text-strong);
}

.kh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.kh-btn-play {
	position: relative;
	min-height: 48px;
	padding-inline: 1.4rem;
	font-size: 0.95rem;
	box-shadow: 0 0 0 0 var(--accent-soft);
	transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.kh-btn-play:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px var(--glow), 0 0 0 6px var(--accent-soft);
}

.kh-btn-play span {
	transition: transform 0.2s ease;
}

.kh-btn-play:hover span {
	transform: translateX(4px);
}

.kh-btn-lg {
	min-height: 56px;
	padding-inline: 2rem;
	font-size: 1.05rem;
}

.kh-btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0 1.2rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	color: var(--text-strong);
	font: 600 0.9rem/1 var(--font-mono);
	text-decoration: none;
}

.kh-btn-ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.kh-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.kh-pills li {
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg-elev);
	color: var(--text);
	font: 500 0.8rem/1.2 var(--font-mono);
}

.kh-pills li::before {
	content: "✓ ";
	color: var(--accent);
}

/* Live stage ---------------------------------------------------------------- */
.kh-stage {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--kh-screen-line);
	border-radius: 14px;
	background: var(--kh-screen);
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(137 200 179 / 0.06), 0 0 60px rgb(137 200 179 / 0.08);
	color: var(--kh-screen-text);
}

.kh-stage-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0.9rem;
	border-bottom: 1px solid var(--kh-screen-line);
	background: var(--kh-screen-bar);
}

.kh-stage-title {
	color: var(--kh-screen-muted);
	font: 500 0.78rem/1 var(--font-mono);
}

.kh-live {
	margin-left: auto;
	padding: 0.2rem 0.45rem;
	border: 1px solid #89c8b3;
	border-radius: 4px;
	color: #89c8b3;
	font: 600 0.68rem/1 var(--font-mono);
	letter-spacing: 0.08em;
}

.kh-topo {
	display: block;
	width: 100%;
	height: auto;
	font-family: var(--font-mono);
}

.kh-link {
	fill: none;
	stroke: var(--kh-screen-line);
	stroke-width: 1.5;
	stroke-dasharray: 5 5;
	animation: kh-flow 1.2s linear infinite;
}

.kh-packet {
	fill: #c1b7db;
}

.kh-cp rect {
	fill: #141e21;
	stroke: #c1b7db;
	stroke-width: 1.2;
}

.kh-cp-name,
.kh-node-name {
	fill: var(--kh-screen-text);
	font-size: 15px;
	font-weight: 600;
}

.kh-cp-sub {
	fill: var(--kh-screen-muted);
	font-size: 11px;
}

.kh-node > rect {
	fill: rgb(26 36 40 / 0.9);
	stroke: var(--kh-screen-line);
	stroke-width: 1.2;
}

.kh-node-name {
	font-size: 13px;
}

.kh-node-ok {
	fill: #89c8b3;
}

.kh-pod {
	transform-box: fill-box;
	transform-origin: center;
	animation: kh-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
	animation-delay: calc(0.25s + var(--d, 0) * 0.12s);
}

.kh-pod rect {
	fill: #1e2a2e;
	stroke: #354449;
	stroke-width: 1.2;
	transition: fill 0.3s ease, stroke 0.3s ease;
}

.kh-pod-name {
	fill: #89c8b3;
	font-size: 14px;
	transition: fill 0.3s ease;
}

.kh-pod-status {
	fill: var(--kh-screen-muted);
	font-size: 10.5px;
}

.kh-pod.is-broken rect {
	fill: #3a1f1d;
	stroke: #f08a7e;
}

.kh-pod.is-broken .kh-pod-name,
.kh-pod.is-broken .kh-pod-status {
	fill: #f08a7e;
}

.kh-pod.is-broken {
	animation: kh-shake 0.4s ease 2;
}

.kh-pod.is-healed rect {
	animation: kh-heal 0.9s ease;
}

.kh-stage-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	padding: 0.75rem 0.95rem;
	border-top: 1px solid var(--kh-screen-line);
	background: var(--kh-screen-bar);
	font: 500 0.78rem/1.3 var(--font-mono);
}

.kh-meter {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--kh-screen-muted);
}

.kh-meter strong {
	min-width: 3.2em;
	color: #89c8b3;
	transition: color 0.3s ease;
}

.kh-meter-bar {
	width: 96px;
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--kh-screen-line);
}

.kh-meter-bar i {
	display: block;
	width: 100%;
	height: 100%;
	background: #89c8b3;
	transition: width 0.6s ease, background 0.3s ease;
}

.kh-stage.is-down .kh-meter strong {
	color: #f08a7e;
}

.kh-stage.is-down .kh-meter-bar i {
	background: #f08a7e;
}

.kh-log {
	padding: 0;
	background: none;
	color: var(--kh-screen-text);
	font-size: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.kh-log .ps1 {
	color: #89c8b3;
}

.kh-log.is-error {
	color: #f08a7e;
}

/* Trailer ------------------------------------------------------------------- */
.kh-video {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--border-strong);
	border-radius: 14px;
	background: #081012;
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.35), 0 0 80px var(--glow);
}

.kh-video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kh-note {
	margin: 0.75rem 0 0;
	color: var(--muted);
	font: 500 0.78rem/1.4 var(--font-mono);
}

/* Stats --------------------------------------------------------------------- */
.kh-stats dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
}

@media (min-width: 720px) {
	.kh-stats dl {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.kh-stat {
	display: flex;
	flex-direction: column-reverse;
	padding: 1.25rem 1.25rem 1.1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.kh-stat dd {
	margin: 0;
	color: var(--accent);
	font: 700 clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem)/1 var(--font-mono);
	font-variant-numeric: tabular-nums;
}

.kh-stat:nth-child(2) dd {
	color: var(--kh-purple);
}

.kh-stat:nth-child(3) dd {
	color: var(--kh-amber);
}

.kh-stat dt {
	margin-top: 0.4rem;
	color: var(--muted);
	font-size: 0.92rem;
}

/* How a shift works ------------------------------------------------------- */
.kh-steps {
	position: relative;
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

@media (min-width: 860px) {
	.kh-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.kh-steps::before {
		content: "";
		position: absolute;
		top: 2.1rem;
		left: 2rem;
		right: 2rem;
		height: 2px;
		background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
		opacity: 0.45;
		animation: kh-march 1s linear infinite;
	}
}

.kh-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.25rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.kh-step-num {
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid var(--accent);
	border-radius: 50%;
	background: var(--bg);
	color: var(--accent);
	font: 700 0.85rem/1 var(--font-mono);
}

.kh-step h3 {
	margin: 0.3rem 0 0;
	font-size: 1.15rem;
	color: var(--text-strong);
}

.kh-step p {
	flex: 1;
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
}

.kh-step code {
	display: block;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--code-bg);
	color: var(--code-text);
	font-size: 0.8rem;
	overflow-x: auto;
	white-space: nowrap;
}

/* Feature tiles ------------------------------------------------------------- */
.kh-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.kh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.kh-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.kh-card {
	--rx: 0deg;
	--ry: 0deg;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
	transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.kh-card:hover {
	border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
	box-shadow: 0 18px 50px var(--glow);
}

.kh-card-shot {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
	background: #131b1e;
}

.kh-card-shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focus, 50% 0);
	transform: scale(1.45);
	transform-origin: var(--focus, 50% 0);
	transition: transform 0.6s ease;
}

.kh-card:hover .kh-card-shot img {
	transform: scale(1.55);
}

.kh-card-body {
	padding: 1.1rem 1.2rem 1.3rem;
}

.kh-card-kicker {
	margin: 0 0 0.35rem;
	color: var(--accent);
	font: 600 0.72rem/1.3 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.kh-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.12rem;
	color: var(--text-strong);
}

.kh-card p:last-child {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Who it is for --------------------------------------------------------------- */
.kh-who {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 860px) {
	.kh-who {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		gap: 2.5rem;
		align-items: start;
	}
}

.kh-who > div > p {
	margin: 0;
	color: var(--text);
	line-height: 1.7;
}

.kh-pills-roles li::before {
	content: "▸ ";
}

.kh-honest {
	padding: 1.25rem 1.35rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev);
}

.kh-honest h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: var(--text-strong);
}

.kh-honest h3::before {
	content: "⚠ ";
	color: var(--kh-amber);
}

.kh-honest p {
	margin: 0 0 0.75rem;
	color: var(--muted);
	line-height: 1.6;
	font-size: 0.93rem;
}

.kh-related {
	margin: 0 !important;
	font: 500 0.82rem/1.6 var(--font-mono);
}

.kh-related a {
	color: var(--accent);
}

/* Final call to action ----------------------------------------------------------- */
.kh-cta-box {
	max-width: 760px;
	margin-inline: auto;
	box-shadow: var(--shadow), 0 0 80px var(--glow);
}

.kh-cta-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.1rem;
	padding: clamp(1.75rem, 1rem + 3vw, 3rem) 1.25rem;
	text-align: center;
}

.kh-cta-cmd {
	margin: 0;
	color: var(--text);
	font: 500 clamp(0.82rem, 0.75rem + 0.4vw, 1rem)/1.4 var(--font-mono);
	overflow-wrap: anywhere;
}

.kh-caret {
	display: inline-block;
	width: 0.55em;
	height: 1.1em;
	margin-left: 2px;
	vertical-align: -0.15em;
	background: var(--accent);
	animation: kh-blink 1s steps(1) infinite;
}

.kh-cta-title {
	margin: 0;
	font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text-strong);
}

.kh-url {
	margin: 0;
	font: 500 0.82rem/1.4 var(--font-mono);
}

.kh-url a {
	color: var(--muted);
}

.kh-url a:hover {
	color: var(--accent);
}

.kh-content {
	max-width: var(--measure);
}

/* Scroll reveal (only with JS, so content is never hidden without it) ----- */
.js .kh-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: calc(var(--d, 0) * 0.1s);
}

.js .kh-reveal.is-in {
	opacity: 1;
	transform: none;
}

.js .kh-card.kh-reveal.is-in {
	transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
}

/* Keyframes ------------------------------------------------------------------- */
@keyframes kh-flow {
	to {
		stroke-dashoffset: -20;
	}
}

@keyframes kh-march {
	to {
		background-position: 16px 0;
	}
}

@keyframes kh-pop {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
}

@keyframes kh-shake {
	25% {
		transform: translateX(-3px);
	}

	75% {
		transform: translateX(3px);
	}
}

@keyframes kh-heal {
	0% {
		stroke: #89c8b3;
		stroke-width: 4;
	}
}

@keyframes kh-blink {
	50% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kh *,
	.kh *::before {
		animation: none !important;
		transition: none !important;
	}

	.js .kh-reveal {
		opacity: 1;
		transform: none;
	}
}