/*
Theme Name: Hackeando Terminal
Theme URI: https://hackeandoelgenoma.com/
Author: Hackeando el Genoma
Description: Bespoke classic theme for Hackeando el Genoma. White-on-black console aesthetic, self-hosted webfonts, no frameworks and no third-party requests. Homepage layout, accent colour and article body typeface are configurable in the Customizer.
Version: 1.0.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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hackeando-terminal
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode-support
*/

/* ==========================================================================
   1. Design tokens
   The palette is committed dark: a neutral near-black (no green cast),
   pure-white headings and a single accent used in four places only —
   cursor, active menu item, category brackets and "read more".
   ========================================================================== */

:root {
	--heg-bg: #0b0b0c;
	--heg-bg-1: #121214;
	--heg-bg-2: #070708;
	--heg-line: #242428;
	--heg-line-hover: #3a3a42;
	--heg-white: #f4f4f5;
	--heg-text: #d2d3d7;
	--heg-dim: #83848b;

	/* Accent. Overridden by the body class the Customizer prints. */
	--heg-a: #ffffff;
	--heg-a-soft: rgba(255, 255, 255, 0.16);

	--heg-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--heg-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--heg-wrap: 1080px;
	--heg-read: 600px;
	--heg-gap: 18px;
	--heg-pad: 34px;

	color-scheme: dark;
}

body.heg-body-sans {
	--heg-read: 660px;
}

body.heg-accent-amber {
	--heg-a: #f0a657;
	--heg-a-soft: rgba(240, 166, 87, 0.18);
}

body.heg-accent-blue {
	--heg-a: #7fa8ff;
	--heg-a-soft: rgba(127, 168, 255, 0.18);
}

/* heg-accent-custom gets --heg-a from the inline style printed in wp_head. */

/* ==========================================================================
   2. Base
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--heg-bg);
	color: var(--heg-text);
	font-family: var(--heg-mono);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--heg-white);
}

:focus-visible {
	outline: 2px solid var(--heg-a);
	outline-offset: 2px;
}

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

figure {
	margin: 0;
}

hr,
.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--heg-line);
	margin: 32px 0;
}

::selection {
	background: var(--heg-a-soft);
	color: var(--heg-white);
}

.heg-wrap {
	max-width: var(--heg-wrap);
	margin: 0 auto;
	padding: 0 var(--heg-pad);
}

.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;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--heg-bg-1);
	color: var(--heg-white);
	border: 1px solid var(--heg-a);
	padding: 10px 16px;
	font-family: var(--heg-mono);
	font-size: 13px;
}

.skip-link:focus {
	left: 12px;
	top: 12px;
}

/* ==========================================================================
   3. Header and navigation
   ========================================================================== */

.site-header {
	border-bottom: 1px solid var(--heg-line);
	padding-top: 26px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 120px);
}

.site-branding {
	display: flex;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
}

.site-title {
	margin: 0;
	font-size: 25px;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--heg-white);
	line-height: 1.2;
}

.site-title a:hover {
	color: var(--heg-white);
}

.site-title .sep {
	color: var(--heg-dim);
	font-weight: 400;
}

.site-title .cursor {
	display: inline-block;
	width: 9px;
	height: 15px;
	margin-left: 3px;
	vertical-align: -2px;
	background: var(--heg-a);
	animation: heg-blink 1.15s steps(1) infinite;
}

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

@media (prefers-reduced-motion: reduce) {
	.site-title .cursor {
		animation: none;
	}
}

.site-description {
	margin: 0;
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: var(--heg-dim);
	font-weight: 400;
}

.custom-logo {
	max-height: 46px;
	width: auto;
}

