/*
Theme Name: oups
Theme URI: https://oups.dev
Author: oups.dev
Description: Thème sombre façon terminal pour un média tech, dev et fuites de données. Fiche incident pour chaque fuite, niveaux de gravité, blocs de code soignés.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: oups
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #0a0e13;
	--bg-2: #0f141b;
	--surface: #131a22;
	--surface-2: #18212b;
	--border: #222d39;
	--border-2: #2e3b49;
	--text: #d8dfe7;
	--text-strong: #f3f6f9;
	--muted: #8695a6;
	--accent: #3ee08f;
	--accent-dim: rgba(62, 224, 143, .12);
	--danger: #ff4d5e;
	--warn: #ffb547;
	--orange: #ff8a3d;
	--info: #4cc9f0;
	--violet: #b392f0;

	--sev-low: var(--info);
	--sev-medium: var(--warn);
	--sev-high: var(--orange);
	--sev-critical: var(--danger);

	--mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 6px;
	--wrap: 1200px;
	--measure: 720px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--bg);
	background-image:
		radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 0);
	background-size: 24px 24px;
	color: var(--text);
	font: 400 1.0625rem/1.7 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--mono);
	color: var(--text-strong);
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 2em 0 .6em;
}
hr { border: 0; border-top: 1px dashed var(--border-2); margin: 2.5em 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--bg); padding: 8px 12px; font-family: var(--mono); }
.skip-link:focus { left: 8px; }
.mono { font-family: var(--mono); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(10, 14, 19, .88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { font-family: var(--mono); font-weight: 700; font-size: 1.15rem; color: var(--text-strong); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-prompt { color: var(--accent); }
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.primary-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav li a {
	display: block; padding: 6px 10px; border-radius: var(--radius);
	font: 500 .875rem var(--mono); color: var(--muted);
}
.primary-nav li a::before { content: "./"; color: var(--border-2); }
.primary-nav li a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-category-ancestor > a,
.primary-nav .current-post-ancestor > a { color: var(--text-strong); background: var(--surface); text-decoration: none; }
.primary-nav .current-menu-item > a::before,
.primary-nav .current-post-ancestor > a::before { color: var(--accent); }

.search-form { position: relative; display: flex; align-items: center; }
.search-form::before { content: "grep"; position: absolute; left: 10px; font: 600 .75rem var(--mono); color: var(--accent); pointer-events: none; }
.search-form input[type="search"] {
	width: 190px; padding: 7px 10px 7px 48px;
	background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
	color: var(--text); font: .875rem var(--mono);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--accent); }
.search-form button { display: none; }

.nav-toggle {
	display: none; margin-left: auto;
	background: none; border: 1px solid var(--border-2); border-radius: var(--radius);
	color: var(--text); font: 600 .8rem var(--mono); padding: 6px 10px; cursor: pointer;
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 12px;
		padding: 16px var(--gutter) 20px; background: var(--bg-2); border-bottom: 1px solid var(--border);
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav ul { flex-direction: column; }
	.search-form input[type="search"] { width: 100%; }
}

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.admin-bar .progress { top: 32px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--border); background: var(--bg-2); font: .8125rem var(--mono); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.ticker-label { flex: none; color: var(--danger); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ticker-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(255,77,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,77,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); } }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-list { display: flex; gap: 40px; width: max-content; list-style: none; margin: 0; padding: 0; animation: scroll 50s linear infinite; }
.ticker:hover .ticker-list { animation-play-state: paused; }
.ticker-list a { color: var(--text); white-space: nowrap; }
.ticker-list .count { color: var(--muted); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Badges ---------- */
.sev {
	--c: var(--muted);
	display: inline-flex; align-items: center; gap: 6px;
	font: 700 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
	color: var(--c); padding: 4px 7px; border: 1px solid currentColor; border-radius: 3px;
	background: color-mix(in srgb, var(--c) 10%, transparent);
}
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev-low { --c: var(--sev-low); }
.sev-medium { --c: var(--sev-medium); }
.sev-high { --c: var(--sev-high); }
.sev-critical { --c: var(--sev-critical); }
.cat-label { font: 600 .75rem var(--mono); text-transform: lowercase; color: var(--accent); }
.cat-label::before { content: "#"; opacity: .6; }

/* ---------- Home ---------- */
.home-intro { padding: 56px 0 8px; }
.home-intro .prompt { font: .875rem var(--mono); color: var(--muted); margin: 0 0 12px; }
.home-intro .prompt b { color: var(--accent); font-weight: 600; }
.home-intro h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.75rem); max-width: 22ch; }
.home-intro h1 em { font-style: normal; color: var(--danger); }
.home-intro p.lede { color: var(--muted); max-width: 60ch; margin: 14px 0 0; }

.section-title { display: flex; align-items: baseline; gap: 12px; font: 600 .8125rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 48px 0 20px; }
.section-title::after { content: ""; flex: 1; border-top: 1px dashed var(--border-2); }

