/* ============================================================
   bangun.neocities.org — retro interactive portfolio
   "Hendra Bangun" — CRT phosphor, scanlines, vintage
   5 themes: crt (default) · amber · matrix · midnight · paper
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&family=Silkscreen:wght@400;700&family=IBM+Plex+Mono:wght@400;500;600&family=Source+Serif+4:wght@400;600&display=swap');

/* ---- Theme tokens ----
   The CRT theme defines the original look. All other themes override
   these vars; every selector that uses var(--x) automatically updates.
   --font-mono and --font-body are read per-theme so paper mode can use
   a cleaner stack without breaking the CRT identity elsewhere.
   ----- */
:root,
:root[data-theme="crt"] {
  --bg:        #1a0d1a;
  --bg-soft:   #251626;
  --bg-card:   #2d1a2e;
  --line:      #4a2850;
  --line-2:    #6a3870;
  --fg:        #ffe9f3;
  --fg-dim:    #d4abd0;
  --fg-mute:   #a885a8;
  --pink:      #ff77c8;
  --hot-pink:  #ff3dab;
  --magenta:   #ff1493;
  --cyan:      #66ffe0;
  --amber:     #ffb347;
  --lime:      #a8ff60;
  --mono: 'VT323', ui-monospace, "Courier New", monospace;
  --pixel: 'Press Start 2P', 'Silkscreen', monospace;
  --font-body: var(--mono);
  --scanline: rgba(0,0,0,0.18);
  --scanline-color: rgba(0,0,0,0.18);
  --cursor-color: #ff77c8;
  --selection-bg: rgba(255, 61, 171, 0.35);
  --selection-fg: #ffffff;
  --grain-opacity: 0.04;
  --vignette-opacity: 0.65;
}

/* Amber phosphor — classic 80s amber CRT */
:root[data-theme="amber"] {
  --bg:        #1a0f05;
  --bg-soft:   #2a1a0a;
  --bg-card:   #321e0e;
  --line:      #5a3a18;
  --line-2:    #7a5028;
  --fg:        #ffd180;
  --fg-dim:    #d4a366;
  --fg-mute:   #a07840;
  --pink:      #ffaa55;
  --hot-pink:  #ff8c20;
  --magenta:   #ff7010;
  --cyan:      #ffe080;
  --amber:     #ffb347;
  --lime:      #fff0a0;
  --mono: 'VT323', ui-monospace, "Courier New", monospace;
  --pixel: 'Press Start 2P', 'Silkscreen', monospace;
  --font-body: var(--mono);
  --scanline: rgba(80, 40, 0, 0.30);
  --scanline-color: rgba(80, 40, 0, 0.30);
  --cursor-color: #ffb347;
  --selection-bg: rgba(255, 179, 71, 0.35);
  --selection-fg: #1a0f05;
  --grain-opacity: 0.05;
  --vignette-opacity: 0.7;
}

/* Matrix — green phosphor */
:root[data-theme="matrix"] {
  --bg:        #000000;
  --bg-soft:   #0a1208;
  --bg-card:   #0f1a0f;
  --line:      #1f3a1f;
  --line-2:    #305030;
  --fg:        #c8ffb0;
  --fg-dim:    #88cc70;
  --fg-mute:   #5a8040;
  --pink:      #ddffaa;
  --hot-pink:  #a8ff60;
  --magenta:   #60ff20;
  --cyan:      #ffffff;
  --amber:     #e0ffaa;
  --lime:      #a8ff60;
  --mono: 'VT323', ui-monospace, "Courier New", monospace;
  --pixel: 'Press Start 2P', 'Silkscreen', monospace;
  --font-body: var(--mono);
  --scanline: rgba(0, 30, 0, 0.25);
  --scanline-color: rgba(0, 30, 0, 0.25);
  --cursor-color: #a8ff60;
  --selection-bg: rgba(168, 255, 96, 0.30);
  --selection-fg: #000000;
  --grain-opacity: 0.04;
  --vignette-opacity: 0.6;
}