.menu-toggle {
	display: none;
	margin: 18px 0 0;
	padding: 8px 12px;
	background: var(--heg-bg-1);
	border: 1px solid var(--heg-line);
	color: var(--heg-text);
	font-family: var(--heg-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.menu-toggle:hover {
	border-color: var(--heg-line-hover);
	color: var(--heg-white);
}

.main-navigation {
	margin-top: 22px;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation > div > ul,
.main-navigation > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--heg-dim);
	padding-bottom: 11px;
	border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation li:hover > a,
.main-navigation li:focus-within > a {
	color: var(--heg-white);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current-post-ancestor > a,
.main-navigation .current-menu-parent > a {
	color: var(--heg-white);
	border-bottom-color: var(--heg-a);
}

/* Sub-menus */
.main-navigation ul ul {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 40;
	min-width: 210px;
	padding: 6px 0;
	background: var(--heg-bg-1);
	border: 1px solid var(--heg-line);
	display: none;
}

.main-navigation ul ul li {
	display: block;
}

.main-navigation ul ul a {
	display: block;
	padding: 7px 14px;
	border-bottom: 0;
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: 12.5px;
}

.main-navigation ul ul a:hover {
	background: var(--heg-bg-2);
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul,
.main-navigation li.heg-open > ul {
	display: block;
}

.main-navigation ul ul ul {
	left: 100%;
	top: -7px;
}

/* ==========================================================================
   4. Terminal prompts
   Every block of the homepage announces itself with the command that
   would produce it.
   ========================================================================== */

.heg-prompt {
	font-size: 12.5px;
	color: var(--heg-dim);
	padding: 20px 0 6px;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

.heg-prompt::-webkit-scrollbar {
	display: none;
}

.heg-prompt .sh {
	color: var(--heg-a);
	font-weight: 500;
}

.heg-prompt .note {
	opacity: 0.55;
	font-style: normal;
}

/* ==========================================================================
   5. Layouts
   ========================================================================== */

.site-main {
	padding-bottom: 10px;
}

.heg-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--heg-gap);
	padding-top: 8px;
}

.heg-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--heg-gap);
}

.heg-split {
	display: grid;
	grid-template-columns: 1fr 262px;
	gap: 40px;
	padding-top: 8px;
	align-items: start;
}

body.heg-sidebar-left .heg-split {
	grid-template-columns: 262px 1fr;
}

body.heg-sidebar-left .heg-split > .heg-list,
body.heg-sidebar-left .heg-split > .heg-grid-2,
body.heg-sidebar-left .heg-split > .heg-entry-single {
	order: 2;
}

.heg-list {
	display: flex;
	flex-direction: column;
}

.heg-sep {
	height: 1px;
	background: var(--heg-line);
	margin: 32px 0 0;
}

/* ==========================================================================
   6. Entry pieces (shared by every layout)
   ========================================================================== */

.heg-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	background: #1a1a1d;
}

.heg-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.35s ease;
}

body.heg-grayscale .heg-thumb img {
	filter: grayscale(1) contrast(1.06) brightness(0.86);
}

body.heg-grayscale .heg-card:hover .heg-thumb img,
body.heg-grayscale .heg-row:hover .heg-thumb img,
body.heg-grayscale .heg-hero:hover .heg-thumb img,
body.heg-grayscale .heg-thumb:hover img {
	filter: grayscale(0) contrast(1) brightness(1);
}

.heg-cat {
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--heg-white);
	font-family: var(--heg-mono);
}

.heg-cat .br {
	color: var(--heg-a);
	opacity: 0.8;
}

.heg-cat a:hover {
	color: var(--heg-a);
}

.heg-meta {
	font-size: 11px;
	color: var(--heg-dim);
	letter-spacing: 0.02em;
	font-family: var(--heg-mono);
}

.heg-meta a:hover {
	color: var(--heg-white);
}

.heg-title {
	font-size: 18px;
	line-height: 1.36;
	font-weight: 500;
	color: var(--heg-white);
	margin: 9px 0;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.heg-excerpt {
	font-size: 12.5px;
	line-height: 1.68;
	color: var(--heg-dim);
	margin: 0;
}

.heg-excerpt p {
	margin: 0;
}

.heg-more {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--heg-a);
	margin-top: auto;
	padding-top: 12px;
	font-family: var(--heg-mono);
}

.heg-more:hover {
	color: var(--heg-a);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Card */
.heg-card {
	border: 1px solid var(--heg-line);
	background: var(--heg-bg-1);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s, background 0.2s;
}

.heg-card:hover {
	border-color: var(--heg-line-hover);
	background: #151517;
}

.heg-card .heg-thumb {
	aspect-ratio: 16 / 10;
	border-bottom: 1px solid var(--heg-line);
}

.heg-card .heg-card-body {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
}

/* Hero */
.heg-hero {
	display: grid;
	grid-template-columns: 1.12fr 1fr;
	gap: 28px;
	align-items: stretch;
	padding-top: 8px;
}

.heg-hero .heg-thumb {
	aspect-ratio: 16 / 10;
	min-height: 250px;
	border: 1px solid var(--heg-line);
}

.heg-hero-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 9px;
	padding: 6px 0;
}

