/*
Theme Name:        Her Infernal Majesty
Theme URI:         https://herinfernalmajesty.com
Author:            Her Infernal Majesty
Author URI:        https://herinfernalmajesty.com
Description:       A late-night broadcast-themed writing theme. Cassette hero, day/night auto tone, custom "kind" taxonomy for essays/fiction/clips/galleries, gallery & video aware.
Version:           2.9.0
Requires at least: 6.4
Tested up to:      7.0
Requires PHP:      7.4
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       him
Tags:              writing, broadcast, dark-mode, custom-colors, block-styles, full-site-editing-optional
*/

/* ========================================================
   NEON DUB — design tokens
   light '80s book / VHS paper + Neo Tokyo neon accents
   ======================================================== */

:root {
  --paper:        #f1e9d5;
  --paper-deep:   #e7debf;
  --paper-fade:   #f7f0db;
  --ink:          #1a1208;
  --ink-mid:      #5b4a30;
  --ink-soft:     rgba(26,18,8,0.55);
  --rule:         rgba(26,18,8,0.22);
  --rule-soft:    rgba(26,18,8,0.12);

  --neon-magenta: #ff2d7a;
  --neon-cyan:    #00aabd;
  --neon-amber:   #c25a00;
  --neon-violet:  #7b3fd4;
  --rec-red:      #d63b1f;

  --shadow-paper: 0 1px 0 rgba(26,18,8,0.04), 0 8px 30px -12px rgba(26,18,8,0.22);

  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body:    'Cormorant Garamond', 'Times New Roman', serif;
  --f-mono:    'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --f-stamp:   'VT323', 'IBM Plex Mono', monospace;

  --container:   1120px;
  --rail-w:      44px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* paper grain — very subtle noise via gradient overlay */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 1200px 800px at 20% -10%, rgba(255,45,122,0.04), transparent 60%),
    radial-gradient(ellipse 900px 600px at 110% 110%, rgba(0,170,189,0.045), transparent 60%);
  mix-blend-mode: multiply;
}
/* faint scanlines */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(26,18,8,0.025) 0 2px, transparent 2px 4px);
}

/* ========================================================
   layout
   ======================================================== */

.site {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
  width: 100%;
}
main { flex: 1; position: relative; z-index: 3; }

/* ========================================================
   REC bar — top status strip
   ======================================================== */

.rec-bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-stamp);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.rec-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6px 36px;
  display: flex; align-items: center; gap: 18px;
}
.rec-dot {
  display: inline-block; width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rec-red);
  box-shadow: 0 0 6px rgba(214,59,31,0.7);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: 0.35 } }
.rec-bar .sep { opacity: 0.45; }
.rec-bar .grow { flex: 1; }
.rec-bar .ch { color: var(--neon-magenta); }

/* ========================================================
   header / nav
   ======================================================== */

.site-header {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
}
.site-header .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

/* Station-ID lockup ----------------------------------------- */
.brand {
  display: inline-flex; align-items: stretch; gap: 14px;
  text-decoration: none;
  padding: 4px 0;
}
.brand .brand-glyph {
  position: relative;
  width: 38px; min-height: 44px;
  border: 1px solid var(--ink);
  border-left: 2px solid var(--neon-cyan);
  background: var(--paper-fade);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--f-stamp);
  font-size: 19px;
  line-height: 0.85;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding: 4px 0;
  flex-shrink: 0;
  transition: border-color .15s;
}
.brand:hover .brand-glyph { border-left-color: var(--neon-magenta); }
.brand .brand-glyph .g-h { color: var(--neon-cyan); text-shadow: 0 0 4px rgba(0,170,189,0.6); }
.brand .brand-glyph .g-m { color: var(--neon-magenta); text-shadow: 0 0 4px rgba(255,45,122,0.6); }

.brand .brand-words {
  display: flex; flex-direction: column;
  justify-content: center;
  line-height: 1;
  gap: 4px;
}
.brand .brand-name {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-flex; align-items: baseline;
}
.brand .brand-name .pd {
  color: var(--neon-magenta);
  text-shadow: 0 0 6px rgba(255,45,122,0.55), 0 0 14px rgba(255,45,122,0.3);
  margin-left: 1px;
}
.brand .brand-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.brand .brand-tag .sx { color: var(--rule); }
.brand:hover .brand-name .pd { animation: pdBlink 1.2s infinite; }
@keyframes pdBlink { 50% { opacity: 0.35; } }

/* === Brand variant: TAPE — cassette SVG mark + italic name === */
.brand-v-tape { align-items: center; gap: 14px; }
.brand-v-tape .brand-tape-mark {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--ink);
  transition: color .15s;
}
.brand-v-tape:hover .brand-tape-mark {
  color: var(--neon-magenta);
  filter: drop-shadow(0 0 6px rgba(255,45,122,0.5));
}
.brand-v-tape .brand-name.brand-name-lg {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.015em;
  line-height: 1;
  display: inline-flex; align-items: baseline;
}

/* === Brand variant: LIVE — pulsing dot + italic + ON AIR tag === */
.brand-v-live { align-items: center; gap: 12px; }
.brand-v-live .brand-live-dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rec-red);
  box-shadow: 0 0 6px rgba(214,59,31,0.7), 0 0 14px rgba(214,59,31,0.4);
  animation: liveBlink 1.4s ease-in-out infinite;
}
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.brand-v-live .brand-words { gap: 3px; }
.brand-v-live .brand-name.brand-name-md {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.015em;
  line-height: 1;
  display: inline-flex; align-items: baseline;
}
.brand-v-live .brand-tag-quiet {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
}
.brand-v-live .bt-live {
  color: var(--rec-red);
  letter-spacing: 0.25em;
}
.brand-v-live .sx { color: var(--rule); }

/* === Brand variant: MONOGRAM — HIM. only, tiny full-name caption === */
.brand-v-monogram { align-items: center; gap: 0; }
.brand-v-monogram .brand-words-tight { gap: 2px; line-height: 1; align-items: flex-start; }
.brand-v-monogram .brand-monogram {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex; align-items: baseline;
}
.brand-v-monogram .brand-monogram .pd {
  color: var(--neon-magenta);
  text-shadow: 0 0 6px rgba(255,45,122,0.55), 0 0 14px rgba(255,45,122,0.3);
  margin-left: 1px;
}
.brand-v-monogram .brand-tag-under {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 1px;
}

@media (max-width: 768px) {
  .brand-v-tape .brand-tape-mark svg { width: 34px; height: 24px; }
  .brand-v-tape .brand-name.brand-name-lg { font-size: 22px; }
  .brand-v-live .brand-name.brand-name-md { font-size: 19px; }
  .brand-v-live .brand-tag-quiet { font-size: 8px; letter-spacing: 0.24em; }
  .brand-v-monogram .brand-monogram { font-size: 24px; }
  .brand-v-monogram .brand-tag-under { font-size: 7.5px; }
}

.nav {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a { position: relative; padding: 4px 0; }
/* Assigned menus emit <ul class="nav-menu"><li><a>; lay it out horizontally
   like the fallback bare-<a> nav, so menu items don't stack into a second row */
.nav .nav-menu {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav .nav-menu li { margin: 0; padding: 0; }
.nav .nav-menu > li > a { display: inline-block; }
@media (max-width: 600px) {
  .nav .nav-menu { gap: 12px; }
}

/* Force text (not emoji) presentation for the broadcast glyphs ▶ ↗ ◀ ▸ →
   so they render as flat type, never as colored OS/Twemoji squares. */
.btn, .nav, .rec-bar, .essay-foot .back, .np-cta,
.section-head, .elsewhere, .foot-rss, .nav-links,
.bs-kind-pip, .currently::before {
  font-variant-emoji: text;
}
img.emoji, img.wp-smiley {
  display: inline !important;
  height: 1em !important; width: 1em !important;
  margin: 0 !important; vertical-align: -0.1em !important;
  background: none !important; box-shadow: none !important;
}
.nav a.active,
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a,
.nav .current-menu-parent > a,
.nav a[aria-current="page"] { color: var(--neon-magenta); }
.nav a.active::after,
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after,
.nav .current-menu-ancestor > a::after,
.nav .current-menu-parent > a::after,
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute; left: -4px; right: -4px; bottom: -3px;
  height: 2px; background: var(--neon-magenta);
  box-shadow: 0 0 8px var(--neon-magenta), 0 0 18px rgba(255,45,122,0.5);
}
/* the Subscribe button is never an "active page" — keep its underline off */
.nav .nav-sub::after { display: none !important; }
.nav a:hover { color: var(--neon-magenta); }
.nav .rss {
  border: 1px solid var(--ink);
  padding: 4px 9px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav .rss:hover {
  background: var(--neon-cyan);
  color: var(--paper);
  border-color: var(--neon-cyan);
}

/* ========================================================
   vertical type rails
   ======================================================== */

.rail {
  position: fixed; top: 120px; bottom: 80px;
  width: var(--rail-w);
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  pointer-events: none;
}
.rail.left  { left: 0; }
.rail.right { right: 0; }
.rail span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
}
.rail.right span { color: var(--neon-cyan); text-shadow: 0 0 6px rgba(0,170,189,0.5); }
@media (max-width: 1200px) { .rail { display: none; } }

/* ========================================================
   neon utilities
   ======================================================== */

.neon-m {
  color: var(--neon-magenta);
  text-shadow:
    0 0 4px rgba(255,45,122,0.55),
    0 0 12px rgba(255,45,122,0.35);
}
.neon-c {
  color: var(--neon-cyan);
  text-shadow:
    0 0 4px rgba(0,170,189,0.6),
    0 0 12px rgba(0,170,189,0.35);
}
.crt-shift {
  /* subtle chromatic aberration on display headlines */
  text-shadow:
    1.5px 0 0 rgba(255,45,122,0.35),
    -1.5px 0 0 rgba(0,170,189,0.4);
}

/* ========================================================
   typography
   ======================================================== */

.display {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 5px var(--neon-cyan);
}
.dropcap::first-letter {
  font-family: var(--f-display);
  font-style: italic; font-weight: 700;
  font-size: 5.2em;
  line-height: 0.82;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--neon-magenta);
  text-shadow: 0 0 8px rgba(255,45,122,0.4);
}

/* ========================================================
   bracketed cards (calm — left neon rule, no corners, no lift)
   ======================================================== */

.bcard {
  position: relative;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--neon-cyan);
  padding: 22px 24px;
  background: var(--paper-fade);
  transition: border-color .15s, background .15s;
}
.bcard:hover {
  border-color: var(--ink);
  border-left-color: var(--neon-magenta);
  background: var(--paper);
}

/* ========================================================
   pull quote
   ======================================================== */

.pullquote {
  margin: 36px 0;
  padding: 26px 32px;
  border: 1px solid var(--neon-cyan);
  background: rgba(0,170,189,0.04);
  box-shadow:
    inset 0 0 24px rgba(0,170,189,0.10),
    0 0 28px -10px rgba(0,170,189,0.45);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
  position: relative;
}
.pullquote::before {
  content: '◆ MARGIN NOTE';
  position: absolute; top: -10px; left: 18px;
  background: var(--paper);
  padding: 0 8px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0,170,189,0.5);
}

