@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap");
/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  /* surfaces */
  --bg:        #FAFBFC;
  --bg-elev:   #F2F4F7;
  --bg-deep:   #ECEFF3;
  /* ink */
  --ink:       #0D1117;
  --ink-soft:  #4B5563;
  --ink-mute:  #8B95A1;
  --rule:      rgba(13, 17, 23, 0.08);
  --rule-hard: rgba(13, 17, 23, 0.16);
  /* signal */
  --accent:      #2D6CDF;
  --accent-deep: #1B4FB3;
  --accent-soft: rgba(45, 108, 223, 0.08);
  --pulse:       #1EAF12;
  --warn:        #E58912;
  --error:       #E5484D;
  /* type */
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --radius:    6px;
  --radius-lg: 12px;
  --maxw:      1100px; }

@media (prefers-color-scheme: dark) {
  :root:not(.light-mode) {
    --bg:        #0A0E1A;
    --bg-elev:   #11172A;
    --bg-deep:   #161D33;
    --ink:       #E6EAF2;
    --ink-soft:  #9AA5B8;
    --ink-mute:  #5C6680;
    --rule:      rgba(230, 234, 242, 0.08);
    --rule-hard: rgba(230, 234, 242, 0.16);
    --accent:      #5B8DEF;
    --accent-deep: #2D6CDF;
    --accent-soft: rgba(91, 141, 239, 0.10); } }

html.dark-mode {
  --bg:        #0A0E1A;
  --bg-elev:   #11172A;
  --bg-deep:   #161D33;
  --ink:       #E6EAF2;
  --ink-soft:  #9AA5B8;
  --ink-mute:  #5C6680;
  --rule:      rgba(230, 234, 242, 0.08);
  --rule-hard: rgba(230, 234, 242, 0.16);
  --accent:      #5B8DEF;
  --accent-deep: #2D6CDF;
  --accent-soft: rgba(91, 141, 239, 0.10); }

/* ─── Reset ──────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0; }

html {
  scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(circle at 1px 1px, var(--rule) 1px, transparent 0);
  background-size: 24px 24px;
  min-height: 100vh; }

a {
  color: var(--accent);
  text-decoration: none; }

a:hover {
  color: var(--accent-deep); }

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

/* ─── Reusable bits ──────────────────────────────────────────── */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 0 var(--pulse);
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
  display: inline-block; }

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 175, 18, 0.5); }
  70% {
    box-shadow: 0 0 0 10px rgba(30, 175, 18, 0); }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 175, 18, 0); } }

.cursor {
  display: inline-block;
  width: 0.5ch;
  height: 0.9em;
  background: var(--accent);
  vertical-align: -1px;
  margin-left: 4px;
  animation: blink 1.05s steps(1) infinite; }

@keyframes blink {
  50% {
    opacity: 0; } }

.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
  cursor: pointer;
  white-space: nowrap; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink); }

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-hard); }

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink); }

/* ─── Inner-page slim header ─────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--rule); }

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-3) var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-size: 13px; }

.topbar-prompt {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-soft);
  text-decoration: none; }

.topbar-prompt:hover {
  color: var(--ink); }

.topbar-prompt .who {
  color: var(--ink);
  font-weight: 500; }

.topbar-prompt .at {
  color: var(--accent); }

.topbar-nav {
  margin-left: auto;
  display: flex;
  gap: var(--s-2);
  align-items: center; }

.topbar-nav a {
  color: var(--ink-soft);
  font-size: 13px;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 120ms ease, background 120ms ease; }

.topbar-nav a:hover {
  color: var(--ink);
  background: var(--bg-elev); }

.topbar-nav a.active {
  color: var(--accent); }

.topbar-toggle {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule-hard);
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color 120ms ease, color 120ms ease; }

.topbar-toggle:hover {
  border-color: var(--ink);
  color: var(--ink); }

@media (max-width: 600px) {
  .topbar-inner {
    padding: var(--s-3) var(--s-4);
    gap: var(--s-2);
    font-size: 12px; }
  .topbar-prompt {
    font-size: 12px; }
  .topbar-nav {
    gap: 0; }
  .topbar-nav a {
    padding: var(--s-2);
    font-size: 12px; }
  .topbar-nav a.hide-mobile {
    display: none; } }

/* ─── Hero (home only) ───────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-16) var(--s-6) var(--s-8);
  overflow: hidden; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%), linear-gradient(135deg, rgba(45, 108, 223, 0.08) 0%, transparent 55%); }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top left, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top left, black 0%, transparent 70%);
  opacity: 0.6; }

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  z-index: 1; }

.prompt {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: var(--s-8); }

.prompt .who {
  color: var(--ink);
  font-weight: 500; }

.prompt .at {
  color: var(--accent); }

.prompt .dollar {
  color: var(--pulse);
  font-weight: 700; }

.prompt .cmd {
  color: var(--ink);
  font-weight: 500; }

.prompt .cursor {
  margin-left: 2px; }

h1.headline {
  font-weight: 700;
  font-size: clamp(2.25rem, 8vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-6);
  max-width: 16ch; }

.headline .accent {
  color: var(--accent); }

.tagline {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: var(--s-8);
  line-height: 1.55; }

.ctas {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap; }

.live-strip {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
  font-size: 12px; }

@media (min-width: 720px) {
  .live-strip {
    grid-template-columns: repeat(3, 1fr); } }

.live-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-1); }

.live-label {
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 500; }

.live-value {
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: var(--s-2); }

/* ─── ps -ef --running block (home) ──────────────────────────── */
.ps-block {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  font-size: 13px; }

.ps-prompt {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  color: var(--ink-soft); }

.ps-prompt .dollar {
  color: var(--pulse);
  font-weight: 700; }

.ps-prompt .cmd {
  color: var(--ink);
  font-weight: 500; }

.ps-prompt .flag {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

.ps-table {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1.6fr) minmax(0, 1fr);
  border-top: 1px solid var(--rule); }

.ps-row {
  display: contents; }

.ps-row > span {
  padding: var(--s-3) var(--s-3);
  border-bottom: 1px dotted var(--rule-hard);
  font-size: 13px;
  color: var(--ink);
  align-self: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.ps-row.ps-head > span {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
  font-weight: 500;
  padding: var(--s-3) var(--s-3) var(--s-2);
  border-bottom: 1px solid var(--rule-hard); }

.ps-row .ps-pid {
  color: var(--ink-mute);
  font-size: 12px; }

.ps-row .ps-name {
  color: var(--ink);
  font-weight: 500; }

.ps-row .ps-uptime {
  color: var(--ink-mute);
  font-size: 12px; }

.ps-row .ps-state {
  font-weight: 500; }

.ps-state-running {
  color: var(--pulse); }

.ps-state-active {
  color: var(--accent); }

.ps-state-warm {
  color: var(--warn); }

@media (max-width: 720px) {
  .ps-table {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
    font-size: 12px; }
  .ps-row > span {
    padding: var(--s-2);
    font-size: 12px; }
  .ps-row > .ps-pid,
  .ps-row.ps-head > span:first-child {
    display: none; } }

/* ─── Section / block layout ─────────────────────────────────── */
section.block {
  padding: var(--s-16) var(--s-6);
  max-width: calc(var(--maxw) + 2 * var(--s-6));
  margin: 0 auto; }

section.block.tight {
  padding: var(--s-12) var(--s-6); }

section.block#now-shipping {
  padding-top: var(--s-8); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
  flex-wrap: wrap; }

