/* =========================================================================
   THE WIRED — carter.church design system
   Serial Experiments Lain reskin. Single source of truth, shared by the
   Next.js static site (linked from app/layout.tsx) AND the WordPress blog
   theme (enqueued from functions.php). Keep it framework-free.
   "Present day. Present time."
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=IBM+Plex+Mono:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* --- the Wired palette --- */
  --void: #050506;
  --void-2: #0a0b0d;
  --void-3: #101216;
  --phosphor: #e8dcc0;      /* aged-CRT warm off-white body text */
  --phosphor-dim: #a99f86;
  --phosphor-faint: #6f6858;
  --amber: #ffb347;         /* Copland OS / Navi UI */
  --amber-deep: #c47a1a;
  --blood: #b5231f;         /* the red shadow smears */
  --wired-red: #7a1414;
  --cyan-glow: #4fd6d6;     /* cold Wired glow */
  --teal: #1b6f6f;
  --violet: #9a6fd0;
  --violet-deep: #6b4a8f;
  --wire: #16181c;          /* grid / powerline lines */
  --wire-2: #23262c;
  --static: rgba(255, 255, 255, 0.028);

  /* --- compatibility: remap legacy tokens so old inline refs still read Wired --- */
  --paper: var(--void);
  --paper-deep: var(--void-2);
  --ink: var(--phosphor);
  --muted: var(--phosphor-dim);
  --line: var(--wire-2);
  --olive: var(--teal);
  --olive-deep: var(--cyan-glow);
  --rust: var(--amber);
  --rust-deep: var(--amber-deep);
  --brass: var(--amber);
  --charcoal: var(--void-2);
  --soft: rgba(79, 214, 214, 0.08);

  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --term: "VT323", "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--phosphor);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--void);
  /* faint amber wire grid + cold vertical scan + red shadow smears bleeding from the corners */
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(181, 35, 31, 0.16), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(122, 20, 20, 0.14), transparent 55%),
    linear-gradient(90deg, rgba(255, 179, 71, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(79, 214, 214, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* fine film grain over everything (below the CRT overlay) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-radial-gradient(circle at 13% 27%, var(--static) 0 1px, transparent 1px 2px),
    repeating-radial-gradient(circle at 71% 61%, var(--static) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

::selection { background: var(--amber); color: var(--void); }

a { color: var(--amber); text-decoration: none; transition: color 120ms ease, text-shadow 120ms ease; }
a:hover { color: var(--cyan-glow); text-shadow: 0 0 8px rgba(79, 214, 214, 0.6); }

main { position: relative; z-index: 2; min-height: 70vh; }

/* thin phosphor scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void-2); }
::-webkit-scrollbar-thumb { background: var(--wire-2); border: 1px solid var(--amber-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--amber-deep); }

.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* =========================================================================
   CRT OVERLAY / SCANLINES / VIGNETTE  (DOM injected by wired.js)
   ========================================================================= */
#wired-crt {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}
#wired-crt.off { display: none; }

/* scanlines */
#wired-crt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.32) 0px,
    rgba(0, 0, 0, 0.32) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.55;
  animation: crt-roll 8s linear infinite;
}
/* vignette + curvature + subtle color aberration at edges */
#wired-crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(90deg, rgba(79, 214, 214, 0.05), transparent 6%, transparent 94%, rgba(181, 35, 31, 0.05));
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.75);
}
@keyframes crt-roll { 0% { background-position: 0 0; } 100% { background-position: 0 -220px; } }

/* whole-screen flicker */
#wired-flicker {
  position: fixed;
  inset: 0;
  z-index: 9001;
  pointer-events: none;
  background: rgba(255, 179, 71, 0.015);
  animation: flicker 130ms steps(2) infinite;
}
#wired-flicker.off { display: none; }
@keyframes flicker {
  0% { opacity: 0.12; }
  50% { opacity: 0.03; }
  100% { opacity: 0.10; }
}