/* ========================================================
   progress bar — neon magenta
   ======================================================== */

.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 60;
  background: transparent;
  pointer-events: none;
}
.progress .bar {
  height: 100%;
  background: var(--neon-magenta);
  box-shadow:
    0 0 8px var(--neon-magenta),
    0 0 18px rgba(255,45,122,0.6);
  transition: width 0.1s linear;
}

/* ========================================================
   tags
   ======================================================== */

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
  line-height: 1.2;
  white-space: nowrap;
}
.tag--essay   { color: var(--neon-magenta); }
.tag--fiction { color: var(--neon-cyan); }
.tag--clip    { color: var(--neon-magenta); }
.tag--gallery { color: var(--neon-cyan); }
.tag--dispatch{ color: var(--neon-amber); }
.tag--long-play{ color: var(--neon-violet); }
.tag--short   { color: var(--ink); opacity: 0.7; }
.tag--note    { color: var(--ink); opacity: 0.55; }
.tag--craft   { color: var(--ink-mid); }
.tag--internet{ color: var(--ink-mid); }
.tag--grief   { color: var(--ink-mid); }

/* tag filter row */
.tag-filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.tag-filter {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .14s;
}
.tag-filter:hover { border-color: var(--ink); }
.tag-filter.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ========================================================
   homepage hero
   ======================================================== */

.hero {
  padding: 60px 0 36px;
  position: relative;
}
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 56px;
  align-items: end;
}

/* Hero title — base + variants ----------------------------- */
.hero-h1 {
  margin: 16px 0 0;
}

/* === Variant 1: MARQUEE — outlined glow display, '80s sign === */
.hero-h1--marquee {
  font-family: var(--f-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(78px, 11vw, 156px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--paper-fade);
  -webkit-text-stroke: 1.5px var(--ink);
          text-stroke: 1.5px var(--ink);
  text-shadow:
    0 0 0 var(--ink),
    0 0 18px rgba(0,170,189,0.12);
  display: flex; flex-direction: column;
}
.hero-h1--marquee .mq-row { display: inline-block; }
.hero-h1--marquee .mq-row-2 { padding-left: 0.08em; color: var(--paper-fade);
  -webkit-text-stroke: 1.5px var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0,170,189,0.4), 0 0 26px rgba(0,170,189,0.2); }
.hero-h1--marquee .mq-row-3 { padding-left: 0.16em; }
.hero-h1--marquee .mq-m { color: rgba(255,45,122,0.06);
  -webkit-text-stroke: 1.8px var(--neon-magenta);
  text-shadow: 0 0 12px rgba(255,45,122,0.55), 0 0 28px rgba(255,45,122,0.3), 0 0 56px rgba(255,45,122,0.15); }
.hero-h1--marquee .mq-pd { color: var(--neon-magenta); -webkit-text-stroke: 0; text-shadow: 0 0 8px rgba(255,45,122,0.6); padding-left: 0.02em; }

/* === Variant 2: MASTHEAD — editorial caps with cyan glow rule === */
.hero-h1--masthead {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(58px, 8vw, 116px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.hero-h1--masthead::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow:
    0 0 8px rgba(0,170,189,0.7),
    0 0 18px rgba(0,170,189,0.45),
    0 0 36px rgba(0,170,189,0.2);
}
.hero-h1--masthead .mh-pd {
  color: var(--neon-magenta);
  text-shadow: 0 0 8px rgba(255,45,122,0.5), 0 0 18px rgba(255,45,122,0.3);
  margin-left: 0.04em;
}

/* === Variant 3: ASYM — mono prefix + giant italic Majesty === */
.hero-h1--asym {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.hero-h1--asym .as-pre {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(13px, 1.5vw, 18px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0,170,189,0.45);
  padding-left: 4px;
}
.hero-h1--asym .as-big {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.84;
  letter-spacing: -0.045em;
}
.hero-h1--asym .as-pd {
  font-style: italic;
  margin-left: -0.04em;
}

.hero .tagline {
  margin-top: 26px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  max-width: 520px;
  color: var(--ink);
  opacity: 0.88;
}

/* CTA row ---------------------------------------------- */
.hero-cta {
  display: flex; gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--neon-magenta);
  border-color: var(--neon-magenta);
  color: var(--paper);
  transition: box-shadow .18s, color .15s;
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px var(--neon-magenta),
    0 0 18px rgba(255,45,122,0.6),
    0 0 40px rgba(255,45,122,0.25);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.btn-ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0,170,189,0.5);
  box-shadow: 0 0 14px rgba(0,170,189,0.35);
}

/* NOW PLAYING card (hero right) — calm: cyan top + magenta bottom rules */
.now-playing {
  position: relative;
  background: var(--paper-fade);
  border: 1px solid var(--rule);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.now-playing:hover {
  background: var(--paper);
  border-color: var(--ink-soft);
}
.np-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-stamp);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 14px;
}
.np-head .np-rec {
  color: var(--rec-red);
  display: inline-flex; align-items: center; gap: 8px;
}
.np-head .np-rec .rec-dot {
  animation: npPulse 2s ease-in-out infinite;
}
@keyframes npPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.np-head .np-num {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0,170,189,0.5);
  font-size: 14px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
/* signal band — a live VU meter where the reels used to be ---------- */
.np-signal {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 16px;
}
.np-signal .np-meter {
  display: flex; align-items: flex-end;
  gap: 5px;
  height: 26px;
}
.np-signal .np-meter i {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, var(--neon-magenta), var(--neon-cyan));
  border-radius: 1.5px;
  opacity: 0.85;
  transform-origin: bottom;
  transform: scaleY(0.3);
  animation: npVU 1.3s ease-in-out infinite;
}
.np-signal .np-meter i:nth-child(2n) { animation-duration: 0.85s; }
.np-signal .np-meter i:nth-child(3n) { animation-duration: 1.7s; }
.np-signal .np-meter i:nth-child(4n) { animation-duration: 1.05s; }
.np-signal .np-meter i:nth-child(5n) { animation-duration: 0.7s; }
.np-signal .np-meter i:nth-child(7n) { animation-duration: 1.45s; }
@keyframes npVU { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes reelSpin {
  to { transform: rotate(360deg); }
}

.np-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  transition: color .15s;
}
.now-playing:hover .np-title { color: var(--neon-magenta); }
.np-blurb {
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.78;
}
.np-foot {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

/* status row (replaces old meta-grid) ------------------ */
.hero-status {
  margin-top: 44px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0;
  align-items: center;
  position: relative;
}
.hero-status .cell {
  padding: 4px 22px;
  border-right: 1px dashed var(--rule);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.hero-status .cell:first-child { padding-left: 0; }
.hero-status .cell:nth-last-child(2) { border-right: 0; }
.hero-status .lbl {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-status .val {
  font-family: var(--f-stamp);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.hero-status .val .accent { color: var(--neon-magenta); text-shadow: 0 0 6px rgba(255,45,122,0.5); }

.signal-bars {
  display: inline-flex; align-items: flex-end; gap: 3px;
  padding-left: 22px;
  height: 28px;
}
.signal-bars span {
  display: inline-block;
  width: 4px;
  background: var(--ink);
  animation: sigPulse 1.4s ease-in-out infinite;
}
.signal-bars span:nth-child(1) { height: 25%; animation-delay: 0s; }
.signal-bars span:nth-child(2) { height: 45%; animation-delay: 0.15s; }
.signal-bars span:nth-child(3) { height: 70%; animation-delay: 0.3s; background: var(--neon-cyan); box-shadow: 0 0 4px rgba(0,170,189,0.6); }
.signal-bars span:nth-child(4) { height: 90%; animation-delay: 0.45s; background: var(--neon-cyan); box-shadow: 0 0 6px rgba(0,170,189,0.7); }
.signal-bars span:nth-child(5) { height: 100%; animation-delay: 0.6s; background: var(--neon-magenta); box-shadow: 0 0 6px rgba(255,45,122,0.7); }
@keyframes sigPulse {
  0%, 100% { opacity: 0.55; transform: scaleY(0.85); transform-origin: bottom; }
  50%      { opacity: 1;    transform: scaleY(1); }
}

@media (max-width: 980px) {
  .hero-main { grid-template-columns: 1fr; gap: 36px; }
  .hero-status { grid-template-columns: 1fr 1fr; }
  .hero-status .cell { border-right: 0; border-bottom: 1px dashed var(--rule); padding: 10px 0; }
  .hero-status .cell:nth-child(2n) { padding-left: 22px; border-left: 1px dashed var(--rule); }
  .signal-bars { display: none; }
}

/* ========================================================
   featured grid — homepage
   ======================================================== */

.featured-section {
  padding: 30px 0 80px;
  border-top: 1px solid var(--ink);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 0 28px;
}
.section-head .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.section-head .count {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  column-gap: 22px;
  row-gap: 14px;
}
.feat-card { display: flex; flex-direction: column; gap: 14px; }
.feat-card .num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.feat-card .title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  line-height: 1.08;
  font-size: 30px;
  letter-spacing: -0.015em;
  transition: color .15s;
}
.feat-card:nth-child(1) .title { font-size: 40px; }
.feat-card:hover .title { color: var(--neon-magenta); }
.feat-card .blurb {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0;
}
.feat-card .foot {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  display: flex; gap: 12px; align-items: center;
  margin-top: auto;
}
/* Subgrid: share row tracks across the three cards so num / title / blurb /
   foot align column-to-column even when titles run 1–3 lines. Titles
   bottom-align so they sit tight above their blurb; the 1fr blurb row pins
   the date to the bottom. Placed AFTER the base .feat-card rules so its
   display:grid wins. Falls back to flex where subgrid is unsupported. */
@supports (grid-template-rows: subgrid) {
  .featured-grid { grid-template-rows: auto auto 1fr auto; }
  .feat-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
  }
  .feat-card .title { align-self: end; margin: 0; }
  .feat-card .foot { margin-top: 0; }
}

/* ========================================================
   archive page
   ======================================================== */

.page-head {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--ink);
}
.page-head h1 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.95;
  margin: 14px 0 0;
  letter-spacing: -0.03em;
}
/* Neon accent on the last word of page/section headings (Writing, About, …).
   him_accent_title() wraps the last word in <span class="accent">; without
   this rule the span renders with no color. */
.page-head h1 .accent,
.about h1 .accent {
  color: var(--neon-magenta);
  text-shadow: 0 0 12px rgba(255,45,122,0.4);
}
.page-head .sub {
  margin-top: 16px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 19px;
  opacity: 0.8;
  max-width: 560px;
}

.archive {
  padding: 0 0 80px;
}
.archive .toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  gap: 16px; flex-wrap: wrap;
}

.year-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0,170,189,0.5);
  padding: 28px 0 12px;
  display: flex; align-items: center; gap: 12px;
}
.year-label::before, .year-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--neon-cyan);
  box-shadow: 0 0 4px rgba(0,170,189,0.4);
  opacity: 0.5;
}
.year-label::before { max-width: 24px; }

