/*
Theme Name: LaytnTech
Theme URI: https://laytntech.com
Author: Laytn Roark (built with Artifex)
Author URI: https://laytntech.com
Description: Chrome, black and signal-red personal brand theme with green terminal accents. Resume, research, news and find-me hub for Laytn Roark / KernelK3.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: laytntech
*/

/* ==========================================================================
   1. Fonts (self-hosted: no third-party font requests)
   ========================================================================== */
@font-face { font-family: "Orbitron"; src: url("assets/fonts/orbitron-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("assets/fonts/orbitron-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("assets/fonts/orbitron-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ==========================================================================
   2. Design tokens — change the look here
   ========================================================================== */
:root {
	--bg: #050607;
	--bg-2: #0b0d10;
	--panel: #0f1216;
	--panel-2: #151a20;
	--line: rgba(200, 206, 214, 0.16);
	--line-strong: rgba(200, 206, 214, 0.38);

	--text: #dfe3e8;
	--muted: #8d959f;
	--silver: #c9ced5;
	--steel: #7f8995;

	--red: #e3173e;          /* visor / signal red */
	--red-glow: rgba(227, 23, 62, 0.55);
	--red-text: #ff3a5c;     /* brighter red for small text (WCAG AA on black) */
	--green: #3dff7f;        /* terminal phosphor */
	--green-dim: #1d9c4c;
	--green-glow: rgba(61, 255, 127, 0.35);

	--chrome: linear-gradient(180deg, #ffffff 0%, #d9dee4 22%, #8c96a2 48%, #2f353c 50%, #aeb6c0 62%, #eef1f4 82%, #9aa3ad 100%);
	--chrome-soft: linear-gradient(180deg, #f5f7f9 0%, #b8c0c9 55%, #e7eaee 100%);
	--brushed: linear-gradient(135deg, #1a1f25 0%, #0e1115 45%, #1b2027 100%);

	--font-display: "Orbitron", "Segoe UI", sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

	--radius: 4px;
	--cut: 14px;            /* size of the angled corner cut */
	--wrap: 1180px;
	--header-h: 72px;
}

/* ==========================================================================
   3. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background-color: var(--bg);
	background-image:
		radial-gradient(ellipse at 50% -10%, rgba(201, 206, 213, 0.10), transparent 55%),
		linear-gradient(rgba(200, 206, 214, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(200, 206, 214, 0.035) 1px, transparent 1px);
	background-size: 100% 100%, 48px 48px, 48px 48px;
	background-attachment: fixed;
	color: var(--text);
	font: 400 17px/1.7 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
/* faint CRT scanlines over everything */
body::after {
	content: "";
	position: fixed; inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
	opacity: 0.35;
	z-index: 100;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--silver); text-decoration-color: var(--red); text-underline-offset: 3px; transition: color .15s; }
a:hover, a:focus-visible { color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: 0.02em; color: #eef1f4; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 2.5rem 0; }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: .9em; }
:not(pre) > code { color: var(--green); background: rgba(61,255,127,.08); padding: .1em .35em; border-radius: 3px; }

.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;
}
.screen-reader-text:focus { clip-path: none; height: auto; width: auto; margin: 0; left: 12px; top: 12px; z-index: 1000; background: var(--red); color: #fff; padding: 10px 16px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.chrome-text {
	background: var(--chrome);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	filter: drop-shadow(0 2px 0 rgba(0,0,0,.6));
}
.kicker {
	display: inline-flex; align-items: center; gap: .6em;
	font: 500 .78rem/1 var(--font-mono);
	letter-spacing: .18em; text-transform: uppercase;
	color: var(--red-text);
	margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red-glow); }

/* Angled-corner panel used across the site */
.panel {
	position: relative;
	background: var(--brushed);
	border: 1px solid var(--line);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.panel::before { /* chrome top edge */
	content: ""; position: absolute; left: 0; right: var(--cut); top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}

/* Buttons */
.btn {
	--btn-bg: transparent;
	display: inline-flex; align-items: center; gap: .55em;
	padding: .85em 1.4em;
	font: 700 .78rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
	color: var(--text); text-decoration: none;
	background: var(--btn-bg);
	border: 1px solid var(--line-strong);
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
	transition: background .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:hover, .btn:focus-visible { color: #fff; background: rgba(255,255,255,.06); transform: translateY(-1px); }
.btn--primary { --btn-bg: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 24px var(--red-glow); }
.btn--primary:hover, .btn--primary:focus-visible { background: #ff2a52; }
.btn--chrome { --btn-bg: var(--chrome-soft); color: #0b0d10; border-color: #e6e9ed; }
.btn--chrome:hover, .btn--chrome:focus-visible { color: #000; background: #fff; }

/* ==========================================================================
   4. Header + visor bar
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(5, 6, 7, 0.82);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand img, .brand .custom-logo { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--silver); box-shadow: 0 0 0 2px #000, 0 0 16px rgba(201,206,213,.25); object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 900 1rem/1.1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.brand__handle { font: 400 .72rem/1.2 var(--font-mono); color: var(--green); letter-spacing: .08em; }

/* the RoboCop visor: a red light sweeping along the bottom of the header */
.visor { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.visor::after {
	content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%;
	background: linear-gradient(90deg, transparent, var(--red), #ff8aa0, var(--red), transparent);
	box-shadow: 0 0 18px var(--red);
	animation: visor-sweep 5.5s ease-in-out infinite alternate;
}
@keyframes visor-sweep { from { left: -30%; } to { left: 100%; } }

.nav-toggle {
	display: none;
	background: none; border: 1px solid var(--line-strong); color: var(--text);
	font: 700 .72rem/1 var(--font-mono); letter-spacing: .14em; padding: .7em .9em; cursor: pointer;
}
.primary-nav ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.primary-nav a {
	display: block; padding: .6em .9em;
	font: 500 .74rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase;
	color: var(--muted); text-decoration: none; position: relative;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: #fff; }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav .current_page_parent > a { color: #fff; }
.primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after, .primary-nav .current_page_parent > a::after {
	content: ""; position: absolute; left: .9em; right: .9em; bottom: 0; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red-glow);
}

@media (max-width: 820px) {
	.nav-toggle { display: inline-block; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: rgba(5,6,7,.97); border-bottom: 1px solid var(--line); display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; padding: .6rem 20px 1rem; }
	.primary-nav a { padding: .95em 0; font-size: .85rem; }
	.primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after, .primary-nav .current_page_parent > a::after { left: 0; right: auto; width: 24px; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.hero__grid {
	display: grid; grid-template-columns: 1.15fr .85fr; column-gap: clamp(2rem, 5vw, 4rem); row-gap: 1.4rem; align-items: center;
	grid-template-areas: "copy emblem" "copy term";
}
.hero__copy { grid-area: copy; }
.hero__emblem { grid-area: emblem; display: grid; justify-items: center; align-self: end; }
.hero__terminal { grid-area: term; align-self: start; }
.hero__name { font-size: clamp(2.6rem, 7.5vw, 5.4rem); font-weight: 900; letter-spacing: .04em; line-height: .98; margin-bottom: .25em; text-transform: uppercase; }
.hero__role { font: 500 clamp(.8rem, 1.6vw, .95rem)/1.5 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--silver); margin-bottom: 1.4rem; }
.hero__role .sep { color: var(--red-text); padding: 0 .4em; }
.hero__intro { font-size: 1.1rem; color: #c3c9d0; max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__availability {
	display: inline-flex; align-items: center; gap: .6em; margin-top: 1.4rem;
	font: 400 .82rem/1.3 var(--font-mono); color: var(--green);
}
.hero__availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s steps(2) infinite; }

.emblem { position: relative; width: min(330px, 78vw); aspect-ratio: 1; }
.emblem__ring {
	position: absolute; inset: 0; border-radius: 50%;
	background: conic-gradient(from 210deg, #f4f6f8, #6b7480, #e9edf1, #3b424a, #dfe4e9, #7d8792, #f4f6f8);
	box-shadow: 0 0 0 1px #000, 0 30px 60px rgba(0,0,0,.7), 0 0 60px rgba(201,206,213,.12);
}
.emblem img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); border-radius: 50%; object-fit: cover; border: 3px solid #000; }
.emblem__scan { /* red visor line sweeping vertically over the emblem */
	position: absolute; inset: 9px; border-radius: 50%; overflow: hidden; pointer-events: none;
}
.emblem__scan::after {
	content: ""; position: absolute; left: 0; right: 0; height: 3px; top: 0;
	background: linear-gradient(90deg, transparent, var(--red), transparent);
	box-shadow: 0 0 16px var(--red), 0 0 40px var(--red-glow);
	animation: scan 4s ease-in-out infinite alternate;
}
@keyframes scan { from { top: 8%; } to { top: 92%; } }
.emblem__tag {
	position: absolute; right: -6px; bottom: 10%;
	font: 700 .66rem/1 var(--font-mono); letter-spacing: .12em;
	background: #000; color: var(--green); border: 1px solid var(--green-dim); padding: .5em .7em;
}

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; grid-template-areas: "emblem" "copy" "term"; row-gap: 2rem; }
	.emblem { width: min(230px, 62vw); }
}

/* ==========================================================================
   6. Terminal component
   ========================================================================== */
.terminal {
	width: 100%;
	background: #020403;
	border: 1px solid #1c2a21;
	border-radius: 8px;
	box-shadow: 0 0 0 1px #000, 0 20px 50px rgba(0,0,0,.6), inset 0 0 60px rgba(61,255,127,.05);
	overflow: hidden;
	font: 400 .86rem/1.65 var(--font-mono);
}
.terminal__bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: linear-gradient(#1a1e22, #101316); border-bottom: 1px solid #000; }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4048; }
.terminal__bar i:first-child { background: var(--red); }
.terminal__bar span { margin-left: auto; color: var(--steel); font-size: .72rem; letter-spacing: .06em; }
.terminal__body { padding: 1rem 1.1rem 1.2rem; color: var(--green); text-shadow: 0 0 6px var(--green-glow); min-height: 9.5em; }
.terminal__line { white-space: pre-wrap; word-break: break-word; }
.terminal__line .p-user { color: var(--green); }
.terminal__line .p-path { color: #8fb6ff; }
.terminal__line .p-sym { color: var(--silver); }
.terminal__line.is-output { color: #b9f5cd; }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: text-bottom; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   7. Sections
   ========================================================================== */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.018) 20%, rgba(255,255,255,.018) 80%, transparent); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section__head h2 { margin: 0; }
.section__more { font: 500 .74rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.section__more:hover { color: #fff; }

/* status strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg-2); padding: 1.3rem 1.4rem; }
.stat__label { font: 400 .7rem/1.2 var(--font-mono); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.stat__value { font: 700 clamp(.92rem, 1.4vw, 1.08rem)/1.3 var(--font-display); margin-top: .45rem; color: #eef1f4; letter-spacing: .02em; }

/* about split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.lead { font-size: 1.12rem; color: #c8ced5; }

/* credential / roadmap list */
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cred { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.cred__name { font: 700 .95rem/1.3 var(--font-display); letter-spacing: .04em; }
.cred__status { font: 700 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; padding: .5em .7em; border: 1px solid currentColor; white-space: nowrap; }
.cred__status--done { color: var(--green); }
.cred__status--progress { color: #ffcc4d; }
.cred__status--target { color: var(--red-text); }

/* post cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.card { display: flex; flex-direction: column; padding: 1.5rem 1.5rem 1.3rem; transition: transform .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card__thumb { margin: -1.5rem -1.5rem 1.2rem; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.card__meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; font: 400 .72rem/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.card h3 { font-size: 1.08rem; margin-bottom: .6rem; }
.card h3 a { color: #eef1f4; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card h3 a:hover { color: #fff; }
.card p { color: #aab2bb; font-size: .95rem; margin: 0 0 1rem; }
.card__go { margin-top: auto; font: 700 .7rem/1 var(--font-mono); letter-spacing: .14em; color: var(--red-text); text-transform: uppercase; }

.tag {
	display: inline-block; padding: .38em .6em;
	font: 700 .64rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
	color: var(--silver); border: 1px solid var(--line-strong); text-decoration: none; position: relative; z-index: 1;
}
.tag--news { color: var(--red-text); border-color: rgba(227,23,62,.6); }
.tag--research { color: var(--green); border-color: rgba(61,255,127,.5); }
.tag--log { color: #8fb6ff; border-color: rgba(143,182,255,.5); }

.empty-state { padding: 2rem; color: var(--muted); font-family: var(--font-mono); font-size: .9rem; }
.empty-state strong { color: var(--green); font-weight: 400; }

/* socials */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.social { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; text-decoration: none; color: var(--text); transition: transform .18s, border-color .18s, box-shadow .18s; }
.social:hover, .social:focus-visible { transform: translateY(-3px); border-color: var(--red); color: #fff; }
.social__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--chrome-soft); color: #0b0d10; box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--line-strong); }
.social__icon svg { width: 22px; height: 22px; fill: currentColor; }
.social:hover .social__icon { background: var(--red); color: #fff; box-shadow: 0 0 0 2px #000, 0 0 20px var(--red-glow); }
.social__name { font: 700 .86rem/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.social__handle { font: 400 .78rem/1.3 var(--font-mono); color: var(--muted); }

/* ==========================================================================
   8. Page / post layouts
   ========================================================================== */
.page-head { padding: clamp(2.8rem, 7vw, 5rem) 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.page-head h1 { margin-bottom: .3em; }
.page-head__sub { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 0; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; font: 400 .78rem/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; }

.layout-narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.prose { font-size: 1.06rem; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: 2.2em; padding-bottom: .35em; border-bottom: 1px solid var(--line); }
.prose h3 { margin-top: 1.8em; color: var(--silver); }
.prose a { color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red-text); }
.prose blockquote, .prose .wp-block-quote { margin: 1.6em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--red); color: #c8ced5; font-style: italic; }
.prose img, .prose .wp-block-image img { border: 1px solid var(--line); }
.prose figcaption { font: 400 .78rem/1.4 var(--font-mono); color: var(--muted); text-align: center; margin-top: .6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .65em .8em; border-bottom: 1px solid var(--line); }
.prose th { font: 700 .72rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }
.prose pre, .prose .wp-block-code {
	background: #020403; color: var(--green); text-shadow: 0 0 5px var(--green-glow);
	border: 1px solid #1c2a21; border-left: 3px solid var(--green-dim);
	padding: 1.1em 1.2em; overflow-x: auto; line-height: 1.6; border-radius: 4px;
}
.prose pre code, .prose .wp-block-code code { background: none; padding: 0; color: inherit; }
.prose .wp-block-separator { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.prose .wp-block-button__link { background: var(--red); color: #fff; border-radius: 0; font: 700 .78rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; padding: .9em 1.4em; }
.alignwide { width: min(1000px, 100vw - 40px); margin-left: 50%; transform: translateX(-50%); }

/* Block styles registered in functions.php */
.is-style-terminal {
	background: #020403 !important; color: var(--green);
	border: 1px solid #1c2a21; border-radius: 8px; padding: 1.2em 1.3em !important;
	font-family: var(--font-mono); font-size: .92rem; text-shadow: 0 0 5px var(--green-glow);
}
.is-style-terminal * { color: inherit; }
.is-style-chrome-panel {
	background: var(--brushed) !important; border: 1px solid var(--line); padding: 1.4em 1.5em !important;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* Verification panel (block pattern) */
.verify { margin: 2.5em 0 1em; }
.verify h2, .verify h3 { border: 0 !important; margin-top: 0 !important; font-size: .9rem !important; letter-spacing: .16em; text-transform: uppercase; }
.verify .verify-ok { color: var(--green); }
.verify .verify-assumed { color: #ffcc4d; }

/* Resume page */
.resume-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.page-template-resume .prose h2, .resume .prose h2 { color: #eef1f4; display: flex; align-items: center; gap: .6em; }
.resume .prose h2::before { content: "//"; color: var(--red-text); font-family: var(--font-mono); font-size: .85em; }
.resume .prose h3 { color: #eef1f4; margin-bottom: .2em; }
.resume .prose h3 + p { font: 400 .8rem/1.5 var(--font-mono); color: var(--green); letter-spacing: .04em; }

/* Blog filter chips + search */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 700 .7rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); border: 1px solid var(--line); padding: .7em .9em; }
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip.is-active { color: #fff; border-color: var(--red); background: rgba(227,23,62,.12); }
.search-form { display: flex; border: 1px solid var(--line-strong); background: #020403; }
.search-form label { display: flex; align-items: center; padding-left: .8em; color: var(--green); font-family: var(--font-mono); font-size: .85rem; }
.search-form input[type="search"] { background: transparent; border: 0; color: var(--green); font: 400 .88rem/1 var(--font-mono); padding: .75em .6em; width: 200px; outline: none; }
.search-form button { background: var(--panel-2); color: var(--silver); border: 0; border-left: 1px solid var(--line); font: 700 .68rem/1 var(--font-mono); letter-spacing: .14em; padding: 0 1em; cursor: pointer; }
.search-form button:hover { color: #fff; background: var(--red); }

/* Pagination / post nav */
.pagination, .post-nav { margin: 3rem 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { font: 700 .74rem/1 var(--font-mono); padding: .75em .95em; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { color: #fff; border-color: var(--red); }
.post-nav a { display: block; max-width: 48%; text-decoration: none; padding: 1rem 1.2rem; }
.post-nav small { display: block; font: 400 .7rem/1 var(--font-mono); color: var(--red-text); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.post-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .4rem; }

/* 404 */
.error-404 { padding: clamp(3rem, 10vw, 7rem) 0; }
.error-404 .terminal { max-width: 720px; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; padding: 2.8rem 0 1.6rem; align-items: start; }
.site-footer__prompt { font: 400 .85rem/1.6 var(--font-mono); color: var(--green); }
.site-footer__prompt .muted { color: var(--muted); }
.footer-socials { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.footer-socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--silver); transition: all .15s; }
.footer-socials a:hover, .footer-socials a:focus-visible { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 0 16px var(--red-glow); }
.footer-socials svg { width: 17px; height: 17px; fill: currentColor; }
.site-footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 0 1.6rem; border-top: 1px solid var(--line); font: 400 .72rem/1.4 var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.site-footer__base .debian { display: inline-flex; align-items: center; gap: .45em; }
.site-footer__base .debian svg { width: 14px; height: 14px; fill: var(--red); }
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: 1fr; } .footer-socials { justify-content: flex-start; } }

/* ==========================================================================
   10. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
