/* ===================================================================
   dfir.buzz — design system + component styles
   Aesthetic: hacker zine with editorial polish
   Fonts: Spectral (display/body) · JetBrains Mono (UI/code) · Inter Tight (nav)
   =================================================================== */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #f3f1ea;
  --bg-2:      #eae7dd;
  --bg-3:      #ddd9cb;
  --surface:   #ffffff;
  --ink:       #14140f;
  --ink-2:     #2c2b22;
  --muted:     #6f6e62;
  --muted-2:   #a8a79c;
  --line:      #1a1a14;
  --line-soft: #c8c5b8;
  --rule:      #1a1a1422;

  --accent:      #c54a26;
  --accent-ink:  #f3f1ea;
  --accent-soft: #c54a261a;

  --code-bg:   #14140f;
  --code-fg:   #e8e6dc;
  --code-mute: #8a8a7e;
  --code-blue: #7aa6c9;
  --code-grn:  #7fb069;

  --font-display: "Spectral", "Iowan Old Style", Georgia, serif;
  --font-body:    "Spectral", Georgia, serif;
  --font-ui:      "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-1: 2px;
  --r-2: 4px;
  --shadow-1: 0 1px 0 #00000010, 0 8px 24px -12px #00000018;
}

[data-theme="dark"] {
  --bg:        #0e0e0a;
  --bg-2:      #15140f;
  --bg-3:      #1c1b15;
  --surface:   #15140f;
  --ink:       #ece9dc;
  --ink-2:     #c8c4b3;
  --muted:     #8a8779;
  --muted-2:   #5b5a4f;
  --line:      #2a2820;
  --line-soft: #2a2820;
  --rule:      #ece9dc22;

  --accent:      #e26a3f;
  --accent-ink:  #0e0e0a;
  --accent-soft: #e26a3f1f;

  --code-bg:   #07070a;
  --code-fg:   #e8e6dc;
}