.featured {
	display: grid; grid-template-columns: 1.25fr 1fr; gap: 0;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; margin-top: 32px;
}
.featured-media { position: relative; min-height: 300px; background: var(--bg-2); }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.featured-body h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.featured-body h2 a { color: var(--text-strong); }
.featured-body .excerpt { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } .featured-media { min-height: 200px; aspect-ratio: 16/9; } }

/* placeholder art when no thumbnail */
.ph {
	position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
	font: .75rem/1.5 var(--mono); color: var(--border-2); overflow: hidden; white-space: pre;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--c, var(--accent)) 14%, transparent), transparent 60%),
		repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.025) 22px 23px),
		var(--bg-2);
}
.ph::after { content: attr(data-hex); position: absolute; top: 14px; left: 16px; right: 16px; color: color-mix(in srgb, var(--c, var(--accent)) 45%, var(--border-2)); word-break: break-all; white-space: normal; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card.has-sev { border-top: 2px solid var(--c); }
.card-media { position: relative; aspect-ratio: 16/9; background: var(--bg-2); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card h3 { margin: 0; font-size: 1.125rem; }
.card h3 a { color: var(--text-strong); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { text-decoration: none; }
.card .excerpt { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.card .records { font: 600 .8125rem var(--mono); color: var(--c); }
.meta { margin-top: auto; font: .75rem var(--mono); color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.meta .sep { color: var(--border-2); }

/* ---------- Archive header ---------- */
.archive-head { padding: 48px 0 8px; }
.archive-head .prompt { font: .875rem var(--mono); color: var(--muted); margin: 0 0 8px; }
.archive-head .prompt b { color: var(--accent); }
.archive-head h1 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.archive-head .desc { color: var(--muted); max-width: 65ch; }
.archive-head .desc p { margin: .5em 0 0; }

/* ---------- Pagination ---------- */
.pagination { margin: 48px 0 24px; font-family: var(--mono); font-size: .875rem; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); }
.pagination .page-numbers.current { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.pagination a.page-numbers:hover { color: var(--text-strong); border-color: var(--border-2); text-decoration: none; }

/* ---------- Single ---------- */
.entry-head { max-width: var(--measure); margin: 0 auto; padding: 48px 0 24px; }
.crumbs { font: .8125rem var(--mono); color: var(--muted); margin: 0 0 18px; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .p { color: var(--accent); }
.entry-title { margin: 0 0 18px; font-size: clamp(1.8rem, 4.2vw, 2.75rem); }
.entry-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font: .8125rem var(--mono); color: var(--muted); }
.entry-sub .sep { color: var(--border-2); }
.entry-hero { max-width: 1000px; margin: 8px auto 0; }
.entry-hero img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.entry-hero figcaption { font: .75rem var(--mono); color: var(--muted); margin-top: 8px; text-align: center; }

.entry-content { max-width: var(--measure); margin: 0 auto; padding: 8px 0 32px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2 { font-size: 1.55rem; margin-top: 2.2em; }
.entry-content h2::before { content: "## "; color: var(--accent); opacity: .7; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.8em; }
.entry-content h3::before { content: "### "; color: var(--accent); opacity: .5; }
.entry-content a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--accent); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin: .3em 0; }
.entry-content ul li::marker { content: "› "; color: var(--accent); font-family: var(--mono); }
.entry-content strong { color: var(--text-strong); }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px;
	border-left: 3px solid var(--accent); color: var(--text-strong); font-size: 1.1rem;
}
.entry-content blockquote cite { display: block; margin-top: 8px; font: normal .8125rem var(--mono); color: var(--muted); }
.entry-content .alignwide { max-width: 1000px; margin-left: 50%; transform: translateX(-50%); width: min(1000px, calc(100vw - 2 * var(--gutter))); }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content figcaption, .wp-element-caption { font: .75rem var(--mono); color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.entry-content th { font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom-color: var(--border-2); }
.entry-content .wp-block-separator { border: 0; border-top: 1px dashed var(--border-2); }

/* Inline code + code blocks */
code, kbd, samp { font-family: var(--mono); font-size: .875em; }
:not(pre) > code {
	padding: .15em .4em; border-radius: 4px;
	background: var(--surface-2); border: 1px solid var(--border); color: var(--violet);
}
kbd { padding: .1em .45em; border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); }
pre, .wp-block-code {
	position: relative;
	background: #070a0e; color: #cfd8e3;
	border: 1px solid var(--border); border-radius: var(--radius);
	padding: 44px 20px 18px; overflow-x: auto;
	font: .875rem/1.65 var(--mono); tab-size: 4;
}
pre::before, .wp-block-code::before {
	content: ""; position: absolute; top: 14px; left: 16px; width: 10px; height: 10px; border-radius: 50%;
	background: #ff5f57; box-shadow: 16px 0 #febc2e, 32px 0 #28c840; opacity: .85;
}
pre code, .wp-block-code code { white-space: pre; overflow-wrap: normal; background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.code-lang { position: absolute; top: 10px; right: 76px; font: 600 .6875rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.copy-btn {
	position: absolute; top: 8px; right: 10px;
	background: var(--surface); border: 1px solid var(--border-2); border-radius: 4px;
	color: var(--muted); font: 600 .6875rem var(--mono); padding: 4px 8px; cursor: pointer;
}
.copy-btn:hover { color: var(--text-strong); }
.copy-btn.ok { color: var(--accent); border-color: var(--accent); }

/* Notice blocks via block style "Alerte" */
.is-style-oups-alert, .is-style-oups-tip {
	--c: var(--danger);
	border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
	background: color-mix(in srgb, var(--c) 8%, transparent);
	border-radius: var(--radius); padding: 16px 20px 16px 48px; position: relative;
}
.is-style-oups-alert::before, .is-style-oups-tip::before {
	content: "!"; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%;
	display: grid; place-items: center; background: var(--c); color: var(--bg); font: 800 .75rem var(--mono);
}
.is-style-oups-tip { --c: var(--accent); }
.is-style-oups-tip::before { content: "i"; }

/* ---------- Incident card ---------- */
.incident {
	--c: var(--muted);
	max-width: var(--measure); margin: 0 auto 32px;
	background: #070a0e; border: 1px solid var(--border); border-left: 3px solid var(--c);
	border-radius: var(--radius); overflow: hidden;
	font: .875rem/1.7 var(--mono);
}
.incident.sev-low { --c: var(--sev-low); }
.incident.sev-medium { --c: var(--sev-medium); }
.incident.sev-high { --c: var(--sev-high); }
.incident.sev-critical { --c: var(--sev-critical); }
.incident-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.incident-file { color: var(--muted); font-size: .8125rem; }
.incident-file b { color: var(--text); font-weight: 600; }
.incident pre { margin: 0; border: 0; border-radius: 0; background: none; padding: 16px 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.incident pre::before { display: none; }
.incident .k { color: var(--info); }
.incident .s { color: var(--accent); }
.incident .n { color: var(--warn); }
.incident .p { color: var(--muted); }
.incident .x { color: var(--c); font-weight: 700; }
.incident-records { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px 0; }
.incident-records strong { font-size: 2rem; line-height: 1; color: var(--c); }
.incident-records span { color: var(--muted); font-size: .8125rem; }
.incident-foot { padding: 10px 20px; border-top: 1px dashed var(--border); font-size: .75rem; color: var(--muted); }

/* ---------- Post footer ---------- */
.entry-foot { max-width: var(--measure); margin: 0 auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.tags a { display: block; font: .8125rem var(--mono); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.tags a::before { content: "#"; color: var(--accent); }
.tags a:hover { color: var(--text-strong); border-color: var(--border-2); text-decoration: none; }

.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.author-box img { border-radius: 50%; flex: none; }
.author-box .name { font: 700 .9375rem var(--mono); color: var(--text-strong); margin: 0 0 4px; }
.author-box p { margin: 0; color: var(--muted); font-size: .9375rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.post-nav a:hover { border-color: var(--border-2); text-decoration: none; }
.post-nav .dir { display: block; font: .75rem var(--mono); color: var(--muted); margin-bottom: 4px; }
.post-nav .t { color: var(--text-strong); font-weight: 600; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; } }

.related { padding-bottom: 24px; }

/* ---------- Comments ---------- */
.comments { max-width: var(--measure); margin: 0 auto; padding: 16px 0 48px; }
.comments h2 { font-size: 1.2rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 1px dashed var(--border-2); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-meta { display: flex; align-items: center; gap: 10px; font: .8125rem var(--mono); color: var(--muted); }
.comment-meta img { border-radius: 50%; }
.comment-meta .fn { color: var(--text-strong); font-style: normal; font-weight: 700; }
.comment-meta a { color: var(--muted); }
.comment-content p { margin: .6em 0; }
.reply a { font: .75rem var(--mono); }
.comment-form label { display: block; font: .8125rem var(--mono); color: var(--muted); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
	color: var(--text); font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form p { margin: 0 0 14px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }

.btn, .comment-form input[type="submit"], .wp-block-button__link {
	display: inline-block; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--accent);
	background: var(--accent); color: var(--bg); font: 700 .875rem var(--mono); cursor: pointer;
}
.btn:hover, .comment-form input[type="submit"]:hover, .wp-block-button__link:hover { background: transparent; color: var(--accent); text-decoration: none; }

/* ---------- 404 / empty ---------- */
.terminal {
	max-width: 720px; margin: 64px auto; background: #070a0e; border: 1px solid var(--border); border-radius: var(--radius);
	font: .9375rem/1.8 var(--mono); overflow: hidden;
}
.terminal-bar { padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--muted); font-size: .8125rem; }
.terminal-body { padding: 20px 24px 28px; }
.terminal-body p { margin: 0; }
.terminal-body .cmd::before { content: "$ "; color: var(--accent); }
.terminal-body .err { color: var(--danger); }
.terminal-body .dim { color: var(--muted); }
.terminal-body .search-form { margin-top: 20px; }
.terminal-body .search-form input[type="search"] { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--border); background: var(--bg-2); font: .8125rem var(--mono); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.eof { color: var(--border-2); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.cursor, .ticker-label::before { animation: none; }
	.ticker-list { animation: none; }
	.ticker-track { overflow-x: auto; }
	.card, .card:hover { transition: none; transform: none; }
}