.arc-row {
  display: grid;
  grid-template-columns: 70px 100px 1fr 110px 60px;
  gap: 18px;
  padding: 18px 8px;
  border-bottom: 1px dashed var(--rule);
  align-items: center;
  cursor: pointer;
  transition: background .12s, padding .15s;
}
.arc-row:hover {
  background: rgba(255,45,122,0.04);
  padding-left: 14px;
}
.arc-row:hover .arc-title { color: var(--neon-magenta); }
.arc-date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.arc-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color .15s;
}
.arc-read {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  text-align: right;
}

/* ========================================================
   essay page
   ======================================================== */

.essay {
  padding: 56px 0 100px;
  max-width: 720px;
  margin: 0 auto;
}

/* Featured image as the post's lead — constrained to the column, capped
   height, framed in the broadcast language (cyan top / magenta bottom). */
.essay-lead-image {
  margin: 0 0 32px;
  position: relative;
  border: 1px solid var(--ink);
  border-top: 3px solid var(--neon-cyan);
  border-bottom: 3px solid var(--neon-magenta);
  background: var(--paper-deep);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}
.essay-lead-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
}
.essay-lead-image figcaption {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  background: var(--paper-fade);
}

/* Safety net: any image placed in the body never exceeds its column. */
.essay-body img { max-width: 100%; height: auto; }
.essay .meta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.essay h1 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.essay h1 .accent { color: var(--neon-magenta); text-shadow: 0 0 12px rgba(255,45,122,0.4); }
.essay .lede {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  margin: 0 0 36px;
  color: var(--ink-mid);
}
.essay-body {
  font-family: var(--f-body);
  font-size: 19px;
  line-height: 1.65;
}
.essay-body p { margin: 0 0 20px; }
.essay-body h2 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  margin: 42px 0 16px;
  letter-spacing: -0.01em;
}
.essay-body em { font-style: italic; }
.essay-body strong { font-weight: 600; }
.essay-body a {
  border-bottom: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.essay-foot {
  margin-top: 60px;
  padding: 32px 0 0;
  border-top: 1px solid var(--ink);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px;
}
.essay-foot .sig {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
}
.essay-foot .back {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.essay-foot .back:hover { color: var(--neon-magenta); border-color: var(--neon-magenta); }

/* ========================================================
   about page
   ======================================================== */

.about {
  padding: 64px 0 100px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
.about h1 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(60px, 8vw, 96px);
  line-height: 0.95;
  margin: 14px 0 22px;
  letter-spacing: -0.03em;
}
.about .lede {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.92;
  margin: 24px 0 0;
}
.about-body {
  font-size: 18px;
  line-height: 1.65;
  margin-top: 28px;
}
.about-body p { margin: 0 0 18px; }

.currently {
  margin-top: 38px;
  border: 1px solid var(--rule);
  padding: 22px 24px;
  background: var(--paper-fade);
  position: relative;
}
.currently::before {
  content: '▶ CURRENTLY';
  position: absolute; top: -10px; left: 18px;
  background: var(--paper);
  padding: 0 8px;
  font-family: var(--f-stamp);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--neon-magenta);
  text-shadow: 0 0 6px rgba(255,45,122,0.4);
}
.currently dl { display: grid; grid-template-columns: 110px 1fr; row-gap: 12px; column-gap: 18px; margin: 6px 0 0; font-size: 16px; }
.currently dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; }
.currently dd { margin: 0; font-style: italic; font-family: var(--f-display); font-size: 18px; }

.elsewhere {
  margin-top: 30px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.elsewhere a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .14s;
}
.elsewhere a:hover {
  background: var(--neon-magenta);
  color: var(--paper);
  border-color: var(--neon-magenta);
  box-shadow: 0 0 12px rgba(255,45,122,0.5);
}

.portrait-wrap {
  position: relative;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-magenta);
  padding: 10px;
  background: var(--paper-fade);
}
.portrait {
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(45deg, rgba(26,18,8,0.08) 0 10px, transparent 10px 12px),
    var(--paper-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
/* When the portrait is a real featured image, fill the 3/4 frame cleanly. */
img.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.portrait-cap {
  margin-top: 8px;
  font-family: var(--f-stamp);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-align: right;
}

/* ========================================================
   footer
   ======================================================== */

.site-footer {
  border-top: 1px solid var(--ink);
  margin-top: 30px;
  padding: 26px 0 28px;
  background: var(--paper-deep);
  position: relative; z-index: 3;
}
.site-footer .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-footer .vol { display: inline-flex; gap: 2px; align-items: center; }
.site-footer .vol .b { width: 6px; height: 12px; background: var(--ink); display: inline-block; }
.site-footer .vol .b.off { background: transparent; border: 1px solid var(--rule); }

/* page transition shim */
.page-fade { animation: pgIn 0.35s ease-out; }
@keyframes pgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ========================================================
   essay block: SCRIPT FRAGMENT (screenplay-formatted)
   ======================================================== */

.script-block {
  margin: 36px 0;
  padding: 0;
  background: var(--paper-fade);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--neon-cyan);
  position: relative;
}
.script-block .sb-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 16px;
  border-bottom: 1px dashed var(--rule);
  background: rgba(26,18,8,0.03);
}
.script-block .sb-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 4px rgba(0,170,189,0.4);
}
.script-block .sb-label, .gb-label, .clip-block .cb-rec { white-space: nowrap; }
.script-block .sb-meta {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.script-block .sb-body {
  padding: 20px 28px 22px;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.script-block .sb-body > :first-child { margin-top: 0; }
.script-block .sb-slug {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 24px;
  padding-bottom: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.script-block .sb-action {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--ink);
  text-wrap: pretty;
}
.script-block .sb-action strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.script-block .sb-char {
  margin: 22px 0 0;
  padding-left: 38%;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--neon-magenta);
  text-shadow: 0 0 4px rgba(255,45,122,0.35);
  font-size: 13px;
}
.script-block .sb-paren {
  margin-top: 2px;
  padding-left: 32%;
  font-style: italic;
  font-size: 12px;
  color: var(--ink-soft);
}
.script-block .sb-dial {
  margin-top: 2px;
  padding: 0 14% 0 22%;
  white-space: pre-line;
  font-size: 13.5px;
  color: var(--ink);
}
.script-block .sb-dial strong { font-weight: 700; }
.script-block .sb-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-top: 1px dashed var(--rule);
  background: rgba(0,170,189,0.04);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mid);
}
.script-block .sb-foot-tag {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--neon-cyan);
  text-shadow: 0 0 4px rgba(0,170,189,0.4);
  border: 1px solid var(--neon-cyan);
  padding: 2px 7px;
  text-transform: uppercase;
}

/* ========================================================
   essay block: CLIP (video in TV frame)
   ======================================================== */

.clip-block {
  margin: 36px 0;
  padding: 0;
  position: relative;
}
.clip-block .cb-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px;
  background: var(--paper-deep);
  border: 1px solid var(--ink);
  border-bottom: 0;
  font-family: var(--f-stamp);
  font-size: 15px;
  letter-spacing: 0.1em;
}
.clip-block .cb-rec {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
  white-space: nowrap;
}
.clip-block .cb-time {
  color: var(--neon-magenta);
  text-shadow: 0 0 4px rgba(255,45,122,0.4);
  font-size: 14px;
  letter-spacing: 0.12em;
}
.clip-block .cb-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0e;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-top: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-magenta);
}
.clip-block .cb-screen video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border: 0;
}
.clip-block .cb-screen.has-src { cursor: pointer; }
.clip-block .cb-screen.has-src:hover .cb-play { transform: translate(-50%,-50%) scale(1.04); }

/* No-signal placeholder: SMPTE-ish color bars */
.clip-block .cb-static {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: stretch;
}
.clip-block .cb-static-bars {
  flex: 1; display: flex;
}
.clip-block .cb-static-bars span {
  flex: 1;
  background: #4a3f30;
  border-right: 1px solid rgba(0,0,0,0.2);
}
.clip-block .cb-static-bars span:nth-child(1) { background: #e7debf; }
.clip-block .cb-static-bars span:nth-child(2) { background: #d8c97a; }
.clip-block .cb-static-bars span:nth-child(3) { background: #00aabd; }
.clip-block .cb-static-bars span:nth-child(4) { background: #6f8a3a; }
.clip-block .cb-static-bars span:nth-child(5) { background: #b04860; }
.clip-block .cb-static-bars span:nth-child(6) { background: #b84050; }
.clip-block .cb-static-bars span:nth-child(7) { background: #3a4a8a; }
.clip-block .cb-static-bars span:nth-child(8) { background: #2a2418; border-right: 0; }
.clip-block .cb-static-label {
  position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  text-align: center;
  font-family: var(--f-stamp);
  font-size: 22px;
  letter-spacing: 0.32em;
  color: var(--neon-cyan);
  text-shadow:
    0 0 8px rgba(0,170,189,0.7),
    0 0 24px rgba(0,170,189,0.4),
    1.5px 0 0 rgba(255,45,122,0.5),
    -1.5px 0 0 rgba(0,170,189,0.5);
  background: rgba(10,10,14,0.55);
  padding: 14px 0;
}

/* CRT scanlines on top of the screen */
.clip-block .cb-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
}

/* Play button overlay */
.clip-block .cb-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 20px;
  background: rgba(241,233,213,0.92);
  border: 1px solid var(--ink);
  border-top: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-magenta);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, color .15s;
}
.clip-block .cb-play:hover {
  color: var(--neon-magenta);
}
.clip-block .cb-play-tri {
  font-size: 14px;
  color: var(--neon-magenta);
  text-shadow: 0 0 5px rgba(255,45,122,0.6);
}
.clip-block .cb-screen.playing .cb-play { display: none; }

.clip-block .cb-cap {
  margin-top: 10px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.clip-block .cb-cap-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* responsive --------------------------------------------- */
@media (max-width: 768px) {
  .script-block .sb-body { padding: 16px 16px 18px; font-size: 12.5px; line-height: 1.65; }
  .script-block .sb-char { padding-left: 26%; }
  .script-block .sb-paren { padding-left: 22%; }
  .script-block .sb-dial { padding: 2px 6% 8px 14%; }
  .script-block .sb-slug { font-size: 12px; }
  .clip-block .cb-static-label { font-size: 14px; letter-spacing: 0.24em; padding: 10px 0; }
  .clip-block .cb-play { padding: 10px 16px; font-size: 11px; letter-spacing: 0.18em; gap: 10px; }
}

/* ========================================================
   essay block: GALLERY (still images, contact-sheet style)
   ======================================================== */

.gallery-block {
  margin: 36px 0;
  padding: 0;
}
.gb-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  background: var(--paper-deep);
  border: 1px solid var(--ink);
  border-bottom: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.gb-label {
  color: var(--neon-cyan);
  text-shadow: 0 0 4px rgba(0,170,189,0.4);
}
.gb-meta { color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.gb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  background: var(--paper-deep);
  border: 1px solid var(--ink);
}
/* Count-aware columns so the last row is never ragged. Grid tracks are
   mathematically exact, so unlike flex they never round-overflow and wrap. */
.gb-grid[data-count="1"] { grid-template-columns: min(60%, 440px); justify-content: center; }
.gb-grid[data-count="2"],
.gb-grid[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
.gb-frame {
  appearance: none;
  background: transparent;
  border: 0; padding: 0; cursor: pointer;
  text-align: left;
  display: flex; flex-direction: column;
  font: inherit; color: inherit;
}
.gb-frame .gb-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-top: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-magenta);
  overflow: hidden;
  transition: filter .15s, border-color .15s;
}
.gb-frame:hover .gb-screen {
  filter: brightness(1.05);
}
.gb-frame:hover .gb-screen .gb-num {
  color: var(--neon-magenta);
  text-shadow: 0 0 6px rgba(255,45,122,0.55);
}
.gb-screen img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* B-sides previews with real WP media (prototype used CSS placeholders) */
.bs-clip-screen .bs-clip-poster,
.bs-clip-screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.bs-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.gb-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(26,18,8,0.08) 0 10px, transparent 10px 14px),
    var(--paper-fade);
}
.tone-a .gb-placeholder { background:
  repeating-linear-gradient(45deg, rgba(0,170,189,0.10) 0 10px, transparent 10px 14px),
  var(--paper-fade);
}
.tone-b .gb-placeholder { background:
  repeating-linear-gradient(-45deg, rgba(255,45,122,0.08) 0 10px, transparent 10px 14px),
  #ede5d0;
}
.tone-c .gb-placeholder { background:
  repeating-linear-gradient(0deg, rgba(26,18,8,0.06) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(90deg, rgba(26,18,8,0.04) 0 1px, transparent 1px 3px),
  var(--paper-deep);
}
.gb-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(26,18,8,0.05) 0 2px, transparent 2px 4px);
}
.gb-num {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--f-stamp);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  text-shadow: 0 0 4px rgba(0,170,189,0.5);
  background: rgba(241,233,213,0.85);
  padding: 1px 6px;
  border: 1px solid var(--ink);
  transition: color .15s, text-shadow .15s;
}
.gb-cap {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 8px 2px 2px;
  text-transform: lowercase;
}

.gb-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-top: 0;
  background: rgba(0,170,189,0.04);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mid);
}
.gb-foot-tag {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--neon-cyan);
  text-shadow: 0 0 4px rgba(0,170,189,0.4);
  border: 1px solid var(--neon-cyan);
  padding: 2px 7px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .gb-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
  .gb-grid[data-count="1"] { grid-template-columns: min(80%, 340px); }
  .gb-num { font-size: 12px; padding: 1px 5px; }
}
@media (max-width: 480px) {
  .gb-cap { font-size: 9px; }
}

