/* 33Jones — Modern Urban Magazine */
:root {
  --bg: #f4f1ea;
  --bg-deep: #ebe6da;
  --ink: #161513;
  --ink-soft: #4a4742;
  --muted: #8a857b;
  --line: rgba(22, 21, 19, 0.14);
  --line-strong: rgba(22, 21, 19, 0.42);
  --accent: #ffce00;
  --accent-2: oklch(0.62 0.17 28);
  --paper: #ffffff;
  --serif: "Fraunces", "GT Sectra", "Tiempos Headline", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --display: "Bebas Neue", "Druk", "Helvetica Neue", Impact, sans-serif;
}

[data-theme="ink"] {
  --bg: #0d0d0d;
  --bg-deep: #1a1a1a;
  --ink: #f4f1ea;
  --ink-soft: #c8c4ba;
  --muted: #8b867c;
  --line: rgba(244, 241, 234, 0.14);
  --line-strong: rgba(244, 241, 234, 0.4);
  --accent: #ffce00;
  --accent-2: oklch(0.72 0.17 28);
  --paper: #161513;
}

[data-theme="dark"] {
  --bg: #14110d;
  --bg-deep: #1c1813;
  --ink: #f1ece1;
  --ink-soft: #c5beae;
  --muted: #7a7466;
  --line: rgba(241, 236, 225, 0.12);
  --line-strong: rgba(241, 236, 225, 0.32);
  --accent: #ffce00;
  --accent-2: oklch(0.78 0.16 70);
  --paper: #1c1813;
}
[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 206, 0, 0.05), transparent 45%),
    radial-gradient(circle at 88% 100%, rgba(255, 90, 60, 0.04), transparent 50%),
    var(--bg);
}
[data-theme="dark"] .card { background: var(--bg-deep); }
[data-theme="dark"] .modal-inner { background: var(--bg-deep); }

[data-theme="og"] {
  --bg: #ffce00;
  --bg-deep: #f0bf00;
  --ink: #1a1408;
  --ink-soft: #3d2f10;
  --muted: #6b5520;
  --line: rgba(26, 20, 8, 0.18);
  --line-strong: rgba(26, 20, 8, 0.5);
  --accent: #1a1408;
  --accent-2: #d63a1f;
  --paper: #fff7d6;
}
[data-theme="og"] body {
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 58, 31, 0.08), transparent 50%),
    var(--bg);
}
[data-theme="og"] .topbar { background: var(--ink); color: var(--bg); border-bottom: 2px solid var(--ink); }
[data-theme="og"] .topbar .ticker span::before { color: var(--bg); }
[data-theme="og"] .topbar .right a:hover { color: var(--bg); }
[data-theme="og"] .nav-list a.active { background: var(--ink); color: var(--bg); }
[data-theme="og"] .card {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
}
[data-theme="og"] .card .thumb { border-bottom: 1px solid var(--ink); }
[data-theme="og"] .side-card { border: 1px solid var(--ink); padding: 12px; border-radius: 4px; background: var(--paper); }
[data-theme="og"] .hero-video { border: 1px solid var(--ink); }
[data-theme="og"] .hero-play,
[data-theme="og"] .modal-play { background: var(--ink); color: var(--bg); }
[data-theme="og"] .subscribe-btn { background: var(--ink); color: var(--bg); }
[data-theme="og"] .mixtape { background: var(--ink); color: var(--bg); }
[data-theme="og"] .modal-inner { background: var(--paper); }

