/*
Theme Name: IRUNTECH Synthwave
Theme URI: https://blog.iruntech.net/
Author: IRUNTECH
Author URI: https://blog.iruntech.net/
Description: A retro-future synthwave theme for tech blogs — neon grid, chrome type, animated sun-and-grid hero. Reviews, PC builds & vibe coding from the neon end of the internet. Classic PHP theme with three color moods (Neon / Outrun / Sunset), animated background, responsive layout and a built-in mobile menu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iruntech
Tags: blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, dark-mode
*/

/* ==========================================================================
   IRUNTECH — Synthwave Tech Blog · Design System
   Balanced retro-future: clean & readable, neon where it counts.
   Type:  Orbitron (chrome logo/display) · Space Grotesk (headlines)
          IBM Plex Sans (body) · IBM Plex Mono (labels/code)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ----- Palette: NEON (default) ----- */
:root,
[data-palette="neon"] {
  --bg-deep:    #07060e;
  --bg-base:    #0b0a16;
  --bg-panel:   #110f20;
  --bg-card:    #15122a;
  --bg-elevate: #1b1733;
  --line:       rgba(124, 92, 255, 0.16);
  --line-soft:  rgba(124, 92, 255, 0.09);

  --ink:        #ECE9FB;
  --ink-dim:    #B7B1D8;
  --ink-mute:   #837DA8;

  --cyan:   #2DE2E6;
  --magenta:#FF2E97;
  --purple: #9D5CFF;
  --amber:  #FFB23E;

  --accent:      var(--cyan);
  --accent-2:    var(--magenta);
  --sun-top:     #FFD86B;
  --sun-mid:     #FF7AC6;
  --sun-bot:     #FF2E97;
  --grid-line:   rgba(255, 46, 151, 0.55);
  --grid-line-2: rgba(45, 226, 230, 0.45);
}

/* ----- Palette: OUTRUN (purple + cyan, cooler) ----- */
[data-palette="outrun"] {
  --bg-deep:  #060611;
  --bg-base:  #0a0a1c;
  --bg-panel: #100f28;
  --bg-card:  #141233;
  --bg-elevate:#1a1840;
  --line:     rgba(120, 110, 255, 0.18);
  --line-soft:rgba(120, 110, 255, 0.10);
  --cyan:   #36F1CD;
  --magenta:#B14DFF;
  --purple: #6C5CE7;
  --amber:  #FF8AE2;
  --accent: var(--cyan);
  --accent-2: var(--magenta);
  --sun-top: #8AF6FF;
  --sun-mid: #7B6CFF;
  --sun-bot: #B14DFF;
  --grid-line:   rgba(177, 77, 255, 0.50);
  --grid-line-2: rgba(54, 241, 205, 0.40);
}

/* ----- Palette: SUNSET (Miami magenta + orange) ----- */
[data-palette="sunset"] {
  --bg-deep:  #0d0613;
  --bg-base:  #140a1c;
  --bg-panel: #1c0f26;
  --bg-card:  #21122c;
  --bg-elevate:#2a1838;
  --line:     rgba(255, 120, 170, 0.16);
  --line-soft:rgba(255, 120, 170, 0.09);
  --cyan:   #FFB23E;
  --magenta:#FF3D7F;
  --purple: #C44BC9;
  --amber:  #FFD86B;
  --accent: var(--amber);
  --accent-2: var(--magenta);
  --sun-top: #FFE08A;
  --sun-mid: #FF8A3D;
  --sun-bot: #FF2E7E;
  --grid-line:   rgba(255, 61, 127, 0.55);
  --grid-line-2: rgba(255, 178, 62, 0.40);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint global vignette + grain so dark never looks flat */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(157, 92, 255, 0.10), transparent 60%),
    radial-gradient(90% 60% at 100% 0%, rgba(45, 226, 230, 0.05), transparent 55%);
}

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; display: block; }

::selection { background: rgba(255, 46, 151, 0.28); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-elevate); border-radius: 20px; border: 3px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ============================ TYPE ============================ */
.font-display { font-family: 'Orbitron', sans-serif; }
.font-head    { font-family: 'Space Grotesk', sans-serif; }
.font-mono    { font-family: 'IBM Plex Mono', monospace; }

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; margin: 0; color: #fff; letter-spacing: -0.01em; }