/* Midnight — cool blue/cyan, calm and professional */
:root[data-theme="midnight"] {
  --bg:        #0a1020;
  --bg-soft:   #121a2e;
  --bg-card:   #1a2438;
  --line:      #2a3a58;
  --line-2:    #405478;
  --fg:        #e0eaff;
  --fg-dim:    #b4c4e0;
  --fg-mute:   #7888a8;
  --pink:      #88b4ff;
  --hot-pink:  #5588ff;
  --magenta:   #3060ff;
  --cyan:      #66ffe0;
  --amber:     #ffcc88;
  --lime:      #88ffaa;
  --mono: 'IBM Plex Mono', ui-monospace, "Courier New", monospace;
  --pixel: 'Press Start 2P', 'Silkscreen', monospace;
  --font-body: var(--mono);
  --scanline: rgba(80, 120, 200, 0.06);
  --scanline-color: rgba(80, 120, 200, 0.06);
  --cursor-color: #66ffe0;
  --selection-bg: rgba(102, 255, 224, 0.30);
  --selection-fg: #0a1020;
  --grain-opacity: 0.02;
  --vignette-opacity: 0.55;
}

/* Paper — light mode, easy reading */
:root[data-theme="paper"] {
  --bg:        #f5efe0;
  --bg-soft:   #ebe2cd;
  --bg-card:   #e0d6b8;
  --line:      #c8b890;
  --line-2:    #a89870;
  --fg:        #1a1408;
  --fg-dim:    #4a3a20;
  --fg-mute:   #786040;
  --pink:      #c04080;
  --hot-pink:  #a02060;
  --magenta:   #800040;
  --cyan:      #006666;
  --amber:     #b06820;
  --lime:      #507020;
  --mono: 'IBM Plex Mono', ui-monospace, "Courier New", monospace;
  --pixel: 'Press Start 2P', 'Silkscreen', monospace;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --scanline: transparent;
  --scanline-color: transparent;
  --cursor-color: #a02060;
  --selection-bg: rgba(192, 64, 128, 0.25);
  --selection-fg: #1a1408;
  --grain-opacity: 0;
  --vignette-opacity: 0;
}

* { box-sizing: border-box; }

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  background:
    radial-gradient(1000px 600px at 75% 0%, color-mix(in srgb, var(--hot-pink) 10%, transparent), transparent 60%),
    radial-gradient(800px 500px at 0% 80%, color-mix(in srgb, var(--cyan) 6%, transparent), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M3 3 L3 21 L8 16 L11 21 L14 16 L21 16 Z' fill='%23ff77c8' stroke='%23000' stroke-width='1'/></svg>") 3 3, auto;
}