/* ========================================================
   LIGHTBOX
   ======================================================== */

.lb-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,14,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  animation: subFade 0.18s ease-out;
}
/* The [hidden] attribute must beat the display:flex above, or the lightbox
   can't be closed (display:flex overrides the default hidden→display:none). */
.lb-backdrop[hidden] { display: none !important; }
.lb-shell {
  display: flex; flex-direction: column;
  gap: 14px;
  max-width: min(1100px, 100%);
  max-height: 100%;
  width: 100%;
  color: var(--paper);
}
.lb-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241,233,213,0.72);
}
.lb-num { color: var(--neon-cyan); text-shadow: 0 0 6px rgba(0,170,189,0.55); }
.lb-close {
  appearance: none;
  border: 1px solid rgba(241,233,213,0.4);
  background: transparent;
  color: rgba(241,233,213,0.85);
  font: inherit;
  letter-spacing: 0.22em;
  padding: 5px 10px;
  cursor: pointer;
  transition: all .15s;
}
.lb-close:hover {
  border-color: var(--neon-magenta);
  color: var(--neon-magenta);
  text-shadow: 0 0 6px rgba(255,45,122,0.55);
}
.lb-stage {
  display: grid; grid-template-columns: 44px 1fr 44px;
  gap: 16px;
  align-items: center;
  flex: 1;
  min-height: 0;
}
.lb-nav {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(241,233,213,0.3);
  color: rgba(241,233,213,0.85);
  font: inherit;
  width: 44px; height: 64px;
  cursor: pointer;
  font-size: 18px;
  transition: all .15s;
}
.lb-nav:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); text-shadow: 0 0 6px rgba(0,170,189,0.55); }
.lb-frame {
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
  height: 100%;
}
/* Lightbox shows the FULL image, uncropped, at its natural aspect ratio. */
.lb-frame .gb-screen {
  width: auto; height: auto;
  max-width: 100%;
  max-height: 78vh;
  aspect-ratio: auto;
  background: #000;
}
.lb-frame .gb-screen img {
  width: auto; height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}
.lb-cap {
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: rgba(241,233,213,0.85);
}

@media (max-width: 640px) {
  .lb-backdrop { padding: 16px; }
  .lb-stage { grid-template-columns: 34px 1fr 34px; gap: 8px; }
  .lb-nav { width: 34px; height: 52px; font-size: 15px; }
  .lb-frame .gb-screen { max-height: 70vh; }
  .lb-frame .gb-screen img { max-height: 70vh; }
  .lb-cap { font-size: 15px; }
}

/* ========================================================
   essay variant: CLIP-FIRST
   the clip is the hero; the title sits above; body below is shorter.
   ======================================================== */

.essay.essay--clip-first {
  max-width: 880px;  /* breaks out wider than the standard 720 column */
}
.essay--clip-first h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin-bottom: 22px;
}
.essay--clip-first .essay-clip-hero {
  margin: 0 0 32px;
}
.essay--clip-first .essay-clip-hero .clip-block { margin: 0; }
.essay--clip-first .essay-clip-hero .cb-screen {
  /* taller and more cinematic for the hero treatment */
  aspect-ratio: 16/9;
}
.essay--clip-first .essay-clip-hero .cb-head {
  font-size: 16px;
  padding: 10px 18px;
}
.essay--clip-first .essay-body {
  max-width: 660px;
  margin: 0 auto;
}
.essay--clip-first .essay-foot {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .essay.essay--clip-first { max-width: 100%; }
  .essay--clip-first .essay-clip-hero { margin: 0 0 24px; }
  .essay--clip-first h1 { font-size: clamp(30px, 8vw, 48px); }
}

/* ========================================================
   essay variant: GALLERY-FIRST
   gallery is the hero (full essay width), short text below.
   ======================================================== */

.essay.essay--gallery-first {
  max-width: 980px;
}
.essay--gallery-first h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  margin-bottom: 22px;
}
.essay--gallery-first .essay-gallery-hero {
  margin: 0 0 36px;
}
.essay--gallery-first .essay-gallery-hero .gallery-block { margin: 0; }
/* Hero galleries: bigger frames, more breathing room */
.essay--gallery-first .gb-grid {
  gap: 12px;
  padding: 14px;
}
.essay--gallery-first .essay-body {
  max-width: 660px;
  margin: 0 auto;
}
.essay--gallery-first .essay-foot {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .essay.essay--gallery-first { max-width: 100%; }
}

/* ========================================================
   B-SIDES page
   ======================================================== */

.bs-head h1 .neon-c {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0,170,189,0.5);
}

.bs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 36px 0 80px;
}

.bs-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--paper-fade);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color .15s, background .15s;
}
.bs-card--clip    { border-top: 2px solid var(--neon-magenta); }
.bs-card--gallery { border-top: 2px solid var(--neon-cyan); }
.bs-card--script  { border-top: 2px solid var(--neon-cyan);
                    border-bottom: 2px solid var(--neon-magenta); }
.bs-card:hover {
  background: var(--paper);
  border-color: var(--ink);
}
.bs-card:hover .bs-title { color: var(--neon-magenta); }

.bs-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--rule);
  background: rgba(26,18,8,0.03);
}
.bs-num { color: var(--ink-soft); }
.bs-kinds { display: inline-flex; gap: 6px; }
.bs-kind-pip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border: 1px solid currentColor;
  font-family: var(--f-stamp);
  font-size: 14px;
  letter-spacing: 0;
}
.bs-kind--clip    { color: var(--neon-magenta); text-shadow: 0 0 4px rgba(255,45,122,0.45); }
.bs-kind--clip    { padding-left: 2px; }
.bs-kind--gallery { color: var(--neon-cyan);    text-shadow: 0 0 4px rgba(0,170,189,0.45); }
.bs-kind--script  { color: var(--ink-mid); }

/* preview area */
.bs-preview {
  position: relative;
  flex: 1;
  min-height: 200px;
  border-bottom: 1px dashed var(--rule);
  overflow: hidden;
}

/* clip preview: a TV thumb with bars + play */
.bs-preview-clip { position: relative; height: 100%; }
.bs-clip-screen {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  background: #0a0a0e;
  border-bottom: 2px solid var(--neon-magenta);
  border-top: 2px solid var(--neon-cyan);
  overflow: hidden;
}
.bs-clip-screen .cb-static { position: absolute; inset: 0; display: flex; flex-direction: column; }
.bs-clip-screen .cb-static-bars { flex: 1; display: flex; }
.bs-clip-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(241,233,213,0.9);
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--neon-magenta);
  text-shadow: 0 0 5px rgba(255,45,122,0.5);
  font-size: 16px;
}
.bs-clip-play > span {
  display: block;
  width: 0; height: 0;
  font-size: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 4px;
  filter: drop-shadow(0 0 4px rgba(255,45,122,0.45));
}
.bs-clip-stamp {
  padding: 8px 12px;
  font-family: var(--f-stamp);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}

/* gallery preview: 2x2 mini contact sheet */
.bs-preview-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  height: 100%;
  background: var(--paper-deep);
}
.bs-thumb {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--ink);
  border-top: 1.5px solid var(--neon-cyan);
  border-bottom: 1.5px solid var(--neon-magenta);
  overflow: hidden;
}
.bs-thumb .gb-placeholder { position: absolute; inset: 0; }
.bs-thumb .gb-scanlines { position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(26,18,8,0.06) 0 2px, transparent 2px 4px); }
.bs-thumb-num {
  position: absolute; left: 4px; bottom: 4px;
  font-family: var(--f-stamp);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
  text-shadow: 0 0 4px rgba(0,170,189,0.5);
  background: rgba(241,233,213,0.85);
  padding: 0 4px;
}

/* prose preview (fiction / long-play): the opening lines of the piece, set
   like literature — serif italic with a drop cap — dissolving into static
   at the bottom. The fade absorbs any excerpt length, so short excerpts
   never leave a dead block of empty paper. */