.section-prompt {
  color: var(--pulse);
  font-weight: 700;
  font-size: 1.25rem; }

.section-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em; }

.section-meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em; }

.section-meta a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px dashed var(--rule-hard); }

.section-meta a:hover {
  color: var(--accent);
  border-color: var(--accent); }

/* ─── Featured series ────────────────────────────────────────── */
.featured {
  position: relative;
  background: linear-gradient(165deg, var(--bg-elev) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  overflow: hidden;
  display: grid;
  gap: var(--s-8);
  grid-template-columns: 1fr; }

@media (min-width: 880px) {
  .featured {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    padding: var(--s-12); } }

.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--pulse); }

.featured-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--pulse);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--s-4); }

.featured h3 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-4); }

.featured p.lead {
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: var(--s-6);
  max-width: 44ch;
  line-height: 1.55; }

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: var(--s-6); }

.featured-meta span::before {
  content: '└─ ';
  color: var(--pulse); }

/* ─── BorgDock CSS mock ──────────────────────────────────────── */
.borgdock-mock {
  position: relative;
  aspect-ratio: 16/11;
  background: linear-gradient(135deg, #1B2333 0%, #0D1117 100%);
  border-radius: var(--radius);
  border: 1px solid var(--rule-hard);
  box-shadow: 0 24px 48px -16px rgba(13, 17, 23, 0.35), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  padding: 14px;
  display: flex;
  gap: 10px; }

.mock-titlebar {
  position: absolute;
  top: 8px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2; }

.mock-titlebar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block; }

.mock-titlebar i:nth-child(1) {
  background: #FF5F57; }

.mock-titlebar i:nth-child(2) {
  background: #FEBC2E; }

.mock-titlebar i:nth-child(3) {
  background: #28C840; }

.mock-screen {
  flex: 1;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 4px;
  padding: 12px; }

.mock-bar {
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 7px; }

.mock-bar.s60 {
  width: 60%; }

.mock-bar.s80 {
  width: 80%; }

.mock-bar.s40 {
  width: 40%; }

.mock-bar.accent {
  background: rgba(91, 141, 239, 0.4); }

.mock-dock {
  width: 110px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px; }

.mock-dock-label {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px; }

.mock-dock-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pulse); }

.mock-pr {
  background: rgba(255, 255, 255, 0.06);
  border-left: 2px solid var(--accent);
  padding: 6px 7px;
  border-radius: 2px;
  font-size: 8.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7); }

.mock-pr small {
  display: block;
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px; }

.mock-pr.pass {
  border-left-color: var(--pulse); }

.mock-pr.fail {
  border-left-color: var(--error); }

/* ─── Post & series grids ────────────────────────────────────── */
.post-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr); } }

.post {
  padding: var(--s-6);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 180px; }

.post:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -8px rgba(45, 108, 223, 0.15);
  color: inherit; }

.post-meta {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.02em; }

.read-bar {
  flex: 0 0 32px;
  height: 2px;
  background: var(--bg-deep);
  border-radius: 1px; }

.read-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 1px; }

.post h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink); }

.post p {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: auto; }

.post .tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2); }

.tag {
  font-size: 10px;
  color: var(--ink-mute);
  border: 1px solid var(--rule-hard);
  border-radius: 3px;
  padding: 2px var(--s-2);
  text-transform: lowercase; }

/* Series cards (more emphatic than post cards) */
.series-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr; }

@media (min-width: 880px) {
  .series-grid {
    grid-template-columns: repeat(2, 1fr); } }

.series-card {
  position: relative;
  padding: var(--s-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
  min-height: 220px; }

.series-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--pulse);
  opacity: 0.6;
  transition: opacity 200ms ease, width 200ms ease; }

.series-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -8px rgba(45, 108, 223, 0.15);
  color: inherit; }

.series-card:hover::before {
  opacity: 1;
  width: 4px; }

.series-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--pulse);
  text-transform: uppercase;
  font-weight: 500; }

.series-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink); }

.series-card p {
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55; }

.series-card .meta {
  margin-top: auto;
  font-size: 11px;
  color: var(--ink-mute);
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap; }

/* ─── Episode list (inside series detail) ────────────────────── */
.episode-list {
  list-style: none;
  padding: 0;
  margin: 0; }

.episode-list li {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: var(--s-3);
  background: var(--bg-elev);
  transition: border-color 200ms ease, transform 200ms ease; }

.episode-list li:hover {
  border-color: var(--accent);
  transform: translateX(4px); }

.episode-list a {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-6);
  color: var(--ink);
  text-decoration: none;
  align-items: baseline; }

.episode-num {
  color: var(--pulse);
  font-weight: 700;
  min-width: 3.5rem;
  font-size: 13px; }

.episode-title {
  color: var(--ink);
  flex: 1;
  font-weight: 500;
  font-size: 14px; }

.episode-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute); }

.episode-status.draft {
  color: var(--warn); }

.episode-status.published {
  color: var(--pulse); }

/* ─── Single article (post / project / episode) ──────────────── */
.article-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-12) var(--s-6) var(--s-16); }

.breadcrumbs {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: var(--s-6);
  display: flex;
  gap: var(--s-2);
  align-items: center;
  flex-wrap: wrap; }

.breadcrumbs a {
  color: var(--ink-mute);
  text-decoration: none; }

.breadcrumbs a:hover {
  color: var(--accent); }

.breadcrumbs .sep {
  color: var(--pulse); }

.article-banner {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-8);
  font-size: 13px;
  color: var(--ink-soft); }

.article-banner strong {
  color: var(--accent);
  font-weight: 500; }

.article-header {
  margin-bottom: var(--s-12);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--rule); }

.article-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4); }

.article-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: var(--s-6); }

.article-meta {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  font-size: 12px;
  color: var(--ink-mute);
  flex-wrap: wrap; }

.article-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink); }

.article-content > * + * {
  margin-top: var(--s-6); }

.article-content .article-figure {
  margin: 0;
  text-align: center; }

.article-content .article-image-trigger {
  display: inline-block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit; }

.article-content .article-image-trigger img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  height: auto;
  width: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color 120ms ease; }

.article-content .article-image-trigger:hover img,
.article-content .article-image-trigger:focus-visible img {
  border-color: var(--accent); }

.article-content .article-figure-caption {
  margin-top: var(--s-2);
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic; }

.image-zoom-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: fit-content;
  height: fit-content;
  max-width: 95vw;
  max-height: 95vh;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }

.image-zoom-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px); }

.image-zoom-dialog .image-zoom-img {
  display: block;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain; }

.image-zoom-dialog .image-zoom-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 1; }

.image-zoom-dialog .image-zoom-close:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: var(--accent); }

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule); }

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: var(--s-8); }

.article-content h2 + *, .article-content h3 + * {
  margin-top: var(--s-3); }

.article-content p {
  color: var(--ink-soft); }

.article-content strong {
  color: var(--ink);
  font-weight: 600; }

