:root {
	--bg: #0d1117; /* softer navy-black */
	--fg: #c9fdd7; /* slightly lighter mint text */
	--accent: #9efc9e; /* refined terminal green */
	--muted: #7fbf7f; /* keep your muted green tone */
}
/* :root {
	--bg: #000;
	--fg: #c7f1b0;
	--accent: #9cff6b;
	--muted: #7fbf7f;
} */
body,
.site {
	background: var(--bg);
	color: var(--fg);
	font-family: 'Source Code Pro', Consolas, monospace;
	line-height: 1.55;
	padding: 28px;
}
.site-header {
	margin-bottom: 18px;
}
.site-title a {
	color: var(--accent);
	text-decoration: none;
	font-size: 20px;
}
.site-desc {
	color: var(--muted);
	margin-top: 6px;
}
.xpbar {
	background: #07120a;
	border: 1px solid rgba(0, 255, 0, 0.06);
	padding: 8px;
	border-radius: 6px;
	width: 360px;
	margin: 10px 0;
}
.xp-meta {
	font-family: monospace;
	font-size: 12px;
	margin-bottom: 6px;
	color: var(--muted);
}
.xp-track {
	background: #001100;
	height: 10px;
	border-radius: 6px;
}
.xp-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--accent), #66ff44);
	border-radius: 6px;
}
.site-content {
	margin-top: 14px;
	max-width: 900px;
}

/* keep header text + cursor aligned */
h1.title .type-target,
h1.title .cursor,
h2.type-header .type-target,
h2.type-header .cursor {
	display: inline-block;
	vertical-align: baseline;
	position: relative;
	top: -2px; /* adjust as needed */
}

h1,
h2,
h3 {
	color: var(--accent);
	text-shadow: 0 0 6px rgba(0, 255, 0, 0.08);
}

/* --- Code styling: inline and fenced --- */

/* Inline code (e.g., `ping 8.8.8.8`) */
code {
	background: #161b22;
	color: var(--accent);
	border: 1px solid rgba(0, 255, 0, 0.08);
	padding: 2px 4px;
	border-radius: 4px;
	box-shadow: 0 0 6px rgba(0, 255, 153, 0.06);
}

/* Fenced code blocks (``` ... ```) */
pre {
	background: #161b22; /* keep dark panel */
	color: var(--accent);
	border: 1px solid rgba(0, 255, 0, 0.08);
	padding: 10px 12px 10px 26px; /* extra left for prompt arrow */
	border-radius: 6px;
	overflow-x: auto;
	line-height: 1.5;
	box-shadow: 0 0 10px rgba(0, 255, 153, 0.08); /* soft glow */
	position: relative; /* for the ::before prompt */
}

/* Prompt-style leading arrow inside code blocks */
pre::before {
	content: '> ';
	color: var(--accent);
	opacity: 0.4;
	position: absolute;
	left: 8px;
}

/* Don’t double-style code inside pre */
pre code {
	background: transparent;
	color: var(--accent);
	border: 0;
	padding: 0;
	box-shadow: none;
}

/* --- homepage post list: terminal vibe --- */
.post-list {
	list-style: none;
	padding-left: 0;
	margin: 12px 0 28px;
	font-family: 'Source Code Pro', Consolas, monospace;
	font-size: 16px;
}

.post-list li {
	margin: 8px 0;
	position: relative;
	padding-left: 22px;
}

.post-list li::before {
	content: '>'; /* terminal-style prompt */
	position: absolute;
	left: 0;
	top: 0;
	color: var(--accent);
	text-shadow: 0 0 6px rgba(0, 255, 0, 0.15);
}

.post-list a {
	text-decoration: none;
	color: var(--fg);
	border-bottom: 1px dotted rgba(156, 255, 107, 0.35);
}

.post-list a:hover {
	color: var(--accent);
	border-bottom: 1px solid var(--accent);
	text-shadow: 0 0 6px rgba(0, 255, 0, 0.18);
}

a {
	color: var(--fg);
	transition: color 0.3s ease, text-shadow 0.3s ease;
}
a:hover {
	color: var(--accent);
	text-shadow: 0 0 6px var(--accent);
}

.post-list small {
	color: var(--muted);
	margin-left: 6px;
}

/* Custom post-meta style */
.post-meta {
	font-family: 'Source Code Pro', monospace;
	color: var(--muted);
	font-size: 14px;
	margin-top: 10px;
	margin-bottom: 20px;
}

.post-meta .author {
	color: var(--accent);
}

/* --- return link at bottom of posts --- */
.return-link {
	text-align: left;
	margin-top: 40px;
	font-family: 'Source Code Pro', monospace;
}

.return-link a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px dotted rgba(156, 255, 107, 0.3);
	transition: all 0.2s ease;
}

.return-link a:hover {
	text-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
	border-bottom: 1px solid var(--accent);
}

/* subtle horizontal line */
.divider {
	border: none;
	border-top: 1px dashed rgba(156, 255, 107, 0.25);
	margin: 50px 0 20px;
}

/* --- typing link polish --- */
.return-link {
	text-align: left;
	margin-top: 40px;
	font-family: 'Source Code Pro', monospace;
	white-space: normal; /* preserves spaces like a terminal */
}

.return-link .type-target {
	color: var(--accent);
	text-shadow: 0 0 6px rgba(0, 255, 0, 0.15);
}

/* keep the cursor aligned with text */
.return-link .cursor {
	width: 10px;
	height: 1em;
	display: inline-block;
	vertical-align: -2px;
	margin-left: 2px;
}

.home-link {
	font-family: 'Source Code Pro', monospace;
	font-size: 16px;
	margin-bottom: 10px;
}

.home-link a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px dotted rgba(156, 255, 107, 0.3);
	transition: all 0.2s ease;
}

.home-link a:hover {
	text-shadow: 0 0 6px rgba(0, 255, 0, 0.35);
	border-bottom: 1px solid var(--accent);
}

.cursor {
	display: inline-block;
	width: 10px;
	height: 16px;
	background: var(--accent);
	margin-left: 6px;
	animation: blink 1s steps(2, start) infinite;
	vertical-align: bottom;
}

::selection {
	background-color: var(--accent);
	color: #0d1117;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}
@keyframes flicker {
	0% {
		opacity: 0.99;
	}
	50% {
		opacity: 0.94;
	}
	100% {
		opacity: 0.99;
	}
}
.site {
	animation: flicker 8s infinite;
}
@media (max-width: 640px) {
	.xpbar {
		width: 100%;
	}
}