/* monospace eyebrow / kicker */
.kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================ CHROME / NEON TEXT ============================ */
.chrome {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg,
      #ffffff 0%, #e3e9f6 15%, #b2bcd6 37%,
      #6b769b 49%, #2c3759 50%, #505d86 61%,
      #a3b0d4 80%, #eef2fc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.5)) drop-shadow(0 0 18px rgba(45,226,230,0.18));
  text-transform: uppercase;
}
/* magenta-tinted chrome edge */
.chrome--neon {
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.6))
          drop-shadow(0 0 14px rgba(255,46,151,0.35))
          drop-shadow(0 0 30px rgba(157,92,255,0.20));
}

.neon-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 4px rgba(255,255,255,0.6),
    0 0 12px var(--accent-2),
    0 0 28px var(--accent-2),
    0 0 50px rgba(157,92,255,0.6);
}

/* ============================ LAYOUT ============================ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-deep) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  opacity: 0.55;
}
.header-row { display: flex; align-items: center; gap: 28px; height: 74px; }

/* logo lockup */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-word { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.32rem; letter-spacing: 0.06em; line-height: 1; }
.brand-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.56rem; letter-spacing: 0.22em;
  color: var(--ink-mute); text-transform: uppercase; margin-top: 4px;
}

/* nav */
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-dim); padding: 9px 14px; border-radius: 8px;
  position: relative; transition: color .2s ease, background .2s ease; white-space: nowrap;
}
.nav a:hover { color: #fff; background: var(--line-soft); }
.nav a.is-active { color: var(--accent); }
.nav a.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); border-radius: 2px;
}
.header-spacer { flex: 1; }

/* hamburger (mobile) */
.menu-btn { display: none; }
.mobile-nav { display: none; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-panel); color: var(--ink-dim);
  cursor: pointer; transition: all .2s ease;
}
.icon-btn:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 25%, transparent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 11px 20px; border-radius: 10px; border: none;
  color: var(--bg-deep); font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 6px 22px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 10px 32px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn--ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 18%, transparent); }