.article-content em {
  color: var(--ink); }

.article-content ul, .article-content ol {
  padding-left: var(--s-6);
  color: var(--ink-soft); }

.article-content li {
  margin-bottom: var(--s-2); }

.article-content li::marker {
  color: var(--pulse); }

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--s-3) var(--s-6);
  margin: var(--s-6) 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-soft); }

.article-content blockquote p {
  color: var(--ink-soft); }

.article-content code {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: var(--font-mono); }

.article-content pre {
  background: #0D1117;
  color: #E6EAF2;
  border: 1px solid var(--rule-hard);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-6);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6; }

.article-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit; }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden; }

.article-content th {
  background: var(--bg-elev);
  text-align: left;
  padding: var(--s-3);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--rule); }

.article-content td {
  padding: var(--s-3);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft); }

.article-content tr:last-child td {
  border-bottom: none; }

.article-content hr {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: var(--s-12) 0; }

.article-content a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: border-color 120ms ease; }

.article-content a:hover {
  border-bottom-color: var(--accent); }

/* Article navigation (prev / next) */
.article-nav {
  margin-top: var(--s-16);
  padding-top: var(--s-8);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .article-nav {
    grid-template-columns: 1fr 1fr; } }

.article-nav a {
  padding: var(--s-4) var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-elev);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, transform 200ms ease;
  display: block; }

.article-nav a:hover {
  border-color: var(--accent);
  transform: translateY(-1px); }

.article-nav .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  display: block;
  margin-bottom: var(--s-1); }

.article-nav .next {
  text-align: right; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer.foot {
  padding: var(--s-12) var(--s-6) var(--s-6);
  max-width: var(--maxw);
  margin: var(--s-16) auto 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s-8);
  grid-template-columns: 1fr;
  font-size: 13px; }

@media (min-width: 720px) {
  footer.foot {
    grid-template-columns: repeat(3, 1fr); } }

.foot-col h4 {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
  font-weight: 500; }

.foot-col a {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) 0;
  transition: color 140ms ease; }

.foot-col a::before {
  content: '$ ';
  color: var(--pulse);
  font-weight: 700; }

.foot-col a:hover {
  color: var(--accent); }

.foot-system {
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.8; }

.foot-system .k {
  color: var(--ink-soft); }

.foot-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-4) var(--s-6) var(--s-8);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: var(--s-3); }

.foot-theme-toggle {
  appearance: none;
  background: transparent;
  color: var(--ink-mute);
  border: 1px solid var(--rule-hard);
  border-radius: var(--radius);
  height: 26px;
  padding: 0 var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  transition: border-color 120ms ease, color 120ms ease; }

.foot-theme-toggle:hover {
  border-color: var(--ink);
  color: var(--ink); }

.foot-theme-label {
  color: var(--accent);
  font-weight: 500; }

.foot-theme-toggle:hover .foot-theme-label {
  color: var(--accent); }

@media print {
  .foot-theme-toggle {
    display: none !important; } }

/* ─── Scroll-driven reveal ───────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal-1 {
    animation-delay: 0.05s; }
  .reveal-2 {
    animation-delay: 0.15s; }
  .reveal-3 {
    animation-delay: 0.25s; }
  .reveal-4 {
    animation-delay: 0.35s; }
  .reveal-5 {
    animation-delay: 0.45s; }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(8px); }
    to {
      opacity: 1;
      transform: translateY(0); } } }

/* ─── CV / about page ────────────────────────────────────────── */
.cv {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-12) var(--s-6) var(--s-16); }

.cv .breadcrumbs {
  margin-bottom: var(--s-12); }

.cv-hero {
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-12); }

.cv-headline {
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-6);
  overflow-wrap: break-word; }

.cv-headline .accent {
  color: var(--accent); }

.cv-intro {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft); }

.cv-intro a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

.cv-contacts {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft); }

.cv-contacts li {
  display: flex;
  min-width: 0; }

.cv-contacts a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
  max-width: 100%;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease; }

.cv-contacts a span {
  overflow-wrap: anywhere;
  word-break: break-word; }

.cv-contacts a:hover {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 30%, transparent); }

.cv-contacts .cv-icon {
  flex-shrink: 0;
  color: var(--ink-mute); }

.cv-contacts a:hover .cv-icon {
  color: var(--accent); }

.cv-download {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding: var(--s-2) var(--s-4);
  background: transparent;
  border: 1px solid var(--rule-hard);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, transform 140ms ease; }

.cv-download .g {
  color: var(--pulse);
  font-weight: 700; }

.cv-download .c {
  color: var(--ink);
  font-weight: 600; }

.cv-download .a {
  color: var(--accent); }

.cv-download:hover {
  border-color: var(--ink);
  background: var(--bg-elev);
  transform: translateY(-1px); }

.cv-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--rule); }

.cv-row:last-of-type {
  border-bottom: none; }

@media (min-width: 720px) {
  .cv-row {
    grid-template-columns: 180px 1fr;
    gap: var(--s-12); } }

.cv-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding-top: 4px; }

.cv-label.cli {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  padding-top: 0;
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  color: var(--ink-soft);
  white-space: nowrap; }

.cv-label.cli .glyph {
  color: var(--pulse);
  font-weight: 700; }

.cv-label.cli .cmd {
  color: var(--ink);
  font-weight: 600; }

.cv-label.cli .arg {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

.cv-rail {
  display: flex;
  flex-direction: column;
  gap: var(--s-6); }

.cv-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  padding-bottom: var(--s-6);
  border-bottom: 1px dashed var(--rule); }

.cv-item:last-child {
  border-bottom: none;
  padding-bottom: 0; }

@media (min-width: 720px) {
  .cv-item {
    grid-template-columns: 120px 1fr;
    gap: var(--s-6);
    align-items: baseline; } }

.cv-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  white-space: nowrap; }

.cv-period.cv-tag {
  text-transform: lowercase;
  color: var(--accent); }

.cv-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-1);
  letter-spacing: -0.005em; }

.cv-org {
  color: var(--ink-soft);
  font-weight: 400; }

.cv-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft); }

.cv-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-3); }

.cv-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--rule-hard);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: border-color 160ms ease; }

.cv-chip:hover {
  border-color: var(--accent); }

.cv-chip-name {
  color: var(--ink);
  font-weight: 500; }

.cv-chip-level {
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: lowercase; }

.cv-off {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft); }

.cv-off li {
  padding-left: var(--s-4);
  position: relative; }

.cv-off li::before {
  content: '└─';
  position: absolute;
  left: 0;
  color: var(--pulse);
  font-family: var(--font-mono); }

@media (max-width: 600px) {
  .cv {
    padding: var(--s-8) var(--s-4) var(--s-12); }
  .cv-stack {
    grid-template-columns: 1fr 1fr; } }

/* ─── Floating back button ───────────────────────────────────── */
.back-fab {
  display: none;
  position: fixed;
  left: var(--s-6);
  bottom: var(--s-6);
  z-index: 60;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--rule-hard);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 4px 12px -4px rgba(13, 17, 23, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease; }

.back-fab:hover {
  transform: translateX(-2px);
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg); }

