/*
Theme Name: zeroToGhost
Theme URI: https://github.com/
Author: Custom Theme
Description: A minimal dark monospace security/pentest blog theme. Inspired by phrack.me — dark background, green accents, sidebar navigation, interactive terminal footer.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terminal-blog
Tags: blog, two-columns, dark, custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
	--bg:           #131713;
	--bg-alt:       #1a1f1a;
	--bg-card:      #161c16;
	--fg:           #b4c8ac;
	--fg-muted:     #6a846a;
	--fg-faint:     #3a5038;
	--accent:       #4bfa6a;
	--accent-hover: #7fff96;
	--border:       #1d2b1d;
	--border-sub:   #172017;
	--tag-bg:       #1a251a;
	--tag-fg:       #5aaa60;
	--term-bg:      #0a0d0a;
	--term-fg:      #39d353;
	--term-dim:     #1a5a1a;
	--term-muted:   #3a4a3a;
	--font:         'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
	--fs-xs:        11px;
	--fs-sm:        12px;
	--fs-base:      14px;
	--fs-md:        16px;
	--fs-lg:        20px;
	--fs-xl:        28px;
	--lh:           1.7;
	--max-w:        720px;
	--max-w-wide:   1040px;
	--pad:          2rem;
	--r:            2px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: var(--lh);
	-webkit-font-smoothing: antialiased;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font);
	font-weight: 700;
	line-height: 1.25;
	color: var(--fg);
}

p { margin-bottom: 1rem; }

a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color .15s, border-color .15s;
}
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }

strong { font-weight: 700; }
em     { font-style: italic; }

code, kbd {
	font-family: var(--font);
	font-size: .875em;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: .1em .3em;
	color: var(--accent);
}

pre {
	font-family: var(--font);
	font-size: var(--fs-sm);
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 1rem;
	overflow-x: auto;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}
pre code { background: none; border: none; padding: 0; font-size: inherit; color: var(--term-fg); }

blockquote {
	border-left: 3px solid var(--accent);
	padding-left: 1rem;
	margin: 1.5rem 0;
	color: var(--fg-muted);
}

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

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .25rem; }

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

table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: 1.5rem; }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
th { font-weight: 700; color: var(--accent); }

/* ============================================================
   Layout
   ============================================================ */
.container {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 var(--pad);
}

.container-wide {
	max-width: var(--max-w-wide);
	margin: 0 auto;
	padding: 0 var(--pad);
}

.layout-sidebar {
	display: grid;
	grid-template-columns: 1fr 240px;
	gap: 3rem;
	align-items: start;
	padding: 2rem 0;
}

.layout-main { min-width: 0; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

/* ============================================================
   Site Header
   ============================================================ */
.site-header { padding: 2.5rem 0 0; }

.site-header .container {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-branding { line-height: 1; }

.site-title {
	font-size: var(--fs-lg);
	font-weight: 700;
}
.site-title a {
	color: var(--accent);
	border-bottom: none;
}
.site-title a:hover { color: var(--accent-hover); border-bottom: none; }

.site-description {
	font-size: var(--fs-xs);
	color: var(--fg-muted);
	margin-top: .4rem;
	font-style: italic;
}

/* Typing animation */
.typing-line {
	font-size: var(--fs-sm);
	color: var(--fg-muted);
	margin-top: .75rem;
	display: flex;
	align-items: center;
	gap: 0;
	user-select: none;
}
.type-text {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	width: 0;
	animation: type-reveal 1.4s steps(20) 0.5s forwards;
}
@keyframes type-reveal {
	to { width: 20ch; }
}
.cursor-blink {
	color: var(--accent);
	font-weight: 700;
	animation: blink 1s step-end infinite;
}
@keyframes blink {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0; }
}

/* Social links */
.social-links {
	display: flex;
	gap: .5rem;
	align-items: center;
	flex-shrink: 0;
}
.social-links a {
	color: var(--fg-muted);
	border-bottom: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	transition: color .15s;
}
.social-links a:hover { color: var(--accent); border-bottom: none; }
.social-links svg { width: 15px; height: 15px; fill: currentColor; }

/* ============================================================
   Primary Navigation
   ============================================================ */
.site-nav {
	margin-top: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; align-items: center; }

.nav-menu, .nav-fallback {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 1.5rem;
}
.nav-menu li,
.nav-fallback li { margin: 0; }
.nav-menu a,
.nav-fallback a {
	display: inline-block;
	font-size: var(--fs-sm);
	color: var(--fg-muted);
	border-bottom: none;
	text-decoration: none;
	transition: color .15s;
}
.nav-menu a:hover,
.nav-fallback a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
	color: var(--accent);
	border-bottom: none;
}