.bs-preview-prose {
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--paper-fade);
  position: relative;
}
.bs-prose-bar {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 6px 14px;
  border-bottom: 1px dashed var(--rule);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  text-transform: uppercase;
  white-space: nowrap;
}
.bs-prose-body {
  flex: 1;
  padding: 18px 20px 0;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, #000 62%, transparent 97%);
  mask: linear-gradient(180deg, #000 62%, transparent 97%);
}
.bs-prose-body::first-letter {
  float: left;
  font-size: 2.7em;
  line-height: 0.78;
  padding: 0.04em 0.12em 0 0;
  font-weight: 600;
  color: var(--neon-magenta);
  text-shadow: 0 0 8px rgba(255,45,122,0.25);
}
.bs-prose-static {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--ink) 8%, transparent) 0 1px, transparent 1px 3px);
  -webkit-mask: linear-gradient(0deg, #000, transparent);
  mask: linear-gradient(0deg, #000, transparent);
}

/* card footer */
.bs-card-foot {
  padding: 16px 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.bs-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  transition: color .15s;
}
.bs-meta {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .bs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bs-grid { grid-template-columns: 1fr; gap: 18px; padding: 24px 0 60px; }
  .bs-title { font-size: 19px; }
}

/* ========================================================
   subscribe — affordances across the site
   ======================================================== */

/* nav: Subscribe button looks like the old .rss but more prominent */
.nav button.rss, .nav .nav-sub {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  background: transparent;
  color: inherit;
  border: 1px solid var(--ink);
  padding: 4px 10px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.nav .nav-sub:hover {
  background: var(--neon-magenta);
  color: var(--paper);
  border-color: var(--neon-magenta);
  box-shadow: 0 0 14px rgba(255,45,122,0.55);
}

/* footer rss — tiny tertiary link */
.foot-rss {
  border-bottom: 1px dotted var(--ink-soft);
  color: var(--ink-mid);
}
.foot-rss:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }

/* about page elsewhere — buttons match anchor styling */
.elsewhere a, .elsewhere button {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .14s;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.elsewhere a:hover, .elsewhere button:hover {
  background: var(--neon-magenta);
  color: var(--paper);
  border-color: var(--neon-magenta);
  box-shadow: 0 0 12px rgba(255,45,122,0.5);
}
/* els-sub: visually marked as the primary action */
.elsewhere .els-sub {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.elsewhere .els-sub:hover {
  background: var(--neon-magenta);
  border-color: var(--neon-magenta);
  color: var(--paper);
  box-shadow: 0 0 14px rgba(255,45,122,0.5);
}

/* essay-foot: subscribe button sits between sig and rewind */
.essay-foot button.back, .essay-foot .back-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0 3px;
  transition: color .15s, border-color .15s;
}
.essay-foot .back-sub { color: var(--neon-magenta); border-color: var(--neon-magenta); text-shadow: 0 0 5px rgba(255,45,122,0.4); }
.essay-foot .back-sub:hover { color: var(--ink); border-color: var(--ink); text-shadow: none; }

/* ========================================================
   subscribe modal
   ======================================================== */

.sub-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26,18,8,0.55);
  backdrop-filter: blur(6px) saturate(0.8);
  -webkit-backdrop-filter: blur(6px) saturate(0.8);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: subFade 0.18s ease-out;
}
/* The [hidden] attribute must beat the display:flex above, or the modal
   can't be closed (display:flex overrides the default hidden→display:none). */
.sub-backdrop[hidden] { display: none !important; }
@keyframes subFade { from { opacity: 0 } to { opacity: 1 } }
.sub-modal {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-top: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-magenta);
  width: 100%; max-width: 520px;
  box-shadow:
    0 0 50px rgba(255,45,122,0.25),
    0 0 80px rgba(0,170,189,0.18);
  animation: subSlide 0.24s cubic-bezier(.2,.7,.3,1);
}
@keyframes subSlide {
  from { opacity: 0; transform: translateY(12px) scale(0.98) }
  to   { opacity: 1; transform: none }
}
.sub-rec {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-stamp);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.sub-rec > span { display: inline-flex; align-items: center; gap: 8px; }
.sub-close {
  background: transparent; border: 0;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  transition: color .15s;
}
.sub-close:hover { color: var(--neon-magenta); text-shadow: 0 0 6px rgba(255,45,122,0.5); }
.sub-body { padding: 28px 30px 26px; }
.sub-h {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 10px 0 14px;
}
.sub-lede {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 22px;
  color: var(--ink-mid);
}
.sub-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.sub-field {
  position: relative;
  flex: 1 1 240px;
  display: flex; align-items: center;
  border: 1px solid var(--ink);
  background: var(--paper-fade);
  padding: 0 14px 0 14px;
  transition: box-shadow .15s, border-color .15s;
}
.sub-field:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 1px var(--neon-cyan), 0 0 18px rgba(0,170,189,0.45);
}
.sub-bracket {
  font-family: var(--f-stamp);
  color: var(--neon-cyan);
  font-size: 18px;
  margin-right: 10px;
  text-shadow: 0 0 6px rgba(0,170,189,0.55);
}
.sub-field input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 14px 0;
  min-width: 0;
}
.sub-field input::placeholder { color: var(--ink-soft); }
.sub-btn { flex-shrink: 0; }
.sub-btn:disabled { opacity: 0.6; cursor: wait; }
.sub-trust {
  margin-top: 18px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sub-rss { color: var(--ink-mid); border-bottom: 1px dotted var(--ink-soft); }
.sub-rss:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.sub-success {
  padding: 14px 0 4px;
  text-align: left;
}
.sub-success .sub-h .neon-c { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0,170,189,0.45); }
.sub-success .sub-btn { margin-top: 16px; }

@media (max-width: 480px) {
  .sub-body { padding: 22px 22px 20px; }
  .sub-h { font-size: 32px; }
  .sub-lede { font-size: 15px; }
  .sub-form { flex-direction: column; align-items: stretch; }
  /* In a column, "flex: 1 1 240px" would make the field 240px TALL — reset it
     so the input sizes to its own height instead of warping into a big box. */
  .sub-field { flex: 0 0 auto; width: 100%; }
  .sub-btn { width: 100%; justify-content: center; }
}

/* tablet (≤1024) */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid > :nth-child(3) { display: none; }
  .feat-card:nth-child(1) .title { font-size: 34px; }
  .hero-h1--marquee  { font-size: clamp(64px, 9vw, 116px); }
  .hero-h1--masthead { font-size: clamp(48px, 7vw, 92px); padding-bottom: 14px; }
  .hero-h1--asym .as-big { font-size: clamp(70px, 12vw, 156px); }
}

/* hero stacks (≤980) — keep existing rule above; add chrome adjustments */
@media (max-width: 980px) {
  .rec-bar-inner { padding: 6px 24px; gap: 12px; font-size: 14px; }
  .rec-bar .ch + .sep, .rec-bar .ch + .sep + span { display: none; } /* hide H.I.M.TV + date on tablet */
  .site-header .inner { padding: 16px 24px; gap: 18px; }
}

/* large-mobile (≤768) */
@media (max-width: 768px) {
  :root { --container: 100%; }
  body { font-size: 17px; }
  .container { padding: 0 20px; }

  /* REC bar — keep only the essentials */
  .rec-bar { font-size: 13px; }
  .rec-bar-inner { padding: 5px 20px; gap: 10px; }
  .rec-bar .sep { display: none; }
  .rec-bar .ch ~ * { display: none; } /* drop H.I.M.TV + date past CH */
  .site-header .inner { padding: 14px 20px; gap: 12px; flex-wrap: wrap; }

  /* brand: smaller, tag on its own row */
  .brand { gap: 10px; }
  .brand .brand-glyph { width: 32px; min-height: 36px; font-size: 15px; padding: 3px 0; }
  .brand .brand-name { font-size: 21px; }
  .brand .brand-tag { font-size: 8px; letter-spacing: 0.28em; }
  .brand .brand-tag .sx { display: none; }
  .brand .brand-tag .sx + span { display: none; } /* drop SIGNAL PERMITTING on narrow */

  .nav { gap: 18px; font-size: 11px; }
  .nav .rss { padding: 4px 8px; }

  /* hero */
  .hero { padding: 36px 0 24px; }
  .hero-h1--marquee  { font-size: clamp(58px, 13vw, 92px); -webkit-text-stroke-width: 1.25px; }
  .hero-h1--masthead { font-size: clamp(40px, 10vw, 68px); padding-bottom: 12px; }
  .hero-h1--asym .as-pre { font-size: 12px; letter-spacing: 0.28em; }
  .hero-h1--asym .as-big { font-size: clamp(64px, 17vw, 112px); }
  .hero .tagline { font-size: 18px; margin-top: 20px; }
  .hero-cta { gap: 10px; margin-top: 22px; }
  .btn { font-size: 11px; padding: 10px 14px; letter-spacing: 0.14em; }

  /* now playing card — shrink */
  .now-playing { padding: 18px 18px 16px; }
  .np-head { font-size: 13px; padding-bottom: 10px; margin-bottom: 12px; }
  .np-head .np-num { font-size: 12px; }
  .np-signal { padding-bottom: 12px; margin-bottom: 12px; }
  .np-signal .np-meter { height: 22px; gap: 4px; }
  .np-title { font-size: 22px; }
  .np-blurb { font-size: 13px; margin: 8px 0 12px; }

  /* status row → stacked 2-col, no signal bars */
  .hero-status { margin-top: 30px; padding: 12px 0; grid-template-columns: 1fr 1fr; }
  .hero-status .cell { padding: 10px 12px; border-right: 0; border-bottom: 1px dashed var(--rule); }
  .hero-status .cell:nth-last-child(-n+3) { border-bottom: 0; }
  .hero-status .cell:nth-child(2n) { border-left: 1px dashed var(--rule); }
  .hero-status .val { font-size: 18px; }
  .signal-bars { display: none; }

  /* featured: full stack */
  .featured-section { padding: 22px 0 60px; }
  .featured-grid { grid-template-columns: 1fr; gap: 28px; }
  .featured-grid > :nth-child(3) { display: flex; } /* restore on mobile */
  /* Single column: drop subgrid spanning, go back to simple flex cards. */
  .feat-card { display: flex; grid-row: auto; }
  .feat-card .foot { margin-top: auto; }
  .feat-card:nth-child(1) .title { font-size: 30px; }
  .feat-card .title { font-size: 26px; }
  .section-head { padding: 14px 0 22px; }

  /* archive */
  .page-head { padding: 40px 0 24px; }
  .page-head h1 { font-size: clamp(44px, 11vw, 64px); }
  .page-head .sub { font-size: 17px; margin-top: 12px; }
  .archive .toolbar { padding: 18px 0; gap: 10px; }
  .tag-filter { font-size: 10px; padding: 4px 9px; letter-spacing: 0.12em; }
  /* archive rows: stack — date+tag on top, title below */
  .arc-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 14px 6px;
    grid-template-areas:
      "meta read"
      "title title";
  }
  .arc-row .arc-date { grid-area: meta; font-size: 10px; display: inline-flex; gap: 10px; }
  .arc-row > .tag { grid-area: meta; justify-self: end; margin-left: auto; }
  .arc-row .arc-title { grid-area: title; font-size: 19px; line-height: 1.2; }
  .arc-row .arc-read { grid-area: read; font-size: 10px; }
  /* hide the cross-tag list on mobile (4th col) */
  .arc-row > .arc-date + .tag + .arc-title + .arc-date { display: none; }
  .arc-row:hover { padding-left: 10px; }
  .year-label { padding: 22px 0 8px; font-size: 10px; }

  /* essay */
  .essay { padding: 32px 0 60px; }
  .essay .meta { font-size: 10px; gap: 10px; margin-bottom: 16px; }
  .essay h1 { font-size: clamp(40px, 10vw, 56px); }
  .essay .lede { font-size: 19px; margin-bottom: 26px; }
  .essay-body { font-size: 17px; }
  .essay-body h2 { font-size: 24px; margin: 30px 0 12px; }
  .dropcap::first-letter { font-size: 4.2em; padding: 4px 8px 0 0; }
  .pullquote { margin: 26px 0; padding: 20px 22px; font-size: 20px; line-height: 1.35; }
  .pullquote::before { font-size: 9px; left: 14px; }
  .essay-foot { margin-top: 44px; padding-top: 24px; }
  .essay-foot .sig { font-size: 18px; }

  /* about */
  .about { padding: 40px 0 60px; grid-template-columns: 1fr; gap: 36px; }
  .about h1 { font-size: clamp(48px, 12vw, 72px); }
  .about .lede { font-size: 19px; }
  .about-body { font-size: 16px; }
  .portrait-wrap { max-width: 280px; margin: 0; }
  .currently dl { grid-template-columns: 90px 1fr; row-gap: 10px; }
  .currently dt { font-size: 10px; }
  .currently dd { font-size: 16px; }

  /* footer */
  .site-footer .inner { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 9px; }
}