/* palette switcher */
.swatches { display: flex; gap: 7px; align-items: center; }
.swatch {
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid transparent; transition: transform .15s ease, border-color .15s ease;
}
.swatch:hover { transform: scale(1.18); }
.swatch.is-on { border-color: #fff; }
.swatch-neon   { background: linear-gradient(135deg, #2DE2E6, #FF2E97); }
.swatch-outrun { background: linear-gradient(135deg, #36F1CD, #B14DFF); }
.swatch-sunset { background: linear-gradient(135deg, #FFB23E, #FF2E7E); }

/* ============================ SYNTHWAVE HERO SCENE ============================ */
.scene { position: relative; overflow: hidden; }
.scene-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* scrim so the scene reads as a calm background behind blog content */
/* gentle default scrim (centered scenes like the article hero) */
.scene::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,5,17,0.5) 0%, rgba(6,5,17,0) 32%);
}
/* feature hero: left-weighted scrim keeps the two-column copy crisp */
.scene--hero::before {
  background:
    linear-gradient(90deg, rgba(6,5,17,0.92) 0%, rgba(6,5,17,0.62) 42%, rgba(6,5,17,0) 70%),
    linear-gradient(180deg, rgba(6,5,17,0.55) 0%, rgba(6,5,17,0) 34%),
    radial-gradient(82% 56% at 30% 100%, rgba(6,5,17,0.82), rgba(6,5,17,0) 72%);
}
.scene-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(38% 30% at 50% 66%, color-mix(in srgb, var(--sun-bot) 30%, transparent), transparent 72%),
    radial-gradient(120% 80% at 50% 120%, color-mix(in srgb, var(--purple) 36%, transparent), transparent 62%),
    linear-gradient(180deg, var(--bg-deep) 0%, #100a1f 50%, #1b0d2e 80%, #220d33 100%);
}
/* retro sun — background element, not the headline */
.sun {
  --sun-size: clamp(240px, 25vw, 350px);
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  width: var(--sun-size); height: var(--sun-size); border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-top) 0%, #ff8a4d 26%, var(--sun-mid) 54%, var(--sun-bot) 100%);
  filter: drop-shadow(0 0 70px color-mix(in srgb, var(--sun-bot) 52%, transparent));
  opacity: 0.92;
  animation: sunBob 11s ease-in-out infinite, sunGlow 6s ease-in-out infinite;
}
@keyframes sunBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}
@keyframes sunGlow {
  0%, 100% { filter: drop-shadow(0 0 80px color-mix(in srgb, var(--sun-bot) 58%, transparent)); }
  50%      { filter: drop-shadow(0 0 140px color-mix(in srgb, var(--sun-bot) 95%, transparent)); }
}
/* slits cut into the sun — clean lines like the logo badge */
.sun::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 calc(52%),
    var(--bg-base) calc(52%) calc(52% + 5px),
    transparent calc(52% + 5px) calc(60%),
    var(--bg-base) calc(60%) calc(60% + 6px),
    transparent calc(60% + 6px) calc(69%),
    var(--bg-base) calc(69%) calc(69% + 7px),
    transparent calc(69% + 7px) calc(79%),
    var(--bg-base) calc(79%) calc(79% + 9px),
    transparent calc(79% + 9px)
  );
}
/* perspective neon grid floor — pulled up close to the sun */
.grid-floor {
  position: absolute; left: -45%; right: -45%; bottom: 0; height: 30%;
  background-image:
    linear-gradient(to right, var(--grid-line) 2px, transparent 2px),
    linear-gradient(to bottom, var(--grid-line-2) 2px, transparent 2px);
  background-size: 58px 58px;
  transform: perspective(440px) rotateX(80deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 50%, transparent 100%);
  mask-image: linear-gradient(to top, #000 50%, transparent 100%);
  opacity: 0.9;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-2) 55%, transparent));
}
.grid-floor.is-animated { animation: gridrun 4.5s linear infinite; }
@keyframes gridrun { from { background-position: 0 0; } to { background-position: 0 58px; } }
/* horizon glow line — sits right at the sun's base */
.horizon {
  position: absolute; left: 0; right: 0; bottom: 28%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), #fff, var(--accent-2), transparent);
  box-shadow: 0 0 20px var(--accent), 0 0 44px var(--accent-2);
  opacity: 0.85;
  animation: horizonPulse 6s ease-in-out infinite;
}
@keyframes horizonPulse {
  0%, 100% { box-shadow: 0 0 18px var(--accent), 0 0 38px var(--accent-2); opacity: 0.8; }
  50%      { box-shadow: 0 0 34px var(--accent), 0 0 78px var(--accent-2); opacity: 1; }
}
/* twinkling starfield (upper sky) — no markup needed */
.scene-sky::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 30%; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 12%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.6px 1.6px at 42% 32%, var(--accent), transparent),
    radial-gradient(1px 1px at 58% 16%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 71% 28%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.6px 1.6px at 83% 14%, var(--accent-2), transparent),
    radial-gradient(1px 1px at 91% 34%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 6% 40%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 35% 6%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 64% 40%, rgba(255,255,255,.75), transparent);
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  opacity: .7; animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .35; }
  50%      { opacity: .85; }
}
/* optional CRT scanlines */
.scanlines::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: 0.5;
}

/* The hero scene motion is an intentional, gentle aesthetic feature the user
   asked for, so it runs regardless of OS reduce-motion. It only animates
   opacity/glow/position slowly — no rapid flashing. Per-element entrance
   animations elsewhere still honor reduced-motion. */