/* ============================================================
   Section Header
   ============================================================ */
.section-header {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 1.5rem 0 1rem;
}
.section-prompt { color: var(--accent); font-size: var(--fs-xs); font-weight: 700; }
.section-label  { font-size: var(--fs-sm); font-weight: 700; text-transform: lowercase; color: var(--fg-muted); }
.section-rule   { flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   Posts List
   ============================================================ */
.posts-list { list-style: none; padding: 0; margin: 0; }

.post-item {
	padding: .75rem 0;
	border-bottom: 1px solid var(--border-sub);
}
.post-item:last-child { border-bottom: none; }

.post-date {
	font-size: var(--fs-xs);
	color: var(--fg-muted);
	display: block;
	margin-bottom: .2rem;
}

.post-cat {
	display: inline-block;
	font-size: 10px;
	background: var(--tag-bg);
	color: var(--tag-fg);
	padding: .1rem .35rem;
	border-radius: var(--r);
	text-transform: lowercase;
	border: none;
	margin-left: .5rem;
	vertical-align: middle;
}
.post-cat:hover { background: var(--accent); color: var(--bg); border-bottom: none; }

.post-title { font-size: var(--fs-base); font-weight: 700; line-height: 1.35; margin: 0; }
.post-title a { color: var(--accent); border-bottom: none; }
.post-title a:hover { color: var(--accent-hover); }

.post-excerpt { font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.5; margin: .25rem 0 0; }

.view-all {
	display: inline-block;
	margin-top: 1.25rem;
	font-size: var(--fs-sm);
	color: var(--fg-muted);
	border-bottom: none;
}
.view-all::before { content: '→ '; color: var(--accent); }
.view-all:hover { color: var(--accent); border-bottom: none; }

/* ============================================================
   Projects Section
   ============================================================ */
.projects-section { padding-bottom: 2rem; }

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: .75rem;
}

.project-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: .875rem;
	transition: border-color .15s;
}
.project-card:hover { border-color: var(--fg-muted); }