/* =========================================================================
   BOOT SEQUENCE  (DOM injected by wired.js)
   ========================================================================= */
#wired-boot {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--void);
  color: var(--amber);
  font-family: var(--term);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  padding: clamp(20px, 6vw, 80px);
  overflow: hidden;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(255, 179, 71, 0.5);
}
#wired-boot.done { animation: boot-out 700ms ease forwards; }
@keyframes boot-out { to { opacity: 0; visibility: hidden; } }
#wired-boot .boot-log { white-space: pre-wrap; }
#wired-boot .boot-caret {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 2px;
  background: var(--amber);
  vertical-align: text-bottom;
  animation: caret 900ms steps(1) infinite;
  box-shadow: 0 0 10px var(--amber);
}
#wired-boot .boot-skip {
  position: absolute;
  right: clamp(20px, 6vw, 80px);
  bottom: clamp(20px, 6vw, 80px);
  color: var(--phosphor-faint);
  font-size: 0.8em;
  letter-spacing: 0.15em;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* =========================================================================
   CONTROL DOCK  (CRT / hum / present-time — injected by wired.js)
   ========================================================================= */
#wired-dock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9002;
  display: flex;
  gap: 8px;
  font-family: var(--term);
  font-size: 1.15rem;
}
#wired-dock button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 2px 10px;
  border: 1px solid var(--wire-2);
  background: rgba(10, 11, 13, 0.85);
  color: var(--phosphor-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
#wired-dock button:hover { color: var(--amber); border-color: var(--amber-deep); }
#wired-dock button.on { color: var(--cyan-glow); border-color: var(--teal); box-shadow: 0 0 12px rgba(79, 214, 214, 0.35); }
@media (max-width: 620px) { #wired-dock { font-size: 1rem; } #wired-dock .dock-label { display: none; } }

/* =========================================================================
   GLITCH TEXT  (apply .glitch + data-text="…")
   ========================================================================= */
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
}
.glitch::before { color: var(--blood); transform: translate(-2px, 0); mix-blend-mode: screen; animation: glitch-a 2.6s infinite steps(1); }
.glitch::after  { color: var(--cyan-glow); transform: translate(2px, 0); mix-blend-mode: screen; animation: glitch-b 3.1s infinite steps(1); }
@keyframes glitch-a {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); }
  93% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 0); }
  95% { clip-path: inset(50% 0 20% 0); transform: translate(3px, 0); }
  97% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 0); }
}
@keyframes glitch-b {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); }
  91% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 0); }
  94% { clip-path: inset(20% 0 55% 0); transform: translate(-2px, 0); }
  98% { clip-path: inset(45% 0 30% 0); transform: translate(3px, 0); }
}

/* =========================================================================
   HEADER — terminal top bar + drooping powerlines
   ========================================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 8000;
  border-bottom: 1px solid var(--amber-deep);
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.96), rgba(5, 5, 6, 0.82));
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 179, 71, 0.25), 0 8px 30px rgba(0, 0, 0, 0.6);
}
/* overexposed sky with black powerlines strung across the very top */
.header::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 22px;
  pointer-events: none;
  opacity: 0.7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='22' viewBox='0 0 240 22'%3E%3Cpath d='M0 4 C60 12 180 12 240 4' stroke='%23000' stroke-width='1' fill='none' opacity='0.85'/%3E%3Cpath d='M0 8 C60 18 180 18 240 8' stroke='%23000' stroke-width='1.5' fill='none' opacity='0.7'/%3E%3Cpath d='M0 2 C60 7 180 7 240 2' stroke='%23000' stroke-width='0.75' fill='none' opacity='0.6'/%3E%3Cline x1='40' y1='0' x2='40' y2='22' stroke='%23000' stroke-width='2'/%3E%3Cline x1='200' y1='0' x2='200' y2='22' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  color: var(--cyan-glow);
  font-family: var(--term);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(79, 214, 214, 0.5);
}
.brand::before { content: "// "; color: var(--phosphor-faint); }
.brand:hover { color: var(--cyan-glow); text-shadow: 0 0 16px rgba(79, 214, 214, 0.7); }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: var(--phosphor-dim);
  font-family: var(--term);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a { position: relative; color: var(--phosphor-dim); padding-bottom: 2px; }
