/* ==========================================================================
   ZEN — jamesreeves.co
   One centered column. Typography carries the identity:
   Bebas Neue Pro (display), IBM Plex Serif (body), IBM Plex Sans (labels).
   Values extracted from the Zen Figma comps (1500px canvas).
   ========================================================================== */

/* --- Reset (minimal) ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; border: 0; }
button { font: inherit; cursor: pointer; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote { margin: 0; }

/* --- Tokens ---------------------------------------------------------------- */

:root {
  --sans:      "ibm-plex-sans", sans-serif;
  --serif:     "ibm-plex-serif", serif;
  --display:   "bebas-neue-pro", sans-serif;
  --display-x: "bebas-neue-pro-semiexpanded", sans-serif;

  --ink:   #000;
  --paper: #fff;
  --faint: rgba(0, 0, 0, 0.15);   /* resting wordmark + dial entries */
  --dim:   rgba(0, 0, 0, 0.35);   /* marginalia resting */

  --col:      645px;    /* body text column */
  --img-max:  900px;    /* post images + hero + home tiles */
  --wide-max: 1600px;   /* footer + MR grid, at 90vw */
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
}

/* --- Sliding underline (reverb lineage) ------------------------------------
   Left-to-right hairline (1px, 30% ink — same weight as the nav
   dash/rule) on hover for links that aren't statically underlined.
   Body-copy links keep their static underline. .u-slide is added by
   zen.js to ANY text link whose computed text-decoration is none, so
   new no-underline links pick this up automatically. --- */

.site-nav-col a,
.site-footer-links a,
.post-meta a,
.marginalia a,
.marginalia-subscribe,
.u-slide {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%);
  background-repeat: no-repeat;
  background-position: left 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size 0.25s ease-in-out, color 0.2s ease;
}

.site-nav-col a:hover,
.site-footer-links a:hover,
.post-meta a:hover,
.marginalia a:hover,
.marginalia-subscribe:hover,
.u-slide:hover {
  background-size: 100% 1px;
}

/* --- Shared column helpers ------------------------------------------------- */

.post-body-col {
  width: min(var(--col), 88vw);
  margin: 0 auto;
}

/* Positioned ancestor for the document-anchored dial spanner. */
.site-main {
  position: relative;
}

/* ==========================================================================
   WORDMARK + HOVER NAV
   Resting: faint wordmark only. Hover over the top strip (or tap on
   touch — zen.js adds .is-open) reveals the nav columns + CTA and
   darkens the wordmark.
   ========================================================================== */

.site-top {
  /* Per comp: wordmark sits 100px from the top with 100px below it
     to the content's top edge. The whole strip is the hover zone. */
  padding: 65px 0;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}

.site-top-inner {
  width: min(var(--img-max), 92vw);
  margin: 0 auto;
  position: relative;
}

.wordmark {
  font-family: var(--display-x);
  font-weight: 600;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--faint);
  transition: color 0.5s ease;
}

.site-top:hover .wordmark,
.site-top.is-open .wordmark {
  color: var(--ink);
}

.site-nav {
  /* Vertically centered against the wordmark line; anchored past the
     name's widest extent. Decorations: a horizontal dash (::before)
     connecting the name to a vertical hairline (::after) at the
     columns' left edge. */
  position: absolute;
  top: 50%;
  left: 118px;
  transform: translateY(-50%);
  display: flex;
  gap: 64px;
  align-items: center;
  padding-left: 42px;   /* dash (24px) meets the rule, + 18px to columns */
  visibility: hidden;
  transition: visibility 0s linear 0.6s;
}

/* Dash: draws left→right first. */
.site-nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease 0.25s;   /* reverse: waits for columns */
}

/* Vertical hairline: grows from center once the dash lands —
   flush against the dash's end, no gap. */
.site-nav::after {
  content: "";
  position: absolute;
  left: 24px;
  top: -8px;
  bottom: -8px;
  width: 1px;
  background: rgba(0, 0, 0, 0.18);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s;
}