/* CRT scanlines + vignette + chromatic aberration (theme-aware) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--scanline) 0,
      var(--scanline) 1px,
      transparent 1px,
      transparent 3px
    );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: background 0.3s ease;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, var(--vignette-opacity)) 100%);
  pointer-events: none;
  z-index: 9998;
  transition: background 0.3s ease;
}

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-2);
}
a:hover {
  color: var(--hot-pink);
  border-bottom-color: var(--hot-pink);
  text-shadow: 1px 0 0 var(--cyan), -1px 0 0 var(--magenta);
}

h1, h2, h3, h4 {
  font-family: var(--pixel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: normal;
  margin: 0;
}

button {
  font-family: var(--pixel);
  cursor: inherit;
}

/* === Window chrome === */
.window {
  background: var(--bg-soft);
  border: 2px solid var(--line-2);
  box-shadow:
    0 0 0 1px var(--bg),
    4px 4px 0 0 rgba(0, 0, 0, 0.5),
    0 0 24px color-mix(in srgb, var(--hot-pink) 15%, transparent);
  margin-bottom: 22px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.window-head {
  background: linear-gradient(90deg, var(--bg-card), var(--line));
  border-bottom: 2px solid var(--line-2);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.window-head .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.4);
}
.window-head .dot.r { background: #ff5555; }
.window-head .dot.y { background: #ffbb33; }
.window-head .dot.g { background: #66ff66; }
.window-head .title {
  margin-left: 8px;
  flex: 1;
}
.window-body { padding: 18px 22px; }

/* === Page shell === */
.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.boot {
  margin-bottom: 22px;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.05em;
}
.boot .ok { color: var(--lime); }
.boot .warn { color: var(--amber); }

/* === Hero === */
.hero {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
}

.hero-title {
  font-size: 22px;
  color: var(--hot-pink);
  text-shadow: 2px 0 0 var(--cyan), -2px 0 0 var(--magenta);
  margin-bottom: 6px;
  animation: glitch 6s infinite;
}
@keyframes glitch {
  0%, 95%, 100% { transform: none; text-shadow: 2px 0 0 var(--cyan), -2px 0 0 var(--magenta); }
  96% { transform: translate(-1px, 0); text-shadow: -2px 0 0 var(--cyan), 2px 0 0 var(--magenta); }
  97% { transform: translate(1px, 0); }
  98% { transform: translate(0, 1px); }
}
.hero-sub {
  color: var(--fg-dim);
  font-size: 18px;
  margin: 8px 0 18px;
}
.hero-ascii {
  font-family: var(--mono);
  color: var(--pink);
  font-size: 11px;
  line-height: 1.05;
  white-space: pre;
  text-shadow: 0 0 8px var(--pink);
  margin: 0 0 12px;
  overflow-x: auto;
}
@media (max-width: 600px) { .hero-ascii { font-size: 7px; } }

.portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, var(--hot-pink), var(--magenta));
  color: var(--bg);
  border: 2px solid var(--line-2);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  user-select: none;
}

/* === Section heading === */
.section {
  margin-top: 40px;
}
.section-title {
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "▶";
  color: var(--hot-pink);
}

/* === Stats === */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--bg-soft);
  border: 2px solid var(--line);
  padding: 14px;
  text-align: center;
  transition: transform 0.1s;
}
.stat:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--hot-pink); }
.stat .v {
  font-family: var(--pixel);
  font-size: 18px;
  color: var(--amber);
  text-shadow: 0 0 6px var(--amber);
}
.stat .k {
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .about-grid { grid-template-columns: 1fr; } }
.about-block p { margin: 0 0 10px; }
.about-block .label {
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--hot-pink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 17px; }
.kv .k { color: var(--fg-mute); }
.kv .v { color: var(--cyan); }

/* === Skills === */
.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 600px) { .skills { grid-template-columns: 1fr; } }
.skill {
  background: var(--bg-soft);
  border: 2px solid var(--line);
  padding: 12px 14px;
  position: relative;
}
.skill .name {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.skill .bar {
  margin-top: 8px;
  height: 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  position: relative;
  font-size: 12px;
  line-height: 12px;
  color: var(--bg);
  font-family: var(--pixel);
  overflow: hidden;
}
.skill .bar i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--hot-pink) 0,
    var(--hot-pink) 4px,
    var(--magenta) 4px,
    var(--magenta) 8px
  );
  animation: bar-fill 1.2s steps(1) both;
  text-align: right;
  padding-right: 4px;
}
@keyframes bar-fill {
  from { width: 0; }
}

/* === Projects === */
.project {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  padding: 12px 16px;
  text-decoration: none;
  color: var(--fg);
  margin-bottom: 8px;
  transition: all 0.1s;
  border-bottom-style: dashed;
  border-bottom-color: var(--line-2);
}
.project:hover {
  border-color: var(--hot-pink);
  background: var(--bg-card);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--hot-pink);
  text-shadow: 1px 0 0 var(--cyan), -1px 0 0 var(--magenta);
}
.project .arrow { color: var(--hot-pink); font-size: 18px; }
.project .name { font-family: var(--pixel); font-size: 10px; color: var(--amber); }
.project .desc { font-size: 16px; color: var(--fg-dim); margin-top: 2px; }
.project .tag {
  font-family: var(--pixel);
  font-size: 8px;
  border: 1px solid var(--line-2);
  padding: 3px 8px;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

/* === Log === */
.log .entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 17px;
}
.log .entry:last-child { border-bottom: none; }
.log .date { color: var(--hot-pink); font-family: var(--pixel); font-size: 9px; }
.log .body { color: var(--fg-dim); }
.log .body code { color: var(--lime); background: var(--bg); padding: 1px 4px; }

/* === Webring buttons (88x31) === */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.btn-88 {
  width: 88px;
  height: 31px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pixel);
  font-size: 7px;
  color: var(--cyan);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.1s;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.btn-88:hover {
  background: var(--hot-pink);
  color: var(--bg);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--cyan);
}