.project-head {
	display: flex;
	align-items: center;
	gap: .4rem;
	margin-bottom: .4rem;
}
.project-emoji { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.project-name  { font-size: var(--fs-sm); font-weight: 700; flex: 1; min-width: 0; }
.project-name a { color: var(--fg); border-bottom: none; }
.project-name a:hover { color: var(--accent); }

.project-status {
	font-size: 10px;
	padding: .1rem .4rem;
	border-radius: var(--r);
	font-weight: 600;
	text-transform: lowercase;
	white-space: nowrap;
}
.project-status.works   { background: #0d2a0d; color: #4afa64; }
.project-status.kinda   { background: #2a2000; color: #f0c040; }
.project-status.broken  { background: #2a0a0a; color: #fa5a5a; }
.project-status.missing { background: var(--bg-alt); color: var(--fg-muted); }

.project-tags  { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .5rem; }
.project-tag {
	font-size: 10px;
	background: var(--tag-bg);
	color: var(--tag-fg);
	padding: .1rem .3rem;
	border-radius: var(--r);
}

.project-desc {
	font-size: var(--fs-xs);
	color: var(--fg-muted);
	line-height: 1.5;
	margin: 0 0 .6rem;
}

.project-foot {
	display: flex;
	gap: .75rem;
	font-size: 11px;
	color: var(--fg-faint);
}
.project-foot a { color: var(--fg-faint); border-bottom: none; font-size: 11px; }
.project-foot a:hover { color: var(--accent); }

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
	font-size: var(--fs-sm);
}

.sidebar-widget { margin-bottom: 2rem; }

.sidebar-title {
	font-size: var(--fs-xs);
	font-weight: 700;
	color: var(--fg-muted);
	text-transform: lowercase;
	letter-spacing: .05em;
	padding-bottom: .5rem;
	margin-bottom: .75rem;
	border-bottom: 1px solid var(--border);
}
.sidebar-title::before { content: '$ '; color: var(--accent); }

/* Sidebar search */
.sidebar-search { display: flex; gap: .4rem; }
.sidebar-search input[type="search"] {
	flex: 1;
	min-width: 0;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: .4rem .6rem;
	font-family: var(--font);
	font-size: var(--fs-xs);
	color: var(--fg);
	outline: none;
}
.sidebar-search input:focus { border-color: var(--accent); }
.sidebar-search button {
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: .4rem .65rem;
	font-family: var(--font);
	font-size: var(--fs-xs);
	color: var(--fg-muted);
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.sidebar-search button:hover { border-color: var(--accent); color: var(--accent); }

/* Sidebar categories */
.cat-list { list-style: none; padding: 0; }
.cat-list li {
	padding: .3rem 0;
	border-bottom: 1px solid var(--border-sub);
	font-size: var(--fs-xs);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: var(--fg-muted); border-bottom: none; }
.cat-list a:hover { color: var(--accent); border-bottom: none; }
.cat-list .children { padding-left: .75rem; margin-top: .15rem; }
.cat-list .cat-item-count {
	color: var(--fg-faint);
	margin-left: .25rem;
}

/* Sidebar tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag-pill {
	font-size: 10px;
	background: var(--tag-bg);
	color: var(--tag-fg);
	padding: .15rem .4rem;
	border-radius: var(--r);
	border-bottom: none;
	transition: background .15s, color .15s;
}
.tag-pill:hover { background: var(--accent); color: var(--bg); border-bottom: none; }
.tag-pill .tag-count { color: var(--fg-faint); margin-left: .25rem; }
.tag-pill:hover .tag-count { color: var(--bg); }

/* ============================================================
   Terminal Section
   ============================================================ */
.terminal-section { margin-top: 0; }
.terminal-section .container { padding: 0; max-width: 100%; }

.terminal-wrap {
	background: var(--term-bg);
	padding: 1.5rem var(--pad);
}
.terminal-inner {
	max-width: var(--max-w);
	margin: 0 auto;
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: 1rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid #1a2a1a;
}
.term-dots { display: flex; gap: .4rem; }
.term-dot  { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #28c840; }
.term-title { font-size: var(--fs-xs); color: var(--term-muted); flex: 1; text-align: center; }

.terminal-output {
	font-family: var(--font);
	font-size: var(--fs-sm);
	color: var(--term-fg);
	line-height: 1.65;
	min-height: 180px;
	max-height: 300px;
	overflow-y: auto;
	margin-bottom: .5rem;
	white-space: pre-wrap;
	word-break: break-word;
}
.terminal-output::-webkit-scrollbar { width: 4px; }
.terminal-output::-webkit-scrollbar-track { background: var(--term-bg); }
.terminal-output::-webkit-scrollbar-thumb { background: var(--term-dim); border-radius: 2px; }

.t-line         { display: block; }
.t-line.dim     { color: var(--term-dim); }
.t-line.muted   { color: var(--term-muted); }
.t-line.err     { color: #ff5f57; }
.t-line.ok      { color: #28c840; }
.t-line.info    { color: #5bc8f5; }
.t-line.warn    { color: #ffbd2e; }
.t-line.prompt  { color: var(--term-fg); }

.terminal-input-row {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font);
	font-size: var(--fs-sm);
	color: var(--term-fg);
}
.term-prompt { white-space: nowrap; user-select: none; color: var(--term-fg); }
.term-input  {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: var(--term-fg);
	font-family: var(--font);
	font-size: var(--fs-sm);
	caret-color: var(--term-fg);
}

/* ============================================================
   Archive / Blog Index
   ============================================================ */
.archive-header {
	padding: 0 0 1rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 1rem;
}
.archive-title { font-size: var(--fs-md); font-weight: 700; color: var(--fg-muted); }
.archive-title::before { content: '$ '; color: var(--accent); }
.archive-desc  { font-size: var(--fs-sm); color: var(--fg-muted); margin-top: .4rem; }

/* ============================================================
   Single Post
   ============================================================ */
.post-single { padding: 2.5rem 0; }

.post-single-header {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 2rem;
}
.post-single-meta {
	display: flex;
	align-items: center;
	gap: .75rem;
	font-size: var(--fs-sm);
	color: var(--fg-muted);
	margin-bottom: .6rem;
}
.post-single-meta .post-cat { margin: 0; }
.post-single-title { font-size: var(--fs-xl); font-weight: 700; line-height: 1.15; }

.post-single-body { font-size: var(--fs-base); line-height: 1.85; }
.post-single-body h2 { font-size: var(--fs-md); margin: 2rem 0 .75rem; color: var(--accent); }
.post-single-body h3 { font-size: var(--fs-base); margin: 1.5rem 0 .5rem; color: var(--fg-muted); }
.post-single-body p  { margin-bottom: 1.25rem; }
.post-single-body ul,
.post-single-body ol { margin-bottom: 1.25rem; }
.post-single-body img { margin: 1.5rem 0; border-radius: var(--r); border: 1px solid var(--border); }

.post-nav {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
}
.post-nav-item  { font-size: var(--fs-sm); max-width: 45%; }
.post-nav-label { font-size: 10px; color: var(--fg-faint); display: block; margin-bottom: .2rem; }
.post-nav-item a { color: var(--fg); border-bottom: none; }
.post-nav-item a:hover { color: var(--accent); }
.post-nav-item.next { text-align: right; }

.post-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.post-tags-label { font-size: var(--fs-xs); color: var(--fg-muted); }
.post-tags a { font-size: var(--fs-xs); background: var(--tag-bg); color: var(--tag-fg); padding: .15rem .45rem; border-radius: var(--r); border-bottom: none; }
.post-tags a:hover { background: var(--accent); color: var(--bg); }

/* ============================================================
   Static Page
   ============================================================ */
.page-single { padding: 2.5rem 0; }
.page-title  { font-size: var(--fs-xl); font-weight: 700; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); color: var(--accent); }
.page-body   { font-size: var(--fs-base); line-height: 1.85; }

/* ============================================================
   Comments
   ============================================================ */
.comments-area { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.comments-title { font-size: var(--fs-base); font-weight: 700; margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment { padding: 1rem 0; border-bottom: 1px solid var(--border-sub); }
.comment:last-child { border-bottom: none; }
.comment-author  { font-size: var(--fs-sm); font-weight: 700; margin-bottom: .2rem; color: var(--accent); }
.comment-meta    { font-size: var(--fs-xs); color: var(--fg-faint); margin-bottom: .5rem; }
.comment-content { font-size: var(--fs-sm); }
.comment-content p { margin-bottom: .5rem; }
.comment-reply-link {
	font-size: var(--fs-xs);
	color: var(--fg-muted);
	margin-top: .35rem;
	display: inline-block;
	border-bottom: none;
}
.comment-reply-link:hover { color: var(--accent); }

.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: var(--fs-base); font-weight: 700; margin-bottom: 1rem; }
.comment-form label { display: block; font-size: var(--fs-sm); margin-bottom: .3rem; color: var(--fg-muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: .5rem .75rem;
	font-family: var(--font);
	font-size: var(--fs-sm);
	color: var(--fg);
	outline: none;
	margin-bottom: .75rem;
}
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form .form-submit { margin-top: .5rem; }
.comment-form input[type="submit"] {
	background: transparent;
	color: var(--accent);
	border: 1px solid var(--accent);
	border-radius: var(--r);
	padding: .5rem 1.25rem;
	font-family: var(--font);
	font-size: var(--fs-sm);
	cursor: pointer;
	transition: background .15s, color .15s;
}
.comment-form input[type="submit"]:hover { background: var(--accent); color: var(--bg); }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: 2.5rem 0 1rem;
	font-size: var(--fs-sm);
}
.pagination .page-numbers {
	padding: .3rem .65rem;
	border: 1px solid var(--border);
	color: var(--fg-muted);
	border-radius: var(--r);
	border-bottom: none;
	transition: border-color .15s, color .15s;
}
.pagination .page-numbers:hover,
.pagination .current { border-color: var(--accent); color: var(--accent); }
.pagination .dots { border: none; color: var(--fg-muted); }

/* ============================================================
   Search (full page)
   ============================================================ */
.search-bar { display: flex; gap: .5rem; margin-bottom: 2rem; }
.search-bar input[type="search"] {
	flex: 1;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: .5rem .75rem;
	font-family: var(--font);
	font-size: var(--fs-sm);
	color: var(--fg);
	outline: none;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar button {
	background: transparent;
	color: var(--fg-muted);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: .5rem 1rem;
	font-family: var(--font);
	font-size: var(--fs-sm);
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.search-bar button:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   404
   ============================================================ */
.error-404 { padding: 5rem 0; text-align: center; }
.error-404 .err-code { font-size: 72px; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.error-404 .err-msg  { font-size: var(--fs-md); color: var(--fg-muted); margin-bottom: 2rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
	padding: 1.5rem 0;
	border-top: 1px solid var(--border);
	margin-top: 1rem;
}
.site-footer .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .75rem;
}
.footer-copy { font-size: var(--fs-xs); color: var(--fg-muted); }
.footer-copy a { color: var(--fg-muted); border-bottom: none; }
.footer-copy a:hover { color: var(--accent); }
.footer-powered { font-size: var(--fs-xs); color: var(--fg-faint); }

/* ============================================================
   Utilities & WP Helpers
   ============================================================ */
.alignleft  { float: left; margin: .5em 1.5em .5em 0; }
.alignright { float: right; margin: .5em 0 .5em 1.5em; }
.aligncenter{ display: block; margin: .5em auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--fs-xs); color: var(--fg-muted); text-align: center; margin-top: .35rem; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--bg-alt); border-radius: 3px; box-shadow: 0 0 2px 2px rgba(75,250,106,.3);
	clip: auto !important; clip-path: none; color: var(--accent);
	display: block; font-size: 14px; font-weight: 700; height: auto;
	left: 5px; line-height: normal; padding: 15px 23px 14px;
	text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 800px) {
	.layout-sidebar {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.sidebar {
		border-top: 1px solid var(--border);
		padding-top: 1.5rem;
	}
}

@media (max-width: 600px) {
	:root {
		--pad: 1.25rem;
		--fs-base: 13px;
		--fs-xl: 22px;
		--fs-lg: 18px;
	}
	.site-header .container { flex-direction: column; align-items: flex-start; gap: .75rem; }
	.projects-grid { grid-template-columns: 1fr; }
	.post-nav { flex-direction: column; }
	.post-nav-item { max-width: 100%; }
	.post-nav-item.next { text-align: left; }
	.site-footer .container { flex-direction: column; align-items: flex-start; }
	.terminal-output { max-height: 240px; }
}
