*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0b1118;
  --surface: #111a24;
  --lift: #172332;
  --rule: #263447;
  --rule-mid: #32475e;
  --muted: #8a9aad;
  --dim: #a4b1c1;
  --text: #d6dee8;
  --white: #f5f8fc;
  --acid: #5bc0eb;
  --slate: #4e6e8e;
  --slate-dim: rgba(78, 110, 142, .18);
  --accent-amber: #f0b35a;
  --accent-blue: #3d8bff;
  --accent-purple: #7f72d8;
  --nav-scrolled-bg: rgba(11, 17, 24, .96);
  --terminal-bg: #0a0a0a;
  --lab: #67c2e9;
  --field: #7ec78d;
  --grind: #f0b35a;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Space Grotesk', 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

html.light {
  --black: #f6f8fb;
  --surface: #ebf0f6;
  --lift: #dfe7f0;
  --rule: #c7d3e2;
  --rule-mid: #afbed1;
  --muted: #5e6f84;
  --dim: #3e4e63;
  --text: #1c2735;
  --white: #0f1722;
  --acid: #176087;
  --slate: #2f587b;
  --slate-dim: rgba(47, 88, 123, .12);
  --accent-amber: #b8761f;
  --accent-blue: #1f6de2;
  --accent-purple: #5f4ec4;
  --nav-scrolled-bg: rgba(246, 248, 251, .97);
  --terminal-bg: #dedad2;
  --lab: #176087;
  --field: #2f7a4f;
  --grind: #b8761f;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .01em;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

body.menu-open { overflow: hidden; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .028;
  mix-blend-mode: overlay;
}

main, .site-nav, .footer-status, .site-footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.home-wrap,
.section-wrap,
.post-wrap,
.footer-inner,
.status-inner,
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
}

.home-wrap,
.section-wrap,
.post-wrap {
  padding: 0 36px 96px;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.section-label::before {
  content: '/';
  color: var(--acid);
  font-size: 14px;
  opacity: .7;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 4.8vw, 46px);
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -1px;
}

.section-desc {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.7;
  max-width: 580px;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}

.site-nav.scrolled {
  background: var(--nav-scrolled-bg);
  border-color: var(--rule);
  backdrop-filter: blur(16px);
}

.nav-inner {
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--white);
  letter-spacing: -.3px;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.logo-mark {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  border-radius: 0;
  transform: translateY(2px);
}

.logo-word {
  line-height: 1;
}

.logo-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
}

.nav-link,
.nav-home {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: color .15s;
}

.nav-link:hover,
.nav-home:hover,
.nav-link.active {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--rule-mid);
  color: var(--text);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  display: block;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
html.light .theme-toggle .icon-moon { display: none; }
html.light .theme-toggle .icon-sun { display: block; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 8px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-overlay.open { display: flex; }

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.overlay-link {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 7vw, 40px);
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.5px;
  padding: 6px 18px;
}

.overlay-link.dim {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 14px;
}

.home-hero {
  min-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 72px;
  padding-top: 124px;
  position: relative;
}

.home-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 32px;
}

.home-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(42px, 7vw, 74px);
  color: var(--white);
  line-height: .98;
  letter-spacing: -1.2px;
  margin-bottom: 24px;
  max-width: 720px;
}

.home-statement {
  font-size: 13px;
  color: var(--dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 30px;
  padding-left: 16px;
  border-left: 1px solid var(--rule-mid);
}

.home-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-cta,
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 2px;
  line-height: 1;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s, color .15s;
}

.hero-cta {
  background: var(--acid);
  border: 1px solid var(--acid);
  color: var(--black);
  font-weight: 600;
}

.hero-cta:visited {
  color: var(--black);
}

.hero-cta:hover {
  background: #6fcaf0;
  border-color: #6fcaf0;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(91, 192, 235, .2);
}

.hero-link {
  border: 1px solid var(--rule);
  color: var(--muted);
}

.hero-link:visited {
  color: var(--muted);
}