.nav a::before { content: "> "; color: var(--phosphor-faint); opacity: 0; transition: opacity 120ms ease; }
.nav a:hover { color: var(--amber); text-shadow: 0 0 8px rgba(255, 179, 71, 0.55); }
.nav a:hover::before { opacity: 1; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 54px;
  align-items: center;
  padding: clamp(56px, 9vw, 96px) 0 72px;
}
.hero-title {
  margin-bottom: 10px;
  color: var(--cyan-glow);
  font-family: var(--term);
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(79, 214, 214, 0.4);
}
.hero-title::before { content: "// "; color: var(--phosphor-faint); }

h1, h2, h3 { letter-spacing: 0; line-height: 1.02; color: var(--phosphor); }
h1 {
  max-width: 900px;
  margin: 12px 0 22px;
  font-family: var(--term);
  font-size: clamp(3.4rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 0 24px rgba(255, 179, 71, 0.35), 3px 3px 0 rgba(181, 35, 31, 0.35);
}
.hero h1 { color: var(--amber); }
h2 {
  margin: 0;
  font-family: var(--term);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
h3 { margin: 0 0 10px; font-size: 1.16rem; font-weight: 600; color: var(--phosphor); }

.lede {
  max-width: 780px;
  color: var(--phosphor);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.6;
}
.hero-copy { display: grid; gap: 16px; }
.hero-copy p { margin: 0; }
.first-word { color: var(--amber); }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--amber);
  padding: 10px 20px;
  background: rgba(255, 179, 71, 0.06);
  color: var(--amber);
  font-family: var(--term);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(122, 20, 20, 0.6), inset 0 0 12px rgba(255, 179, 71, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}
.button::before { content: "> "; }
.button:hover {
  background: var(--amber);
  color: var(--void);
  box-shadow: 2px 2px 0 var(--wired-red), 0 0 22px rgba(255, 179, 71, 0.5);
  transform: translate(2px, 2px);
}
.button.secondary { border-color: var(--teal); background: transparent; color: var(--cyan-glow); box-shadow: 4px 4px 0 rgba(27, 111, 111, 0.5); }

.meta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; color: var(--phosphor-dim); font-family: var(--mono); font-size: 0.85rem; }
.meta-row span { border: 1px solid var(--wire-2); padding: 5px 10px; background: rgba(10, 11, 13, 0.6); }

/* =========================================================================
   COPLAND-OS WINDOW PANELS (cards)
   ========================================================================= */
.system-card,
.card,
.note-card,
.recognition-card {
  position: relative;
  border: 1px solid var(--wire-2);
  background:
    linear-gradient(180deg, rgba(16, 18, 22, 0.9), rgba(10, 11, 13, 0.72));
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 179, 71, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.card, .note-card, .recognition-card { padding: 24px 22px 22px; }
.system-card { padding: 24px; }
/* window title bar */
.card::before,
.note-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 22px;
  background:
    linear-gradient(180deg, rgba(255, 179, 71, 0.14), transparent),
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255, 179, 71, 0.06) 6px 7px);
  border-bottom: 1px solid var(--wire-2);
}
.card { border-top: 1px solid var(--amber-deep); padding-top: 34px; }
.card:nth-child(even) { border-top-color: var(--teal); }
.card:nth-child(even)::before { background:
    linear-gradient(180deg, rgba(79, 214, 214, 0.12), transparent),
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(79, 214, 214, 0.06) 6px 7px); }
.card:hover, .note-card:hover {
  border-color: var(--amber);
  box-shadow: 6px 6px 0 rgba(122, 20, 20, 0.5), 0 0 22px rgba(255, 179, 71, 0.12);
  transform: translateY(-2px);
}
.card p, .note-card p, .recognition-card p { margin: 0; color: var(--phosphor-dim); }