[data-theme="acid"] {
  --bg: #eaff3a;
  --bg-deep: #d6ea2e;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --muted: #4a4a3a;
  --line: rgba(0,0,0,0.18);
  --line-strong: rgba(0,0,0,0.5);
  --accent: #ff3a3a;
  --accent-2: #1a1a1a;
  --paper: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
img { max-width: 100%; display: block; }

/* ──────────── Top bar ──────────── */
.topbar {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}
.topbar .ticker { display: flex; gap: 24px; overflow: hidden; }
.topbar .ticker span { white-space: nowrap; opacity: 0.85; }
.topbar .ticker span::before { content: "●"; color: var(--accent); margin-right: 8px; }
.topbar .right { display: flex; gap: 18px; align-items: center; }
.topbar .right a { opacity: 0.7; }
.topbar .right a:hover { opacity: 1; text-decoration: none; color: var(--accent); }

.mode-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 4px;
  background: rgba(255,255,255,0.04);
}
.mode-switch-btn {
  background: transparent;
  border: 0;
  color: inherit;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.55;
  transition: background 0.15s, opacity 0.15s, color 0.15s;
}
.mode-switch-btn:hover { opacity: 1; }
.mode-switch-btn[data-active="true"] {
  background: var(--accent);
  color: #000;
  opacity: 1;
}
.mode-switch-btn[data-active="true"] .mode-switch-icon { color: #000; }
.mode-switch-icon {
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  min-width: 12px;
  text-align: center;
}
.mode-switch-label { font-weight: 600; }

/* ──────────── Masthead ──────────── */
.masthead {
  border-bottom: 1px solid var(--line-strong);
  padding: 22px 28px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.masthead-left, .masthead-right {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.masthead-right { justify-content: flex-end; }
.masthead-left .date { color: var(--muted); }
.search-pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.search-pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.subscribe-btn {
  background: var(--ink);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  text-transform: uppercase;
}
.subscribe-btn:hover { background: var(--accent-2); }

.wordmark {
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-align: center;
  font-weight: 400;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  justify-content: center;
}
.wordmark .num {
  background: var(--accent);
  color: #000;
  padding: 0 12px 4px;
  display: inline-block;
  transform: rotate(-2deg);
}
.wordmark .word { letter-spacing: -0.04em; }

/* ──────────── Nav ──────────── */
.nav {
  border-bottom: 1px solid var(--line-strong);
  padding: 0 28px;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
  z-index: 49;
}
.nav-list { display: flex; gap: 0; align-items: stretch; }
.nav-list a {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
}
.nav-list a:first-child { border-left: 1px solid var(--line); }
.nav-list a:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.nav-list a.active { background: var(--accent); color: #000; }
.nav-meta { color: var(--muted); font-size: 11px; }

/* ──────────── Hero ──────────── */
.hero {
  border-bottom: 1px solid var(--line-strong);
  padding: 32px 28px 40px;
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
}
.hero-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 4px;
}
.hero-video iframe { width: 100%; height: 100%; border: 0; }
.hero-video img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.78); transition: filter 0.2s, transform 0.4s; }
.hero-video:hover img { filter: brightness(0.9); transform: scale(1.02); }
.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #000;
  border: none;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  z-index: 2;
  transition: transform 0.15s;
}
.hero-video:hover .hero-play { transform: translate(-50%, -50%) scale(1.04); }
.hero-play .play-icon { font-size: 16px; }
.hero-video .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85));
  display: flex;
  align-items: flex-end;
  padding: 24px;
  pointer-events: none;
}
.hero-video.live::before {
  content: "● ON THE DECK";
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent-2);
  color: white;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 3px;
  z-index: 2;
  font-weight: 600;
}
.hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.cat-pill {
  background: var(--ink);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.hero-dek {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
  font-style: italic;
  font-weight: 300;
}
.hero-excerpt {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 8px 0 4px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero-excerpt p { margin: 0 0 14px; text-wrap: pretty; }
.hero-excerpt p:last-of-type { margin-bottom: 18px; }
/* Drop-cap on the first paragraph — works whether the first character is
   inside <b>/<i>/<a> or naked text. */
.hero-excerpt .first-graf::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 64px;
  line-height: 0.85;
  float: left;
  margin: 4px 10px -2px 0;
  color: var(--ink);
  shape-outside: margin-box;
}
/* Inline formatting preserved from legacy post HTML */
.hero-excerpt b, .hero-excerpt strong { font-weight: 700; color: var(--ink); }
.hero-excerpt i, .hero-excerpt em { font-style: italic; }
.hero-excerpt a { color: var(--accent-2); border-bottom: 1px solid var(--line-strong); }
.hero-excerpt a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.hero-excerpt br { line-height: 1.65; }
.hero-readmore {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  padding: 2px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}
.hero-readmore:hover { color: var(--accent-2); border-color: var(--accent-2); }
.byline { color: var(--muted); font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.byline .author { color: var(--ink); }

/* Sidebar in hero */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.side-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.side-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.side-card {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.side-card:last-of-type { border-bottom: none; }
.side-num {
  font-family: var(--display);
  font-size: 36px;
  line-height: 0.9;
  color: var(--accent-2);
  flex-shrink: 0;
  width: 36px;
}
.side-body h4 {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.18;
  margin: 0 0 6px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.side-body .meta {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.side-card:hover h4 { color: var(--accent-2); }

/* ──────────── Section divider ──────────── */
.section-head {
  padding: 36px 28px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  margin: 0 0;
}
.section-title {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 400;
}
.section-title .accent {
  background: var(--accent);
  color: #000;
  padding: 0 10px;
  margin-left: 4px;
  display: inline-block;
}
.section-meta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  gap: 14px;
}
.section-meta a { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.section-meta a:hover { color: var(--accent-2); border-color: var(--accent-2); text-decoration: none; }

/* ──────────── Article grid ──────────── */
.feed {
  padding: 28px 28px 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 28px;
  border-bottom: 1px solid var(--line-strong);
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
}
.card .thumb {
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  position: relative;
  border-radius: 3px;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb::after {
  content: "▶";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.85);
  color: var(--accent);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding-left: 2px;
}
.card .meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.card .cat {
  color: var(--accent-2);
  font-weight: 600;
}
.card h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.card .dek {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}
.card:hover h3 { color: var(--accent-2); }

/* Card sizes */
.card.span-12 { grid-column: span 12; flex-direction: row; gap: 28px; }
.card.span-12 .thumb { width: 60%; aspect-ratio: 16/9; }
.card.span-12 .body { flex: 1; padding-top: 8px; }
.card.span-12 h3 { font-size: 36px; }
.card.span-12 .dek { font-size: 17px; max-width: 50ch; }

.card.span-8 { grid-column: span 8; }
.card.span-8 h3 { font-size: 30px; }
.card.span-8 .dek { font-size: 16px; }

.card.span-6 { grid-column: span 6; }
.card.span-6 h3 { font-size: 24px; }

.card.span-4 { grid-column: span 4; }
.card.span-4 h3 { font-size: 19px; }
.card.span-4 .dek { font-size: 13.5px; }

.card.span-3 { grid-column: span 3; }
.card.span-3 h3 { font-size: 16px; line-height: 1.2; }
.card.span-3 .dek { display: none; }
.card.span-3 .meta-line { font-size: 10px; }

/* Inline player card (one row plays embedded video) */
.card.inline-video .thumb { aspect-ratio: 16/9; }
.card.inline-video .thumb iframe { width: 100%; height: 100%; border: 0; }
.card.inline-video .thumb::after { display: none; }

/* ──────────── Mixtape rail ──────────── */
.mixtape {
  background: var(--ink);
  color: var(--bg);
  padding: 40px 28px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  border-bottom: 1px solid var(--line-strong);
}
.mixtape h2 {
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.92;
  margin: 0 0 16px;
  font-weight: 400;
}
.mixtape h2 .accent { color: var(--accent); }
.mixtape p { color: rgba(244,241,234,0.7); max-width: 38ch; font-size: 15px; }
.mixtape-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--bg);
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  margin-top: 16px;
  cursor: pointer;
}
.mixtape-cta:hover { background: var(--accent); color: #000; border-color: var(--accent); text-decoration: none; }
.tracklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 36px;
}
.track {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(244,241,234,0.1);
  align-items: center;
  font-size: 13.5px;
  cursor: pointer;
}
.track .n { font-family: var(--mono); color: var(--muted); font-size: 11px; }
.track .t { font-family: var(--serif); }
.track .t .artist { color: rgba(244,241,234,0.55); display: block; font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.track .d { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.track:hover .t { color: var(--accent); }

/* ──────────── Footer ──────────── */
.footer {
  background: var(--bg-deep);
  padding: 48px 28px 24px;
  border-top: 1px solid var(--line-strong);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.foot-grid h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 5px 0; font-size: 14px; }
.foot-grid li a:hover { color: var(--accent-2); }
.foot-mark {
  font-family: var(--display);
  font-size: 56px;
  line-height: 0.85;
  letter-spacing: -0.01em;
}
.foot-mark .num { background: var(--accent); color: #000; padding: 0 8px 2px; transform: rotate(-2deg); display: inline-block; }
.foot-tagline { color: var(--muted); margin-top: 12px; font-size: 13px; max-width: 32ch; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ──────────── Modal player / long-read ──────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
  animation: fadeIn 0.2s;
}
.modal-inner {
  width: 100%;
  max-width: 820px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  display: block;
  margin: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.modal-header {
  padding: 56px 56px 28px;
  border-bottom: 1px solid var(--line);
}
.modal-header .cat-pill { margin-bottom: 18px; }
.modal-title {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  font-weight: 500;
  text-wrap: balance;
}
.modal-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-weight: 300;
  text-wrap: pretty;
  max-width: 60ch;
}
.modal-byline {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.modal-byline .author { color: var(--ink); font-weight: 600; }
.modal-byline .dot { opacity: 0.5; }

/* ── Modal-body article header (title, dek, byline) ────────────────────────
   The modal renders <h2>/<p class="dek">/<div class="byline"> directly, but
   the existing .modal-title / .modal-dek classes are unused, and .dek only
   has rules scoped to .card. Without these rules the dek falls through to
   default <p> styling and looks smaller than the body text. */
.modal-body > h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 10px 0 14px;
  text-wrap: balance;
  color: var(--ink);
}
.modal-body > .dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 60ch;
  text-wrap: pretty;
}
.modal-body > .byline {
  margin: 14px 0 8px;
}
.modal-body > .modal-tags {
  margin-bottom: 4px;
}

.modal-video {
  background: #000;
  aspect-ratio: 16/9;
  position: relative;
  margin: 0;
}
.modal-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-poster {
  position: absolute;
  inset: 0;
  cursor: pointer;
  overflow: hidden;
}
.modal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter 0.2s, transform 0.4s;
}
.modal-poster:hover img { filter: brightness(0.85); transform: scale(1.02); }
.modal-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #000;
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.modal-play .play-icon { font-size: 14px; }
.modal-yt-link {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
}
.modal-yt-link:hover { background: var(--accent); color: #000; border-color: var(--accent); text-decoration: none; }

.modal-prose {
  padding: 40px 56px 32px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 68ch;
  margin: 0 auto;
}
.modal-prose p {
  margin: 0 0 22px;
  text-wrap: pretty;
  font-weight: 400;
}
.modal-prose p.lede { margin-top: 0; display: flow-root; }
.modal-prose .dropcap {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 76px;
  line-height: 0.85;
  float: left;
  margin: 6px 14px -4px 0;
  color: var(--ink);
  shape-outside: margin-box;
}

.modal-foot {
  padding: 24px 56px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
/* Article body rendered from raw legacy HTML (intro + body) */
.body-text {
  font-family: var(--serif);
  font-size: var(--article-fs, 17px);
  line-height: 1.7;
  color: var(--ink);
  font-weight: 400;
  margin-top: 18px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.body-text p { margin: 0 0 18px; text-wrap: pretty; }
.body-text b, .body-text strong { font-weight: 700; color: var(--ink); }
.body-text i, .body-text em { font-style: italic; }
.body-text a { color: var(--accent-2); border-bottom: 1px solid var(--line-strong); }
.body-text a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
/* Legacy posts use <br><br> as paragraph break — line-height carries the gap */
.body-text br { line-height: 1.7; }
.body-text blockquote {
  margin: 0 0 18px;
  padding: 6px 0 6px 18px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--ink-soft);
}
.body-text iframe,
.body-text embed,
.body-text object,
.body-text video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 18px 0;
  border: 0;
  background: #000;
  border-radius: 4px;
}
.body-text img { margin: 18px 0; border-radius: 4px; }

/* ── Disqus comments at the bottom of the modal article ── */
.modal-comments {
  margin-top: 36px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
}
.modal-comments-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 600;
}
.modal-comments #disqus_thread { min-height: 60px; }
.modal-comments noscript {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
}

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-tags span {
  background: var(--bg-deep);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.modal-share {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-share a {
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
  font-weight: 600;
}
.modal-share a:hover { color: var(--accent-2); border-color: var(--accent-2); text-decoration: none; }

/* ── Article share bar (modal upper-right) ────────────────────────────────── */
.article-share {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.article-share-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.article-share-btns { display: flex; flex-direction: column; gap: 7px; }
.share-btn-33j {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
  font-family: inherit;
  flex-shrink: 0;
}
.share-btn-33j:hover { background: var(--accent); border-color: var(--accent); color: #000; text-decoration: none; }
.share-btn-33j--copied { background: var(--accent) !important; border-color: var(--accent) !important; color: #000 !important; }
.share-btn-33j:disabled { opacity: .38; cursor: not-allowed; pointer-events: none; }
.share-section-sep {
  border: none; background: var(--line);
  width: 100%; height: 1px; flex-shrink: 0; margin: 2px 0;
}

/* ── Ad slot (article modal + entry pages) ───────────────────────────────── */
.ad-slot {
  display: block;
  margin: 28px auto 8px;
  text-align: center;
  max-width: 100%;
}
.ad-slot .ad-marker {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.ad-slot .ad-link { display: inline-block; line-height: 0; }
.ad-slot img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

@media (max-width: 600px) {
  .article-share { position: static; flex-direction: row; align-items: center; margin: 12px 0 4px; gap: 10px; }
  .article-share-btns { flex-direction: row; flex-wrap: wrap; }
  .modal-body { padding-right: 12px !important; }
  .share-section-sep { width: 1px; height: 24px; margin: 0; }
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  z-index: 210;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.modal-close:hover { background: var(--accent); color: #000; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Tweaks placement */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .card.span-12 { flex-direction: column; }
  .card.span-12 .thumb { width: 100%; }
  .mixtape { grid-template-columns: 1fr; }
  .modal { padding: 20px 12px; }
  .modal-inner { max-width: 100%; }
  .modal-header { padding: 36px 28px 22px; }
  .modal-title { font-size: 32px; }
  .modal-dek { font-size: 18px; }
  .modal-prose { padding: 28px 28px 24px; font-size: 17px; }
  .modal-prose .dropcap { font-size: 60px; margin-right: 10px; }
  .modal-foot { padding: 20px 28px 36px; }
}
@media (max-width: 700px) {
  .feed { gap: 22px; }
  .card.span-8, .card.span-6, .card.span-4, .card.span-3 { grid-column: span 12; }
  .nav { overflow-x: auto; }
  .topbar .ticker { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