.hero-link:hover {
  border-color: var(--accent-blue);
  color: var(--white);
  background: rgba(61, 139, 255, .08);
}

.home-counts {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.home-count {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.count-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.count-lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.home-scroll {
  position: absolute;
  bottom: 36px;
  right: 0;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatY 3s ease-in-out infinite;
}

.home-scroll::after {
  content: '↓';
  writing-mode: horizontal-tb;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.home-section {
  padding: 0 0 72px;
}

.home-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.tracks-grid,
.tag-index {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}

.tracks-grid {
  grid-template-columns: repeat(3, 1fr);
}

.track-card {
  position: relative;
  overflow: hidden;
  background: var(--black);
  text-decoration: none;
  color: var(--text);
  display: block;
  padding: 24px 20px;
  min-height: 190px;
  transition: background .2s;
}

.track-card:hover { background: var(--lift); }

.track-bg-icon {
  position: absolute;
  bottom: -8px;
  right: -8px;
  pointer-events: none;
  color: var(--slate);
}

.track-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.track-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.track-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.track-card.lab .track-label { color: var(--lab); }
.track-card.field .track-label { color: var(--field); }
.track-card.grind .track-label { color: var(--grind); }

.track-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.track-desc {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.65;
  flex: 1;
}

.track-cta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .8px;
  text-transform: uppercase;
}

.track-card:hover .track-cta { color: var(--text); }

.post-list-home {
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}

.post-row {
  display: grid;
  grid-template-columns: 52px 1fr 110px;
  gap: 16px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--text);
  background: var(--black);
  transition: background .15s;
}

.post-row:last-child { border-bottom: none; }
.post-row:hover { background: var(--surface); }

.post-track-tag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 2px;
  text-align: center;
  font-weight: 500;
  display: inline-block;
  border: 1px solid var(--rule-mid);
}

.post-track-tag.the-lab { color: var(--lab); background: rgba(91, 192, 235, .08); }
.post-track-tag.the-field { color: var(--field); background: rgba(126, 199, 141, .08); }
.post-track-tag.the-grind { color: var(--grind); background: rgba(240, 179, 90, .08); }

.post-row-title {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-row-date,
.post-card-date,
.post-spec-row,
.post-spec-pill,
.post-meta,
.spec-key,
.spec-val,
.spec-label,
.post-footer-back,
.post-nav-link,
.tag-index-count,
.tag-index-name {
  font-family: var(--mono);
}

.post-row-date {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

.about-philosophy {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.philosophy-statement {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 26px);
  color: var(--white);
  line-height: 1.38;
  letter-spacing: -.5px;
  margin-bottom: 24px;
  max-width: 640px;
}

.philosophy-body {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.75;
  max-width: 640px;
}

.philosophy-body p { margin-bottom: 14px; }
.philosophy-body p:last-child { margin-bottom: 0; }

.section-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  padding: 128px 32px 34px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(17, 26, 36, .88), rgba(11, 17, 24, .96));
}

.section-tag.section-hero {
  padding-top: 138px;
}

.section-hero-bg {
  position: absolute;
  inset: 0;
  color: var(--slate);
}

.section-bg-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.section-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.section-the-lab .section-hero { background: linear-gradient(180deg, rgba(17, 26, 36, .88), rgba(10, 28, 40, .96)); }
.section-the-field .section-hero { background: linear-gradient(180deg, rgba(17, 26, 36, .88), rgba(12, 28, 22, .96)); }
.section-the-grind .section-hero { background: linear-gradient(180deg, rgba(17, 26, 36, .88), rgba(33, 22, 10, .96)); }

.post-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card {
  background: var(--black);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 22px 22px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: background .15s, border-color .15s;
}

.post-card:hover {
  background: var(--surface);
  border-color: var(--rule-mid);
}

.post-card.featured {
  background: var(--surface);
  padding: 26px 28px;
}

.featured-meta,
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.featured-badge {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 2px 8px;
  background: var(--acid);
  color: var(--black);
  border-radius: 2px;
}