.hero-stack { display: grid; gap: 18px; }
.hero-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--wire-2);
  object-fit: cover;
  box-shadow: 10px 10px 0 rgba(122, 20, 20, 0.4), inset 0 0 60px rgba(0, 0, 0, 0.55);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.hero-visual:hover { box-shadow: 10px 10px 0 rgba(255, 179, 71, 0.28), 0 0 40px rgba(255, 179, 71, 0.14); transform: translate(-1px, -1px); }

/* dossier-ish rows retained */
.dossier-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--wire-2); padding-bottom: 14px; color: var(--phosphor-dim); font-family: var(--mono); font-size: 0.78rem; }
.signal { width: 10px; height: 10px; border-radius: 999px; background: var(--cyan-glow); box-shadow: 0 0 0 4px rgba(79, 214, 214, 0.14), 0 0 12px var(--cyan-glow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.profile-rows { margin: 18px 0 0; }
.profile-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; border-bottom: 1px solid var(--wire); padding: 12px 0; }
.profile-row dt { color: var(--phosphor-faint); font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; }
.profile-row dd { margin: 0; font-weight: 600; }

/* =========================================================================
   SECTIONS — episode "LAYER" title cards
   ========================================================================= */
.section { padding: 64px 0; border-top: 1px solid var(--wire); position: relative; }
.section-heading { display: grid; grid-template-columns: minmax(220px, 0.45fr) minmax(0, 0.85fr); gap: 34px; align-items: start; margin-bottom: 32px; }
.section-heading p { margin: 0; color: var(--phosphor-dim); font-size: 1.02rem; }
.section-copy { max-width: 840px; margin: 0 0 34px; color: var(--phosphor); }

.eyebrow {
  display: inline-block;
  color: var(--void);
  background: var(--amber);
  font-family: var(--term);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1px 10px 0;
  box-shadow: 3px 3px 0 rgba(122, 20, 20, 0.7);
}
.eyebrow::before { content: "LAYER // "; }

.about-section .section-heading { margin-bottom: 22px; grid-template-columns: 1fr; }
.about-section .section-heading h2 { max-width: 1120px; color: var(--phosphor); font-size: clamp(2.4rem, 4.7vw, 4.4rem); font-weight: 400; line-height: 1.02; white-space: nowrap; }
.about-section .section-heading h2::after { content: ""; display: block; width: min(180px, 42%); height: 2px; margin-top: 20px; background: linear-gradient(90deg, var(--amber), var(--blood), transparent); box-shadow: 0 0 10px rgba(255, 179, 71, 0.5); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { border: 1px solid var(--amber-deep); padding: 5px 11px; background: rgba(255, 179, 71, 0.07); color: var(--amber); font-family: var(--mono); font-size: 0.85rem; }
.tag::before { content: "#"; opacity: 0.6; }

.timeline { position: relative; display: grid; gap: 14px; }
.timeline-item { display: grid; grid-template-columns: 130px 1fr; gap: 20px; border-left: 1px solid var(--amber-deep); padding: 4px 0 20px 22px; }
.timeline-year { color: var(--cyan-glow); font-family: var(--mono); font-size: 0.86rem; font-weight: 700; }
.timeline-role { font-weight: 700; color: var(--phosphor); }
.timeline-org { color: var(--phosphor-dim); }

.panel { padding: 26px; background: var(--void-2); border: 1px solid var(--wire-2); color: var(--phosphor); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5); }
.panel p, .panel li { color: var(--phosphor-dim); }
.panel .eyebrow { color: var(--void); }

.focus-list, .principles { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.focus-list li, .principles li { border-bottom: 1px solid var(--wire); padding: 10px 0; }

/* =========================================================================
   ARTICLE / PROSE (principles, notes, WP posts)
   ========================================================================= */
.page-hero { padding: clamp(52px, 8vw, 84px) 0 40px; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); }

.content-columns { display: grid; grid-template-columns: 0.62fr 1fr; gap: 42px; align-items: start; }
.article { max-width: 780px; margin: 0 auto; padding: 56px 0; }
.article h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.article-body { font-size: 1.1rem; color: var(--phosphor); }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { margin: 1.8em 0 0.5em; font-size: 2rem; }
.article-body h3, .prose .article-body h3 { margin: 1.6em 0 0.4em; font-size: 1.4rem; color: var(--cyan-glow); }
.article-body img, .prose img { display: block; max-width: 100%; height: auto; border: 1px solid var(--wire-2); box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.4); }
.article-body figure, .prose figure { margin: 2.2rem 0; }
.article-body hr, .prose hr { border: 0; border-top: 1px solid var(--wire-2); margin: 2.6rem 0; }
.article-body a, .prose a { text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote,
.prose blockquote {
  margin: 2rem 0;
  border-left: 2px solid var(--blood);
  padding: 0.4rem 0 0.4rem 1.2rem;
  color: var(--phosphor-dim);
  background: linear-gradient(90deg, rgba(181, 35, 31, 0.08), transparent);
  font-style: normal;
}
.article-body code, .mono, .prose code, code {
  font-family: var(--mono);
  background: rgba(79, 214, 214, 0.08);
  border: 1px solid var(--wire-2);
  padding: 0 5px;
  color: var(--cyan-glow);
  font-size: 0.9em;
}

.prose { max-width: 840px; padding: 0 0 76px; color: var(--phosphor); font-size: 1.1rem; line-height: 1.78; }
.prose section { margin-top: 48px; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin: 0 0 18px; font-size: clamp(1.9rem, 3vw, 3rem); color: var(--amber); text-shadow: 0 0 14px rgba(255, 179, 71, 0.25); }
.prose h3 { margin: 0 0 12px; font-size: 1.4rem; color: var(--cyan-glow); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4rem; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--amber); }
.prose-callout { border-left: 2px solid var(--amber); margin: 38px 0 0; padding: 6px 0 6px 22px; background: linear-gradient(90deg, rgba(255, 179, 71, 0.06), transparent); }
.prose-callout h2 { margin: 8px 0 16px; }
.principle-block { border-top: 1px solid var(--wire); padding-top: 22px; }
.note-meta { color: var(--phosphor-dim); font-family: var(--mono); font-size: 0.84rem; }