/* Columns + CTA: cascade in left→right — the unfurl. */
.site-nav > * {
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-top:hover .site-nav,
.site-top.is-open .site-nav {
  visibility: visible;
  transition-delay: 0s;
}

.site-top:hover .site-nav::before,
.site-top.is-open .site-nav::before {
  transform: scaleX(1);
  transition-delay: 0.06s;
}

.site-top:hover .site-nav::after,
.site-top.is-open .site-nav::after {
  transform: scaleY(1);
  transition-delay: 0.2s;
}

.site-top:hover .site-nav > *,
.site-top.is-open .site-nav > * {
  opacity: 1;
  transform: translateX(0);
}

.site-top:hover .site-nav > :nth-child(1),
.site-top.is-open .site-nav > :nth-child(1) { transition-delay: 0.28s; }
.site-top:hover .site-nav > :nth-child(2),
.site-top.is-open .site-nav > :nth-child(2) { transition-delay: 0.4s; }
.site-top:hover .site-nav > :nth-child(3),
.site-top.is-open .site-nav > :nth-child(3) { transition-delay: 0.52s; }
.site-top:hover .site-nav > :nth-child(4),
.site-top.is-open .site-nav > :nth-child(4) { transition-delay: 0.6s; }

.site-nav-col {
  display: flex;
  flex-direction: column;
  /* Links hug their text so the hover underline spans the word,
     not the column. */
  align-items: flex-start;
}

.site-nav-col a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 22px;
  color: var(--ink);
  text-decoration: none;
}



.site-nav-cta {
  max-width: 320px;
}

.site-nav-cta-title {
  font-family: var(--display-x);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  line-height: 1.4;
}

.site-nav-cta-blurb {
  font-family: var(--sans);
  font-style: italic;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 5px;
}

.site-nav-subscribe {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  padding: 6px 12px 8px;
  transition: all 0.15s ease;
}

.site-nav-subscribe:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Mobile-menu-only elements — hidden on desktop. */
.site-nav-signup-form,
.site-nav-signup-success,
.site-nav-icons {
  display: none;
}

/* ── Burger (mobile only; hidden on desktop) ──────────────────────────
   34×20, two 1px black lines. body.menu-open morphs it into an X. */
.nav-burger {
  display: none;
  position: absolute;
  top: 4px;
  right: 0;
  width: 34px;
  height: 20px;
  background: none;
  border: 0;
  padding: 0;
  z-index: 100;
}

.nav-burger span {
  position: absolute;
  left: 0;
  width: 34px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease;
}

.nav-burger span:first-child { top: 0; }
.nav-burger span:last-child  { bottom: 0; }

body.menu-open { overflow: hidden; }

body.menu-open .nav-burger span:first-child {
  transform: translateY(9.5px) rotate(45deg);
}
body.menu-open .nav-burger span:last-child {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ==========================================================================
   MR HERO — black cover block (homepage + Midnight Radio posts)
   ========================================================================== */

.mr-hero {
  position: relative;
  display: block;
  width: min(var(--img-max), 92vw);
  margin: 0 auto;
  /* Always a square: the artwork covers the full block, text overlays
     the top. MR feature images are the clean art (titles live in the
     HTML overlay, not baked in — the baked-title versions are the
     grid covers in /assets/mr/). */
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
  padding-top: 58px;
  text-decoration: none;
}

.mr-hero-eyebrow {
  position: relative;
  z-index: 2;
  font-family: var(--sans);
  font-size: clamp(12px, 2.9vw, 20px);
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0 7.3%;
}

.mr-hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 16vw, 150px);
  line-height: 0.84;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 6px 7.3% 0;
}

.mr-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   POST
   ========================================================================== */

.post {
  margin-bottom: 96px;
}

.post-image {
  width: min(80%, var(--img-max));
  margin: 0 auto;
}

.post-image img {
  width: 100%;
}

.post-body-col {
  padding-top: 56px;
}

.post-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
}

/* When the dial carries the section title (desktop), the per-post
   label is redundant — hide it. Below 1200px the dial is gone, so
   the label keeps providing context on single posts. */
@media (min-width: 1200px) {
  .site-main:has(.dial-title) .post-label { display: none; }
}

.post-title {
font-family: var(--display);
font-weight: 700;
font-size: clamp(36px, 7vw, 88px);
line-height: 0.85;
letter-spacing: 0;
text-transform: uppercase;
margin: 0 0 20px;
}

/* Stacked category indexes wrap the title in a permalink — keep it
   looking like the plain title. */
.post-title a {
  color: inherit;
  text-decoration: none;
}