/* ─── KEYFRAMES ─────────────────────────────────────────────────── */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ─── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ─── LAYOUT ────────────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────── */
.ui    { font-family: var(--font-ui); }
.mono  { font-family: var(--font-mono); }
.serif { font-family: var(--font-body); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.signal { color: var(--accent); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny  { font-size: 11px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

/* ─── TAGS ──────────────────────────────────────────────────────── */
.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 2px 7px 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
  border-radius: var(--r-1);
  transition: background .12s ease, color .12s ease;
  text-decoration: none;
}
.tag:hover  { background: var(--ink); color: var(--bg); }
.tag.solid  { background: var(--ink); color: var(--bg); }
.tag.signal { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tag.ghost  { border-color: var(--line-soft); color: var(--muted); }

/* ─── KBD ───────────────────────────────────────────────────────── */
.kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  padding: 1px 5px;
  background: var(--bg);
  border-radius: var(--r-1);
  color: var(--ink);
}

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  border-radius: var(--r-1);
  text-decoration: none;
}
.btn:hover        { background: var(--ink); color: var(--bg); }
.btn.solid        { background: var(--ink); color: var(--bg); }
.btn.solid:hover  { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.signal       { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost        { border-color: var(--line-soft); color: var(--muted); }
.btn.ghost:hover  { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.sm           { padding: 5px 10px; font-size: 11px; }

/* ─── CURSOR ────────────────────────────────────────────────────── */
.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: currentColor;
  vertical-align: -2px;
  margin-left: 3px;
  animation: blink 1.06s steps(1) infinite;
}

/* ─── CARD ──────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line); }

/* ─── PLACEHOLDER IMAGE ─────────────────────────────────────────── */
.ph-img {
  background: repeating-linear-gradient(135deg, var(--bg-3) 0 8px, var(--bg-2) 8px 16px);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.ph-img::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink);
  background: var(--bg);
  padding: 2px 8px;
  border: 1px solid var(--line);
  letter-spacing: 0.06em;
}

/* ─── CODE BLOCKS ───────────────────────────────────────────────── */
.code-header {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  background: var(--bg-2);
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-bottom: none;
  border-radius: var(--r-1) var(--r-1) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.06em;
}
.code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 18px 20px;
  border-radius: 0 0 var(--r-1) var(--r-1);
  overflow-x: auto;
  margin: 0;
}

/* syntax colours — used inside .code and terminal blocks */
.c-mute { color: var(--code-mute); }
.c-blue { color: var(--code-blue); }
.c-grn  { color: #7fb069; }
.c-amb  { color: #d4a35a; }
.c-acc  { color: var(--accent); }

/* ─── LINKS ─────────────────────────────────────────────────────── */
.ulink {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color .2s ease;
}
.ulink:hover {
  background-image: linear-gradient(var(--accent), var(--accent));
  color: var(--accent);
}

/* ─── FLEX UTILITIES ────────────────────────────────────────────── */
.col     { display: flex; flex-direction: column; }
.between { display: flex; justify-content: space-between; align-items: center; }
.center  { display: flex; align-items: center; }
.gap-2   { gap: 8px; }

/* ─── FOCUS ─────────────────────────────────────────────────────── */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* ===================================================================
   NAVBAR
   =================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  /* fallback for browsers without color-mix */
  background: rgba(243, 241, 234, 0.9);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-ui);
}
.navbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo-dollar { color: var(--accent); margin-right: 2px; }
.logo-dot    { color: var(--muted); }
.nav-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: nowrap;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 14px;
  margin-bottom: -14px;
  transition: color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.nav-link:hover  { color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ===================================================================
   BREAKING TICKER
   =================================================================== */
.ticker-wrap {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.ticker-badge {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 8px 0 12px -8px rgba(0,0,0,0.6);
  white-space: nowrap;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-content {
  display: inline-flex;
  gap: 36px;
  padding: 8px 24px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}
.ticker-item {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.ticker-arrow { color: var(--accent); }


/* ===================================================================
   MASTHEAD
   =================================================================== */
.masthead { border-bottom: 1px solid var(--line-soft); }
.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 32px;
  padding-bottom: 24px;
}
.masthead-tagline {
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  text-align: center;
  flex: 1;
}
.masthead-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}


/* ===================================================================
   HERO
   =================================================================== */
.hero { padding: 56px 28px 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  font-weight: 600;
}
.hero-dek {
  font-style: italic;
  font-size: 22px;
  line-height: 1.42;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 540px;
  text-wrap: pretty;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.hero-byline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-byline-name {
  color: var(--ink);
  margin-bottom: 4px;
}
.hero-image { position: relative; }
.hero-img   { aspect-ratio: 4/5; width: 100%; }
.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(20,20,15,0.04) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.terminal-overlay {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 2px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.4);
}


/* ===================================================================
   EDITOR'S PICKS
   =================================================================== */
.picks-section {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.picks-section .container { padding-top: 48px; padding-bottom: 48px; }
.picks-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.picks-title { font-size: 36px; letter-spacing: -0.015em; margin-top: 6px; }
.picks-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pick-card   { padding: 0; display: flex; flex-direction: column; }
.pick-card:hover { transform: translateY(-2px); }
.pick-img    { aspect-ratio: 16/10; }
.pick-body   { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pick-meta   { display: flex; justify-content: space-between; align-items: center; }
.pick-headline { font-size: 22px; line-height: 1.18; font-weight: 600; }
.pick-dek    { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0; flex: 1; }
.pick-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}


/* ===================================================================
   FEED SECTION
   =================================================================== */
.feed-section { padding: 64px 28px; }
.feed-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
}
.feed-header   { margin-bottom: 24px; }
.feed-tabs     { font-family: var(--font-mono); font-size: 11px; color: var(--muted); display: flex; gap: 12px; }
.feed-tab      { cursor: pointer; transition: color .15s ease; }
.feed-tab:hover { color: var(--ink); }
.feed-tab.active { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.feed-list     { border-top: 1px solid var(--line); }
.feed-item {
  display: grid;
  grid-template-columns: 100px 110px 1fr 90px 60px;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s ease, padding-left .15s ease;
  text-decoration: none;
  color: inherit;
}
.feed-item:hover { background: var(--bg-2); padding-left: 12px; }
.feed-title  { font-size: 18px; line-height: 1.3; font-weight: 500; }
.feed-score  { color: var(--accent); text-align: right; }
.feed-sidebar { display: flex; flex-direction: column; gap: 40px; }
.status-console {
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 16px 18px;
  border-radius: 2px;
  line-height: 1.7;
}
.dispatches-header { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.dispatch-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-soft);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
}
.dispatch-item.last { border-bottom: none; }
.dispatch-num    { font-family: var(--font-mono); font-size: 22px; color: var(--accent); line-height: 1; font-weight: 600; }
.dispatch-title  { font-size: 17px; line-height: 1.25; margin: 0 0 6px; font-weight: 600; }
.dispatch-dek    { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.45; }
.dispatch-byline { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 6px; }


/* ===================================================================
   NEWSLETTER BAND
   =================================================================== */
.newsletter-band {
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.newsletter-grid {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.newsletter-headline {
  font-size: 56px;
  line-height: 1.0;
  color: var(--bg);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.newsletter-dek {
  font-size: 19px;
  color: rgba(243, 241, 234, 0.75);
  line-height: 1.5;
  max-width: 480px;
  margin: 0;
}
.newsletter-terminal {
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--font-mono);
  font-size: 13.5px;
  border-radius: 4px;
  border: 1px solid #2a2820;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.terminal-chrome {
  padding: 10px 14px;
  background: #0a0a07;
  border-bottom: 1px solid #2a2820;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--code-mute);
}
.terminal-dot { width: 9px; height: 9px; border-radius: 50%; background: #3a3a30; display: inline-block; }
.terminal-body { padding: 20px 22px 22px; line-height: 1.85; }
.subscribe-form-row { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.subscribe-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--code-mute);
  color: var(--code-fg);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease;
}
.subscribe-input:focus { border-color: var(--accent); }
.subscribe-opts    { margin-top: 8px; }
.subscribe-actions { margin-top: 18px; display: flex; gap: 14px; align-items: center; }
.subscribe-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity .15s ease;
}
.subscribe-btn:hover { opacity: 0.85; }


/* ===================================================================
   BEATS EXPLORER
   =================================================================== */
.beats-section { padding: 64px 28px; }
.beats-header  { margin-bottom: 32px; align-items: flex-end; }
.beats-grid    { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.beat-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.beat-card:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: none;
}
.beat-top    { display: flex; justify-content: space-between; align-items: flex-start; }
.beat-glyph  { font-family: var(--font-mono); font-size: 28px; line-height: 1; }
.beat-title  { font-size: 22px; line-height: 1.15; margin-top: auto; font-weight: 600; }
.beat-desc   { font-size: 13.5px; line-height: 1.45; margin: 0; opacity: 0.85; }
.beat-footer { font-family: var(--font-mono); font-size: 11px; display: flex; justify-content: space-between; margin-top: 4px; }


/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}
.footer-brand .logo   { font-size: 20px; }
.footer-desc          { margin: 16px 0; color: var(--ink-2); font-size: 15px; max-width: 360px; line-height: 1.55; }
.footer-tags          { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.footer-col-head      { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col-links     { display: flex; flex-direction: column; gap: 8px; }
.footer-col-link      { font-size: 13px; color: var(--ink-2); }
.footer-bar {
  border-top: 1px solid var(--line-soft);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}


/* ===================================================================
   ARTICLE — READING BAR
   =================================================================== */
.reading-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 1000;
  transition: width .08s linear;
}


/* ===================================================================
   ARTICLE — BREADCRUMB
   =================================================================== */
.breadcrumb-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.breadcrumb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  justify-content: space-between;
}
.breadcrumb-cur { color: var(--ink); }


/* ===================================================================
   ARTICLE — HEADER
   =================================================================== */
.article-header { border-bottom: 1px solid var(--line-soft); padding: 56px 0 40px; }
.article-header-inner { max-width: 920px; margin: 0 auto; padding: 0 28px; }
.article-tags  { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.article-title {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  font-weight: 600;
}
.article-dek {
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}


/* ===================================================================
   ARTICLE — META STRIP
   =================================================================== */
.article-meta {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.article-meta-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.author-chip   { display: flex; align-items: center; gap: 10px; }
.author-avatar-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5b3a2c);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  font-weight: 600; font-size: 12px;
  flex-shrink: 0;
}
.author-name-sm { color: var(--ink); display: block; }
.author-role    { font-size: 10px; }
.meta-actions   { margin-left: auto; display: flex; gap: 12px; }


/* ===================================================================
   ARTICLE — BODY (3-COLUMN)
   =================================================================== */
.article-body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 28px 80px;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 56px;
}


/* ─── TOC ───────────────────────────────────────────────────────── */
.toc { position: sticky; top: 100px; align-self: start; }
.toc-head { margin-bottom: 14px; }
.toc-links { display: flex; flex-direction: column; }
.toc-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 8px 0 8px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  border-left: 2px solid transparent;
  font-weight: 400;
  transition: color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.toc-item:hover { color: var(--ink); }
.toc-item.active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.toc-actions {
  margin-top: 28px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.7;
}
.toc-actions-head { color: var(--ink); margin-bottom: 2px; }


/* ─── PROSE ─────────────────────────────────────────────────────── */
.prose { font-family: var(--font-body); color: var(--ink); }
.prose p { font-size: 19px; line-height: 1.65; margin: 0 0 1.1em; text-wrap: pretty; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  margin: 2.2em 0 0.6em;
  letter-spacing: -0.012em;
  font-weight: 600;
}
.prose .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  display: block;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 400;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  padding: 1px 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
}
.prose ol { font-size: 18px; line-height: 1.65; padding-left: 24px; }
.prose ol li { margin-bottom: 0.4em; }
.prose .dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  font-weight: 600;
}
.code-wrap { margin: 24px 0; }
.fig-caption { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 8px; }
.prose .ph-img { margin: 32px 0 0; }