/* notes explorer */
.note-controls { display: grid; grid-template-columns: minmax(240px, 0.4fr) minmax(0, 1fr); gap: 18px; align-items: end; }
.search-label { display: grid; gap: 8px; color: var(--cyan-glow); font-family: var(--term); font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; }
.search-label::before { }
.search-label input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--wire-2);
  background: rgba(10, 11, 13, 0.85);
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 500;
  padding: 10px 12px 10px 26px;
  text-transform: none;
}
.search-label { position: relative; }
.search-label input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 16px rgba(255, 179, 71, 0.25); }
.search-label input::placeholder { color: var(--phosphor-faint); }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-filter button { min-height: 34px; border: 1px solid var(--wire-2); background: rgba(10, 11, 13, 0.6); color: var(--phosphor-dim); cursor: pointer; font-family: var(--mono); padding: 6px 12px; }
.tag-filter button.active, .tag-filter button:hover, .tag-filter button:focus-visible { border-color: var(--amber); background: rgba(255, 179, 71, 0.1); color: var(--amber); }
.empty-state { margin-top: 28px; color: var(--phosphor-dim); font-family: var(--term); font-size: 1.25rem; letter-spacing: 0.06em; }
.empty-state::before { content: "// "; color: var(--phosphor-faint); }
.related-notes { border-top: 1px solid var(--wire); margin-top: 54px; padding-top: 30px; }