/* small mobile (≤480) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .rec-bar-inner { padding: 5px 16px; font-size: 12px; gap: 8px; }
  .rec-bar > * span:nth-child(n+3) { /* keep REC + time only */ }
  .site-header .inner { padding: 12px 16px; }

  .brand .brand-glyph { width: 28px; min-height: 32px; font-size: 13px; }
  .brand .brand-name { font-size: 19px; }
  .brand .brand-tag { display: none; } /* glyph + wordmark only */

  .nav { gap: 12px; font-size: 10px; letter-spacing: 0.1em; }

  .hero { padding: 28px 0 20px; }
  .hero-h1--marquee  { font-size: clamp(48px, 15vw, 68px); -webkit-text-stroke-width: 1px; }
  .hero-h1--masthead { font-size: clamp(34px, 11vw, 52px); }
  .hero-h1--asym .as-big { font-size: clamp(54px, 18vw, 84px); }
  .hero .tagline { font-size: 16px; }
  .eyebrow { font-size: 9px; letter-spacing: 0.24em; }

  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { justify-content: center; padding: 12px 14px; }

  .hero-status { grid-template-columns: 1fr; }
  .hero-status .cell { border-left: 0 !important; padding: 10px 0; }
  .hero-status .cell:not(:last-of-type) { border-bottom: 1px dashed var(--rule); }

  .now-playing { padding: 16px 16px 14px; }
  .np-title { font-size: 20px; }

  .feat-card .title { font-size: 24px !important; }
  .feat-card .num span:first-child { font-size: 9px; }
  .feat-card .blurb { font-size: 15px; }

  .page-head h1 { font-size: clamp(38px, 12vw, 52px); }
  .archive .toolbar { flex-direction: column; align-items: flex-start; }

  .essay h1 { font-size: clamp(34px, 11vw, 48px); }
  .essay-body { font-size: 16px; line-height: 1.6; }
  .pullquote { font-size: 18px; padding: 18px 18px; }
  .dropcap::first-letter { font-size: 3.6em; }

  .about h1 { font-size: clamp(42px, 13vw, 60px); }
}

/* touch / hover-less adjustment — hover effects already degrade gracefully but
   make sure the now-playing transform doesn't stick on tap */
@media (hover: none) {
  .now-playing:hover, .feat-card:hover, .arc-row:hover, .btn:hover { transform: none; }
}


/* ========================================================
   CASSETTE HERO — editorial label treatment
   (transmission 027 as the volume mark)
   ======================================================== */

.hero-v-cassette .hero-main {
  align-items: center;
}

.cassette {
  position: relative;
  min-height: 360px;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(26,18,8,0.06), transparent 70%),
    linear-gradient(180deg, var(--paper-fade), var(--paper-deep));
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow:
    var(--shadow-paper),
    inset 0 -22px 36px rgba(26,18,8,0.10),
    inset 0  3px  0 rgba(255,255,255,0.5);
  padding: 22px 26px 26px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  overflow: hidden;
}
.cassette::before {
  content: '';
  position: absolute; inset: 9px;
  border-radius: 12px;
  border: 1px dashed var(--rule-soft);
  pointer-events: none;
}
.cassette .screws { position: absolute; inset: 14px; pointer-events: none; }
.cassette .screws::before,
.cassette .screws::after,
.cassette .screws > i:nth-child(1),
.cassette .screws > i:nth-child(2) {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper-deep);
  border: 1px solid var(--ink-mid);
  box-shadow: inset 0 -1px 0 rgba(26,18,8,0.4);
}
.cassette .screws::before { top: 0; left: 0; }
.cassette .screws::after  { top: 0; right: 0; }
.cassette .screws > i:nth-child(1) { bottom: 0; left: 0; }
.cassette .screws > i:nth-child(2) { bottom: 0; right: 0; }

.cassette .stamp-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-stamp);
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.18em;
  padding: 0 22px 0 18px;
  white-space: nowrap;
  gap: 12px;
}
.cassette .stamp-row > * { white-space: nowrap; }
.cassette .stamp-row .side {
  background: var(--rec-red);
  color: var(--paper-fade);
  padding: 2px 10px 1px;
  letter-spacing: 0.22em;
  font-size: 13px;
}
.cassette .stamp-row .brand-mono {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.cassette .label {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 18px 26px 20px;
  margin: 0 18px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.6),
    0 1px 0 rgba(26,18,8,0.08);
  text-align: center;
  overflow: hidden;
}
.cassette .brand-banner {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 0 6px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  margin: 0 -14px 12px;
  display: flex; justify-content: center; align-items: center; gap: 14px;
  white-space: nowrap;
}
.cassette .brand-banner .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink);
}
.cassette .vol {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cassette .vol-number {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 92px;
  line-height: 0.9;
  margin: 4px 0 6px;
  color: var(--ink);
  letter-spacing: -0.04em;
  position: relative;
  display: inline-block;
}
.cassette .vol-number .neon-m {
  color: var(--neon-magenta);
  text-shadow: 0 0 12px rgba(255,45,122,0.5);
}
.cassette .caption {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.cassette .caption em { color: var(--neon-magenta); font-style: italic; }

/* reels + tape window */
.cassette .reels {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
}
.cassette .big-reel {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, var(--paper) 0 30%, transparent 30.5%),
    repeating-conic-gradient(from 0deg,
      var(--ink) 0 1.4deg, transparent 1.4deg 60deg),
    radial-gradient(circle at 50% 50%, var(--paper-deep), var(--paper-fade) 80%);
  box-shadow:
    inset 0 0 0 7px var(--paper),
    inset 0 0 0 8px var(--ink),
    inset 0 -8px 18px rgba(26,18,8,0.10);
  animation: reelSpin 16s linear infinite;
}
.cassette .big-reel.rev { animation-direction: reverse; }
.cassette .big-reel::after {
  content: ''; position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--paper);
}

.cassette .tape-window {
  height: 78px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background:
    linear-gradient(180deg,
      rgba(26,18,8,0.65) 0 12%,
      rgba(120, 80, 30, 0.85) 12% 48%,
      rgba(70, 40, 16, 0.95) 48% 88%,
      rgba(26,18,8,0.65) 88% 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(26,18,8,0.4);
}
.cassette .tape-window::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.05) 0 6px, transparent 6px 16px),
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0.18) 0 2px, transparent 2px 5px);
  animation: tapeScroll 6s linear infinite;
}
@keyframes tapeScroll { to { background-position: 200px 0, 0 0; } }

/* responsive — phone: smaller reels + label */
@media (max-width: 768px) {
  .cassette { padding: 16px 16px 18px; min-height: 280px; }
  .cassette .stamp-row { font-size: 12px; padding: 0 8px; }
  .cassette .label { padding: 14px 16px 16px; margin: 0 8px; }
  .cassette .brand-banner { font-size: 9px; letter-spacing: 0.36em; gap: 10px; }
  .cassette .vol-number { font-size: 64px; }
  .cassette .caption { font-size: 14px; }
  .cassette .reels { padding: 0 8px; gap: 14px; }
  .cassette .big-reel { width: 96px; height: 96px; }
  .cassette .tape-window { height: 58px; }
}

@media (max-width: 480px) {
  .cassette .big-reel { width: 76px; height: 76px; }
  .cassette .vol-number { font-size: 52px; }
  .cassette .brand-banner { font-size: 8px; letter-spacing: 0.28em; }
}


/* ========================================================
   TONES — paper / midnight / carbon / newsprint
   Toggle via <body class="tone-*"> or use auto.
   ======================================================== */

/* default (cream paper) is in :root above. Aliased here for clarity. */
.tone-paper { /* no overrides — uses :root */ }

/* ----- MIDNIGHT — deep navy night broadcast ----- */
.tone-midnight {
  --paper:        #0e1530;
  --paper-deep:   #070d24;
  --paper-fade:   #141c3c;
  --ink:          #f0e6d0;
  --ink-mid:      #a395bf;
  --ink-soft:     rgba(240,230,208,0.62);
  --rule:         rgba(240,230,208,0.22);
  --rule-soft:    rgba(240,230,208,0.10);

  --neon-magenta: #ff2d7a;
  --neon-cyan:    #2af0ff;
  --neon-amber:   #ffae3d;
  --neon-violet:  #b794ff;
  --rec-red:      #ff3d33;

  --shadow-paper: 0 1px 0 rgba(0,0,0,0.4), 0 14px 40px -12px rgba(0,0,0,0.6);

  color-scheme: dark;
}
.tone-midnight .cassette {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,0.04), transparent 70%),
    linear-gradient(180deg, #18204a, #0a1130);
  box-shadow:
    0 14px 40px -16px rgba(0,0,0,0.7),
    inset 0 -22px 36px rgba(0,0,0,0.4),
    inset 0 3px 0 rgba(255,255,255,0.06);
}