/* ─── IOC SIDEBAR ───────────────────────────────────────────────── */
.ioc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.ioc-head { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.ioc-item {
  all: unset;
  font-family: var(--font-mono);
  font-size: 12px;
  display: grid;
  grid-template-columns: 60px 1fr 18px;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px dashed var(--line-soft);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background .12s ease;
}
.ioc-item:hover { background: var(--bg-2); }
.ioc-key  { color: var(--muted); }
.ioc-val  { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ioc-copy { color: var(--muted); font-size: 11px; transition: color .15s ease; }
.ioc-download { font-family: var(--font-mono); font-size: 11px; color: var(--accent); display: block; margin-top: 10px; text-decoration: none; }
.related-head { margin-bottom: 12px; }
.related-link {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--ink);
  font-weight: 500;
  transition: color .15s ease;
}
.related-link:hover { color: var(--accent); }
.related-link:last-child { border-bottom: none; }
.meta-card {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 12px 14px;
  border: 1px dashed var(--line-soft);
  line-height: 1.7;
}


/* ===================================================================
   ARTICLE — AUTHOR BIO
   =================================================================== */
.author-bio {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 48px 0;
}
.author-bio-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
.author-avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5b3a2c);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  font-weight: 600; font-size: 28px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.author-bio-name { font-size: 26px; margin-top: 4px; }
.author-bio-text { font-size: 16px; color: var(--ink-2); margin: 8px 0 0; max-width: 600px; }


