/* =============================================
   Thurmanoid Terminal Theme — terminal.css
   Green-on-black CRT terminal aesthetic
   ============================================= */

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

html {
	font-size: 17px;
	scroll-behavior: smooth;
}

body {
	font-family: 'IBM Plex Mono', 'Courier New', 'Consolas', monospace;
	background: #000;
	color: #0f0;
	line-height: 1.8;
	overflow-x: hidden;
	min-height: 100vh;
	position: relative;
	text-shadow: 0 0 3px rgba(0, 255, 0, 0.15);
	font-weight: 500;
}

::selection {
	background: #0f0;
	color: #000;
}

::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: #000;
}
::-webkit-scrollbar-thumb {
	background: #0f0;
	border-radius: 0;
}

/* ========== LINKS ========== */
a {
	color: #0f0;
	text-decoration: none;
}
a:hover {
	color: #fff;
	text-shadow: 0 0 10px #0f0;
}
a:visited {
	color: #0a0;
}

/* ========== MATRIX RAIN CANVAS ========== */
#matrix-canvas-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}
#matrix-rain {
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0.15;
}

/* ========== PAGE OVERLAY ========== */
#page {
	position: relative;
	z-index: 1;
	max-width: 960px;
	margin: 0 auto;
	padding: 20px;
	min-height: 100vh;
}

/* ========== CRT OVERLAY EFFECT ========== */
body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.05) 0px,
		rgba(0, 0, 0, 0.05) 1px,
		transparent 1px,
		transparent 2px
	);
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9998;
	background: radial-gradient(
		ellipse at center,
		transparent 70%,
		rgba(0, 0, 0, 0.3) 100%
	);
}

/* ========== HEADER / TERMINAL TITLE BAR ========== */
.terminal-titlebar {
	background: #0a0a0a;
	border: 1px solid #0f0;
	border-bottom: none;
	padding: 6px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8rem;
	color: #0a0;
	font-family: 'Segoe UI', 'Arial', sans-serif;
}