@media (max-width: 600px) {
  .back-fab {
    display: inline-flex;
    left: var(--s-4);
    bottom: var(--s-4);
    width: 36px;
    height: 36px;
    font-size: 16px; } }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px; }

::-webkit-scrollbar-track {
  background: transparent; }

::-webkit-scrollbar-thumb {
  background: var(--rule-hard);
  border-radius: 4px; }

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-mute); }

/* ─── Blog list page ─────────────────────────────────────────── */
.blog-list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-8) var(--s-6) var(--s-16); }

.blog-list .breadcrumbs {
  margin-bottom: var(--s-4); }

.blog-list-header {
  margin-bottom: var(--s-6); }

.blog-list-header .prompt-line {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2); }

.blog-list-header .dollar {
  color: var(--pulse);
  font-weight: 700; }

.blog-list-header .cmd {
  color: var(--ink);
  font-weight: 600; }

.blog-list-header .path {
  color: var(--accent);
  font-weight: 600; }

.blog-list-meta {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em; }

.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-2);
  padding-bottom: 0; }

.blog-tab {
  appearance: none;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  font-size: 13px;
  padding: var(--s-2) var(--s-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 120ms ease, border-color 120ms ease; }

.blog-tab:hover {
  color: var(--ink); }

.blog-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent); }

.blog-tab-count {
  font-size: 11px;
  color: var(--ink-mute);
  background: var(--bg-elev);
  padding: 1px 6px;
  border-radius: 3px; }

.blog-tab.is-active .blog-tab-count {
  color: var(--accent); }

.blog-rows {
  list-style: none;
  margin: 0;
  padding: 0; }

.blog-row {
  border-bottom: 1px solid var(--rule); }

.blog-row.is-latest {
  background: var(--bg-elev); }

.blog-row-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-4);
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: background 140ms ease; }

.blog-row-link:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  color: inherit; }

.blog-row.is-latest .blog-row-link {
  padding: var(--s-6) var(--s-4); }

.blog-row-date {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  padding-top: 2px;
  white-space: nowrap; }

.blog-row-body {
  min-width: 0; }

.blog-row-tag-latest {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--s-2); }

.blog-row-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: var(--s-2); }

.blog-row.is-latest .blog-row-title {
  font-size: 17px; }

.blog-row-desc {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: var(--s-2); }

.blog-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 11px; }

.blog-row-hashtag {
  color: var(--ink-mute);
  font-size: 11px; }

.blog-row-link:hover .blog-row-hashtag {
  color: var(--ink-soft); }

.blog-row-read {
  font-size: 11px;
  color: var(--ink-mute);
  white-space: nowrap;
  padding-top: 2px; }

.blog-row-arrow {
  color: var(--ink-mute);
  padding-top: 2px;
  transition: transform 140ms ease, color 140ms ease; }

.blog-row-link:hover .blog-row-arrow {
  color: var(--accent);
  transform: translateX(2px); }

@media (max-width: 720px) {
  .blog-row-link {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: var(--s-3); }
  .blog-row-arrow {
    display: none; }
  .blog-row-read {
    font-size: 10px; }
  .blog-row-date {
    font-size: 10px; } }

/* ─── Article TOC sidebar ────────────────────────────────────── */
.article-shell.has-toc {
  max-width: 1040px; }

.article-layout {
  display: block; }

.article-layout.has-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-12); }

@media (min-width: 960px) {
  .article-layout.has-toc {
    grid-template-columns: minmax(0, 720px) 220px;
    align-items: start; } }

.article-toc {
  font-size: 13px;
  color: var(--ink-soft);
  border-left: 1px solid var(--rule);
  padding-left: var(--s-6); }

@media (min-width: 960px) {
  .article-toc {
    position: sticky;
    top: var(--s-16);
    max-height: calc(100vh - 6rem);
    overflow-y: auto; } }

.article-toc-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--s-3); }

.article-toc nav {
  padding: 0; }

.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--rule); }

.article-toc ul ul {
  margin-left: var(--s-3);
  border-left: 1px solid var(--rule); }

.article-toc li {
  margin: 0;
  padding: 0; }

.article-toc a {
  display: block;
  color: var(--ink-mute);
  text-decoration: none;
  padding: 4px var(--s-3);
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.4;
  transition: color 120ms ease, border-color 120ms ease; }

.article-toc a:hover {
  color: var(--ink); }

.article-toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent); }

.article-toc ul ul a {
  font-size: 12px;
  padding-left: var(--s-3); }

@media (max-width: 959px) {
  .article-toc {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: var(--s-6);
    margin-top: var(--s-8); } }