/* ===================================================================
   ABOUT PAGE
   =================================================================== */

/* hero */
.about-hero {
  border-bottom: 1px solid var(--line-soft);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.about-hero-bg {
  position: absolute;
  top: -20px; right: -40px;
  font-family: var(--font-mono);
  font-size: 320px;
  font-weight: 600;
  line-height: 1;
  color: var(--bg-3);
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.05em;
  z-index: 0;
}
[data-theme="dark"] .about-hero-bg { color: var(--bg-2); }
.about-hero .container { position: relative; z-index: 1; }
.about-headline {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.97;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 24px 0 32px;
  max-width: 860px;
}
.about-headline em { font-style: italic; color: var(--accent); }
.about-subhead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-2);
  font-style: italic;
  max-width: 600px;
  margin: 0;
}

/* editor's note */
.about-note {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 28px;
  border-bottom: 1px solid var(--line-soft);
}
.about-note p {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1.2em;
  text-wrap: pretty;
}
.about-note p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 60px;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  font-weight: 600;
}
.about-note-sig {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-soft);
  letter-spacing: 0.06em;
}

/* principles */
.principles-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line-soft);
}
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line-soft);
}
.principle-item {
  padding: 32px 36px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  transition: background .15s ease;
}
.principle-item:hover { background: var(--bg-2); }
.principle-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.principle-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.principle-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* stats console */
.stats-section {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  padding: 80px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.stats-copy h2 { font-size: 42px; line-height: 1.1; margin-bottom: 16px; }
.stats-copy p  { font-size: 17px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.stats-console {
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  padding: 24px 26px;
  border-radius: 2px;
  border: 1px solid #2a2820;
}
.stats-row { display: flex; justify-content: space-between; gap: 16px; }
.stats-key { color: var(--code-mute); }
.stats-val { color: var(--code-fg); text-align: right; }
.stats-val.good { color: #7fb069; }
.stats-val.accent { color: var(--accent); }

/* contributors */
.contributors-section { padding: 80px 0; border-bottom: 1px solid var(--line-soft); }
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.contributor-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: background .15s ease, border-color .15s ease;
}
.contributor-card:hover { background: var(--bg-2); border-color: var(--line); }
.contributor-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.contributor-handle { font-family: var(--font-mono); font-size: 12px; color: var(--ink); font-weight: 500; }
.contributor-role   { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.contributor-posts  { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.06em; margin-top: auto; }

/* pitch / contact */
.pitch-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}
.pitch-copy h3  { font-size: 28px; margin-bottom: 16px; }
.pitch-copy p   { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 1em; }
.pitch-copy ul  { font-size: 15px; line-height: 1.7; color: var(--ink-2); padding-left: 20px; margin: 0; }
.pitch-copy li  { margin-bottom: 0.3em; }
.pgp-block {
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  padding: 20px 22px;
  border-radius: 2px;
  border: 1px solid #2a2820;
  overflow-x: auto;
}
.pgp-header { color: var(--code-mute); margin-bottom: 4px; }
.pgp-key    { color: var(--code-grn); word-break: break-all; }

/* about responsive */
@media (max-width: 900px) {
  .about-headline      { font-size: 56px; }
  .principles-grid     { grid-template-columns: 1fr; }
  .stats-inner         { grid-template-columns: 1fr; }
  .contributors-grid   { grid-template-columns: repeat(2, 1fr); }
  .pitch-grid          { grid-template-columns: 1fr; }
  .about-hero-bg       { font-size: 180px; }
}
@media (max-width: 600px) {
  .about-headline      { font-size: 40px; }
  .contributors-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1100px) {
  .article-body { grid-template-columns: 200px 1fr 240px; gap: 40px; }
  .beats-grid   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .navbar-inner { grid-template-columns: auto auto; gap: 16px; }
  .nav-links    { display: none; }
  .hero-grid    { grid-template-columns: 1fr; }
  .hero-image   { display: none; }
  .hero-headline { font-size: 64px; }
  .picks-grid   { grid-template-columns: 1fr; }
  .feed-grid    { grid-template-columns: 1fr; }
  .feed-sidebar { display: none; }
  .article-body { grid-template-columns: 1fr; }
  .toc          { display: none; }
  .ioc-sidebar  { display: none; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 40px; }
  .newsletter-headline { font-size: 40px; }
}

@media (max-width: 600px) {
  .hero-headline   { font-size: 48px; }
  .article-title   { font-size: 40px; }
  .beats-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr; }
  .feed-item       { grid-template-columns: 1fr; gap: 4px; }
  .container       { padding: 0 16px; }
  .hero            { padding: 32px 16px 40px; }
  .feed-section    { padding: 40px 16px; }
  .beats-section   { padding: 40px 16px; }
}