/* === Blog list (homepage) === */
.blog-list { display: grid; gap: 14px; }

.blog-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  background: var(--bg-soft);
  text-decoration: none;
  color: var(--fg);
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
}
.blog-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--hot-pink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.blog-item:hover::before { transform: scaleY(1); }
.blog-item:hover {
  border-color: var(--hot-pink);
  background: rgba(255, 119, 200, 0.05);
  transform: translateX(6px);
  box-shadow: -4px 0 0 var(--hot-pink), 0 0 24px rgba(255, 61, 171, 0.15);
}
.blog-item .date {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  padding-top: 4px;
  border-right: 1px solid var(--line-2);
  padding-right: 14px;
  text-shadow: 0 0 8px rgba(102, 255, 224, 0.3);
}
.blog-item .date b { display: block; color: var(--hot-pink); font-size: 22px; letter-spacing: 0; text-shadow: 0 0 12px rgba(255, 61, 171, 0.5); }
.blog-item .info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--fg);
  line-height: 1.35;
}
.blog-item .info p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.55;
}
.blog-item .info .read {
  display: inline-block;
  font-size: 11px;
  color: var(--amber);
  margin-right: 12px;
  letter-spacing: 0.05em;
}
.blog-item .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.blog-item .tags span {
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.15s;
}
.blog-item:hover .tags span { border-color: var(--hot-pink); color: var(--hot-pink); }

/* Featured (first/last) — bigger card */
.blog-item.featured {
  grid-template-columns: 120px 1fr;
  background: linear-gradient(135deg, rgba(255, 61, 171, 0.08), var(--bg-soft) 60%);
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 1px rgba(255, 61, 171, 0.2), 0 0 30px rgba(255, 61, 171, 0.08);
}
.blog-item.featured .info h3 { font-size: 22px; color: var(--hot-pink); text-shadow: 0 0 12px rgba(255, 61, 171, 0.3); }
.blog-item.featured .date b { font-size: 28px; }
.blog-item.featured::after {
  content: "★ FEATURED";
  position: absolute;
  top: 10px; right: 14px;
  font-size: 9px;
  color: var(--hot-pink);
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(255, 61, 171, 0.5);
  animation: blink 2s infinite;
}

.blog-archive-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding: 10px;
  border: 1px dashed var(--line-2);
  color: var(--cyan);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: all 0.15s;
}
.blog-archive-link:hover { border-color: var(--cyan); background: rgba(102, 255, 224, 0.05); color: var(--hot-pink); border-style: solid; }

@media (max-width: 600px) {
  .blog-item { grid-template-columns: 1fr; gap: 8px; }
  .blog-item .date { border-right: none; border-bottom: 1px solid var(--line-2); padding: 0 0 8px 0; display: flex; gap: 12px; align-items: baseline; }
  .blog-item .date b { display: inline; font-size: 18px; }
  .blog-item.featured { grid-template-columns: 1fr; }
  .blog-item.featured::after { position: static; display: block; text-align: right; margin-bottom: 4px; }
}

/* === Blog post page === */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hot-pink), var(--cyan), var(--amber));
  box-shadow: 0 0 12px var(--hot-pink);
  width: 0%;
  z-index: 99999;
  transition: width 0.1s linear;
}