/* ─── Print (CV/PDF export of the about page) ───────────────── */
@media print {
  @page {
    size: A4;
    margin: 16mm 14mm; }
  html, body {
    background: #fff !important;
    background-image: none !important;
    color: #000;
    font-size: 10.5pt; }
  /* hide chrome */
  .topbar, .back-fab, footer.foot, .foot-bottom,
  .breadcrumbs, .about-cmd, .cv-download,
  .about-signoff, .shell-drawer {
    display: none !important; }
  .cv {
    max-width: none;
    margin: 0;
    padding: 0; }
  .cv-hero {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-bottom: 12pt !important;
    margin-bottom: 12pt !important;
    border-bottom: 1pt solid #999; }
  .cv-headline {
    font-size: 22pt !important;
    line-height: 1.1 !important;
    margin-bottom: 6pt !important; }
  .cv-headline .accent {
    color: #1B4FB3; }
  .cv-intro {
    font-size: 10pt !important;
    line-height: 1.5 !important;
    color: #222 !important;
    max-width: none; }
  .cv-intro a {
    color: #1B4FB3;
    text-decoration: none; }
  .cv-contacts {
    margin-top: 6pt !important;
    font-size: 9.5pt !important;
    color: #222 !important;
    gap: 3pt !important; }
  .cv-contacts a {
    color: #1B4FB3 !important;
    border-bottom: none !important; }
  .cv-contacts .cv-icon {
    color: #1B4FB3 !important; }
  .cv-row {
    grid-template-columns: 150pt 1fr !important;
    gap: 0 18pt !important;
    padding: 10pt 0 !important;
    page-break-inside: auto;
    break-inside: auto;
    border-bottom: 1pt dashed #ccc !important; }
  .cv-row:last-of-type {
    border-bottom: none !important; }
  .cv-label.cli {
    font-size: 9.5pt !important;
    color: #555 !important;
    white-space: nowrap; }
  .cv-label.cli .glyph {
    color: #2a8b1e; }
  .cv-label.cli .cmd {
    color: #000; }
  .cv-label.cli .arg {
    color: #1B4FB3;
    border-bottom: none; }
  .cv-rail {
    gap: 8pt !important; }
  .cv-item {
    grid-template-columns: 80pt 1fr !important;
    gap: 0 12pt !important;
    padding-bottom: 6pt !important;
    page-break-inside: avoid;
    border-bottom: 1pt dashed #e0e0e0 !important; }
  .cv-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important; }
  .cv-period {
    font-size: 9pt !important;
    color: #555 !important; }
  .cv-period.cv-tag {
    color: #1B4FB3 !important; }
  .cv-body h3 {
    font-size: 11pt !important;
    color: #000 !important;
    margin-bottom: 2pt !important; }
  .cv-body .cv-org {
    color: #444 !important; }
  .cv-body p {
    font-size: 9.5pt !important;
    line-height: 1.45 !important;
    color: #222 !important; }
  .cv-body p strong {
    color: #000 !important; }
  .cv-body p code {
    background: #f4f4f4;
    border: 1pt solid #ddd;
    padding: 0 3pt; }
  .cv-stack {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4pt !important; }
  .cv-chip {
    padding: 3pt 6pt !important;
    background: #f6f6f6 !important;
    border-color: #ccc !important;
    font-size: 9pt !important; }
  .cv-chip-name {
    color: #000 !important; }
  .cv-chip-level {
    color: #666 !important; }
  .cv-off {
    font-size: 10pt !important;
    color: #222 !important; }
  .cv-off li::before {
    color: #2a8b1e; }
  /* avoid orphans / widows */
  h1, h2, h3 {
    page-break-after: avoid; }
  p {
    orphans: 3;
    widows: 3; }
  a {
    color: inherit;
    text-decoration: none; } }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  body {
    font-size: 14px; }
  .hero {
    padding: var(--s-12) var(--s-4) var(--s-8); }
  section.block {
    padding: var(--s-12) var(--s-4); }
  .featured {
    padding: var(--s-6); }
  .article-shell {
    padding: var(--s-8) var(--s-4) var(--s-12); }
  .blog-list {
    padding: var(--s-6) var(--s-4) var(--s-12); }
  footer.foot {
    padding: var(--s-8) var(--s-4) var(--s-4); }
  .foot-bottom {
    padding: var(--s-4); } }

/* ─── Shell prompt section header (cli-style) ───────────────── */
.ps1 {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin: var(--s-12) 0 var(--s-4);
  font-size: 13px;
  color: var(--ink-soft); }

.ps1 .glyph {
  color: var(--pulse);
  font-weight: 700; }

.ps1 .cmd {
  color: var(--ink);
  font-weight: 500; }

.ps1 .arg {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

.ps1 .comment {
  color: var(--ink-mute);
  margin-left: var(--s-2); }

/* ─── Terminal box (now_shipping panel) ─────────────────────── */
.term-box {
  margin-top: var(--s-3);
  border: 1px solid var(--rule-hard);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-size: 13px;
  overflow: hidden; }

.term-box .titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-family: var(--font-mono); }

.term-box .titlebar .lights {
  display: flex;
  gap: 6px; }

.term-box .titlebar .lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25); }

.term-box .titlebar .lights span:nth-child(1) {
  background: #ed8278; }

.term-box .titlebar .lights span:nth-child(2) {
  background: #e1c04c; }

.term-box .titlebar .lights span:nth-child(3) {
  background: #6fcf72; }

.term-box .titlebar .name {
  font-family: var(--font-mono); }

.term-box .titlebar .right {
  color: rgba(255, 255, 255, 0.5); }

.term-box .body {
  padding: var(--s-4) var(--s-6);
  line-height: 1.65; }

.term-box .body .heading {
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 var(--s-2);
  letter-spacing: -0.005em; }

.term-box .body .desc {
  color: var(--ink-soft);
  margin: 0 0 var(--s-4);
  max-width: 64ch;
  font-size: 14px; }

.term-box .changelog {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: var(--s-3); }

.term-box .changelog .row {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 4px 0;
  border-bottom: 1px dashed var(--rule);
  gap: var(--s-3); }

.term-box .changelog .row:last-child {
  border-bottom: 0; }

.term-box .changelog .v {
  color: var(--accent);
  font-weight: 500; }

.term-box .body .tags-line {
  margin-top: var(--s-3);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-mute); }

.term-box .body .tags-line span::before {
  content: "#";
  color: var(--ink-mute);
  opacity: 0.6; }

@media (max-width: 600px) {
  .term-box .body {
    padding: var(--s-3) var(--s-4); }
  .term-box .changelog .row {
    grid-template-columns: 70px 1fr;
    font-size: 11px; } }

/* ─── ls -la recent posts list ──────────────────────────────── */
.ls-block {
  margin-top: var(--s-3);
  font-size: 13px;
  border-top: 1px solid var(--rule); }

.ls-block .ls-head,
.ls-block .ls-row {
  display: grid;
  grid-template-columns: 110px 100px 60px minmax(0, 1fr) 24px;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-2);
  align-items: baseline; }

.ls-block .ls-head {
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule-hard);
  padding-bottom: var(--s-2); }

.ls-block .ls-row {
  border-bottom: 1px dashed var(--rule);
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 140ms ease; }

.ls-block .ls-row:last-child {
  border-bottom: 0; }

.ls-block .ls-row:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  color: inherit; }

.ls-block .ls-row .perm {
  color: var(--ink-mute);
  font-size: 11px; }

.ls-block .ls-row .date {
  color: var(--ink-mute);
  font-size: 12px;
  white-space: nowrap; }

.ls-block .ls-row .size {
  color: var(--ink-mute);
  font-size: 12px;
  text-align: right;
  white-space: nowrap; }

.ls-block .ls-row .name {
  color: var(--ink);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.ls-block .ls-row .arr {
  color: var(--ink-mute);
  text-align: right; }

.ls-block .ls-row:hover .name {
  color: var(--accent); }

.ls-block .ls-row:hover .arr {
  color: var(--accent);
  transform: translateX(2px); }

@media (max-width: 720px) {
  .ls-block .ls-head,
  .ls-block .ls-row {
    grid-template-columns: 80px minmax(0, 1fr) 24px;
    gap: var(--s-3); }
  .ls-block .ls-head > :nth-child(1),
  .ls-block .ls-head > :nth-child(3),
  .ls-block .ls-row .perm,
  .ls-block .ls-row .size {
    display: none; } }

/* ─── Pull quote (post body) ────────────────────────────────── */
.article-content .pull,
.pull {
  margin: var(--s-8) 0;
  padding: var(--s-3) 0 var(--s-3) var(--s-6);
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.55;
  font-style: italic;
  font-weight: 400; }

.pull::before {
  content: "\201C ";
  color: var(--accent); }

.pull::after {
  content: " \201D";
  color: var(--accent); }

/* ─── About — terminal-style identity page ──────────────────── */
.about-term {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-12) var(--s-6) var(--s-16); }

.about-term .breadcrumbs {
  margin-bottom: var(--s-6); }

.about-cmd {
  margin: 0 0 var(--s-3);
  color: var(--ink-soft);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: var(--s-2); }

.about-cmd .glyph {
  color: var(--pulse);
  font-weight: 700; }

.about-cmd .cmd {
  color: var(--ink);
  font-weight: 500; }

.about-cmd .arg {
  color: var(--accent); }

.about-term h1.about-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: var(--s-3) 0 var(--s-3);
  color: var(--ink); }

.about-summary {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 70ch;
  margin: 0 0 var(--s-6); }

.about-summary a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

.ident-grid {
  margin: var(--s-6) 0 var(--s-12);
  padding: var(--s-4) var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-elev);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s-2) var(--s-6);
  font-size: 13px;
  line-height: 1.65; }

.ident-grid .k {
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding-top: 2px;
  align-self: start; }

.ident-grid .v {
  color: var(--ink-soft);
  padding: 2px 0; }

.ident-grid .v b {
  color: var(--ink);
  font-weight: 600; }

.ident-grid .v .ok {
  color: var(--pulse); }

.about-section {
  margin-top: var(--s-12); }

.about-section .section-cmd {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
  display: flex;
  align-items: baseline;
  gap: var(--s-2); }

.about-section .section-cmd .glyph {
  color: var(--pulse);
  font-weight: 700; }

.about-section .section-cmd .cmd {
  color: var(--ink);
  font-weight: 500; }

.about-section .section-cmd .arg {
  color: var(--accent); }

.about-timeline {
  font-size: 13px; }

.about-timeline .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-6);
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--rule); }

.about-timeline .row:last-child {
  border-bottom: 0; }

.about-timeline .yr {
  color: var(--ink-mute);
  font-size: 12px;
  padding-top: 2px; }

.about-timeline .yr.tag {
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.04em; }

.about-timeline b {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 14px; }

.about-timeline .org {
  color: var(--ink-soft);
  font-weight: 400; }

.about-timeline .desc {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 13px; }

.about-timeline .desc code {
  font-family: var(--font-mono);
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--ink); }

.about-stack-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule); }

.about-stack-pills .pill {
  padding: var(--s-3);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center; }

.about-stack-pills .pill b {
  color: var(--ink);
  font-weight: 600; }

.about-stack-pills .pill span {
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.04em; }

.about-funfacts {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8; }

.about-funfacts li {
  padding: var(--s-1) 0 var(--s-1) var(--s-4);
  position: relative; }

.about-funfacts li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--font-mono); }