/* ============================ FLOATING NEON DEBRIS ============================ */
.debris { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.debris i {
  position: absolute; display: block; color: var(--accent-2);
  background: currentColor; height: 2px; border-radius: 2px;
  box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
  opacity: 0; animation: drift linear infinite;
}
/* wireframe rectangles */
.debris i.rect {
  background: transparent; height: auto; border: 1.5px solid currentColor; border-radius: 2px;
  box-shadow: 0 0 10px color-mix(in srgb, currentColor 60%, transparent),
              inset 0 0 10px color-mix(in srgb, currentColor 30%, transparent);
}
@keyframes drift {
  0%   { transform: translateY(60px) translateX(0); opacity: 0; }
  12%  { opacity: .85; }
  80%  { opacity: .55; }
  100% { transform: translateY(-160px) translateX(8px); opacity: 0; }
}
/* streaks (left + right of the sun, avoiding centre text) */
.debris i:nth-child(1)  { left: 6%;  top: 30%; width: 90px;  color: var(--magenta); animation-duration: 9s;  animation-delay: 0s; transform: rotate(-8deg); }
.debris i:nth-child(2)  { left: 14%; top: 58%; width: 48px;  color: var(--amber);   animation-duration: 7s;  animation-delay: 1.5s; }
.debris i:nth-child(3)  { left: 3%;  top: 70%; width: 120px; color: var(--magenta); animation-duration: 11s; animation-delay: .6s; transform: rotate(4deg); }
.debris i:nth-child(4)  { left: 20%; top: 18%; width: 60px;  color: var(--accent);  animation-duration: 8.5s; animation-delay: 2.2s; }
.debris i:nth-child(5)  { right: 7%;  top: 26%; width: 100px; color: var(--magenta); animation-duration: 10s; animation-delay: .9s; transform: rotate(7deg); }
.debris i:nth-child(6)  { right: 16%; top: 62%; width: 54px;  color: var(--amber);   animation-duration: 7.5s; animation-delay: 1.1s; }
.debris i:nth-child(7)  { right: 4%;  top: 46%; width: 130px; color: var(--magenta); animation-duration: 12s; animation-delay: 2.6s; transform: rotate(-5deg); }
.debris i:nth-child(8)  { right: 22%; top: 16%; width: 44px;  color: var(--accent);  animation-duration: 8s;  animation-delay: 3s; }
.debris i.rect:nth-child(9)  { left: 9%;  top: 40%; width: 78px;  height: 50px; color: var(--magenta); animation-duration: 14s; animation-delay: .3s; }
.debris i.rect:nth-child(10) { right: 10%; top: 50%; width: 64px;  height: 40px; color: var(--accent);  animation-duration: 13s; animation-delay: 2s; }
.debris i.rect:nth-child(11) { right: 13%; top: 30%; width: 100px; height: 60px; color: var(--magenta); animation-duration: 16s; animation-delay: 4s; }
.debris i.rect:nth-child(12) { left: 5%;  top: 20%; width: 56px;  height: 36px; color: var(--accent);  animation-duration: 12.5s; animation-delay: 3.4s; }

/* ============================ HERO CONTENT ============================ */
.hero { position: relative; z-index: 2; padding: 60px 0 96px; min-height: 600px; display: flex; align-items: center; }
.hero-feature { width: 100%; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-tag-row { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.hero-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(2.3rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 20px; text-wrap: balance;
}
.hero-title a { color: #fff; }
.hero-title a:hover { color: var(--accent); }
.hero-excerpt { color: var(--ink-dim); font-size: 1.08rem; max-width: 30em; margin: 0 0 28px; }
.hero-meta { display: flex; align-items: center; gap: 16px; }
.hero .byline { text-shadow: 0 1px 8px rgba(6,5,17,0.92), 0 0 2px rgba(6,5,17,0.9); }

/* the hero image plate with neon frame */
.plate {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.plate::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 14px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
              inset 0 0 60px color-mix(in srgb, var(--purple) 20%, transparent);
}

/* ============================ IMAGE PLACEHOLDER ============================ */
.ph {
  position: relative; aspect-ratio: 16/10; width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(157,92,255,0.10) 0 12px, rgba(45,226,230,0.06) 12px 24px),
    linear-gradient(180deg, var(--bg-elevate), var(--bg-card));
  display: grid; place-items: center;
}
.ph[data-ratio="21/9"] { aspect-ratio: 21/9; }
.ph[data-ratio="4/3"]  { aspect-ratio: 4/3; }
.ph[data-ratio="1/1"]  { aspect-ratio: 1/1; }
.ph-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute); padding: 6px 12px;
  border: 1px dashed var(--line); border-radius: 7px; background: color-mix(in srgb, var(--bg-deep) 50%, transparent);
}

/* ============================ SECTION HEADINGS ============================ */
.section { padding: 64px 0; position: relative; z-index: 1; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.7rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 14px; }
.section-title .bar { width: 30px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); }
.section-link { font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.section-link:hover { color: var(--accent); }

/* ============================ CARDS ============================ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 18px 50px rgba(0,0,0,0.5), 0 0 36px color-mix(in srgb, var(--accent) 14%, transparent); }
.card .ph { aspect-ratio: 16/10; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.18rem; line-height: 1.22; }
.card-title a { color: #fff; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--ink-mute); font-size: 0.94rem; line-height: 1.6; margin: 0; }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--ink-mute); letter-spacing: 0.04em; }

/* category chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  padding: 4px 10px; border-radius: 6px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.chip--mag { color: var(--magenta); background: color-mix(in srgb, var(--magenta) 12%, transparent); border-color: color-mix(in srgb, var(--magenta) 30%, transparent); }
.chip--pur { color: var(--purple); background: color-mix(in srgb, var(--purple) 14%, transparent); border-color: color-mix(in srgb, var(--purple) 32%, transparent); }
.chip--amb { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* avatar dot */
.avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); display: inline-block; flex-shrink: 0; }