.post-card-date,
.post-spec-pill,
.post-spec-row {
  font-size: 10px;
  color: var(--muted);
}

.post-spec-row strong { color: var(--dim); font-weight: 500; }

.featured-title,
.post-card-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -.3px;
}

.featured-title {
  font-size: clamp(20px, 2.7vw, 26px);
  line-height: 1.2;
  margin-bottom: 10px;
}

.post-card-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.featured-summary,
.post-card-summary {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.75;
}

.featured-summary { margin-bottom: 14px; }
.post-card-summary { margin-bottom: 12px; }

.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.post-tag {
  font-size: 9px;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .4px;
}

.post-tag:hover {
  border-color: var(--rule-mid);
  color: var(--text);
}

.no-posts {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 40px 0;
}

.reading-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
}

.reading-progress {
  height: 100%;
  width: 0;
  background: var(--acid);
  transition: width .1s linear;
}

.section-the-lab .reading-progress { background: var(--lab); }
.section-the-field .reading-progress { background: var(--field); }
.section-the-grind .reading-progress { background: var(--grind); }

.post-wrap {
  padding-top: 104px;
}

.post-header {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.post-back {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-back:hover { color: var(--text); }

.post-header-track {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}

.post-header-track.the-lab { color: var(--lab); }
.post-header-track.the-field { color: var(--field); }
.post-header-track.the-grind { color: var(--grind); }

.post-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.6px;
  margin-bottom: 12px;
  color: var(--white);
}

.post-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-meta-sep { color: var(--rule-mid); }
.post-read-time { font-size: 11px; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 36px;
  align-items: start;
}

.post-layout.no-sidebar { grid-template-columns: 1fr; }

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toc-card,
.spec-sheet {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 18px;
}

.spec-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-key {
  font-size: 9px;
  color: var(--muted);
  text-transform: capitalize;
}

.spec-val {
  font-size: 11px;
  color: var(--text);
  font-weight: 500;
}

.toc-card #TableOfContents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-card #TableOfContents li { margin-bottom: 6px; }

.toc-card #TableOfContents a {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.5;
  display: block;
}

.toc-card #TableOfContents a:hover { color: var(--text); }
.toc-card #TableOfContents ul ul { padding-left: 10px; margin-top: 4px; }
.toc-card #TableOfContents ul ul a { font-size: 9px; opacity: .8; }

.post-body { min-width: 0; }

.post-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.8em;
  font-weight: 400;
  float: left;
  line-height: .85;
  margin: .05em .1em 0 0;
  color: var(--acid);
}

.section-the-lab .post-body > p:first-of-type::first-letter { color: var(--lab); }
.section-the-field .post-body > p:first-of-type::first-letter { color: var(--field); }
.section-the-grind .post-body > p:first-of-type::first-letter { color: var(--grind); }

.post-body p,
.post-body li {
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

.post-body p { margin-bottom: 1.4rem; }

.post-body h2,
.post-body h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
}

.post-body h2 {
  font-size: 24px;
  margin: 2.3rem 0 1rem;
  letter-spacing: -.5px;
}

.post-body h3 {
  font-size: 18px;
  margin: 2rem 0 .75rem;
  letter-spacing: -.2px;
}

.post-body ul,
.post-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.4rem;
}

.post-body li { margin-bottom: .4rem; }

.post-body blockquote {
  margin: 2rem 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--rule-mid);
  font-style: italic;
  font-size: 15px;
  color: var(--dim);
  line-height: 1.7;
}

.post-body pre {
  background: var(--terminal-bg);
  color: var(--text);
  padding: 20px 24px;
  border-radius: 3px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  margin: 1.5rem 0;
  border: 1px solid var(--rule);
}

.post-body code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid var(--rule);
}

.post-body pre code {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 1.5rem 0;
  display: block;
  border: 1px solid var(--rule);
}

.post-body a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--rule-mid);
  text-underline-offset: 3px;
}

.post-body a:hover { text-decoration-color: var(--white); }

.post-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