.about-funfacts li b {
  color: var(--ink);
  font-weight: 600; }

.about-signoff {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: var(--s-2); }

.about-signoff .glyph {
  color: var(--pulse);
  font-weight: 700; }

.about-signoff .cmd {
  color: var(--ink);
  font-weight: 500; }

.about-signoff .arg {
  color: var(--accent); }

@media (max-width: 720px) {
  .about-term {
    padding: var(--s-8) var(--s-4) var(--s-12); }
  .ident-grid {
    grid-template-columns: 1fr;
    gap: var(--s-1);
    padding: var(--s-3) var(--s-4); }
  .ident-grid .k {
    font-size: 11px; }
  .about-timeline .row {
    grid-template-columns: 1fr;
    gap: var(--s-1); }
  .about-stack-pills {
    grid-template-columns: 1fr 1fr; } }

/* ─── Series index v2 (with rail + progress) ────────────────── */
.series-idx {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-8) var(--s-6) var(--s-16); }

.series-idx .breadcrumbs {
  margin-bottom: var(--s-4); }

.series-idx-header {
  margin-bottom: var(--s-4); }

.series-idx-header .prompt-line {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2); }

.series-idx-header .prompt-line .dollar {
  color: var(--pulse);
  font-weight: 700; }

.series-idx-header .prompt-line .cmd {
  color: var(--ink);
  font-weight: 600; }

.series-idx-header .prompt-line .path {
  color: var(--accent);
  font-weight: 600; }

.series-idx-stats {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: var(--s-6); }

.series-idx-stats span + span::before {
  content: " · "; }

.series-list-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule); }

@media (max-width: 720px) {
  .series-list-v2 {
    grid-template-columns: 1fr; } }

.series-card-v2 {
  position: relative;
  padding: var(--s-6) var(--s-6) var(--s-4);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease; }

.series-card-v2:hover {
  background: var(--bg-elev);
  color: inherit; }

.series-card-v2 .rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--pulse); }

.series-card-v2.paused .rail {
  background: var(--warn); }

.series-card-v2.archived .rail {
  background: var(--ink-mute); }

.series-card-v2 .top {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pulse);
  margin-bottom: var(--s-3);
  font-weight: 500; }

.series-card-v2.paused .top {
  color: var(--warn); }

.series-card-v2.archived .top {
  color: var(--ink-mute); }

.series-card-v2 .top .pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor; }

.series-card-v2 .top .sep {
  color: var(--rule-hard); }

.series-card-v2 .top .cad {
  color: var(--ink-mute);
  letter-spacing: 0.08em; }

.series-card-v2 h3 {
  margin: 0 0 var(--s-2);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.35; }

.series-card-v2 h3::before {
  content: "## ";
  color: var(--accent); }

.series-card-v2 .desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  flex: 1; }

.series-card-v2 .progress {
  margin-top: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 11px;
  color: var(--ink-mute); }

.series-card-v2 .progress .bar {
  flex: 1;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  position: relative;
  overflow: hidden; }

.series-card-v2 .progress .bar .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent); }

.series-card-v2 .progress .frac {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft); }

.series-card-v2 .progress .frac b {
  color: var(--ink);
  font-weight: 600; }

.series-card-v2 .meta-foot {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--rule);
  display: flex;
  gap: var(--s-4);
  font-size: 11px;
  color: var(--ink-mute);
  flex-wrap: wrap; }

.series-card-v2 .meta-foot b {
  color: var(--ink-soft);
  font-weight: 500; }

.series-legend {
  margin-top: var(--s-8);
  display: flex;
  gap: var(--s-6);
  flex-wrap: wrap;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  color: var(--ink-mute); }

.series-legend .item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2); }

.series-legend .pip {
  width: 8px;
  height: 8px;
  border-radius: 50%; }

.series-legend .pip.g {
  background: var(--pulse); }

.series-legend .pip.a {
  background: var(--warn); }

.series-legend .pip.m {
  background: var(--ink-mute); }

/* ─── Series detail v2 (badges, lede, episodes, aside) ──────── */
.series-detail-v2 {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-8) var(--s-6) var(--s-16); }

.series-detail-v2 .breadcrumbs {
  margin-bottom: var(--s-6); }

.series-detail-v2 .badges {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pulse);
  font-weight: 500;
  margin-bottom: var(--s-3); }

.series-detail-v2 .badges.paused {
  color: var(--warn); }

.series-detail-v2 .badges.archived {
  color: var(--ink-mute); }

.series-detail-v2 .badges .pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }

.series-detail-v2 .badges .cat {
  color: var(--ink-mute);
  letter-spacing: 0.08em; }

.series-detail-v2 h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--s-3);
  color: var(--ink);
  max-width: 28ch; }

.series-detail-v2 h1::before {
  content: "// ";
  color: var(--accent); }

.series-detail-v2 .lede {
  margin: 0 0 var(--s-8);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  max-width: 60ch;
  border-left: 2px solid var(--rule-hard);
  padding-left: var(--s-4);
  font-style: italic;
  font-weight: 300; }

.series-grid-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: var(--s-12);
  margin-top: var(--s-6); }

@media (max-width: 880px) {
  .series-grid-v2 {
    grid-template-columns: 1fr;
    gap: var(--s-8); } }

.series-body-v2 {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  max-width: 64ch; }

.series-body-v2 p {
  margin: 0 0 var(--s-4); }

.series-body-v2 p strong {
  color: var(--ink);
  font-weight: 600; }

.series-body-v2 p em {
  color: var(--ink);
  font-style: italic; }

.series-body-v2 h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: var(--s-8) 0 var(--s-3); }