.titlebar-dots {
	display: flex;
	gap: 6px;
}
.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}
.dot-close { background: #ff5f56; }
.dot-minimize { background: #ffbd2e; }
.dot-maximize { background: #27c93f; }

.titlebar-text {
	font-size: 0.75rem;
	color: #aaa;
	text-align: center;
	flex: 1;
}

.titlebar-status {
	font-size: 0.65rem;
	color: #0f0;
	display: flex;
	align-items: center;
	gap: 6px;
}
.kernel-ticker {
	transition: opacity 0.3s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 300px;
}
.status-indicator {
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #0f0;
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

/* ========== GLITCH LOGO ========== */
.glitch-logo {
	text-align: center;
	padding: 10px 0;
}
.glitch-word {
	font-size: 1.4rem;
	font-weight: bold;
	letter-spacing: 6px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}
.glitch-char {
	color: #0f0;
	text-shadow: 0 0 5px #0f0;
	transition: color 0.1s, text-shadow 0.1s;
	min-width: 1.2rem;
	display: inline-block;
	text-align: center;
}
.glitch-version {
	color: #0a0;
	font-size: 0.7rem;
	letter-spacing: normal;
	align-self: flex-end;
	margin-left: 6px;
	padding-bottom: 4px;
}
.glitch-divider {
	color: #0a0;
	font-size: 0.6rem;
	letter-spacing: 4px;
	margin: 4px 0;
	overflow: hidden;
	white-space: nowrap;
}
.glitch-sub {
	color: #090;
	font-size: 0.65rem;
	letter-spacing: 3px;
}

/* Glitch flicker animation */
@keyframes glitch-flicker {
	0% { opacity: 1; transform: translate(0); }
	10% { opacity: 0.8; transform: translate(-1px, 1px); }
	20% { opacity: 1; transform: translate(0); }
	100% { opacity: 1; transform: translate(0); }
}

.terminal-header-content {
	padding: 10px;
	border: 1px solid #0f0;
	border-top: none;
	border-bottom: none;
}

.terminal-subheader {
	text-align: center;
	font-size: 0.85rem;
	margin-top: 5px;
}

/* ========== NAV ========== */
.terminal-nav {
	border: 1px solid #0f0;
	border-top: none;
	border-bottom: none;
	padding: 8px 15px;
}
.terminal-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
}
.terminal-nav a {
	color: #0f0;
	font-size: 0.85rem;
	transition: all 0.2s;
}
.terminal-nav a:hover {
	color: #fff;
	text-shadow: 0 0 8px #0f0;
}

/* ========== MAIN CONTENT ========== */
.terminal-body {
	border: 1px solid #0f0;
	border-top: none;
	padding: 20px;
	min-height: 300px;
}

.terminal-prompt {
	color: #0f0;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #0f0;
	font-size: 0.9rem;
	word-break: break-all;
}
.prompt-user { color: #0f0; font-weight: 600; }
.prompt-at { color: #aaa; }
.prompt-host { color: #0ff; }
.prompt-path { color: #ff0; }
.prompt-dollar { color: #0f0; }
.prompt-cursor, .prompt-cursor-blink { color: #0f0; }

/* ========== BLINKING CURSOR ========== */
.blink {
	animation: blink-anim 1s step-end infinite;
}
@keyframes blink-anim {
	50% { opacity: 0; }
}

/* ========== POST ENTRY (index) ========== */
.terminal-entry {
	padding: 12px;
	margin-bottom: 12px;
	border: 1px solid #0a0;
	transition: border-color 0.3s;
}
.terminal-entry:hover {
	border-color: #0f0;
}

.entry-meta {
	font-size: 0.75rem;
	color: #0b0;
	margin-bottom: 6px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.entry-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.entry-title a {
	color: #0f0;
}
.entry-title a:hover {
	color: #fff;
}

.entry-summary {
	font-size: 0.85rem;
	color: #0c0;
	margin-bottom: 8px;
}
.entry-summary p { margin-bottom: 5px; }

.entry-footer {
	font-size: 0.75rem;
	color: #090;
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

/* ========== CONTENT BADGE ========== */
.content-badge {
	display: inline-block;
	font-size: 0.7rem;
	padding: 1px 6px;
	border: 1px solid;
	margin-left: 5px;
}
.badge-human { border-color: #0f0; color: #0f0; }
.badge-ai { border-color: #ff0; color: #ff0; }
.badge-synthetic { border-color: #f00; color: #f00; }

/* ========== BLOG INDEX (ls -la style) ========== */
.terminal-table-header {
	display: flex;
	font-size: 0.7rem;
	color: #0c0;
	padding: 6px 8px;
	border-bottom: 1px solid #0a0;
	margin-bottom: 5px;
}
.terminal-table-header span { display: block; }

.terminal-ls-entry {
	display: flex;
	font-size: 0.8rem;
	padding: 4px 8px;
	border-bottom: 1px solid #0a0;
	transition: background 0.2s;
}
.terminal-ls-entry:hover {
	background: rgba(0, 255, 0, 0.05);
}
.terminal-ls-entry span {
	display: block;
}

.col-perms { width: 100px; flex-shrink: 0; color: #090; }
.col-links { width: 40px; flex-shrink: 0; color: #090; text-align: right; }
.col-owner { width: 100px; flex-shrink: 0; color: #0a0; }
.col-group { width: 120px; flex-shrink: 0; color: #0a0; }
.col-size { width: 70px; flex-shrink: 0; color: #0a0; text-align: right; }
.col-date { width: 140px; flex-shrink: 0; color: #0a0; }
.col-name { flex: 1; color: #0f0; }
.col-badge { width: 120px; flex-shrink: 0; text-align: right; }

.entry-link { color: #0f0; }
.entry-link:hover { color: #fff; }

/* ========== SINGLE POST ========== */
.post-header-bar {
	margin-bottom: 15px;
	padding: 10px;
	background: rgba(0, 255, 0, 0.03);
	border: 1px solid #0a0;
}
.post-meta-line {
	font-size: 0.8rem;
	margin-bottom: 4px;
}
.meta-label {
	color: #0a0;
	margin-right: 5px;
}
.meta-value { color: #0f0; }

.post-divider {
	text-align: center;
	color: #0a0;
	padding: 10px 0;
	font-size: 0.75rem;
	letter-spacing: 2px;
}

.entry-content {
	font-size: 0.9rem;
	line-height: 1.8;
	padding: 15px 0;
}
.entry-content p { margin-bottom: 12px; }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
	color: #0f0;
	font-weight: 600;
	margin: 20px 0 10px;
}
.entry-content h1 { font-size: 1.3rem; }
.entry-content h2 { font-size: 1.15rem; }
.entry-content h3 { font-size: 1rem; }
.entry-content blockquote {
	border-left: 3px solid #0f0;
	padding-left: 15px;
	margin: 15px 0;
	color: #0a0;
	background: rgba(0, 255, 0, 0.03);
}
.entry-content code, .entry-content pre {
	background: #0a0a0a;
	border: 1px solid #0f0;
	padding: 2px 6px;
	font-family: inherit;
	font-size: 0.85rem;
}
.entry-content pre {
	padding: 12px;
	overflow-x: auto;
	margin: 15px 0;
}
.entry-content img {
	max-width: 100%;
	height: auto;
	border: 1px solid #0a0;
	filter: grayscale(0.5);
}
.entry-content ul, .entry-content ol {
	padding-left: 20px;
	margin: 10px 0;
}
.entry-content li { margin-bottom: 5px; }
.entry-content a { text-decoration: underline; }

.post-word-count {
	text-align: right;
	font-size: 0.8rem;
	padding: 10px 0;
	color: #0a0;
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	padding: 15px 0;
	font-size: 0.85rem;
}

/* ========== PAGINATION ========== */
.pagination {
	padding: 15px 0;
	text-align: center;
}
.pagination .page-numbers {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid #0a0;
	margin: 0 2px;
	color: #0a0;
	font-size: 0.8rem;
}
.pagination .page-numbers.current {
	border-color: #0f0;
	color: #0f0;
	background: rgba(0, 255, 0, 0.1);
}
.pagination a.page-numbers:hover {
	border-color: #0f0;
	color: #0f0;
}

/* ========== ERROR 404 ========== */
.error-404-page .error-container {
	text-align: center;
	padding: 30px 0;
}
.error-ascii {
	font-size: 0.7rem;
	color: #f00;
	margin-bottom: 20px;
	text-shadow: 0 0 10px #f00;
	line-height: 1.3;
}
.error-code { color: #f00; font-weight: bold; }
.error-message {
	font-size: 0.9rem;
	margin-bottom: 20px;
	text-align: left;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}
.error-message ul {
	list-style: none;
	padding-left: 20px;
	margin: 10px 0;
}
.error-message li { color: #0a0; margin-bottom: 3px; }
.error-traceback {
	margin: 20px 0;
	text-align: left;
}
.error-traceback pre {
	font-size: 0.75rem;
	color: #0a0;
	background: rgba(255, 0, 0, 0.03);
	border: 1px solid #f00;
	padding: 10px;
	overflow-x: auto;
}
.error-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 20px;
}
.terminal-link {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid #0f0;
	color: #0f0;
	font-size: 0.85rem;
	transition: all 0.2s;
}
.terminal-link:hover {
	background: #0f0;
	color: #000;
}

/* ========== FRONT PAGE ========== */
.front-terminal-window {
	border: 1px solid #0f0;
	margin-bottom: 20px;
}
.window-titlebar {
	background: #0a0a0a;
	padding: 4px 10px;
	font-size: 0.75rem;
	color: #0a0;
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #0f0;
}
.window-body {
	padding: 15px;
}
.boot-lines {
	font-size: 0.8rem;
	color: #0f0;
	line-height: 1.6;
	margin-bottom: 15px;
}
.boot-lines div {
	padding: 1px 0;
}
.enter-prompt {
	font-size: 1rem;
	padding: 10px 0;
}
.front-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 15px 0;
}

.latest-entry {
	margin-top: 20px;
}
.entry-label {
	color: #0a0;
	font-size: 0.8rem;
	border-bottom: 1px solid #0a0;
	display: block;
	padding-bottom: 5px;
	margin-bottom: 10px;
}

/* ========== SEARCH ========== */
.search-result-count {
	font-size: 0.8rem;
	color: #090;
	margin-bottom: 15px;
	padding: 5px;
	border: 1px solid #0a0;
	display: inline-block;
}

/* ========== ARCHIVE ========== */
.archive-description {
	font-size: 0.8rem;
	color: #0a0;
	margin-bottom: 15px;
}

/* ========== MAN PAGE (static pages) ========== */
.man-header {
	border-bottom: 1px solid #0f0;
	padding-bottom: 10px;
	margin-bottom: 20px;
}
.man-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #0f0;
}
.man-description {
	font-size: 0.8rem;
	color: #090;
	margin-top: 4px;
}

/* ========== COMMENTS ========== */
.comments-area {
	padding: 15px 0;
}
.comments-header {
	margin-bottom: 15px;
}
.comments-title {
	font-size: 0.85rem;
	color: #0f0;
	border-bottom: 1px solid #0a0;
	padding-bottom: 5px;
	display: block;
}

.comment-list {
	list-style: none;
}
.comment-list .children {
	list-style: none;
	padding-left: 20px;
	border-left: 1px solid #0a0;
	margin-left: 10px;
}

.terminal-comment {
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid #0a0;
	font-size: 0.85rem;
}
.terminal-comment:hover {
	border-color: #0f0;
}
.comment-meta {
	font-size: 0.75rem;
	color: #0a0;
	margin-bottom: 6px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.comment-pid { color: #0a0; }
.comment-author { color: #0f0; font-weight: 600; }
.comment-time { color: #090; }
.comment-status { color: #0f0; }

.comment-content {
	margin: 8px 0;
	color: #0f0;
}
.comment-content p { margin-bottom: 5px; }

.comment-actions {
	font-size: 0.75rem;
	margin-top: 6px;
}
.comment-actions a {
	color: #0a0;
	margin-right: 8px;
}
.comment-actions a:hover { color: #0f0; }

/* Comment form */
.comment-respond {
	border: 1px solid #0a0;
	padding: 15px;
	margin-top: 20px;
}
.comment-reply-title {
	font-size: 0.85rem;
	color: #0f0;
	margin-bottom: 10px;
}
.comment-form label {
	color: #0f0;
	font-size: 0.8rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	background: #000;
	border: 1px solid #0a0;
	color: #0f0;
	font-family: inherit;
	font-size: 0.85rem;
	padding: 6px 10px;
	width: 100%;
	margin-top: 4px;
}
.comment-form input:focus,
.comment-form textarea:focus {
	border-color: #0f0;
	outline: none;
}
.comment-form .form-submit {
	margin-top: 10px;
}
.terminal-submit {
	background: #000;
	border: 1px solid #0f0;
	color: #0f0;
	font-family: inherit;
	padding: 6px 20px;
	cursor: pointer;
	font-size: 0.85rem;
}
.terminal-submit:hover {
	background: #0f0;
	color: #000;
}

/* ========== FOOTER ========== */
.terminal-footer {
	border: 1px solid #0f0;
	border-top: none;
	padding: 15px;
	font-size: 0.8rem;
}
.footer-divider {
	text-align: center;
	color: #0a0;
	margin-bottom: 10px;
	letter-spacing: 3px;
	overflow: hidden;
	white-space: nowrap;
}
.footer-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 15px;
	color: #0a0;
}
.footer-stats .stat {
	font-size: 0.75rem;
}
.footer-stats .stat::before {
	content: '* ';
	color: #0f0;
}

/* Newsletter */
.footer-newsletter {
	margin-bottom: 15px;
	padding: 12px;
	border: 1px solid #0a0;
	background: rgba(0, 255, 0, 0.02);
}
.newsletter-prompt {
	display: block;
	font-size: 0.85rem;
	color: #0f0;
	margin-bottom: 8px;
}
.newsletter-input-group {
	display: flex;
	gap: 8px;
	align-items: center;
}
#newsletter-email {
	flex: 1;
	background: #000;
	border: 1px solid #0f0;
	color: #0f0;
	font-family: inherit;
	font-size: 0.85rem;
	padding: 6px 10px;
}
#newsletter-email:focus {
	outline: none;
	border-color: #fff;
}
#newsletter-email::placeholder {
	color: #0a0;
}
.newsletter-submit {
	background: #000;
	border: 1px solid #0f0;
	color: #0f0;
	font-family: inherit;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 0.8rem;
}
.newsletter-submit:hover {
	background: #0f0;
	color: #000;
}
.newsletter-message {
	margin-top: 8px;
	font-size: 0.8rem;
	color: #0f0;
}
.newsletter-message.error { color: #f00; }

.footer-disclaimer {
	color: #0a0;
	font-size: 0.7rem;
	margin-bottom: 10px;
	text-align: center;
}
.footer-hex {
	text-align: center;
	margin-bottom: 10px;
	word-break: break-all;
}
.hex-line {
	font-size: 0.6rem;
	color: #090;
	display: block;
}
.footer-copy {
	text-align: center;
	font-size: 0.7rem;
	color: #090;
}

/* ========== HOVER GLITCH ON ENTRIES ========== */
@keyframes glitch-hover {
	0% { transform: translate(0); }
	20% { transform: translate(-1px, 1px); }
	40% { transform: translate(1px, -1px); }
	60% { transform: translate(-1px, -1px); }
	80% { transform: translate(1px, 1px); }
	100% { transform: translate(0); }
}
.terminal-entry:hover .entry-title a {
	animation: glitch-hover 0.3s infinite;
}
.terminal-entry:hover .entry-meta {
	animation: glitch-hover 0.3s infinite;
}

/* ========== IMAGE HOVER ========== */
.entry-content img {
	transition: filter 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.entry-content img:hover {
	filter: grayscale(0) sepia(0.3) hue-rotate(60deg);
	border-color: #0f0;
	box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* ========== NETSTAT PANEL ========== */
.netstat-section {
	margin-bottom: 15px;
}
.netstat-toggle {
	background: none;
	border: 1px solid #0a0;
	color: #0a0;
	font-family: inherit;
	font-size: 0.7rem;
	padding: 3px 10px;
	cursor: pointer;
	width: 100%;
	text-align: left;
}
.netstat-toggle:hover {
	border-color: #0f0;
	color: #0f0;
}
.netstat-panel {
	border: 1px solid #0a0;
	border-top: none;
	padding: 8px;
}
.netstat-panel pre {
	font-size: 0.65rem;
	color: #0a0;
	font-family: inherit;
	line-height: 1.5;
}

/* ========== TERMINAL SHELL (fake command input) ========== */
.terminal-shell {
	border: 1px solid #0f0;
	border-top: none;
	padding: 10px;
}
.shell-divider {
	text-align: center;
	color: #0a0;
	margin-bottom: 8px;
	font-size: 0.7rem;
	letter-spacing: 3px;
	overflow: hidden;
	white-space: nowrap;
}
.shell-scrollback {
	max-height: 300px;
	overflow-y: auto;
	margin-bottom: 8px;
	font-size: 0.8rem;
}
.shell-scrollback::-webkit-scrollbar { width: 4px; }
.shell-line {
	color: #0f0;
	padding: 1px 0;
	line-height: 1.4;
	word-break: break-word;
}
.shell-line-cmd {
	color: #0f0;
	font-weight: bold;
}
.shell-input-line {
	display: flex;
	align-items: center;
	gap: 6px;
}
.shell-prompt {
	color: #0f0;
	font-size: 0.8rem;
	flex-shrink: 0;
}
.shell-input {
	flex: 1;
	background: transparent;
	border: none;
	color: #0f0;
	font-family: inherit;
	font-size: 0.8rem;
	outline: none;
	padding: 4px 0;
}
.shell-input::placeholder {
	color: #0a0;
}

/* ========== ZERO TRUST NOTICE ========== */
.zero-trust-notice {
	margin-top: 20px;
	padding: 12px;
	border: 1px solid #0a0;
	background: rgba(0, 255, 0, 0.02);
	font-size: 0.75rem;
	color: #0a0;
	line-height: 1.6;
}
.zero-trust-notice .notice-title {
	color: #0f0;
	font-weight: bold;
	display: block;
	margin-bottom: 6px;
}
.zero-trust-notice .pgp-fingerprint {
	color: #090;
	font-size: 0.65rem;
	margin-top: 6px;
	display: block;
	word-break: break-all;
}

/* ========== SYSTEM PRINCIPLES (front page) ========== */
.system-principles {
	margin-bottom: 20px;
	padding: 12px;
	border: 1px solid #0a0;
	font-size: 0.8rem;
	color: #0a0;
}
.system-principles .principles-title {
	color: #0f0;
	font-weight: bold;
	display: block;
	margin-bottom: 6px;
}
.system-principles .principle-line {
	color: #0f0;
	padding: 2px 0;
	padding-left: 10px;
	font-size: 0.75rem;
}

/* ========== AI THOUGHT (front page) ========== */
.ai-thought {
	margin-bottom: 20px;
	padding: 12px;
	border: 1px solid #0a0;
	background: rgba(0, 255, 0, 0.02);
	font-size: 0.8rem;
}
.ai-thought .thought-header {
	color: #0a0;
	font-size: 0.7rem;
	display: block;
	margin-bottom: 6px;
}
.ai-thought .thought-quote {
	color: #0f0;
	font-style: italic;
	padding-left: 15px;
	border-left: 2px solid #0f0;
}

/* ========== NO RESULTS ========== */
.terminal-no-results {
	padding: 30px 0;
	text-align: center;
	font-size: 0.9rem;
}
.terminal-no-results .error-msg { color: #f00; }

/* ========== LOGGED IN ========== */
.logged-in-terminal .terminal-entry {
	border-color: #0ff;
}

/* ========== BOOT SEQUENCE ========== */
.boot-sequence {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
}
.boot-text {
	font-size: 0.8rem;
	color: #0f0;
	line-height: 1.5;
	white-space: pre-wrap;
	max-width: 700px;
}

/* =============================================
   RESPONSIVE — 3 breakpoints
   ============================================= */

/* Tablets and small laptops (≤1024px) */
@media (max-width: 1024px) {
	#page {
		max-width: 100%;
		padding: 15px;
	}
	.terminal-body {
		padding: 15px;
	}
	.glitch-word {
		font-size: 1.2rem;
		letter-spacing: 4px;
	}
	.glitch-char {
		min-width: 1rem;
	}
	.boot-lines {
		font-size: 0.7rem;
	}
	.front-actions {
		gap: 8px;
	}
	.terminal-link {
		padding: 5px 12px;
		font-size: 0.8rem;
	}
}

/* Phones landscape + small tablets (≤768px) */
@media (max-width: 768px) {
	.terminal-titlebar {
		flex-wrap: wrap;
		gap: 4px;
		padding: 4px 8px;
	}
	.titlebar-text {
		font-size: 0.65rem;
	}
	.titlebar-status {
		width: 100%;
		justify-content: center;
		font-size: 0.5rem;
	}
	.titlebar-dots {
		display: none;
	}
	.status-indicator {
		width: 6px;
		height: 6px;
	}

	/* Glitch logo */
	.glitch-word {
		font-size: 1rem;
		letter-spacing: 3px;
	}
	.glitch-char {
		min-width: 0.9rem;
	}
	.glitch-version {
		font-size: 0.55rem;
	}
	.glitch-sub {
		font-size: 0.55rem;
	}

	/* Nav */
	.terminal-nav ul {
		gap: 10px;
	}
	.terminal-nav a {
		font-size: 0.75rem;
	}

	/* Boot sequence on front page */
	.boot-lines {
		font-size: 0.65rem;
		line-height: 1.3;
	}
	.enter-prompt {
		font-size: 0.85rem;
	}

	/* Blog index ls layout */
	.terminal-ls-entry, .terminal-table-header {
		font-size: 0.65rem;
		flex-wrap: wrap;
	}
	.col-perms, .col-links, .col-owner, .col-group, .col-size {
		display: none;
	}
	.col-date {
		width: 80px;
	}
	.col-name {
		flex: 1;
	}
	.col-badge {
		display: none;
	}

	/* Single post */
	.post-header-bar {
		padding: 8px;
	}
	.post-meta-line {
		font-size: 0.7rem;
	}
	.entry-content {
		font-size: 0.85rem;
		line-height: 1.7;
	}
	.entry-content img {
		margin: 10px 0;
		border-width: 1px;
	}
	.post-navigation {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}

	/* Zero trust */
	.zero-trust-notice {
		font-size: 0.7rem;
		padding: 10px;
	}

	/* System principles */
	.system-principles {
		font-size: 0.7rem;
		padding: 10px;
	}
	.system-principles .principle-line {
		font-size: 0.65rem;
	}

	/* AI thought */
	.ai-thought {
		padding: 10px;
		font-size: 0.75rem;
	}
	.ai-thought .thought-quote {
		font-size: 0.7rem;
		padding-left: 10px;
	}

	/* Netstat */
	.netstat-panel pre {
		font-size: 0.55rem;
		white-space: pre-wrap;
	}

	/* Footer */
	.footer-stats {
		flex-direction: column;
		gap: 4px;
	}
	.footer-stats .stat {
		font-size: 0.65rem;
	}
	.footer-disclaimer {
		font-size: 0.6rem;
	}

	/* Newsletter */
	.newsletter-input-group {
		flex-direction: column;
	}
	#newsletter-email {
		width: 100%;
	}
	.newsletter-prompt {
		font-size: 0.75rem;
	}

	/* Terminal shell */
	.terminal-shell {
		padding: 8px;
	}
	.shell-scrollback {
		max-height: 200px;
		font-size: 0.7rem;
	}
	.shell-input {
		font-size: 0.7rem;
	}
	.shell-prompt {
		font-size: 0.7rem;
	}

	/* Kernel ticker */
	.kernel-ticker {
		max-width: 120px;
		font-size: 0.5rem;
	}

	/* Pagination */
	.pagination .page-numbers {
		font-size: 0.7rem;
		padding: 2px 8px;
	}

	/* Error page */
	.error-ascii {
		font-size: 0.5rem;
	}
	.error-message {
		font-size: 0.8rem;
	}
}

/* Phones portrait (≤480px) */
@media (max-width: 480px) {
	#page {
		padding: 8px;
	}
	.terminal-body {
		padding: 10px;
		min-height: 200px;
	}
	.terminal-header-content {
		padding: 6px;
	}
	.terminal-nav ul {
		gap: 4px;
		font-size: 0.65rem;
	}
	.terminal-nav a {
		font-size: 0.65rem;
	}

	/* Compress nav link brackets to save space */
	.terminal-nav a {
		padding: 2px 3px;
	}

	/* Tighten titlebar */
	.terminal-titlebar {
		padding: 3px 6px;
	}
	.titlebar-text {
		font-size: 0.6rem;
	}
	.titlebar-status {
		font-size: 0.45rem;
	}
	.status-indicator {
		width: 5px;
		height: 5px;
	}

	/* Glitch logo — smallest */
	.glitch-word {
		font-size: 0.8rem;
		letter-spacing: 2px;
	}
	.glitch-char {
		min-width: 0.7rem;
	}
	.glitch-version {
		font-size: 0.45rem;
	}
	.glitch-divider {
		font-size: 0.45rem;
	}
	.glitch-sub {
		font-size: 0.45rem;
	}

	/* Boot sequence */
	.boot-lines {
		font-size: 0.5rem;
		line-height: 1.2;
	}
	.enter-prompt {
		font-size: 0.75rem;
	}
	.front-actions {
		gap: 6px;
	}
	.terminal-link {
		padding: 4px 10px;
		font-size: 0.7rem;
	}

	/* Front window */
	.front-terminal-window .window-titlebar {
		font-size: 0.6rem;
		padding: 3px 6px;
	}
	.window-body {
		padding: 10px;
	}

	/* System principles — remove Unicode box drawing chars */
	.system-principles {
		padding: 8px;
		font-size: 0.65rem;
	}
	.system-principles .principle-line {
		font-size: 0.6rem;
		padding-left: 5px;
	}

	/* AI thought */
	.ai-thought {
		padding: 8px;
		font-size: 0.7rem;
	}
	.ai-thought .thought-quote {
		font-size: 0.65rem;
		padding-left: 8px;
	}

	/* Blog index — show only name */
	.terminal-ls-entry, .terminal-table-header {
		font-size: 0.6rem;
	}
	.col-date {
		display: none;
	}
	.col-name {
		flex: 1;
	}

	/* Post */
	.post-header-bar {
		padding: 6px;
	}
	.post-meta-line {
		font-size: 0.65rem;
	}
	.entry-title {
		font-size: 0.85rem;
	}
	.entry-content {
		font-size: 0.8rem;
		line-height: 1.6;
		padding: 10px 0;
	}
	.post-divider {
		font-size: 0.6rem;
		padding: 6px 0;
	}

	/* Comments */
	.comment-meta {
		font-size: 0.65rem;
		gap: 6px;
	}
	.terminal-comment {
		padding: 8px;
		font-size: 0.75rem;
	}
	.comment-list .children {
		padding-left: 10px;
		margin-left: 5px;
	}

	/* Zero trust */
	.zero-trust-notice {
		font-size: 0.65rem;
		padding: 8px;
	}
	.zero-trust-notice .pgp-fingerprint {
		font-size: 0.5rem;
	}

	/* Newsletter */
	.footer-newsletter {
		padding: 8px;
	}
	.newsletter-prompt {
		font-size: 0.7rem;
	}
	#newsletter-email {
		font-size: 0.75rem;
		padding: 5px 8px;
	}
	.newsletter-submit {
		font-size: 0.7rem;
		padding: 5px 10px;
	}

	/* Terminal shell */
	.terminal-shell {
		padding: 6px;
	}
	.shell-divider {
		font-size: 0.55rem;
	}
	.shell-scrollback {
		max-height: 150px;
		font-size: 0.65rem;
	}
	.shell-input-line {
		flex-wrap: wrap;
	}
	.shell-prompt {
		font-size: 0.65rem;
		width: 100%;
	}
	.shell-input {
		font-size: 0.65rem;
		width: 100%;
	}

	/* Footer */
	.terminal-footer {
		padding: 10px;
		font-size: 0.7rem;
	}
	.footer-divider {
		font-size: 0.55rem;
	}
	.footer-stats .stat {
		font-size: 0.55rem;
	}
	.footer-disclaimer {
		font-size: 0.55rem;
	}
	.footer-hex .hex-line {
		font-size: 0.45rem;
	}
	.footer-copy {
		font-size: 0.55rem;
	}

	/* Netstat */
	.netstat-toggle {
		font-size: 0.6rem;
		padding: 2px 8px;
	}
	.netstat-panel {
		padding: 6px;
	}
	.netstat-panel pre {
		font-size: 0.5rem;
	}

	/* Pagination */
	.pagination .page-numbers {
		font-size: 0.65rem;
		padding: 2px 6px;
	}

	/* Error page */
	.error-404-page .error-container {
		padding: 15px 0;
	}
	.error-ascii {
		font-size: 0.4rem;
	}
	.error-message {
		font-size: 0.7rem;
	}
	.error-traceback pre {
		font-size: 0.55rem;
		padding: 8px;
	}
	.error-actions {
		flex-direction: column;
		gap: 8px;
		align-items: center;
	}

	/* No results */
	.terminal-no-results {
		padding: 15px 0;
		font-size: 0.8rem;
	}

	/* Kernel ticker */
	.kernel-ticker {
		max-width: 80px;
		font-size: 0.45rem;
	}

	/* Man page */
	.man-title {
		font-size: 1rem;
	}
	.man-description {
		font-size: 0.7rem;
	}

	/* Search results */
	.search-result-count {
		font-size: 0.7rem;
		padding: 3px 6px;
	}
}