/* ----- CARBON — true black, cyan accent (matches Midnight) ----- */
.tone-carbon {
  --paper:        #0d0d0d;
  --paper-deep:   #050505;
  --paper-fade:   #181818;
  --ink:          #f5f1e6;
  --ink-mid:      #9c968a;
  --ink-soft:     rgba(245,241,230,0.62);
  --rule:         rgba(245,241,230,0.18);
  --rule-soft:    rgba(245,241,230,0.08);

  --neon-magenta: #ff2d7a;
  --neon-cyan:    #2af0ff;     /* matches Midnight */
  --neon-amber:   #ffae3d;
  --neon-violet:  #b794ff;
  --rec-red:      #ff3d33;

  --shadow-paper: 0 14px 40px -12px rgba(0,0,0,0.8);

  color-scheme: dark;
}
.tone-carbon .cassette {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,0.03), transparent 70%),
    linear-gradient(180deg, #1a1a1a, #0a0a0a);
  border-color: #2a2a2a;
  box-shadow:
    0 14px 40px -16px rgba(0,0,0,0.9),
    inset 0 -22px 36px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.tone-carbon .cassette::before { border-color: rgba(255,255,255,0.08); }

/* ----- NEWSPRINT — cool light grey ----- */
.tone-newsprint {
  --paper:        #d8d4ca;
  --paper-deep:   #cac6bb;
  --paper-fade:   #e3dfd4;
  --ink:          #181410;
  --ink-mid:      #4a4339;
  --ink-soft:     rgba(24,20,16,0.6);
  --rule:         rgba(24,20,16,0.22);
  --rule-soft:    rgba(24,20,16,0.10);

  --neon-magenta: #e8174e;
  --neon-cyan:    #007a93;
  --neon-amber:   #b35100;
  --neon-violet:  #6a2fc0;
  --rec-red:      #c4341a;

  --shadow-paper: 0 1px 0 rgba(24,20,16,0.05), 0 10px 30px -12px rgba(24,20,16,0.25);
}
.tone-newsprint .cassette {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(24,20,16,0.05), transparent 70%),
    linear-gradient(180deg, #e3dfd4, #c4c0b5);
}

/* ----- Dark-tone cassette label stays paper (bone) so the
        title remains a tactile lit object in a dark room ----- */
.tone-midnight .cassette .label,
.tone-carbon .cassette .label {
  background: #f3eada;
  color: #1a1208;
  border-color: #1a1208;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.06),
    0 2px 0 rgba(0,0,0,0.4),
    0 8px 24px -8px rgba(0,0,0,0.5);
}
.tone-midnight .cassette .label .brand-banner,
.tone-midnight .cassette .label .vol-number,
.tone-midnight .cassette .label .caption,
.tone-carbon .cassette .label .brand-banner,
.tone-carbon .cassette .label .vol-number,
.tone-carbon .cassette .label .caption {
  color: #1a1208;
}
.tone-midnight .cassette .label .brand-banner,
.tone-carbon .cassette .label .brand-banner { border-color: #1a1208; }
.tone-midnight .cassette .label .brand-banner .dot,
.tone-carbon .cassette .label .brand-banner .dot { background: #1a1208; }
.tone-midnight .cassette .label .vol,
.tone-carbon .cassette .label .vol { color: rgba(26,18,8,0.55); }
.tone-midnight .cassette .label .vol-number .neon-m,
.tone-midnight .cassette .label .caption em { color: #c41155; text-shadow: 0 0 8px rgba(196,17,85,0.3); }
.tone-carbon .cassette .label .vol-number .neon-m,
.tone-carbon .cassette .label .caption em { color: #c41155; text-shadow: 0 0 8px rgba(196,17,85,0.3); }

/* dark tones: lift the body background with a subtle neon wash so it
   doesn't read as a flat dark void */
body.tone-midnight {
  background-image:
    radial-gradient(800px 500px at 18% -8%, rgba(255,45,122,0.08), transparent 60%),
    radial-gradient(700px 500px at 108% 110%, rgba(42,240,255,0.06), transparent 60%);
}
body.tone-carbon {
  background-image:
    radial-gradient(800px 500px at 18% -8%, rgba(255,45,122,0.07), transparent 60%),
    radial-gradient(700px 500px at 108% 110%, rgba(42,240,255,0.06), transparent 60%);
}

/* dark tones: nav RSS button needs darker text on cyan */
.tone-midnight .nav .rss:hover,
.tone-carbon .nav .rss:hover { color: #0a0a0a; }

/* dark tones: rec-bar gets a brighter live state */
.tone-midnight .rec-bar,
.tone-carbon .rec-bar {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* ========================================================
   TAPE BRAND MARK — T3 (Reel-dot) as primary
   The wordmark stands as type; the period is a tiny
   spinning cassette reel. Station ident sits underneath.
   ======================================================== */
.brand-v-tape {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand-v-tape .brand-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
  line-height: 1;
}
.brand-v-tape .brand-wm {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}
.brand-v-tape .brand-reel-dot {
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1.4px solid var(--neon-magenta);
  background:
    radial-gradient(circle at 50% 50%, var(--paper) 0 22%, transparent 22.5%),
    repeating-conic-gradient(from 0deg, var(--neon-magenta) 0 6deg, transparent 6deg 60deg);
  position: relative;
  top: 2px;
  filter: drop-shadow(0 0 3px rgba(255,45,122,0.5));
  flex-shrink: 0;
}
.brand-v-tape .brand-reel-dot::after {
  content: ''; position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--neon-magenta);
}
.brand-v-tape:hover .brand-reel-dot { animation: reelSpin 1.6s linear infinite; }

.brand-v-tape .brand-ident {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.brand-v-tape .brand-ident .sx { color: var(--rule); }
.brand-v-tape .brand-ident .live {
  color: var(--rec-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.brand-v-tape .brand-ident .live::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rec-red);
  box-shadow: 0 0 4px rgba(255,61,51,0.6);
  animation: liveBlink 1.4s ease-in-out infinite;
}

/* dark tones: neon dot stays luminous */
.tone-midnight .brand-v-tape .brand-reel-dot,
.tone-carbon   .brand-v-tape .brand-reel-dot {
  filter: drop-shadow(0 0 6px rgba(255,45,122,0.7));
}

/* responsive — collapse station ident on phone, shrink wordmark */
@media (max-width: 768px) {
  .brand-v-tape .brand-wm { font-size: 22px; }
  .brand-v-tape .brand-reel-dot { width: 11px; height: 11px; margin-left: 3px; top: 1px; }
  .brand-v-tape .brand-ident { font-size: 7.5px; letter-spacing: 0.26em; gap: 4px; }
  .brand-v-tape .brand-ident .him-tv,
  .brand-v-tape .brand-ident .sx.tv { display: none; }
}
@media (max-width: 480px) {
  .brand-v-tape .brand-wm { font-size: 19px; }
  .brand-v-tape .brand-ident { display: none; }
}

/* ========================================================
   COMPACT BRAND — T1 (Inhabited cassette)
   Used in footer + as the favicon.
   ======================================================== */
.brand-compact {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand-compact .cc-cassette {
  position: relative;
  width: 96px;
  height: 56px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(26,18,8,0.05), transparent 70%),
    linear-gradient(180deg, var(--paper-fade), var(--paper-deep));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.5),
    inset 0 -3px 6px rgba(26,18,8,0.08),
    0 1px 0 rgba(26,18,8,0.1);
  padding: 5px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.brand-compact .cc-cassette::before,
.brand-compact .cc-cassette::after {
  content: '';
  position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-mid);
  opacity: 0.6;
}
.brand-compact .cc-cassette::before { top: 3px; left: 3px; }
.brand-compact .cc-cassette::after  { top: 3px; right: 3px; }

.brand-compact .cc-label {
  flex: 1;
  background: #f7eedb;
  border: 1px solid var(--ink);
  border-radius: 1.5px;
  padding: 2px 6px 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
  /* label is always cream-paper, so ink is always dark regardless of tone */
  color: #1a1208;
  white-space: nowrap;
}
.brand-compact .cc-label .pd {
  color: #c41155;
}
.brand-compact .cc-cassette,
.brand-compact .cc-reel { color: #1a1208; }
/* dark tones: the cassette body & reels need their own dark-ink palette */
.tone-midnight .brand-compact .cc-cassette,
.tone-carbon   .brand-compact .cc-cassette {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,0.04), transparent 70%),
    linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-color: #f5f1e6;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 -3px 6px rgba(0,0,0,0.4),
    0 1px 0 rgba(0,0,0,0.4);
}
.tone-midnight .brand-compact .cc-cassette::before,
.tone-midnight .brand-compact .cc-cassette::after,
.tone-carbon   .brand-compact .cc-cassette::before,
.tone-carbon   .brand-compact .cc-cassette::after {
  background: #6a6a6a;
}
.tone-midnight .brand-compact .cc-reel,
.tone-carbon   .brand-compact .cc-reel {
  border-color: #f5f1e6;
  background:
    radial-gradient(circle at 50% 50%, #2a2a2a 0 40%, transparent 40.5%),
    repeating-conic-gradient(from 0deg, #f5f1e6 0 4deg, transparent 4deg 60deg);
}
.tone-midnight .brand-compact .cc-reel::after,
.tone-carbon   .brand-compact .cc-reel::after { background: #f5f1e6; }
.tone-midnight .brand-compact .cc-tape,
.tone-carbon   .brand-compact .cc-tape {
  border-color: #f5f1e6;
  background: #3a2812;
}
.brand-compact .cc-label .pd {
  color: var(--neon-magenta);
  text-shadow: 0 0 4px rgba(255,45,122,0.5);
}
.brand-compact .cc-label::before {
  content: 'A';
  position: absolute;
  top: 0; left: 1px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 5px;
  letter-spacing: 0.2em;
  color: var(--rec-red);
  line-height: 1;
}

.brand-compact .cc-reels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  height: 14px;
}
.brand-compact .cc-reel {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background:
    radial-gradient(circle at 50% 50%, var(--paper-fade) 0 40%, transparent 40.5%),
    repeating-conic-gradient(from 0deg, var(--ink) 0 4deg, transparent 4deg 60deg);
  position: relative;
}
.brand-compact .cc-reel::after {
  content: ''; position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--ink);
}
.brand-compact .cc-tape {
  flex: 1;
  margin: 0 4px;
  height: 3px;
  border: 1px solid var(--ink);
  background: rgba(26,18,8,0.55);
}
.brand-compact:hover .cc-reel { animation: reelSpin 1.8s linear infinite; }


/* ========================================================
   WP-SPECIFIC STYLES
   Comments, search, pagination, page-links — things that
   only exist when the theme is running on WordPress.
   ======================================================== */

/* skip link — keyboard accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Search form ===== */
.search-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 4px 4px 4px 12px;
  max-width: 420px;
  width: 100%;
}
.search-form .search-field {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  padding: 6px 0;
  letter-spacing: 0.02em;
}
.search-form .search-field:focus { outline: none; }
.search-form .search-submit {
  background: var(--ink);
  color: var(--paper-fade);
  border: 0;
  padding: 8px 12px 6px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s;
}
.search-form .search-submit:hover { background: var(--neon-magenta); }

/* ===== Comments ===== */
.comments-area {
  margin: 64px auto 32px;
  max-width: 720px;
  border-top: 1px solid var(--ink);
  padding-top: 32px;
}
.comments-head { margin-bottom: 24px; }
.comments-head .eyebrow { margin-bottom: 8px; }
.comments-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

.comment-list,
.comment-list .children {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment-list .children { padding-left: 28px; border-left: 1px dashed var(--rule); margin-top: 16px; }
.comment-list .comment {
  padding: 18px 0;
  border-bottom: 1px dashed var(--rule);
}
.comment-list .comment:last-child { border-bottom: 0; }
.comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.comment-list .comment-author .avatar {
  border-radius: 50%;
  border: 1px solid var(--ink);
}
.comment-list .comment-author .fn {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.comment-list .comment-metadata {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.comment-list .comment-content {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.comment-list .comment-content p { margin: 0 0 0.6em; }
.comment-list .reply { margin-top: 8px; }
.comment-list .comment-reply-link {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-magenta);
  text-decoration: none;
}
.comment-list .comment-reply-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.comment-respond { margin-top: 32px; }
.comment-respond .comment-reply-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
}
.comment-respond .comment-reply-title small { font-size: 12px; font-family: var(--f-mono); }
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-cookies-consent label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 10px 12px;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--neon-magenta); }
.comment-form-cookies-consent {
  display: flex; align-items: center; gap: 8px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.comment-form-cookies-consent label { margin: 0; }
.no-comments {
  font-style: italic;
  color: var(--ink-soft);
  font-family: var(--f-display);
}

/* dark tone overrides for forms */
.tone-midnight .search-form,
.tone-carbon .search-form,
.tone-midnight .comment-form textarea,
.tone-midnight .comment-form input,
.tone-carbon .comment-form textarea,
.tone-carbon .comment-form input { background: rgba(255,255,255,0.03); color: var(--ink); border-color: var(--ink); }

/* ===== Pagination (the_posts_pagination + the_comments_pagination) ===== */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 48px 0 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links .page-numbers {
  padding: 8px 12px;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  min-width: 36px;
  text-align: center;
}
.nav-links .page-numbers.current {
  background: var(--ink);
  color: var(--paper-fade);
  border-color: var(--ink);
}
.nav-links .page-numbers:hover { border-color: var(--neon-magenta); color: var(--neon-magenta); }
.nav-links .dots { border: 0; }

/* Mobile pagination: let the row wrap, and give the verbose prev/next links
   ("◀ Earlier" / "Later ▶") their own full-width rows so the numbers sit on
   a tidy middle row instead of overlapping. */
@media (max-width: 600px) {
  .nav-links { gap: 8px; margin: 36px 0 18px; }
  .nav-links .page-numbers { padding: 8px 10px; min-width: 32px; font-size: 11px; }
  .nav-links .prev.page-numbers,
  .nav-links .next.page-numbers { flex-basis: 100%; }
}

/* ===== RSS explainer page (page-rss.php) ===== */
.rss-intro { max-width: 680px; margin: 0 auto 8px; }
.rss-panel {
  max-width: 680px;
  margin: 32px auto 0;
  border: 1.5px solid var(--ink);
  border-top: 3px solid var(--neon-cyan);
  background: var(--paper-fade);
  padding: 22px 24px 26px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}
.rss-panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 18px;
}
.rss-panel-ch { color: var(--neon-cyan); }
.rss-url { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.rss-url input {
  flex: 1 1 240px; min-width: 0;
  font-family: var(--f-mono); font-size: 14px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--ink); padding: 12px 14px;
}
.rss-copy { flex-shrink: 0; }
.rss-steps {
  margin: 22px 0 0; padding-left: 20px;
  font-size: 16px; line-height: 1.6; color: var(--ink-mid);
}
.rss-steps li { margin-bottom: 6px; }
.rss-readers {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.rss-readers-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft); margin-right: 4px;
}
.rss-reader {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--ink); border: 1px solid var(--rule); padding: 7px 12px;
  text-decoration: none; transition: border-color .15s, color .15s;
}
.rss-reader:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.rss-foot {
  max-width: 680px; margin: 28px auto 0; text-align: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.rss-foot a { color: var(--neon-magenta); border-bottom: 1px dotted; text-decoration: none; }
.rss-foot a:hover { color: var(--ink); }
.rss-sub-link { color: var(--neon-magenta); border-bottom: 1px dotted; text-decoration: none; }
.rss-sub-link:hover { color: var(--ink); }
/* feed panel sits comfortably when dropped inside editor content */
.rss-body .rss-panel { margin: 28px auto; }
@media (max-width: 480px) {
  .rss-url input { flex-basis: 100%; }
  .rss-copy { width: 100%; justify-content: center; }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== Year divider in the archive ===== */
.year-divider {
  list-style: none;
  font-family: var(--f-mono);
  color: var(--neon-cyan);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-align: left;
  padding: 24px 0 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 12px;
}

/* ===== page-links (paginated single posts) ===== */
.page-links {
  margin: 36px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex; gap: 8px; align-items: center;
}
.page-links a, .page-links > span {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--rule);
}
.page-links a:hover { border-color: var(--neon-magenta); color: var(--neon-magenta); text-decoration: none; }

/* ===== HIM · Polaroid block style ===== */
.wp-block-image.is-style-him-polaroid figure,
.wp-block-image.is-style-him-polaroid {
  background: var(--paper-fade);
  padding: 14px 14px 48px;
  border: 1px solid var(--ink);
  box-shadow:
    0 1px 0 rgba(26,18,8,0.06),
    0 24px 50px -18px rgba(26,18,8,0.4);
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.wp-block-image.is-style-him-polaroid img { display: block; max-width: 100%; height: auto; }
.wp-block-image.is-style-him-polaroid figcaption {
  position: absolute;
  bottom: 12px; left: 14px; right: 14px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
}

/* ===== HIM · Clip variant on video block ===== */
.wp-block-video.is-style-him-clip video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1.5px solid var(--ink);
  background: #000;
  display: block;
}
.wp-block-video.is-style-him-clip figcaption {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
  display: flex; gap: 8px; align-items: center;
}
.wp-block-video.is-style-him-clip figcaption::before {
  content: '● CLIP';
  color: var(--rec-red);
  letter-spacing: 0.28em;
  font-weight: 600;
}

/* ===== HIM · Masonry gallery (legacy core-gallery style — neutralized) =====
   Superseded by the custom HIM · Gallery block. Kept as a sane responsive
   grid so any galleries created with the old style don't render broken. */
.wp-block-gallery.is-style-him-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.wp-block-gallery.is-style-him-masonry .wp-block-image {
  margin: 0;
}
.wp-block-gallery.is-style-him-masonry .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--ink);
}

/* ===== HIM · Station ident pull-quote ===== */
.wp-block-pullquote.is-style-him-station-ident {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 32px 0;
  margin: 48px 0;
  text-align: center;
}
.wp-block-pullquote.is-style-him-station-ident blockquote::before {
  content: '▸ STATION IDENT';
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--neon-magenta);
  margin-bottom: 12px;
}
.wp-block-pullquote.is-style-him-station-ident p {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto;
}
.wp-block-pullquote.is-style-him-station-ident cite {
  display: block;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink-soft);
}