/* ============================ FEATURE LIST (sidebar / trending) ============================ */
.panel { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.panel + .panel { margin-top: 22px; }
.panel-title { font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.panel-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.rank { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.rank:last-child { border-bottom: none; }
.rank-num { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.1rem; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 70%, transparent); width: 28px; flex-shrink: 0; }
.rank-body { display: flex; flex-direction: column; gap: 4px; }
.rank-title { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 0.96rem; line-height: 1.25; color: var(--ink); }
.rank-title:hover { color: var(--accent); }
.rank-meta { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--ink-mute); letter-spacing: 0.05em; }

/* category links */
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; color: var(--ink-dim); font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; letter-spacing: 0.04em; transition: all .18s ease; }
.cat-list a:hover { background: var(--line-soft); color: var(--accent); }
.cat-list .count { color: var(--ink-mute); font-size: 0.72rem; }

/* newsletter */
.subscribe { position: relative; overflow: hidden; }
.subscribe .ph-grid { position: absolute; inset: 0; opacity: 0.4; }
.field { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.input {
  width: 100%; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--ink); font-family: 'IBM Plex Sans', sans-serif; font-size: 0.92rem;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 20%, transparent); }

/* ============================ FOOTER ============================ */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg-deep); margin-top: 40px; overflow: hidden; }
.footer-grid { position: absolute; left: -20%; right: -20%; bottom: 0; height: 60%;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line-2) 1px, transparent 1px);
  background-size: 50px 50px; transform: perspective(300px) rotateX(72deg); transform-origin: bottom; opacity: 0.18;
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.footer-inner { position: relative; z-index: 1; padding: 56px 0 30px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--ink-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-h { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line-soft); font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; color: var(--ink-mute); letter-spacing: 0.04em; }

/* ============================ ARTICLE ============================ */
.article-hero { padding: 60px 0 40px; }
.article-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -0.02em; margin: 18px 0 22px; text-wrap: balance; }
.byline { display: flex; align-items: center; gap: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: var(--ink-mute); letter-spacing: 0.04em; flex-wrap: wrap; }
.byline .avatar { width: 30px; height: 30px; }
.byline .who { color: var(--ink); }
.byline .sep { color: var(--line); }