.heg-hero .heg-title {
	font-size: 27px;
	line-height: 1.24;
}

.heg-hero .heg-excerpt {
	font-size: 13.5px;
}

.heg-hero .heg-more {
	margin-top: 0;
}

/* Row */
.heg-row {
	display: grid;
	grid-template-columns: 168px 1fr;
	gap: 22px;
	padding: 22px 0;
	border-bottom: 1px solid var(--heg-line);
}

.heg-row.heg-no-thumb {
	grid-template-columns: 1fr;
}

.heg-row .heg-thumb {
	aspect-ratio: 16 / 11;
	border: 1px solid var(--heg-line);
}

.heg-row:hover .heg-title {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--heg-a-soft);
	text-underline-offset: 4px;
}

/* Lean line */
.heg-lean {
	display: flex;
	flex-direction: column;
	padding-top: 8px;
}

.heg-lean-item {
	display: grid;
	grid-template-columns: 104px 128px 1fr;
	gap: 18px;
	align-items: baseline;
	padding: 11px 4px;
	border-bottom: 1px solid var(--heg-line);
}

.heg-lean-item:hover {
	background: var(--heg-bg-1);
}

.heg-lean-item .heg-title {
	font-size: 15.5px;
	margin: 0;
	font-weight: 400;
	color: var(--heg-text);
}

.heg-lean-item:hover .heg-title {
	color: var(--heg-white);
}

/* ==========================================================================
   7. Sidebar and widgets
   ========================================================================== */

.heg-sidebar .widget,
.heg-sidebar .heg-box {
	border: 1px solid var(--heg-line);
	background: var(--heg-bg-1);
	padding: 16px;
	margin-bottom: 16px;
	font-size: 12.5px;
}

.heg-sidebar .widget-title,
.heg-sidebar .heg-box-title {
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--heg-dim);
	margin: 0 0 12px;
	font-weight: 500;
	font-family: var(--heg-mono);
}

.heg-sidebar .widget-title .sh,
.heg-sidebar .heg-box-title .sh {
	color: var(--heg-a);
}

.heg-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.heg-sidebar li {
	font-size: 12.5px;
	color: var(--heg-text);
	padding: 5px 0;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.heg-sidebar li + li {
	border-top: 1px solid var(--heg-line);
}

.heg-sidebar li a {
	flex: 1;
}

.heg-sidebar li a:hover {
	color: var(--heg-white);
}

.heg-sidebar .count,
.heg-sidebar li > span:last-child:not(:only-child) {
	color: var(--heg-dim);
	font-variant-numeric: tabular-nums;
}

.heg-sidebar li ul {
	width: 100%;
	padding-left: 14px;
}

.heg-sidebar .heg-recent li {
	display: block;
	line-height: 1.5;
}

/* ==========================================================================
   8. Forms
   ========================================================================== */

.heg-search-form {
	display: flex;
	align-items: center;
	border: 1px solid var(--heg-line);
	background: var(--heg-bg-2);
}

.heg-search-form .sh {
	color: var(--heg-a);
	padding: 9px 4px 9px 11px;
	font-size: 12.5px;
	font-family: var(--heg-mono);
}

.heg-search-form label {
	flex: 1;
	display: block;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	background: var(--heg-bg-2);
	border: 1px solid var(--heg-line);
	color: var(--heg-text);
	font-family: var(--heg-mono);
	font-size: 12.5px;
	padding: 9px 11px;
	border-radius: 0;
}

.heg-search-form input[type="search"] {
	border: 0;
	padding-left: 3px;
}

input::placeholder,
textarea::placeholder {
	color: var(--heg-dim);
	opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--heg-line-hover);
}

.heg-search-form:focus-within {
	border-color: var(--heg-a);
}

