:root { color-scheme: dark; --ink: #e8e8e8; --dim: #9c9c9c; --rule: #2a2a2a; --bg: #0a0a0a; --accent: #d4c64a;
  --panel-bg: rgba(10,10,10,0.86); --panel-border: rgba(255,255,255,0.06); }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; padding: 0; background: transparent; color: var(--ink);
  font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.65; }

/* ── Background image + dark fade overlay (set by /js/site.js) ─────── */
.bg-image { position: fixed; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat; }
.bg-overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(10,10,10,0.55), rgba(10,10,10,0.78)); }

/* Everything above the bg sits at z-index ≥ 2 */
nav.topnav, .panel-wrap { position: relative; z-index: 2; }

/* ── Translucent post panel ──────────────────────────────────────── */
.panel-wrap { padding: 4vh 4vw 6vh; }
.panel { max-width: 880px; margin: 0 auto;
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 4px; padding: 4rem 3.5rem; }
@media (max-width: 700px) {
  .panel-wrap { padding: 2vh 2vw 4vh; }
  .panel { padding: 2.5rem 1.5rem; }
}
/* Strip outer-padding from elements when inside the panel — the panel owns the spacing */
.panel header.masthead,
.panel header.section,
.panel article,
.panel footer.colophon,
.panel section.archive,
.panel .placeholder,
.panel .playlists { max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.panel header.masthead { padding-top: 0; padding-bottom: 1.5rem; }
.panel header.section { padding-top: 0; }
.panel article { padding-top: 3rem; padding-bottom: 1rem; }
.panel article h2:first-of-type { margin-top: 1rem; }
.panel footer.colophon { padding-top: 2rem; padding-bottom: 0; }
.panel section.archive { padding-top: 2rem; padding-bottom: 0; }
.panel .placeholder { margin-top: 4vh; margin-bottom: 4vh; }
/* Sub-nav inside the panel */
.panel nav.subnav { padding-left: 0; padding-right: 0; padding-top: 0;
  margin-bottom: 1.5rem; }

/* Hero/inline figures inside the panel: fit panel width, no breakout */
.panel figure.hero { max-width: none; margin: 0 0 1rem; padding: 0; }
.panel figure.inline { max-width: none; margin: 3rem 0; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

/* ── Top nav ─────────────────────────────────────────────────── */
nav.topnav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule); }
nav.topnav .inner { max-width: 1100px; margin: 0 auto; padding: 0.85rem 5vw;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
nav.topnav a.brand { font-family: ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem;
  color: var(--ink); text-decoration: none; flex: 0 1 auto; }
nav.topnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
nav.topnav ul a { font-family: ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem;
  color: var(--dim); text-decoration: none; padding: 0.2rem 0;
  border-bottom: 1px solid transparent; }
nav.topnav ul a:hover, nav.topnav ul a.active { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 520px) {
  nav.topnav .inner { gap: 0.6rem; }
  nav.topnav a.brand { font-size: 0.6rem; }
  nav.topnav ul { gap: 0.9rem; }
  nav.topnav ul a { font-size: 0.62rem; }
}

/* ── Sub-nav (used on /audio/) ────────────────────────────────── */
nav.subnav { max-width: 960px; margin: 0 auto; padding: 1rem 5vw 0;
  display: flex; gap: 1.2rem; }
nav.subnav a { font-family: ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem;
  color: var(--dim); text-decoration: none; padding-bottom: 0.4rem;
  border-bottom: 1px solid transparent; }
nav.subnav a:hover, nav.subnav a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ── Masthead (for post pages) ────────────────────────────────── */
header.masthead { max-width: 960px; margin: 0 auto; padding: 6vh 5vw 0; }
header.masthead .kicker { font-family: ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem;
  color: var(--dim); margin-bottom: 1.5rem; }
header.masthead h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: normal;
  letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 1rem; }
header.masthead .deck { font-style: italic; color: var(--dim);
  font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 38ch; margin: 0; }
header.masthead .byline-top { font-style: italic; color: var(--ink);
  font-size: 0.95rem; margin: 1.4rem 0 0; }
header.masthead .byline-top a.author { color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); }
header.masthead .byline-top a.author:hover { border-bottom-color: var(--ink); }

/* ── Section page header (Audio, Video, etc.) ─────────────────── */
header.section { max-width: 960px; margin: 0 auto; padding: 5vh 5vw 0; }
header.section h1 { font-weight: normal; font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.005em; margin: 0 0 0.6rem; }
header.section p { color: var(--dim); font-style: italic; margin: 0; }

/* ── Hero figure ──────────────────────────────────────────────── */
figure.hero { max-width: 1100px; margin: 5vh auto 0; padding: 0 5vw; }
figure.hero img { width: 100%; height: auto; display: block; }
figure.hero figcaption { color: var(--dim); font-size: 0.85rem;
  font-style: italic; margin-top: 0.6rem; text-align: right; }

/* ── Body / article ───────────────────────────────────────────── */
article { max-width: 640px; margin: 0 auto; padding: 6vh 5vw 4vh; }
article h2 { font-weight: normal; font-size: 1.6rem; margin: 3.5rem 0 1.2rem;
  letter-spacing: -0.005em; }
article p { margin: 0 0 1.15rem; }
article blockquote { margin: 2rem 0; padding: 0 0 0 1.2rem;
  border-left: 2px solid var(--ink); font-style: italic; font-size: 1.15rem;
  color: var(--ink); }
article blockquote.pull { border-left: none; padding: 0; text-align: center;
  font-style: italic; font-size: 1.4rem; line-height: 1.4; color: var(--ink);
  margin: 3rem auto; max-width: 30ch; }
article hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem auto;
  max-width: 6rem; }
article em { font-style: italic; color: var(--ink); }

figure.inline { max-width: 1000px; margin: 3.5rem -180px; }
@media (max-width: 1100px) { figure.inline { margin: 3.5rem 0; } }
figure.inline img { width: 100%; height: auto; display: block; }
figure.inline figcaption { color: var(--dim); font-size: 0.85rem;
  font-style: italic; margin-top: 0.6rem; text-align: right; padding: 0 0.5rem; }

/* ── Archive / past-posts list ───────────────────────────────── */
section.archive { max-width: 640px; margin: 0 auto; padding: 4vh 5vw;
  border-top: 1px solid var(--rule); }
section.archive h2 { font-family: ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--dim); font-weight: normal; margin: 0 0 1.5rem; }
section.archive ol { list-style: none; padding: 0; margin: 0; }
section.archive li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
section.archive li:last-child { border-bottom: none; }
section.archive .num { color: var(--dim); font-size: 0.85rem; margin-right: 0.6rem;
  font-family: ui-sans-serif, system-ui, sans-serif; }
section.archive a { text-decoration: none; }
section.archive .meta { color: var(--dim); font-size: 0.85rem; font-style: italic;
  margin-left: 0.4rem; }
section.archive .home-link { display: block; margin-top: 2rem; text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.7rem; color: var(--dim); text-decoration: none; }
section.archive .home-link:hover { color: var(--ink); }

/* ── Empty / placeholder ─────────────────────────────────────── */
.placeholder { max-width: 640px; margin: 8vh auto; padding: 0 5vw; color: var(--dim);
  font-style: italic; text-align: center; }

/* ── Footer / colophon ───────────────────────────────────────── */
footer.colophon { max-width: 640px; margin: 0 auto; padding: 4vh 5vw 12vh;
  color: var(--dim); font-size: 0.9rem; border-top: 1px solid var(--rule); }
footer.colophon p { margin: 1rem 0 0; }
footer.colophon .byline { color: var(--ink); font-style: italic; }

/* ── Archive block — sits OUTSIDE the post panel, over the page bg,
   creating a clear "post over → navigation" handoff ──────────── */
aside.archive-block { position: relative; z-index: 2; max-width: 880px;
  margin: 0 auto; padding: 0 4vw; }
aside.archive-block section.archive { padding: 4vh 0 3vh;
  border-top: 2px solid var(--accent); }
aside.archive-block section.archive h2 { color: var(--accent);
  margin-bottom: 1.2rem; }

/* ── Site footer (copyright line at bottom of page) ─────────── */
footer.site-footer { max-width: 880px; margin: 1rem auto 3rem;
  padding: 0 5vw; text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); position: relative; z-index: 2; }
footer.site-footer p { margin: 0; }

/* ── Posts listing ───────────────────────────────────────────── */
.filter-bar { max-width: 760px; margin: 0 auto; padding: 1.5rem 5vw 0;
  display: flex; align-items: center; gap: 0.8rem; color: var(--dim);
  font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase; }
.filter-bar .chip { background: #1a1a1a; color: var(--ink); padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule); border-radius: 999px; }
.filter-bar a.clear { color: var(--dim); text-decoration: underline;
  text-decoration-color: var(--rule); }
.filter-bar a.clear:hover { color: var(--ink); }

.post-list { max-width: 760px; margin: 0 auto; padding: 2vh 5vw 8vh;
  list-style: none; }
.post-list li { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.post-list li:last-child { border-bottom: none; }
.post-card { display: grid; grid-template-columns: 140px 1fr; gap: 1.2rem;
  align-items: start; }
.post-card .thumb { width: 140px; aspect-ratio: 16/9; overflow: hidden;
  background: #1a1a1a; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .thumb a { display: block; width: 100%; height: 100%; }
@media (max-width: 480px) {
  .post-card { grid-template-columns: 96px 1fr; gap: 0.9rem; }
  .post-card .thumb { width: 96px; }
}
.post-card h3 { font-weight: normal; font-size: 1.4rem; margin: 0 0 0.4rem;
  letter-spacing: -0.005em; line-height: 1.2; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--ink); }
.post-card .deck { color: var(--dim); font-style: italic; margin: 0 0 0.8rem;
  font-size: 0.95rem; line-height: 1.4; }
.post-card .meta { font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem; color: var(--dim); letter-spacing: 0.05em; }
.post-card .meta a.author { color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); }
.post-card .meta a.author:hover { border-bottom-color: var(--ink); }
.post-card .meta .sep { margin: 0 0.5rem; opacity: 0.5; }

.post-empty { max-width: 640px; margin: 8vh auto; text-align: center;
  color: var(--dim); font-style: italic; padding: 0 5vw; }

/* Byline link in post body */
footer.colophon a.author { color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); }
footer.colophon a.author:hover { border-bottom-color: var(--ink); }

/* ── Playlist embeds (audio) ─────────────────────────────────── */
.playlists { max-width: 960px; margin: 0 auto; padding: 4vh 5vw; }
.playlist { margin: 0 0 5vh; }
.playlist h3 { font-weight: normal; font-size: 1.3rem; margin: 0 0 0.4rem; }
.playlist .by { color: var(--dim); font-size: 0.85rem; font-style: italic;
  margin: 0 0 1rem; }
.playlist .embeds { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) {
  .playlist .embeds.dual { grid-template-columns: 1fr 1fr; }
}
.playlist iframe { width: 100%; border: 0; display: block; background: #1a1a1a; }
.playlist iframe.spotify { height: 380px; border-radius: 12px; }
.playlist iframe.apple { height: 450px; border-radius: 12px; }
