/* Gallery Black — generated by generate-site.py, do not edit in site/ */
:root {
  --bg: #0c0c0e;
  --tile: #131316;
  --fg: #e8e8e6;
  --dim: #8a8a88;
  --accent: #e0561c; /* brand orange (#ce3400 on the covers), lifted for dark bg */
  --sans: "Ideal Sans SSm A", "Ideal Sans SSm B", system-ui, -apple-system, sans-serif;
  --sc: "Ideal Sans SSm SC A", "Ideal Sans SSm SC B", system-ui, -apple-system, sans-serif;
  --serif: "Sentinel A", "Sentinel B", Georgia, serif;
  /* Branding is Futura (matches the cover art type). System font on Apple
     devices; graceful geometric fallbacks elsewhere. */
  --brand-font: Futura, "Futura PT", "Avenir Next", "Century Gothic", var(--sans);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { font-family: var(--sans); color: var(--fg); }
a { color: var(--fg); }
a:hover { color: #fff; }

/* Tight sticky header — subscription is the site's whole point, so the single
   wordmark + subscribe buttons live in one translucent bar the covers scroll
   BEHIND (2026-07-08; replaced the separate opaque hero + the duplicate title).
   No ancestor may clip overflow (kills sticky). */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1rem 1.05rem;
  background: rgba(12, 12, 14, 0.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15);
  border-bottom: 1px solid rgba(28, 28, 32, 0.7);
}
.brand {
  font-family: var(--brand-font); font-weight: 700; line-height: 1;
  font-size: clamp(1.1rem, 3.4vw, 1.55rem); letter-spacing: 0.2em;
  text-transform: uppercase; text-decoration: none;
}
.topbar .blurb {
  font-family: var(--sc); font-variant-caps: all-small-caps; letter-spacing: 0.06em;
  color: var(--dim); font-size: 0.85rem; margin: 0; max-width: 42rem; text-align: center;
}
.players { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; margin-top: 0.15rem; }
.player {
  font-family: var(--brand-font); font-weight: 500; font-size: 0.9rem;
  letter-spacing: 0.03em; text-decoration: none; color: var(--fg); cursor: pointer;
  background: rgba(30, 30, 34, 0.7); border: 1px solid #33333a; border-radius: 0.6rem;
  padding: 0.5rem 1.05rem;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.player:hover { transform: translateY(-2px); border-color: var(--accent); color: #fff; background: #1a1a1e; }
.copy-feed.copied { border-color: var(--accent); color: var(--accent); }
#search {
  position: absolute; top: 0.95rem; right: 1rem; width: min(12rem, 32vw);
  font: inherit; font-size: 0.82rem; color: var(--fg);
  background: rgba(26, 26, 30, 0.8); border: 1px solid #2a2a2e; border-radius: 999px;
  padding: 0.3rem 0.9rem; outline: none;
}
#search:focus { border-color: #555; }
.kicker {
  font-family: var(--sc); text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.75rem; color: var(--dim);
}
.date { color: var(--dim); font-size: 0.85rem; margin-bottom: 0.7rem; }
audio { width: 100%; max-width: 24rem; height: 2.2rem; }

/* Latest episode: dismissible pill, lower right (experimental — Michael unsure). */
.latest-pill {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 15;
  display: flex; gap: 0.9rem; align-items: center; max-width: 26rem;
  background: rgba(21, 21, 24, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid #26262a; border-radius: 1.1rem;
  padding: 0.9rem 1.6rem 0.9rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.latest-pill[hidden] { display: none; }
.latest-pill img { width: 4.5rem; height: 4.5rem; flex: none; border-radius: 0.6rem; }
.latest-pill h2 { font-family: var(--serif); font-weight: 500; font-size: 1rem; margin: 0.25rem 0 0.45rem; }
.latest-pill audio { width: 15.5rem; height: 2rem; display: block; }
.pill-close {
  position: absolute; top: 0.25rem; right: 0.5rem;
  background: none; border: 0; color: var(--dim); font-size: 1.1rem;
  line-height: 1; cursor: pointer; padding: 0.15rem;
}
.pill-close:hover { color: var(--fg); }

.wall {
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 45vw), 1fr));
}
.tile {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; padding: 0; border: 0; cursor: pointer;
  background: var(--tile); overflow: hidden;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.tile:hover { transform: translateY(-6px) scale(1.03); z-index: 1; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile img.lowres { width: auto; height: auto; max-width: 100%; }
/* Hover caption (2026-07-08 feedback): number + title drop in on a gradient
   scrim at the tile's TOP edge — every cover has the wordmark baked into its
   bottom-left, so a bottom caption stacks type on type (tried it; messy).
   pointer-events: none so it never eats the click; hover-only by definition,
   so touch devices (which use the lightbox) never see it. */
.tile .tt {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1;
  padding: 0.6rem 0.75rem 2.4rem; text-align: left;
  background: linear-gradient(to bottom, rgba(8, 8, 9, 0.88) 0%, rgba(8, 8, 9, 0.55) 45%, transparent 100%);
  opacity: 0; transform: translateY(-0.45rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.tile:hover .tt, .tile:focus-visible .tt { opacity: 1; transform: translateY(0); }
.tile .tt .num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700; color: var(--accent); font-size: 0.78rem;
  letter-spacing: 0.02em; margin-right: 0.45rem;
}
.tile .tt .title {
  font-family: var(--serif); font-weight: 500; font-size: 0.95rem;
  color: var(--fg); line-height: 1.3;
}
.tile.dimmed { opacity: 0.15; }
.tile.hidden { display: none; }
.tile.flash { outline: 2px solid var(--fg); outline-offset: -2px; }

/* Index format (2026-07-06): orange zero-padded mono numbers, titles,
   ascending, flowing multi-column — matches the episode-audit artifact. */
.index { max-width: 80rem; margin: 3rem auto 4rem; padding: 0 1.5rem; }
.index h2 {
  font-family: var(--sc); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 1rem; margin-bottom: 1.4rem; color: var(--dim);
}
.index ol { list-style: none; columns: 22rem 3; column-gap: 3.5rem; }
/* Hanging indent: the number is pinned at the row's left edge and every text
   line — including wraps — starts at the same inset, so a two-line title
   aligns under its own first word, not under the number. */
.index li { position: relative; padding: 0.3rem 0 0.3rem 2.1rem; font-size: 0.95rem; break-inside: avoid; line-height: 1.45; }
.index .num {
  position: absolute; left: 0; top: 0.3rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700; color: var(--accent); font-size: 0.9em;
  letter-spacing: 0.02em; line-height: inherit;
}
.index a { text-decoration: none; }
.index a:hover { text-decoration: underline; }
.index .marker { color: #555; text-decoration: none; font-size: 0.6rem; }
.index .marker:hover { color: var(--fg); }
.index li.hidden { display: none; }

footer { text-align: center; padding: 3rem 1rem 4rem; color: var(--dim); font-size: 0.8rem; }
footer a { color: var(--dim); }
/* Easter egg: the footer © is a quiet hotspot (cursor is the only tell) that
   toggles our editor's credit. Collapsed to zero height so it leaves no gap. */
.egg { cursor: pointer; }
.credit {
  font-family: var(--sc); font-variant-caps: all-small-caps; letter-spacing: 0.08em;
  color: var(--dim); opacity: 0; max-height: 0; margin-top: 0; overflow: hidden;
  transition: opacity 0.45s ease, max-height 0.45s ease, margin-top 0.45s ease;
}
.credit.show { opacity: 1; max-height: 3rem; margin-top: 0.7rem; }

/* 404 page (Cloudflare Pages serves 404.html for unmatched routes). */
.notfound { text-align: center; padding: 6rem 1.5rem 7rem; }
.notfound .code { font-family: var(--sc); text-transform: uppercase; letter-spacing: 0.2em; color: var(--dim); font-size: 0.9rem; }
.notfound h1 { font-family: var(--brand-font); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(1.8rem, 6vw, 3rem); margin: 0.6rem 0 1rem; }
.notfound .msg { color: var(--dim); margin-bottom: 2rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  background: rgba(8, 8, 9, 0.94); padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  display: flex; gap: 2rem; align-items: center; max-width: 70rem;
  flex-wrap: wrap; justify-content: center;
}
.lightbox img { max-width: min(1000px, 55vw, 70vh); max-height: 70vh; }
.lightbox img.lowres { max-width: 250px; }
.lightbox figcaption { max-width: 24rem; }
.lightbox h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0.3rem 0; }
.lightbox #lb-desc { font-size: 0.92rem; line-height: 1.5; color: #c8c8c6; margin: 0.8rem 0; }
.lightbox #lb-link { font-size: 0.85rem; color: var(--dim); }
.lightbox #lb-link:hover { color: var(--fg); }
.lb-close, .lb-prev, .lb-next {
  background: none; border: 0; color: var(--dim); font-size: 1.6rem;
  cursor: pointer; padding: 0.5rem;
}
.lb-close { position: absolute; top: 0.8rem; right: 1.2rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--fg); }

@media (max-width: 640px) {
  /* Phone: search drops out of the corner into the stack, full width. */
  .topbar { padding: 0.85rem 0.9rem 0.9rem; gap: 0.5rem; }
  #search { position: static; width: 100%; margin-top: 0.15rem; }
  .latest-pill { left: 0.8rem; right: 0.8rem; max-width: none; }
  .latest-pill audio { width: 100%; }
  /* Lightbox on phones: single scrollable column; arrows float fixed at the
     bottom corners instead of eating flex width (they overflowed the body). */
  .lightbox { overflow-y: auto; align-items: flex-start; padding: 1rem; }
  .lightbox figure {
    flex-direction: column; flex-wrap: nowrap; gap: 1.2rem;
    align-items: center; text-align: center; margin: 2.8rem 0 4.5rem; width: 100%;
  }
  .lightbox img { max-width: 100%; max-height: 55vh; }
  .lightbox figcaption { max-width: none; padding: 0 0.5rem; }
  .lb-prev, .lb-next {
    position: fixed; bottom: 0.9rem; z-index: 2;
    width: 2.7rem; height: 2.7rem; padding: 0; font-size: 1.25rem;
    background: rgba(21, 21, 24, 0.92); border: 1px solid #26262a;
    border-radius: 999px; color: var(--fg);
  }
  .lb-prev { left: 1rem; }
  .lb-next { right: 1rem; }
}