.post-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.post-footer-back,
.post-nav-link {
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-footer-back:hover,
.post-nav-link:hover { color: var(--text); }

.post-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tag-index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tag-index-item {
  min-width: 0;
}

.tag-index-item {
  background: var(--black);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tag-index-item:hover { background: var(--surface); }

.tag-index-name {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.tag-index-count {
  font-size: 10px;
  color: var(--muted);
}

.footer-status {
  border-top: 1px solid var(--rule);
  padding: 10px 0;
  background: var(--surface);
}

.status-inner {
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 5px #28c840;
  flex-shrink: 0;
}

.status-text,
.status-sep {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.status-sep {
  color: var(--rule-mid);
  letter-spacing: 0;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
}

.footer-inner {
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.footer-right a {
  color: var(--muted);
  text-decoration: none;
}

.footer-right a:hover { color: var(--text); }
.footer-sep { color: var(--rule-mid); margin: 0 8px; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 24, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 300;
}

.lightbox-img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 80px);
  border-radius: 4px;
  border: 1px solid var(--rule);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 768px) {
  .home-wrap,
  .section-wrap,
  .post-wrap {
    padding: 0 20px 80px;
  }

  .nav-inner,
  .status-inner,
  .footer-inner {
    padding: 0 20px;
  }

  .site-nav {
    padding: 14px 0;
    background: var(--black);
    border-bottom: 1px solid var(--rule);
  }

  .nav-inner {
    gap: 10px;
  }

  .nav-logo {
    font-size: 20px;
    gap: 6px;
  }

  .logo-mark {
    width: 20px;
    height: 20px;
  }

  .nav-links,
  .nav-home,
  .logo-sub {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .nav-hamburger {
    width: 40px;
    height: 40px;
  }

  .nav-hamburger { display: flex; }

  .home-hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 44px;
  }

  .home-eyebrow {
    font-size: 10px;
    margin-bottom: 20px;
  }

  .home-title {
    font-size: clamp(34px, 12vw, 52px);
    letter-spacing: -.8px;
    margin-bottom: 18px;
  }

  .home-statement {
    font-size: 12px;
    padding-left: 12px;
    margin-bottom: 22px;
  }

  .home-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-cta,
  .hero-link {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
  }

  .home-counts {
    gap: 18px;
    justify-content: space-between;
  }

  .home-count {
    min-width: 84px;
  }

  .home-scroll { display: none; }

  .tracks-grid,
  .tag-index {
    grid-template-columns: 1fr;
  }

  .track-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .track-content {
    gap: 10px;
  }

  .track-desc {
    font-size: 12px;
  }

  .post-row {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 14px 14px;
  }

  .post-row-date { display: none; }

  .post-row-title {
    white-space: normal;
    line-height: 1.4;
  }

  .section-hero {
    padding: 104px 20px 24px;
    margin-bottom: 28px;
  }

  .section-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .post-card.featured,
  .post-card {
    padding: 22px 18px;
  }

  .featured-meta,
  .post-card-meta {
    gap: 8px;
    margin-bottom: 10px;
  }

  .about-philosophy {
    padding: 26px 20px;
  }

  .post-wrap {
    padding-top: 88px;
  }

  .post-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc-card,
  .spec-sheet {
    position: static;
  }

  .post-body > p:first-of-type::first-letter {
    font-size: 3em;
  }

  .post-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .home-wrap,
  .section-wrap,
  .post-wrap {
    padding: 0 16px 72px;
  }

  .nav-inner,
  .status-inner,
  .footer-inner {
    padding: 0 16px;
  }

  .home-hero {
    padding-top: 96px;
    padding-bottom: 36px;
  }

  .home-title {
    font-size: 34px;
  }

  .home-counts {
    gap: 14px;
  }

  .count-num {
    font-size: 22px;
  }

  .section-hero {
    padding: 96px 16px 20px;
  }

  .post-card.featured,
  .post-card,
  .track-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .post-body p,
  .post-body li {
    font-size: 12px;
  }
}