button,
input[type="submit"],
.heg-button {
	background: var(--heg-bg-1);
	border: 1px solid var(--heg-line);
	color: var(--heg-white);
	font-family: var(--heg-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 10px 16px;
	cursor: pointer;
	border-radius: 0;
	transition: border-color 0.2s, color 0.2s;
}

button:hover,
input[type="submit"]:hover,
.heg-button:hover {
	border-color: var(--heg-a);
	color: var(--heg-white);
}

.heg-search-form button[type="submit"] {
	border: 0;
	border-left: 1px solid var(--heg-line);
	background: transparent;
	color: var(--heg-a);
	padding: 9px 12px;
}

/* ==========================================================================
   9. Single entry and page
   ========================================================================== */

.heg-entry-header {
	max-width: var(--heg-read);
	margin: 0 auto;
	padding: 36px 0 8px;
}

.heg-entry-title {
	font-size: 31px;
	line-height: 1.26;
	font-weight: 500;
	color: var(--heg-white);
	margin: 13px 0 0;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.heg-cover {
	max-width: 960px;
	margin: 26px auto 8px;
	border: 1px solid var(--heg-line);
	aspect-ratio: 21 / 9;
}

.heg-content {
	max-width: var(--heg-read);
	margin: 0 auto;
	padding: 16px 0 10px;
	font-size: 14.5px;
	line-height: 1.82;
	color: var(--heg-text);
}

body.heg-body-sans .heg-content {
	font-family: var(--heg-sans);
	font-size: 17px;
	line-height: 1.72;
	color: #dcdde1;
}

.heg-content p {
	margin: 0 0 20px;
}

.heg-content a {
	color: var(--heg-white);
	text-decoration: underline;
	text-decoration-color: var(--heg-a-soft);
	text-underline-offset: 3px;
}

.heg-content a:hover {
	text-decoration-color: var(--heg-a);
}

.heg-content h2,
.heg-content h3,
.heg-content h4,
.heg-content h5,
.heg-content h6 {
	color: var(--heg-white);
	font-weight: 500;
	letter-spacing: -0.01em;
	scroll-margin-top: 20px;
}

.heg-content h2 {
	font-size: 18px;
	margin: 36px 0 12px;
}

.heg-content h3 {
	font-size: 15.5px;
	margin: 28px 0 10px;
}

.heg-content h4 {
	font-size: 14.5px;
	margin: 24px 0 10px;
}

body.heg-prompts .heg-content h2::before {
	content: "## ";
	color: var(--heg-a);
	opacity: 0.75;
}

body.heg-prompts .heg-content h3::before {
	content: "### ";
	color: var(--heg-dim);
}

body.heg-body-sans .heg-content h2 {
	font-size: 21px;
	font-weight: 600;
}

body.heg-body-sans .heg-content h3 {
	font-size: 18px;
	font-weight: 600;
}

body.heg-body-sans.heg-prompts .heg-content h2::before,
body.heg-body-sans.heg-prompts .heg-content h3::before {
	font-family: var(--heg-mono);
	font-size: 0.8em;
}

.heg-content ul,
.heg-content ol {
	margin: 0 0 20px;
	padding-left: 22px;
}

.heg-content li {
	margin-bottom: 7px;
}

.heg-content blockquote,
.wp-block-quote {
	margin: 26px 0;
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--heg-a);
	color: var(--heg-white);
}

.heg-content blockquote cite,
.wp-block-quote cite {
	display: block;
	margin-top: 8px;
	font-family: var(--heg-mono);
	font-size: 11.5px;
	color: var(--heg-dim);
	font-style: normal;
}

.heg-content code,
.heg-content kbd,
.heg-content tt {
	background: var(--heg-bg-1);
	border: 1px solid var(--heg-line);
	padding: 1px 5px;
	font-size: 0.88em;
	font-family: var(--heg-mono);
	color: var(--heg-white);
}

.heg-content pre,
.wp-block-code {
	font-family: var(--heg-mono);
	font-size: 12.5px;
	line-height: 1.75;
	padding: 16px 18px;
	overflow-x: auto;
	margin: 0 0 24px;
	background: var(--heg-bg-2);
	border: 1px solid var(--heg-line);
	color: #c7c8ce;
	tab-size: 4;
}

.heg-content pre code,
.wp-block-code code {
	background: none;
	border: 0;
	padding: 0;
	font-size: inherit;
	color: inherit;
}

.heg-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.heg-content th,
.heg-content td {
	border: 1px solid var(--heg-line);
	padding: 8px 11px;
	text-align: left;
}

.heg-content th {
	background: var(--heg-bg-1);
	color: var(--heg-white);
	font-weight: 500;
}

.wp-block-table {
	overflow-x: auto;
}

.heg-content img,
.wp-block-image img {
	height: auto;
}

.heg-content figure {
	margin: 26px 0;
}

.wp-caption-text,
.wp-element-caption,
figcaption {
	font-family: var(--heg-mono);
	font-size: 11.5px;
	color: var(--heg-dim);
	margin-top: 8px;
	text-align: left;
}

.alignleft {
	float: left;
	margin: 6px 24px 18px 0;
}

.alignright {
	float: right;
	margin: 6px 0 18px 24px;
}

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

.alignwide {
	max-width: min(960px, 92vw);
	margin-left: 50%;
	transform: translateX(-50%);
}

.alignfull {
	max-width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
}

.wp-block-button__link,
.wp-element-button {
	background: var(--heg-bg-1);
	border: 1px solid var(--heg-a);
	color: var(--heg-white);
	font-family: var(--heg-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 11px 18px;
	border-radius: 0;
	text-decoration: none;
}

.wp-block-embed iframe {
	max-width: 100%;
}

/* Automatic table of contents */
.heg-toc {
	margin: 24px 0 32px;
	padding: 16px 20px;
	border: 1px solid var(--heg-line);
	border-left: 2px solid var(--heg-a);
	background: var(--heg-bg-1);
}

.heg-toc-title {
	display: block;
	font-family: var(--heg-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 10px;
	font-weight: 500;
	color: var(--heg-dim);
}

.heg-toc-title .sh {
	color: var(--heg-a);
}

.heg-toc ol {
	margin: 0;
	padding-left: 20px;
	font-family: var(--heg-mono);
	font-size: 12.5px;
	line-height: 2;
	color: var(--heg-text);
}

.heg-toc li {
	margin: 0;
}

.heg-toc .toc-level-3 {
	padding-left: 16px;
	list-style: none;
}

.heg-toc .toc-level-4 {
	padding-left: 32px;
	list-style: none;
}

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

/* Tags, series and post navigation */
.heg-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 28px 0 0;
}

.heg-tags a {
	font-family: var(--heg-mono);
	font-size: 11.5px;
	padding: 4px 9px;
	border: 1px solid var(--heg-line);
	color: var(--heg-dim);
}

.heg-tags a:hover {
	border-color: var(--heg-a);
	color: var(--heg-white);
}

.heg-post-nav {
	max-width: var(--heg-read);
	margin: 36px auto 0;
	padding-top: 22px;
	border-top: 1px solid var(--heg-line);
	display: grid;
	gap: 22px;
}

.heg-post-nav .heg-title {
	font-size: 20px;
	margin-top: 8px;
}

/* ==========================================================================
   10. Pagination
   ========================================================================== */

.heg-pagination {
	margin: 34px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--heg-line);
	font-family: var(--heg-mono);
	font-size: 12.5px;
}

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

.heg-pagination .page-numbers {
	display: inline-block;
	padding: 6px 11px;
	border: 1px solid var(--heg-line);
	color: var(--heg-dim);
}

.heg-pagination .page-numbers:hover {
	border-color: var(--heg-line-hover);
	color: var(--heg-white);
}

.heg-pagination .page-numbers.current {
	border-color: var(--heg-a);
	color: var(--heg-white);
}

.heg-pagination .dots {
	border-color: transparent;
}

/* ==========================================================================
   11. Comments
   ========================================================================== */

.heg-comments {
	max-width: var(--heg-read);
	margin: 44px auto 0;
	padding-top: 26px;
	border-top: 1px solid var(--heg-line);
}

.heg-comments-title {
	font-family: var(--heg-mono);
	font-size: 12.5px;
	color: var(--heg-dim);
	margin: 0 0 20px;
	font-weight: 500;
}

.heg-comments-title .sh {
	color: var(--heg-a);
}

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

.comment-list ol.children {
	list-style: none;
	margin: 0;
	padding-left: 20px;
	border-left: 1px solid var(--heg-line);
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--heg-line);
	font-size: 13.5px;
}