.prose { font-size: 1.12rem; line-height: 1.85; color: var(--ink-dim); }
.prose > p { margin: 0 0 1.4em; }
.prose p:first-of-type::first-letter {
  font-family: 'Orbitron', sans-serif; font-weight: 800; float: left; font-size: 3.4rem;
  line-height: 0.82; padding: 6px 14px 0 0; color: transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text;
}
.prose h2 { font-size: 1.7rem; color: #fff; margin: 1.8em 0 0.6em; display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--purple)); box-shadow: 0 0 12px var(--accent); flex-shrink: 0; transform: rotate(45deg); }
.prose h3 { font-size: 1.28rem; color: var(--accent); margin: 1.6em 0 0.5em; font-family: 'Space Grotesk', sans-serif; }
.prose strong { color: #fff; }
.prose a { border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.prose a:hover { color: var(--accent-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }

.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--magenta);
  font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; line-height: 1.4; color: #fff; font-style: normal;
}
.prose blockquote cite { display: block; margin-top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; font-style: normal; color: var(--magenta); letter-spacing: 0.08em; }

.prose pre {
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
  overflow-x: auto; margin: 1.6em 0; position: relative;
  box-shadow: inset 0 0 50px rgba(45,226,230,0.03);
}
.prose pre::before { content: '> TERMINAL'; position: absolute; top: 0; right: 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; letter-spacing: 0.16em; color: var(--ink-mute); padding: 5px 12px; border-bottom-left-radius: 8px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose code { font-family: 'IBM Plex Mono', monospace; font-size: 0.86em; color: var(--cyan); }
.prose pre code { color: var(--ink); line-height: 1.7; display: block; }
.prose pre code .c { color: var(--ink-mute); }
.prose pre code .k { color: var(--magenta); }
.prose pre code .s { color: var(--amber); }
.prose pre code .f { color: var(--cyan); }

.figure { margin: 1.8em 0; }
.figure figcaption { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--ink-mute); letter-spacing: 0.04em; margin-top: 10px; text-align: center; }

/* progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; z-index: 99; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); width: 0; }

/* author box */
.author-box { display: flex; gap: 20px; align-items: center; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 48px 0; }
.author-box .av-lg { width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--purple)); flex-shrink: 0; }

/* tags row */
.tagline-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 36px 0; }
.tag { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--ink-dim); padding: 6px 12px; border-radius: 7px; border: 1px solid var(--line); }
.tag:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tag::before { content: '#'; color: var(--accent); margin-right: 2px; }

/* share rail */
.share-row { display: flex; align-items: center; gap: 12px; margin: 30px 0; }
.share-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }

  .menu-btn {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg-panel); color: var(--ink); cursor: pointer;
    flex-shrink: 0;
  }
  .menu-btn svg { display: block; }
  .menu-btn .x { display: none; }
  body.menu-open .menu-btn .bars { display: none; }
  body.menu-open .menu-btn .x { display: block; }

  /* slide-down panel */
  .mobile-nav {
    display: block; position: fixed; left: 0; right: 0; top: 74px; z-index: 49;
    background: color-mix(in srgb, var(--bg-deep) 96%, transparent);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  body.menu-open .mobile-nav { transform: translateY(0); }
  .mobile-nav::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent); opacity: .55;
  }
  .mobile-nav-inner { padding: 14px 28px 26px; display: flex; flex-direction: column; gap: 2px; }
  .mobile-nav a {
    font-family: 'IBM Plex Mono', monospace; font-size: 0.92rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink-dim); padding: 14px 6px; border-bottom: 1px solid var(--line-soft);
    display: flex; align-items: center; justify-content: space-between;
  }
  .mobile-nav a:active, .mobile-nav a:hover { color: var(--accent); }
  .mobile-nav a.is-active { color: var(--accent); }
  .mobile-nav a.is-active::before { content: '> '; }
  .mobile-nav .btn { margin-top: 18px; justify-content: center; }
  .menu-scrim {
    position: fixed; inset: 74px 0 0; z-index: 48; background: rgba(4,3,10,0.5);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  body.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
}
@media (max-width: 760px) {
  .hero-feature { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: auto; padding: 48px 0 0; }
  .hero-copy { order: 1; }
  .hero .plate { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { padding: 0 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .with-sidebar { grid-template-columns: 1fr !important; gap: 30px; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .header-row { gap: 12px; }
  .brand-tag { display: none; }
  .brand-word { font-size: 1.12rem; }
  .brand-mark { width: 34px; height: 34px; }
  .header-spacer { flex: 1; }
  .swatches { display: none; }
  .icon-btn { display: none; }
  .header-row > .btn { display: none; }

  .hero { padding: 40px 0 96px; }
  .hero-tag-row { margin-bottom: 16px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 24px; }
  .section-title { font-size: 1.4rem; }

  .article-hero { padding: 38px 0 30px; }
  .prose { font-size: 1.05rem; }
  .prose p:first-of-type::first-letter { font-size: 2.8rem; }
  .author-box { flex-wrap: wrap; }
  .author-box .btn { margin-left: 0 !important; }
  .mobile-nav .swatches { display: flex; margin-top: 20px; justify-content: center; gap: 14px; }
  .mobile-nav .swatch { width: 26px; height: 26px; }
}

/* layout helper: content + sidebar */
.with-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }


/* ==========================================================================
   WORDPRESS CORE INTEGRATION
   ========================================================================== */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--bg-panel); border-radius: 8px; clip: auto; clip-path: none;
  color: var(--accent); display: block; height: auto; left: 8px; top: 8px; padding: 12px 18px;
  width: auto; z-index: 100000; font-family: 'IBM Plex Mono', monospace; box-shadow: 0 0 18px rgba(0,0,0,.5);
}