/* =========================================================================
   FOOTER — terminal status bar
   ========================================================================= */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--amber-deep);
  padding: 22px 0;
  color: var(--phosphor-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
  background: linear-gradient(0deg, rgba(255, 179, 71, 0.04), transparent);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner > div:first-child::before { content: "CONNECTION: "; color: var(--cyan-glow); }
.footer .nav { font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase; }

/* =========================================================================
   WORDPRESS BLOG classes (the Wired // logs)
   ========================================================================= */
.wired-log { display: grid; gap: 18px; }
.log-entry {
  position: relative;
  border: 1px solid var(--wire-2);
  border-left: 2px solid var(--amber-deep);
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.85), rgba(10, 11, 13, 0.65));
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.log-entry:hover { border-left-color: var(--amber); box-shadow: 0 0 22px rgba(255, 179, 71, 0.1); transform: translateX(3px); }
.log-entry .layer-tag { font-family: var(--term); font-size: 1.1rem; letter-spacing: 0.18em; color: var(--cyan-glow); text-transform: uppercase; }
.log-entry h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 6px 0 8px; }
.log-entry h2 a { color: var(--phosphor); }
.log-entry h2 a:hover { color: var(--amber); }
.log-entry .post-meta { font-family: var(--mono); font-size: 0.82rem; color: var(--phosphor-faint); }
.log-entry .post-excerpt { margin: 12px 0 0; color: var(--phosphor-dim); }

.wired-post { max-width: 780px; margin: 0 auto; padding: 56px 0 80px; }
.wired-post .post-head { margin-bottom: 34px; }
.wired-post .layer-tag { font-family: var(--term); font-size: 1.35rem; letter-spacing: 0.2em; color: var(--cyan-glow); text-transform: uppercase; text-shadow: 0 0 12px rgba(79, 214, 214, 0.4); }
.wired-post .post-meta { font-family: var(--mono); font-size: 0.84rem; color: var(--phosphor-faint); margin-top: 10px; }
.wired-post .entry-content { font-size: 1.12rem; line-height: 1.8; color: var(--phosphor); }
.wired-post .entry-content p { margin: 0 0 1.3em; }
.wired-post .entry-content h2 { margin: 1.6em 0 0.5em; color: var(--amber); }
.wired-post .entry-content h3 { color: var(--cyan-glow); }
.wired-post .entry-content img { max-width: 100%; height: auto; border: 1px solid var(--wire-2); filter: contrast(1.1) brightness(0.92); }
.wired-post .entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.wired-post .post-tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.blog-pagination { margin-top: 40px; display: flex; gap: 14px; font-family: var(--term); font-size: 1.25rem; }
.blog-pagination a { color: var(--amber); }
.wp-editor-note { color: var(--phosphor-faint); font-family: var(--mono); font-size: 0.8rem; }

/* WordPress alignment / caption helpers so the block editor output behaves */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.wp-caption-text, figcaption { color: var(--phosphor-faint); font-family: var(--mono); font-size: 0.8rem; text-align: center; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .hero, .section-heading, .content-columns { grid-template-columns: 1fr; }
  .grid, .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-controls { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-shell { width: min(100% - 24px, 1180px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0; }
  .nav { justify-content: flex-start; gap: 14px; font-size: 1.1rem; }
  .hero { padding-top: 44px; }
  .about-section .section-heading h2 { white-space: normal; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .timeline-item, .profile-row { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================================
   REDUCED MOTION / ACCESSIBILITY — kill the heavy effects
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  #wired-crt::before { animation: none; }
  #wired-flicker { display: none; }
  .glitch::before, .glitch::after { animation: none; display: none; }
  .signal { animation: none; }
  * { scroll-behavior: auto !important; }
}