.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 60px;
}
.post header { border-bottom: 1px dashed var(--line-2); padding-bottom: 24px; margin-bottom: 36px; }
.post .crumbs { font-size: 12px; color: var(--cyan); margin-bottom: 14px; letter-spacing: 0.05em; }
.post .crumbs a { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted var(--cyan); }
.post .crumbs a:hover { color: var(--hot-pink); border-bottom-color: var(--hot-pink); }
.post .crumbs span { color: var(--fg-mute); }
.post h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--hot-pink);
  text-shadow: 0 0 16px rgba(255, 61, 171, 0.3);
  font-family: var(--mono);
}
.post .dek {
  font-size: 16px;
  color: var(--cyan);
  font-style: italic;
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  line-height: 1.5;
  text-shadow: 0 0 8px rgba(102, 255, 224, 0.2);
}
.post .meta {
  font-size: 11px;
  color: var(--fg-dim);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
}
.post .meta b { color: var(--hot-pink); font-weight: normal; }
.post-body { font-size: 16px; line-height: 1.85; color: var(--fg); }
.post-body .dropcap {
  float: left;
  font-family: var(--pixel);
  font-size: 56px;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  color: var(--hot-pink);
  text-shadow: 0 0 18px rgba(255, 61, 171, 0.6), 2px 2px 0 var(--cyan);
  font-weight: bold;
}
.post-body h2 {
  font-size: 20px;
  margin: 36px 0 14px;
  color: var(--cyan);
  border-left: 3px solid var(--hot-pink);
  padding-left: 14px;
  text-shadow: 0 0 8px rgba(102, 255, 224, 0.3);
  font-family: var(--mono);
}
.post-body h3 {
  font-size: 16px;
  margin: 24px 0 10px;
  color: var(--amber);
  text-shadow: 0 0 6px rgba(255, 179, 71, 0.2);
}
.post-body p { margin: 0 0 18px; color: var(--fg); }
.post-body strong { color: var(--hot-pink); font-weight: normal; text-shadow: 0 0 6px rgba(255, 61, 171, 0.3); }
.post-body em { color: var(--amber); font-style: italic; }
.post-body code {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  padding: 2px 7px;
  font-size: 13px;
  color: var(--amber);
  font-family: var(--mono);
  border-radius: 2px;
}
.post-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--hot-pink);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 20px 0;
  position: relative;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
.post-body pre::before {
  content: "$ cat code.sh";
  position: absolute;
  top: -10px; left: 14px;
  font-size: 10px;
  color: var(--cyan);
  background: var(--bg);
  padding: 0 8px;
  letter-spacing: 0.1em;
}
.post-body pre code { background: transparent; border: 0; padding: 0; color: var(--fg); }
.post-body ul, .post-body ol { padding-left: 26px; margin: 14px 0; }
.post-body li { margin: 6px 0; }
.post-body li::marker { color: var(--hot-pink); }
.post-body blockquote {
  border-left: 3px solid var(--cyan);
  margin: 20px 0;
  padding: 10px 18px;
  color: var(--fg-dim);
  background: var(--bg-soft);
  font-style: italic;
  position: relative;
}
.post-body blockquote::before {
  content: "“";
  position: absolute;
  top: -8px; left: 8px;
  font-size: 32px;
  color: var(--cyan);
  font-family: serif;
  opacity: 0.6;
}
.post-body a { color: var(--cyan); border-bottom: 1px dashed var(--cyan); text-decoration: none; transition: all 0.15s; }
.post-body a:hover { color: var(--hot-pink); border-bottom-color: var(--hot-pink); text-shadow: 0 0 8px rgba(255, 61, 171, 0.4); }
.post-body hr { border: 0; border-top: 1px dashed var(--line-2); margin: 36px 0; position: relative; }
.post-body hr::after {
  content: "✦ ✦ ✦";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 14px;
  color: var(--hot-pink);
  font-size: 10px;
  letter-spacing: 0.3em;
}
.post-body .signoff {
  color: var(--cyan);
  font-style: italic;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px dotted var(--line-2);
  font-size: 14px;
}

.end-of-line {
  margin: 40px 0 28px;
  text-align: center;
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--hot-pink);
  text-shadow: 0 0 12px rgba(255, 61, 171, 0.6);
  user-select: none;
}
.end-of-line span { display: inline-block; animation: blink 1.4s infinite; }
.end-of-line span:nth-child(odd) { animation-delay: 0.2s; }
.end-of-line span:nth-child(3n) { animation-delay: 0.4s; }
.end-of-line span:nth-child(4n) { animation-delay: 0.6s; }