/* alignment helpers from the editor */
.alignleft  { float: left;  margin: 0.4em 1.6em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { margin-left: -80px; margin-right: -80px; max-width: 100vw; }
.alignfull  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.prose img { border-radius: 12px; }

/* captions & galleries */
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; color: var(--ink-mute);
  letter-spacing: 0.04em; margin-top: 10px; text-align: center;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.6em 0; }
.gallery .gallery-item img { border-radius: 10px; border: 1px solid var(--line); }

/* sticky / author flags */
.sticky .card { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.bypostauthor > .comment-body { }

/* embeds */
.wp-block-embed iframe, .prose iframe { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 48px 0 0; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg-panel);
  color: var(--ink-dim); font-family: 'IBM Plex Mono', monospace; font-size: 0.84rem; letter-spacing: 0.04em;
  transition: all .18s ease;
}
.pagination .page-numbers:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 18%, transparent); }
.pagination .page-numbers.current {
  color: var(--bg-deep); border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--purple));
}
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* post navigation (single) */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 0; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-panel); transition: all .2s ease; }
.post-nav a:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 12%, transparent); }
.post-nav .nav-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 8px; }
.post-nav .nav-next { text-align: right; }
.post-nav .nav-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.post-nav a:hover .nav-title { color: var(--accent); }

/* ==========================================================================
   WIDGETS (map default widgets onto the .panel look)
   ========================================================================== */
.widget { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.widget + .widget { margin-top: 22px; }
.widget-title, .widget h2, .widget .wp-block-heading {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim); margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.widget-title::before, .widget h2::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.widget ul li { padding: 0; }
.widget ul li a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--ink-dim); font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; letter-spacing: 0.04em; transition: all .18s ease;
}
.widget ul li a:hover { background: var(--line-soft); color: var(--accent); }
.widget ul li .post-date, .widget .rss-date { color: var(--ink-mute); font-size: 0.72rem; }
.widget select { width: 100%; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--ink); font-family: 'IBM Plex Sans', sans-serif; }
.widget_search .search-form, .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.search-field, .wp-block-search__input { flex: 1; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--ink); font-family: 'IBM Plex Sans', sans-serif; }
.search-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 20%, transparent); }
.search-submit, .wp-block-search__button {
  border: none; cursor: pointer; color: var(--bg-deep); font-weight: 600; padding: 11px 16px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--purple)); font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_tag_cloud a { font-size: 0.74rem !important; color: var(--ink-dim); padding: 6px 12px; border-radius: 7px; border: 1px solid var(--line); }
.widget_tag_cloud a:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* comments */
.comments-area { margin: 48px 0 0; }
.comments-title, .comment-reply-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.5rem; color: #fff; margin: 0 0 24px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin: 0 0 18px; }
.comment-body { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.comment-author { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--ink-mute); margin: 4px 0 12px; }
.comment-content { color: var(--ink-dim); }
.comment-respond { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-top: 24px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif; margin-top: 6px;
}
.comment-form label { font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; color: var(--ink-dim); letter-spacing: 0.06em; }
.comment-form p { margin: 0 0 14px; }
.form-submit .submit { display: inline-flex; cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 22px; border-radius: 10px; border: none; color: var(--bg-deep); font-weight: 600; background: linear-gradient(135deg, var(--accent), var(--purple)); }

/* admin bar offset */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.admin-bar .mobile-nav { top: calc(74px + 46px); }


/* ==========================================================================
   WORDPRESS TEMPLATE GLUE  (maps dynamic WP markup onto the design system)
   ========================================================================== */