.series-body-v2 h2::before {
  content: "## ";
  color: var(--accent); }

.episodes-v2 {
  margin-top: var(--s-3); }

.episodes-v2 .ep {
  display: grid;
  grid-template-columns: 56px 100px minmax(0, 1fr) 90px 24px;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  border-bottom: 0;
  background: var(--bg);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 140ms ease; }

.episodes-v2 .ep:last-child {
  border-bottom: 1px solid var(--rule); }

.episodes-v2 .ep:hover {
  background: var(--bg-elev);
  color: inherit; }

.episodes-v2 .ep .num {
  color: var(--pulse);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 500; }

.episodes-v2 .ep .d {
  color: var(--ink-mute);
  font-size: 12px; }

.episodes-v2 .ep .t {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  min-width: 0; }

.episodes-v2 .ep .t .sub {
  display: block;
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.5; }

.episodes-v2 .ep .st {
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right; }

.episodes-v2 .ep.draft .st {
  color: var(--warn); }

.episodes-v2 .ep.shipped .st {
  color: var(--pulse); }

.episodes-v2 .ep.upcoming {
  background: transparent; }

.episodes-v2 .ep.upcoming .t {
  color: var(--ink-mute);
  font-weight: 400; }

.episodes-v2 .ep.upcoming .num,
.episodes-v2 .ep.upcoming .d {
  color: var(--ink-mute);
  opacity: 0.6; }

.episodes-v2 .ep .arr {
  color: var(--ink-mute);
  text-align: right;
  transition: transform 140ms ease, color 140ms ease; }

.episodes-v2 .ep:hover .arr {
  color: var(--accent);
  transform: translateX(2px); }

.episodes-v2 .ep:hover .t {
  color: var(--accent); }

@media (max-width: 720px) {
  .episodes-v2 .ep {
    grid-template-columns: 44px minmax(0, 1fr) 60px;
    gap: var(--s-3);
    padding: var(--s-3); }
  .episodes-v2 .ep .d, .episodes-v2 .ep .arr {
    display: none; } }

.series-aside-v2 {
  position: sticky;
  top: var(--s-16);
  align-self: start;
  font-size: 12px; }

@media (max-width: 880px) {
  .series-aside-v2 {
    position: static; } }

.series-aside-v2 .label {
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: var(--s-3);
  text-transform: uppercase;
  font-weight: 500; }

.series-aside-v2 .kv {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px var(--s-3);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 12px; }

.series-aside-v2 .kv .k {
  color: var(--ink-mute); }

.series-aside-v2 .kv .v {
  color: var(--ink-soft); }

.series-aside-v2 .kv .v b {
  color: var(--ink);
  font-weight: 600; }

.series-aside-v2 .kv .v.green {
  color: var(--pulse); }

.series-aside-v2 .progress-block {
  margin-top: var(--s-6); }

.series-aside-v2 .progress-block .frac {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: var(--s-2); }

.series-aside-v2 .progress-block .frac b {
  color: var(--ink);
  font-weight: 600; }

.series-aside-v2 .progress-block .bar {
  height: 4px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
  border-radius: 2px; }

.series-aside-v2 .progress-block .bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent); }

.series-aside-v2 .related {
  margin-top: var(--s-6); }

.series-aside-v2 .related a {
  display: block;
  padding: 6px 0;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--rule);
  font-size: 12px;
  text-decoration: none; }

.series-aside-v2 .related a:hover {
  color: var(--accent); }

.series-aside-v2 .related a::before {
  content: "→ ";
  color: var(--pulse); }

/* ─── Projects index (pinned + repo-table) ──────────────────── */
.projects-idx {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-8) var(--s-6) var(--s-16); }

.projects-idx .breadcrumbs {
  margin-bottom: var(--s-4); }

.projects-idx-header {
  margin-bottom: var(--s-4); }

.projects-idx-header .prompt-line {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2); }

.projects-idx-header .prompt-line .dollar {
  color: var(--pulse);
  font-weight: 700; }

.projects-idx-header .prompt-line .cmd {
  color: var(--ink);
  font-weight: 600; }

.projects-idx-header .prompt-line .path {
  color: var(--accent);
  font-weight: 600; }

.projects-idx-stats {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: var(--s-6); }

.projects-idx-stats span + span::before {
  content: " · "; }

.pinned {
  margin: var(--s-3) 0 var(--s-8);
  border: 1px solid var(--rule-hard);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden; }

.pinned .titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-family: var(--font-mono); }

.pinned .titlebar .lights {
  display: flex;
  gap: 6px; }

.pinned .titlebar .lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%; }

.pinned .titlebar .lights span:nth-child(1) {
  background: #ed8278; }

.pinned .titlebar .lights span:nth-child(2) {
  background: #e1c04c; }

.pinned .titlebar .lights span:nth-child(3) {
  background: #6fcf72; }

.pinned .titlebar .right {
  color: rgba(255, 255, 255, 0.5); }

.pinned .body {
  padding: var(--s-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: var(--s-8); }

@media (max-width: 720px) {
  .pinned .body {
    grid-template-columns: 1fr;
    padding: var(--s-4);
    gap: var(--s-4); } }

.pinned .body .left h3 {
  margin: 0 0 var(--s-2);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink); }

.pinned .body .left h3::before {
  content: "★ ";
  color: var(--accent);
  font-size: 0.85em; }

.pinned .body .left h3 a {
  color: inherit;
  text-decoration: none; }

.pinned .body .left h3 a:hover {
  color: var(--accent); }

.pinned .body .left .desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 var(--s-4);
  max-width: 60ch; }

.pinned .body .left .stack-row {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-mute); }

.pinned .body .left .stack-row span {
  padding: 2px var(--s-2);
  border: 1px solid var(--rule-hard);
  border-radius: 999px; }

.pinned .body .right {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7; }

.pinned .body .right .row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-2);
  padding: 4px 0;
  border-bottom: 1px dashed var(--rule); }

.pinned .body .right .row:last-child {
  border-bottom: 0; }

.pinned .body .right .row .k {
  color: var(--ink-mute);
  font-size: 11px; }

.pinned .body .right .row .v {
  color: var(--ink-soft);
  font-size: 12px; }

.pinned .body .right .row .v .ok {
  color: var(--pulse); }

.repo-table {
  margin-top: var(--s-3);
  font-size: 13px;
  border-top: 1px solid var(--rule); }

.repo-table .head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.5fr) minmax(0, 1fr) 110px 110px 24px;
  gap: var(--s-4);
  padding: var(--s-2) var(--s-4);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--rule-hard);
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase; }

.repo-table .row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.5fr) minmax(0, 1fr) 110px 110px 24px;
  gap: var(--s-4);
  padding: var(--s-4);
  border-bottom: 1px solid var(--rule);
  align-items: center;
  text-decoration: none;
  transition: background 140ms ease;
  color: inherit; }

.repo-table .row:hover {
  background: var(--bg-elev);
  color: inherit; }

.repo-table .row .ico {
  color: var(--pulse);
  font-size: 14px; }

.repo-table .row.archived .ico {
  color: var(--ink-mute); }

.repo-table .row.wip .ico {
  color: var(--warn); }

.repo-table .row .name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; }