/* --- Post content (Ghost-rendered) ---------------------------------------- */

.post-content p {
  margin: 0 0 1.55em;
}

.post-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #C5C5C5;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.post-content a:hover {
  text-decoration: underline;
  text-decoration-color: #000000;
  text-underline-offset: 2px;
}

/* Links carrying the sliding hairline (h4/h5 links etc.): no static
   hover underline on top of it (the a:hover rule above outranks
   `.post-content h5 a`), and restore the background-size transition —
   `.post-content a`'s text-decoration-color transition outranks
   .u-slide's, which froze the slide. */
.post-content a.u-slide {
  transition: background-size 0.25s ease-in-out, color 0.2s ease;
}

.post-content a.u-slide:hover {
  text-decoration: none;
}

.post-content h2 {
  font-size: 32px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 1.8em 0 0.6em;
}

.page-about .post-content h2 {
  font-size: 27px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 1em 0 1.1em; 
}

.post-content h3 { 
  font-size: 27px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 1.8em 0 0.6em; 
}

.post-content h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  margin: 2em 0 0.8em;
}

.post-content h5 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0em;
  margin: 2em 0 0.8em;
}

.post-content h4 a,.post-content h5 a {
  text-decoration: none;
}

.post-content blockquote {
  font-style: italic;
  padding-left: 28px;
  border-left: 1px solid var(--ink);
  margin: 1.8em 0;
}

.page-about .post-content blockquote:first-of-type {
  margin: .8em 0 1.8em;
}

.page-about .post-content ul li {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0.5em;
  }

.page-about .post-content ul li strong {
  font-family: var(--serif);
  font-size: 19px;
}

blockquote strong {
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 500;
}

.page-about .post-content blockquote {
  font-style: normal;
  padding-left: 0;
  border-left: none;
  margin: 1.8em 0;
  text-indent: -9px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.55em;
  padding-left: 1.4em;
}

.post-content li { margin-bottom: 0.5em; }
.post-content li::marker {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--dim);
}

.post-content hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 2.5em auto;
  width: 120px;
}

.post-content img {
  width: 100%;
  margin: 0 auto;
}

.post-content figure { margin: 2em 0; }

/* Captions — in-content Koenig cards AND feature images share one
   treatment: right-aligned under the image, sans, #999, black links. */
.post-content figcaption,
.post-image-caption {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: #999;
  margin-top: 10px;
}

.post-content figcaption a,
.post-image-caption a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 2px;
}

/* MR hero caption sits below the 1:1 block (the art fills it edge to
   edge), matching the hero's width. */
.mr-hero-caption {
  width: min(var(--img-max), 92vw);
  margin: 10px auto 0;
}

/* Wide + full Koenig cards break out of the text column up to img-max.
   kg-* classes are emitted by the Ghost editor at runtime — style them
   even though no template references them. */
.post-content .kg-width-wide,
.post-content .kg-width-full {
  position: relative;
  width: min(var(--img-max), 92vw);
  left: 50%;
  transform: translateX(-50%);
}

.post-content .kg-audio-card {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0;
  margin: 2em 0;
}

.post-content .kg-embed-card,
.post-content .kg-gallery-card {
  margin: 2em 0;
}

/* --- Meta line: date • Comments … arrows ----------------------------------- */

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
}

.post-meta a {
  color: inherit;
  text-decoration: none;
}



.post-meta-sep { color: var(--dim); }

.post-arrows {
  margin-left: auto;
  display: flex;
  gap: 14px;
}

.post-arrows img { height: 12px; width: auto; }

.post-arrows a { opacity: 0.75; transition: opacity 0.15s ease; }
.post-arrows a:hover { opacity: 1; }
.post-arrows a[hidden] { display: none; }

/* --- Comments: collapsed behind the meta-line toggle ----------------------- */