body.heg-body-sans .comment-body {
	font-family: var(--heg-sans);
	font-size: 15px;
}

.comment-meta {
	font-family: var(--heg-mono);
	font-size: 11px;
	color: var(--heg-dim);
	margin-bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.comment-author .fn {
	color: var(--heg-white);
	font-style: normal;
	font-weight: 500;
}

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

.comment-reply-link,
.comment-edit-link {
	font-family: var(--heg-mono);
	font-size: 11px;
	color: var(--heg-a);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.comment-respond {
	margin-top: 28px;
}

.comment-reply-title {
	font-family: var(--heg-mono);
	font-size: 12.5px;
	color: var(--heg-dim);
	font-weight: 500;
	margin: 0 0 14px;
}

.comment-form p {
	margin: 0 0 14px;
}

.comment-form label {
	display: block;
	font-family: var(--heg-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--heg-dim);
	margin-bottom: 6px;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 12px;
	color: var(--heg-dim);
}

.comment-form-cookies-consent input {
	width: auto;
	margin-top: 3px;
}

.comment-form-cookies-consent label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 12px;
	margin: 0;
}

.no-comments,
.comment-notes,
.logged-in-as {
	font-size: 12px;
	color: var(--heg-dim);
}

/* ==========================================================================
   12. Archive header, search and 404
   ========================================================================== */

.heg-page-header {
	padding: 6px 0 0;
}

.heg-page-title {
	font-size: 22px;
	font-weight: 500;
	color: var(--heg-white);
	margin: 6px 0 0;
	letter-spacing: -0.01em;
}

.heg-page-title .heg-page-title-prefix {
	color: var(--heg-dim);
}

.heg-archive-description {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--heg-dim);
	max-width: 70ch;
}