/* ===== Native video styling (any context) ===== */
.essay-body video,
.essay-body .wp-block-video video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1.5px solid var(--ink);
  background: #000;
}

/* ===== HIM · Clip — broadcast monitor chrome around a core Video block =====
   Works on a plain core/video with the "HIM · Clip" style — no custom markup.
   Adds a REC strip on top, CRT scanlines over the picture, a magenta base
   line, and a CLIP caption — echoing the prototype's clip-block. */
.wp-block-video.is-style-him-clip {
  position: relative;
  margin: 36px 0;
  border: 1.5px solid var(--ink);
  background: var(--paper-deep);
  padding-top: 30px; /* room for the REC strip */
}
.wp-block-video.is-style-him-clip::before {
  content: '● REC · SP · CLIP';
  position: absolute; top: 0; left: 0; right: 0;
  height: 30px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rec-red);
  background: rgba(26,18,8,0.04);
  border-bottom: 1px solid var(--ink);
}
.wp-block-video.is-style-him-clip video {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
  border-bottom: 2px solid var(--neon-magenta);
  background: #000;
}
/* CRT scanlines over the picture (not over native controls hit area edges) */
.wp-block-video.is-style-him-clip::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 30px; bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.14) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
}
.wp-block-video.is-style-him-clip figcaption {
  position: relative; z-index: 1;
  margin: 0; padding: 9px 14px 11px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--paper-fade);
  border-top: 1px solid var(--hair);
}

/* ===== HIM · Screenplay — framed monospace scene on a core Verse block ===== */
.wp-block-verse.is-style-him-screenplay {
  margin: 36px 0;
  padding: 0 26px 22px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  text-indent: 0;
  position: relative;
  overflow: hidden;
}
.wp-block-verse.is-style-him-screenplay::before {
  content: '▒ SCRIPT · DRAFT';
  display: block;
  margin: 0 -26px 18px;
  padding: 9px 16px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 4px rgba(0,170,189,0.4);
  background: rgba(26,18,8,0.03);
  border-bottom: 1px solid var(--ink);
}

/* ===== Subscribe embed container (pasted provider form) ===== */
.sub-embed {
  margin-top: 6px;
}
.sub-embed iframe { width: 100%; border: 0; }
.sub-embed input[type="email"],
.sub-embed input[type="text"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  background: var(--paper-fade);
  color: var(--ink);
  margin-bottom: 10px;
}
.sub-embed button,
.sub-embed input[type="submit"] {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* Skin Kit (ConvertKit) JS-rendered forms to sit nicely in the dark modal.
   Kit sets some inline styles from its form builder; these are gentle nudges,
   not a full override — pick a minimal Kit form style for the cleanest fit. */
.sub-embed .formkit-form { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.sub-embed .formkit-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-embed .formkit-field { flex: 1 1 200px; }
.sub-embed .formkit-input {
  width: 100%; font: inherit !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--ink) !important;
  background: var(--paper-fade) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
}
.sub-embed .formkit-submit {
  font-family: var(--f-mono) !important;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--neon-magenta) !important;
  border: 1.5px solid var(--ink) !important;
  color: #fff !important; border-radius: 0 !important;
}
.sub-embed .formkit-submit > span { padding: 12px 18px !important; }
.sub-embed .formkit-powered-by-convertkit-container { display: none !important; }
.sub-embed .formkit-guarantee,
.sub-embed .formkit-subheader { color: var(--ink-soft) !important; }


/* ===== Responsive iframe embeds (oEmbed wrapping) ===== */
.wp-block-embed { margin: 32px 0; }
.wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border: 1.5px solid var(--ink);
}
.wp-block-embed__wrapper iframe {
  position: absolute; inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* ===== Search results / 404 ===== */
.four-oh-four .static-card {
  max-width: 720px;
  margin: 80px auto;
  text-align: center;
  padding: 56px 32px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
}
.four-oh-four .error-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
  margin: 18px 0 14px;
}
.four-oh-four .error-title .line { display: block; }
.four-oh-four .error-dek {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  max-width: 50ch;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.four-oh-four .error-cta {
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  max-width: 420px; margin: 0 auto;
}
.four-oh-four .error-cta .search-form { width: 100%; }

/* ===== About page — body sub-headings (the .about grid styles live above) ===== */
.about-body h2 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  margin: 2.2em 0 0.6em;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .big-reel, .cc-reel, .brand-reel-dot,
  .deck-reel, .ribbon::before,
  .np-meter i, .np-rec .rec-dot {
    animation: none !important;
  }
  .np-meter i { transform: scaleY(0.6) !important; }
}