/* --- Branding / custom logo --- */
.brand-text { display: flex; flex-direction: column; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { width: auto; height: 44px; }

/* --- Primary nav (wp_nav_menu outputs <ul>) --- */
.nav ul, .nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu li { margin: 0; }
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a { color: var(--accent); }
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); border-radius: 2px;
}

/* --- Mobile menu (ul) --- */
.mobile-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-menu li { margin: 0; }
.mobile-nav .mobile-menu .current-menu-item > a { color: var(--accent); }
.mobile-nav .mobile-menu .current-menu-item > a::before { content: '> '; }

/* --- Collapsible header search --- */
.search-bar {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease;
  border-top: 1px solid transparent;
}
.search-bar.is-open { grid-template-rows: 1fr; border-top-color: var(--line); }
.search-bar > .wrap { overflow: hidden; }
.search-bar.is-open > .wrap { padding-top: 16px; padding-bottom: 16px; }

/* --- Featured images fill the placeholder frame --- */
.ph { overflow: hidden; }
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-thumb { display: block; position: relative; }
.plate .ph-img { position: static; height: auto; }
.plate img { display: block; width: 100%; height: auto; }

/* --- Avatars (get_avatar) --- */
.avatar-img { border-radius: 50%; flex-shrink: 0; }
.byline .avatar-img { width: 22px; height: 22px; }
.byline--center .avatar-img { width: 30px; height: 30px; }
.card-meta .avatar-img { width: 22px; height: 22px; }
.author-box .av-lg { width: 64px; height: 64px; border-radius: 14px; }

/* --- Layout wrappers --- */
.content-main { min-width: 0; }
.sidebar { min-width: 0; }
.archive-desc { color: var(--ink-dim); margin: -14px 0 28px; }
.search-term { color: var(--accent); }

/* --- Article scene + body --- */
.article-scene { border-bottom: 1px solid var(--line); }
.article-hero { padding: 60px 0 40px; }
.article-dek { text-align: center; color: var(--ink-dim); font-size: 1.15rem; max-width: 34em; margin: 0 auto 26px; }
.byline--center { justify-content: center; }
.article-feature { margin-top: -40px; position: relative; z-index: 5; }
.article-feature .plate { max-width: 980px; margin: 0 auto; }
.article-body { padding-top: 54px; padding-bottom: 20px; }
.related-section { padding-top: 20px; }
.page-links { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: var(--ink-mute); margin: 1.6em 0; display: flex; gap: 8px; }
.page-links a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; }

/* --- Author box text --- */
.author-name { margin: 0 0 4px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.1rem; color: #fff; }
.author-desc { margin: 0; color: var(--ink-mute); font-size: 0.92rem; }
.author-follow { margin-left: auto; flex-shrink: 0; }

/* --- Footer --- */
.footer-about .brand { margin-bottom: 16px; }
.footer-blurb { color: var(--ink-mute); font-size: 0.9rem; max-width: 30em; margin: 0; }
.footer-links ul, .footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-links li { margin: 0; }
.footer-links .children { display: none; }

/* --- Category list (wp_list_categories) --- */
.cat-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-list li { margin: 0; color: var(--ink-mute); font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; }
.cat-list .children { display: none; }
.cat-list a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px;
  color: var(--ink-dim); font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; letter-spacing: 0.04em; transition: all .18s ease;
}
.cat-list a:hover { background: var(--line-soft); color: var(--accent); }

/* --- Empty state / subscribe --- */
.empty-state p { color: var(--ink-dim); }
.subscribe-blurb { color: var(--ink-dim); font-size: 0.92rem; margin: 0; position: relative; }

/* --- 404 --- */
.error-scene { min-height: 70vh; display: flex; align-items: center; }
.error-inner { position: relative; z-index: 2; max-width: 640px; }
.error-code { font-size: clamp(3.4rem, 9vw, 6rem); line-height: 1; margin-bottom: 8px; }
.error-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.error-actions .search-form { display: flex; gap: 8px; }

@media (max-width: 760px) {
  .author-follow { margin-left: 0; }
  .post-nav { grid-template-columns: 1fr; }
}