.heg-404 {
	padding: 40px 0 20px;
	max-width: 70ch;
}

.heg-404-code {
	font-family: var(--heg-mono);
	font-size: 13px;
	line-height: 2;
	color: var(--heg-dim);
	background: var(--heg-bg-2);
	border: 1px solid var(--heg-line);
	padding: 18px 20px;
	margin-bottom: 26px;
	overflow-x: auto;
}

.heg-404-code .sh {
	color: var(--heg-a);
}

.heg-404-code .err {
	color: var(--heg-white);
}

.heg-no-results {
	padding: 30px 0;
	max-width: 70ch;
	color: var(--heg-dim);
	font-size: 13.5px;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--heg-line);
	margin-top: 48px;
	padding: 22px 0 34px;
	font-size: 11.5px;
	color: var(--heg-dim);
	font-family: var(--heg-mono);
}

.site-footer .sh {
	color: var(--heg-a);
	font-weight: 500;
}

.site-footer nav ul {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.site-footer a:hover {
	color: var(--heg-white);
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1000px) {
	.heg-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 860px) {
	:root {
		--heg-pad: 20px;
	}

	.heg-split,
	body.heg-sidebar-left .heg-split {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	body.heg-sidebar-left .heg-split > * {
		order: 0;
	}

	.heg-hero {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.heg-hero .heg-thumb {
		min-height: 0;
	}

	.heg-hero .heg-title {
		font-size: 23px;
	}

	.heg-entry-title {
		font-size: 25px;
	}

	.heg-lean-item {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation {
		display: none;
	}

	.main-navigation.heg-visible {
		display: block;
	}

	.main-navigation > div > ul,
	.main-navigation > ul {
		flex-direction: column;
		gap: 0;
	}

	.main-navigation a {
		padding: 10px 0;
		border-bottom: 1px solid var(--heg-line);
		display: block;
	}

	.main-navigation ul ul {
		position: static;
		display: block;
		border: 0;
		background: transparent;
		padding: 0 0 0 16px;
		min-width: 0;
	}

	.alignwide,
	.alignfull {
		max-width: 100%;
		margin-left: 0;
		transform: none;
	}
}

@media (max-width: 620px) {
	.heg-grid-3,
	.heg-grid-2 {
		grid-template-columns: 1fr;
	}

	.heg-row {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.heg-cover {
		aspect-ratio: 16 / 9;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 18px 0;
	}
}

/* ==========================================================================
   15. Print
   ========================================================================== */

@media print {
	body {
		background: #fff;
		color: #000;
	}

	.site-header,
	.site-footer,
	.heg-sidebar,
	.heg-comments,
	.heg-pagination,
	.heg-prompt {
		display: none;
	}

	.heg-content,
	.heg-entry-title {
		color: #000;
		max-width: none;
	}
}

/* ==========================================================================
   16. Small structural helpers
   ========================================================================== */

.heg-entry-meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
}

.heg-hero.heg-no-thumb {
	grid-template-columns: 1fr;
}

.heg-row-body {
	min-width: 0;
}

.heg-lean-item .heg-entry-meta {
	display: contents;
}

.heg-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.heg-list > article:last-child {
	border-bottom: 0;
}