.post-meta-comments {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.comments-body {
  margin-top: 12px;
}

.comments-body[hidden] { display: none; }

/* ==========================================================================
   DIAL — left rail, siblings within the current category
   60vh window, current entry centered (zen.js), fades at both ends.
   ========================================================================== */

.dial {
  /* Spanner: anchored at the first paragraph of copy (top set by
     zen.js) and stretching to the bottom of <main>, so the sticky
     window inside can travel with the reader. */
  position: absolute;
  left: 30px;
  top: 0;      /* real value set by zen.js: top of .post-content */
  bottom: 0;
  width: 240px;
  z-index: 5;
  pointer-events: none;   /* the spanner is invisible; window opts in */
  transition: opacity 0.35s ease;
}

/* Hidden until zen.js has aligned it against the loaded feature
   image — otherwise it flashes at the wrong spot on first paint.
   (.is-ready comes BEFORE the hide states so they still win.) */
.dial { opacity: 0; }
.dial.is-ready { opacity: 1; }

/* zen.js fades the dial while the MR grid / footer is in view so the
   rail never sits on top of them. */
.dial.is-hidden { opacity: 0; }
.dial.is-hidden .dial-window { pointer-events: none; }

/* Scroll-direction fade (zen.js dialFade) — separate class from
   .is-hidden so it can't fight the grid/footer observer. */
.dial.is-asleep { opacity: 0; }
.dial.is-asleep .dial-window { pointer-events: none; }

.dial-window {
  /* Starts aligned to the copy top, sticks 48px from the viewport
     top once the reader scrolls past. Scrollable when the list is
     taller than the window (scrollbar hidden — the edge fades are
     the affordance). */
  position: sticky;
  top: 48px;
  height: min(80vh, calc(100vh - 96px));
  overflow-y: auto;
  scrollbar-width: none;
  pointer-events: auto;
  /* Soft white fades at both ends — stands in for the comp's gradient
     overlays without extra elements. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 72px, #000 calc(100% - 96px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 72px, #000 calc(100% - 96px), transparent);
}

.dial-window::-webkit-scrollbar { display: none; }

/* Section title: sits INSIDE the scroll content, directly above the
   first entry (20px to the rule, 20px to the entry — per comp), so it
   scrolls away with the list. Clickable — back to the section index.
   Its top margin carries the list's breathing room. */
.dial-title {
display: inline-block;
font-family: var(--display-x);
font-weight: 500;
font-size: 20px;
line-height: 20px;
color: var(--ink);
text-decoration: none;
letter-spacing: 0.5px;
/* Top buffer = the window's 72px fade-in zone, so the title is fully
   legible at rest. zen.js aligns the rail by MEASURING where the
   current entry lands, so no half-window padding is needed here. */
margin: 72px 0 20px;
}

.dial-title::after {
  content: "";
  display: block;
  width: 25px;
  height: 1px;
  background: var(--ink);
  margin-top: 20px;
}

.dial-list {
  display: flex;
  flex-direction: column;
  /* End buffers match the mask fade zones (72px top / 96px bottom):
     scrolling stops with the first/last entry just clear of the
     fades — no dead space beyond. Centering clamps at the ends;
     zen.js measures the clamped position when aligning the rail. */
  padding: 72px 0 96px;
}

/* When the title is present it carries the top breathing room. */
.dial-title + .dial-list { padding-top: 0; }

.dial-list a {
  font-family: var(--display-x);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.dial-list a:hover { color: var(--ink); }
.dial-list a.is-current { color: var(--ink); }

/* ==========================================================================
   MARGINALIA — right rail on MR posts (Download / Podcast / Tracklist /
   Subscribe). zen.js populates the links and fades the rail on scroll.
   ========================================================================== */

/* The post--mr article hosts the absolutely-anchored rail. */
.post--mr {
  position: relative;
}

#tracklist li {
  font-family: var(--sans);
  font-size: 12px;
  margin-bottom: 0.9em;
  line-height: 1.4;
  color: var(--dim);
}

#tracklist li strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 19px;
}

.marginalia {
  /* Anchored at the first paragraph of copy (top set by zen.js),
     horizontally at the RIGHT EDGE of the 900px hero: 50% + half the
     hero width + a breath. Fades via .is-hidden (zen.js). */
  position: absolute;
  left: calc(50% + min(calc(var(--img-max) / 2), 46vw) + 14px);
  top: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.marginalia.is-hidden {
  opacity: 0;
}

.marginalia.is-hidden .marginalia-inner {
  pointer-events: none;
}

.marginalia-inner {
  /* Not sticky: the rail lives at its anchored spot (copy top) and
     scrolls with the page. zen.js fades it out on scroll-down and
     back in when this block re-enters the viewport on scroll-up. */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
}

/* The cloned Download/Podcast anchors arrive as inline <a>s — stack
   them one per line like the rest of the rail. */
.marginalia #marginaliaLinks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.marginalia a,
.marginalia-subscribe {
  font-family: var(--display-x);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  /* Button reset via background-COLOR — the `background` shorthand
     would wipe the sliding-underline gradient. Keep the 2px bottom
     padding the underline rides on, and transition background-size
     so it slides rather than snaps. */
  background-color: transparent;
  border: 0;
  padding: 0 0 2px;
  transition: background-size 0.25s ease-in-out, color 0.4s ease;
}

.marginalia a:hover,
.marginalia-subscribe:hover { color: var(--ink); }

/* ==========================================================================
   MR GRID — every episode cover, 12 per row, 90vw / max 1600
   ========================================================================== */

.mr-grid {
  width: min(90vw, var(--wide-max));
  margin: 110px auto 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

/* Below ~1300px viewport, 12 columns would drop tiles under 90px —
   switch to auto-fill so they wrap instead. */
@media (max-width: 1300px) {
  .mr-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

.mr-grid-tile {
  display: block;
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
}

.mr-grid-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.mr-grid-tile:hover img { opacity: 0.82; }

/* ==========================================================================
   HOMEPAGE TILES
   ========================================================================== */

.home-tiles {
  width: min(var(--img-max), 92vw);
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.home-tiles-row {
  display: grid;
  gap: 20px;
}

.home-tiles-row--halves { grid-template-columns: 1fr 1fr; }
.home-tiles-row--split  { grid-template-columns: 631fr 250fr; }

.home-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
}

.home-tile--tall   { aspect-ratio: 440 / 500; }
.home-tile--wide   { aspect-ratio: 631 / 250; }
.home-tile--square { aspect-ratio: 1 / 1; }

.home-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.home-tile:hover img {
  transform: scale(1.015);
  opacity: 0.9;
}

.home-tile-title {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 48px;
  line-height: 42px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper);
  z-index: 2;
}

/* ==========================================================================
   INDEX FALLBACK LIST (rarely seen — /page/N/ of the root collection)
   ========================================================================== */

.index-list {
  width: min(var(--col), 88vw);
  margin: 0 auto 96px;
  display: flex;
  flex-direction: column;
}

.index-list-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.index-list-title {
  font-family: var(--display-x);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.index-list-date {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}

/* ==========================================================================
   FOOTER — one line: wordmark, links, icons. 90vw / max 1600.
   ========================================================================== */

.site-footer {
  width: min(90vw, var(--wide-max));
  margin: 110px auto 0;
  padding: 40px 0 44px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.wordmark--footer,
.site-top:hover ~ * .wordmark--footer {
  color: var(--ink);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-footer-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
  color: var(--ink);
  text-decoration: none;
}



.site-footer-icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-footer-icons img { height: 22px; width: auto; }
.site-footer-icons a { opacity: 0.9; transition: opacity 0.15s ease; }
.site-footer-icons a:hover { opacity: 1; }

/* Icon buttons invert on hover like the text buttons: the source art
   is white-on-black, so flip it and draw the black keyline on the
   ANCHOR — on the img the filter would invert the keyline to white. */
.site-footer-icons a:hover img,
.site-nav-icons a:hover img {
  filter: invert(1);
}

.site-footer-icons a:hover,
.site-nav-icons a:hover {
  /* offset 0 keeps the keyline just OUTSIDE the img — inset, the
     inverted (white-edged) art would paint over it. */
  outline: 1px solid var(--ink);
}

/* ==========================================================================
   SIGNUP MODAL — the only subscribe UI on the site.
   Page blurs behind a white card. Opened by any [data-signup] trigger
   (zen.js); closed by Esc or clicking the overlay.
   ========================================================================== */

.signup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.signup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.signup-card {
  background: var(--paper);
  border-radius: 10px;
  width: min(593px, 92vw);
  margin-top: 22vh;
  padding: 34px 47px 44px;
}

.signup-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 50px);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.signup-blurb {
  font-family: var(--sans);
  font-style: italic;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.4;
  max-width: 400px;
}

.signup-form {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 44px;
}

.signup-input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: none;
  font-family: var(--sans);
  font-size: 14px;
  padding: 6px 0;
  outline: none;
}

.signup-input::placeholder { color: var(--dim); }

.signup-button {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 9px 33px;
  transition: background 0.15s ease, color 0.15s ease;
}

.signup-button:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Ghost's members script sets .success / .error on the FORM.
   Success: swap the form for the confirmation line. */
.signup-success,
.signup-error {
  display: none;
  font-family: var(--sans);
  font-size: 14px;
  margin-top: 24px;
}

.signup-card:has(.signup-form.success) .signup-form { display: none; }
.signup-card:has(.signup-form.success) .signup-success { display: block; }
.signup-form.error ~ .signup-error { display: block; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Rails need room: below 1200px the dial + marginalia would collide
   with the content column. */
@media (max-width: 1199px) {
  .dial { display: none; }
  .marginalia { display: none; }
}

@media (max-width: 899px) {
  .site-top {
    padding: 28px 25px 20px;
    margin-bottom: 28px;
  }

  .post-content h3:first-of-type { margin: 0 0 0.3em}
  .post-content p { font-size: 17px; line-height: 1.5; margin-bottom: 1em; }
  li strong { font-size: 15px; line-height: 1.5; }

  .site-top-inner { width: 100%; }

  /* Full-ink 24px wordmark (no faint state on mobile). */
  .wordmark,
  .site-top:hover .wordmark {
    font-size: 24px;
    letter-spacing: 0.96px;
    color: var(--ink);
  }

  .nav-burger { display: block; }

  /* The nav becomes a full-screen white menu, opened by the burger
     (body.menu-open, set by zen.js). Desktop hover must not trigger
     it — hence gating on body class only. */
  .site-nav,
  .site-top:hover .site-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 96px 25px 36px;
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
  }

  /* The open state must beat the mobile hidden rule ABOVE, whose
     `.site-top:hover .site-nav` variant carries (0,3,0) specificity —
     and touch browsers emulate sticky :hover on tap, so the hover
     path is live on phones too. Match it on both selectors. */
  body.menu-open .site-nav,
  body.menu-open .site-top:hover .site-nav {
    opacity: 1;
    visibility: visible;
  }

  /* Neutralize the desktop unfurl inside the mobile menu: no
     linework, children fully visible with no stagger. */
  .site-nav { align-items: flex-start; }
  .site-nav::before,
  .site-nav::after { display: none; }
  .site-nav > *,
  .site-top:hover .site-nav > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav-col { gap: 0; }

  .site-nav-col a {
    font-size: 17px;
    line-height: 38px;
  }

  .site-nav-cta {
    margin-top: 56px;
    max-width: none;
  }

  .site-nav-cta-title { font-size: 17px; }

  .site-nav-cta-blurb {
    font-size: 12px;
    max-width: 340px;
  }

  /* Mobile menu: inline members form instead of the modal button. */
  .site-nav-subscribe { display: none; }

  .site-nav-signup-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 18px;
    max-width: 380px;
  }

  .site-nav-signup-input {
    flex: 1;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    background: none;
    font-family: var(--sans);
    font-size: 14px;
    padding: 6px 0;
    outline: none;
  }

  .site-nav-signup-input::placeholder { color: var(--dim); }

  .site-nav-signup-go {
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 5px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    padding: 8px 21px;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .site-nav-signup-go:hover {
    background: var(--paper);
    color: var(--ink);
  }

  .site-nav-signup-form.success { display: none; }
  .site-nav-signup-form.success ~ .site-nav-signup-success {
    display: block;
    font-family: var(--sans);
    font-size: 14px;
    margin-top: 18px;
  }

  .site-nav-icons {
    display: flex;
    gap: 14px;
    margin-top: auto;
    padding-top: 48px;
  }

  .site-nav-icons img { height: 28px; width: auto; }

  .post-image { width: 100%; }
  .post-title { margin-bottom: 14px; }

  .home-tiles-row--halves,
  .home-tiles-row--split { grid-template-columns: 1fr; }
  .home-tile--wide { aspect-ratio: 631 / 320; }

  /* Footer collapses to wordmark + burger, mirroring the header. */
  .site-footer {
    width: 100%;
    padding: 28px 25px 36px;
    position: relative;
    align-items: center;
    justify-content: space-between;
  }
  .site-footer-links,
  .site-footer-icons { display: none; }
  .nav-burger--footer {
    position: static;
    flex-shrink: 0;
  }
}