.repo-table .row .name .n {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px; }

.repo-table .row:hover .name .n {
  color: var(--accent); }

.repo-table .row .name .desc {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  max-width: 50ch;
  font-weight: 400; }

.repo-table .row .stack-cell {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  min-width: 0; }

.repo-table .row .stack-cell span:not(:first-child)::before {
  content: "·";
  color: var(--ink-mute);
  margin: 0 6px; }

.repo-table .row .st {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pulse); }

.repo-table .row.archived .st {
  color: var(--ink-mute); }

.repo-table .row.wip .st {
  color: var(--warn); }

.repo-table .row .when {
  color: var(--ink-mute);
  font-size: 12px;
  white-space: nowrap; }

.repo-table .row .arr {
  color: var(--ink-mute);
  text-align: right;
  transition: color 140ms ease, transform 140ms ease; }

.repo-table .row:hover .arr {
  color: var(--accent);
  transform: translateX(2px); }

@media (max-width: 720px) {
  .repo-table .head {
    display: none; }
  .repo-table .row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: var(--s-3);
    padding: var(--s-3);
    align-items: start; }
  .repo-table .row .stack-cell,
  .repo-table .row .when,
  .repo-table .row .arr {
    display: none; }
  .repo-table .row .name {
    gap: 6px; }
  .repo-table .row .name .meta-inline {
    display: flex;
    gap: var(--s-3);
    font-size: 11px;
    color: var(--ink-mute);
    margin-top: 2px; } }

/* ─── Project detail (readme + sticky aside) ────────────────── */
.project-detail {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-8) var(--s-6) var(--s-16); }

.project-detail .breadcrumbs {
  margin-bottom: var(--s-6); }

.project-detail h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--s-2);
  color: var(--ink); }

.project-detail h1::before {
  content: "$ ";
  color: var(--pulse); }

.project-detail .topmeta {
  color: var(--ink-mute);
  font-size: 12px;
  margin: 0 0 var(--s-6);
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-wrap: wrap; }

.project-detail .topmeta .sep {
  opacity: 0.4; }

.project-detail .topmeta .pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pulse) 18%, transparent); }

.project-detail .topmeta b {
  color: var(--ink-soft);
  font-weight: 600; }

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--s-12);
  margin-top: var(--s-6); }

@media (max-width: 880px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: var(--s-8); } }

.project-readme {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  max-width: 64ch; }

.project-readme p {
  margin: 0 0 var(--s-4); }

.project-readme p strong {
  color: var(--ink);
  font-weight: 600; }

.project-readme p em {
  color: var(--ink);
  font-style: italic; }

.project-readme h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: var(--s-8) 0 var(--s-3); }

.project-readme h2::before {
  content: "## ";
  color: var(--accent); }

.project-readme code, .project-readme p code {
  font-family: var(--font-mono);
  background: var(--bg-elev);
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--ink); }

.project-readme ul {
  padding: 0;
  margin: 0 0 var(--s-4);
  list-style: none; }

.project-readme ul li {
  padding: 4px 0 4px var(--s-4);
  position: relative;
  color: var(--ink-soft); }

.project-readme ul li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0; }

.project-readme a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

.project-aside {
  position: sticky;
  top: var(--s-16);
  align-self: start;
  font-size: 12px; }

@media (max-width: 880px) {
  .project-aside {
    position: static; } }

.project-aside .block {
  border-top: 1px solid var(--rule);
  padding: var(--s-3) 0; }

.project-aside .block:last-child {
  border-bottom: 1px solid var(--rule); }

.project-aside .block .label {
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: var(--s-2);
  text-transform: uppercase;
  font-weight: 500; }

.project-aside .block .kv {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 4px var(--s-3);
  font-size: 12px; }

.project-aside .block .kv .k {
  color: var(--ink-mute); }

.project-aside .block .kv .v {
  color: var(--ink-soft); }

.project-aside .block .kv .v b {
  color: var(--ink);
  font-weight: 600; }

.project-aside .block .kv .v .ok {
  color: var(--pulse); }

.project-aside .block .kv .v .warn {
  color: var(--warn); }

.project-aside .block .stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px; }

.project-aside .block .stack-pills span {
  padding: 3px var(--s-2);
  border: 1px solid var(--rule-hard);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-soft); }

.project-aside .block .links a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12px; }

.project-aside .block .links a::before {
  content: "→ ";
  color: var(--pulse); }

.project-aside .block .links a:hover {
  color: var(--accent); }

/* ─── shell drawer ──────────────────────────────────────────── */
.shell-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35vh;
  min-height: 280px;
  max-height: 480px;
  background: var(--bg-deep);
  border-top: 1px solid var(--rule-hard);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  z-index: 1000;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08); }

@media (prefers-reduced-motion: no-preference) {
  .shell-drawer {
    transition: transform 220ms ease; } }

.shell-drawer.open {
  transform: translateY(0); }

.shell-titlebar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--rule);
  font-size: 0.75rem;
  color: var(--ink-soft); }

.shell-titlebar .lights {
  display: inline-flex;
  gap: 4px; }

.shell-titlebar .lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule-hard); }

.shell-titlebar .name {
  flex: 1; }

.shell-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink-mute);
  padding: 0 var(--s-2); }

.shell-close:hover {
  color: var(--ink); }

.shell-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px; }

.shell-output {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-3);
  white-space: pre-wrap;
  word-break: break-word; }

.shell-line {
  line-height: 1.5; }

.shell-line-cmd {
  color: var(--accent); }

.shell-form {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-top: 1px solid var(--rule);
  background: var(--bg); }

.shell-prompt {
  color: var(--accent); }

.shell-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: inherit; }

.shell-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px; }

/* shell hint line in footer */
.foot-shell-hint {
  display: block;
  color: var(--ink-mute);
  font-size: 0.75rem;
  margin-top: var(--s-2); }

.foot-shell-hint kbd {
  display: inline-block;
  padding: 0 4px;
  border: 1px solid var(--rule-hard);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--bg-elev);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95em;
  line-height: 1; }

/* clickable cursor cue */
.hero .prompt .cursor {
  cursor: pointer; }

.hero .prompt .cursor:hover {
  opacity: 0.7; }

/* hero typewriter hint, sits inline next to `$ whoami_` */
.prompt-hint {
  color: var(--ink-mute);
  font-size: 0.85em;
  white-space: pre;
  font-family: var(--font-mono); }

/* The shell only works with a physical keyboard; hide the hints on touch
   devices and narrow viewports where pressing \ is awkward. The OR
   combination catches phones whose UAs misreport (hover/pointer) plus
   any narrow desktop window. */
@media (pointer: coarse), (max-width: 768px) {
  .prompt-hint, .foot-shell-hint {
    display: none !important; } }

/* .ps-row uses display:contents, so its own background is invisible.
   Pulse the cells (> span) instead. */
.ps-row-pulse > span {
  background: rgba(45, 108, 223, 0.22); }

@media (prefers-reduced-motion: no-preference) {
  .ps-row-pulse > span {
    animation: ps-pulse 500ms ease-out; }
  @keyframes ps-pulse {
    0% {
      background: rgba(45, 108, 223, 0.32); }
    100% {
      background: transparent; } } }