.post .footer-nav {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 12px;
}
.post .footer-nav a {
  color: var(--cyan);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  transition: all 0.15s;
}
.post .footer-nav a:hover {
  border-color: var(--hot-pink);
  color: var(--hot-pink);
  background: rgba(255, 61, 171, 0.05);
  text-shadow: 0 0 8px rgba(255, 61, 171, 0.4);
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

/* === Easter egg modal === */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.modal-bg.show { display: flex; }
.modal {
  max-width: 480px;
  width: 100%;
  background: var(--bg-soft);
  border: 2px solid var(--hot-pink);
  box-shadow: 0 0 0 1px var(--bg), 6px 6px 0 0 var(--magenta);
  color: var(--fg);
}
.modal h3 {
  background: var(--hot-pink);
  color: var(--bg);
  padding: 8px 14px;
  font-size: 11px;
  margin: 0;
}
.modal .body {
  padding: 18px 22px;
  font-size: 18px;
  line-height: 1.6;
}
.modal .body p { margin: 0 0 12px; }
.modal .actions {
  padding: 10px 14px;
  border-top: 2px dashed var(--line-2);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.modal button {
  background: var(--bg);
  border: 2px solid var(--line-2);
  color: var(--cyan);
  font-size: 9px;
  padding: 6px 12px;
  font-family: var(--pixel);
  text-transform: uppercase;
}
.modal button:hover { border-color: var(--hot-pink); color: var(--hot-pink); }

/* === Footer === */
footer {
  margin-top: 50px;
  border-top: 2px dashed var(--line-2);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
footer a { color: var(--cyan); }

/* === Typing cursor === */
.cursor {
  display: inline-block;
  width: 11px;
  height: 19px;
  background: var(--lime);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink 1.05s steps(1) infinite;
  box-shadow: 0 0 8px var(--lime);
}
@keyframes blink { 50% { opacity: 0; } }

/* === Pixel divider === */
.pixel-divider {
  text-align: center;
  color: var(--hot-pink);
  font-size: 11px;
  letter-spacing: 0.5em;
  margin: 30px 0;
  user-select: none;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .shell { padding: 18px 12px 40px; }
  .window-body { padding: 14px 16px; }
  .hero-title { font-size: 16px; }
  .stat .v { font-size: 14px; }
  .stat .k { font-size: 7px; }
  .project { grid-template-columns: 18px 1fr; }
  .project .tag { grid-column: 1 / -1; justify-self: start; }
  .theme-picker { bottom: 12px; right: 12px; }
}

/* === Theme picker (floating) === */
.theme-picker {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9997;
  font-family: var(--mono);
  font-size: 13px;
  user-select: none;
  transition: bottom 0.2s ease;
}
.theme-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  color: var(--fg);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.15s;
}
.theme-picker__btn:hover {
  border-color: var(--hot-pink);
  color: var(--hot-pink);
  text-shadow: 0 0 6px color-mix(in srgb, var(--hot-pink) 50%, transparent);
}
.theme-picker__btn .swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, var(--hot-pink) 0%, var(--hot-pink) 33%, var(--cyan) 33%, var(--cyan) 66%, var(--amber) 66%, var(--amber) 100%);
  vertical-align: middle;
  flex-shrink: 0;
}
.theme-picker__btn .caret {
  font-size: 10px;
  color: var(--cyan);
  transition: transform 0.2s;
}
.theme-picker.open .theme-picker__btn .caret { transform: rotate(180deg); }

.theme-picker__menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
}
.theme-picker.open .theme-picker__menu { display: flex; }
.theme-picker__option {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: background 0.12s;
}
.theme-picker__option:last-child { border-bottom: 0; }
.theme-picker__option:hover {
  background: color-mix(in srgb, var(--hot-pink) 8%, transparent);
  color: var(--hot-pink);
}
.theme-picker__option[aria-checked="true"] {
  background: color-mix(in srgb, var(--hot-pink) 12%, transparent);
  color: var(--hot-pink);
}
.theme-picker__option .preview {
  display: inline-block;
  width: 32px;
  height: 18px;
  border: 1px solid var(--line-2);
}
.theme-picker__option .name { font-weight: 500; }
.theme-picker__option .desc {
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.theme-picker__option .check {
  color: var(--lime);
  font-size: 14px;
  opacity: 0;
}
.theme-picker__option[aria-checked="true"] .check { opacity: 1; }

@media (max-width: 600px) {
  .theme-picker__btn { padding: 6px 10px; font-size: 12px; }
  .theme-picker__menu { min-width: 180px; }
}

/* Hide floating picker on post pages so it doesn't overlap content */
.post .theme-picker { display: none; }

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
}
