@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600&family=IM+Fell+English:ital@0;1&family=Share+Tech+Mono&display=swap');

:root {
  --bg:        #0d0b09;
  --bg-deep:   #080604;
  --bg-panel:  #110e0b;
  --border:    #2a1e14;
  --border-dim:#1a1208;

  --gold:      #ecd09a;
  --gold-dim:  #c09a65;
  --gold-mute: #7a6040;
  --text:      #ede0ca;
  --text-dim:  #c8b898;
  --text-mute: #9a8870;

  --purple:    #caaae8;
  --purple-b:  #6a4a88;
  --teal:      #aaced0;
  --teal-b:    #4a7878;
  --rust:      #e0aa88;
  --rust-b:    #885050;
  --amber:     #d4be90;
  --amber-b:   #887850;

  --font-display: 'Cinzel Decorative', serif;
  --font-head:    'Cinzel', serif;
  --font-body:    'IM Fell English', Georgia, serif;
  --font-mono:    'Share Tech Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.9;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Bleed layer ── */
#bleed-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bleed-word {
  position: absolute;
  font-family: var(--font-body);
  font-style: italic;
  user-select: none;
  line-height: 1;
  transition: opacity 4s ease;
}

.bleed-word.margin-left {
  left: 0;
  writing-mode: vertical-rl;
  border-left: 1px solid var(--border-dim);
  padding: 2px 0 2px 4px;
  opacity: 0.20;
  font-size: 12px;
  color: #5a4430;
}

.bleed-word.margin-right {
  right: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-right: 1px solid var(--border-dim);
  padding: 2px 4px 2px 0;
  opacity: 0.20;
  font-size: 12px;
  color: #5a4430;
}

.bleed-word.scatter {
  opacity: 0.08;
  color: #6a5040;
  pointer-events: none;
}

/* ── Layout ── */
#site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 72px;
}

/* ── Header ── */
.header-inner {
  padding: 48px 0 0;
  text-align: left;
  position: relative;
}




.header-fade-bar {
  height: 2px;
  background: linear-gradient(to right, #c09a65 0%, #7a6040 30%, transparent 75%);
  margin-bottom: 20px;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  line-height: 1.15;
  margin-bottom: 12px;
}






.header-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  margin-top: 10px;
}

.header-byline-rule {
  width: 44px;
  height: 1px;
  background: var(--gold-dim);
  flex-shrink: 0;
}

.header-byline-diamond {
  width: 5px;
  height: 5px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.header-byline-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-mute);
  text-transform: uppercase;
  white-space: nowrap;
}




/* ── Integrated nav bar ── */
.site-nav-bar {
  display: flex;
  align-items: stretch;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--gold-mute);
}

.site-nav-bar a.haunted-link {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.site-nav-bar a.haunted-link:hover {
  color: var(--gold);
  background: rgba(192,154,101,0.06);
}

.site-nav-bar a.haunted-link.active {
  color: var(--gold);
  background: rgba(192,154,101,0.08);
}

.nav-sep {
  display: flex;
  align-items: center;
  padding: 0 2px;
  color: var(--gold-mute);
  font-size: 7px;
  flex-shrink: 0;
  pointer-events: none;
}

.nav-spacer {
  flex: 1;
  min-width: 0;
}

/* ── Haunted links ── */
.haunted-link {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: color 0.1s;
}

.haunted-link:hover { color: transparent; }
a.haunted-link { color: var(--gold-dim); }

/* ── Main two-column layout ── */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  border: 1px solid var(--border);
  border-top: none;
}

/* ── Feed ── */
.feed {
  padding: 42px 42px;
  border-right: 1px solid var(--border);
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.feed-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-mute);
  text-transform: uppercase;
  white-space: nowrap;
}

.feed-rule { flex: 1; height: 1px; background: var(--border-dim); }

/* ── Entries ── */
.entry {
  padding-bottom: 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--border-dim);
}

.entry:last-child { border-bottom: none; margin-bottom: 0; }

.entry-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.tag {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid;
}

.tag-essay    { color: var(--purple); border-color: var(--purple-b); }
.tag-review   { color: var(--teal);   border-color: var(--teal-b); }
.tag-rivelium { color: var(--rust);   border-color: var(--rust-b); }
.tag-projects { color: var(--amber);  border-color: var(--amber-b); }
.tag-writings { color: #a8c4a0;       border-color: #486848; }
.tag-update   { color: #d8c8a4;       border-color: #8a7858; }

.entry-date {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-mute);
}

.entry h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.45;
  margin-bottom: 14px;
}

.entry h2 a {
  color: inherit;
  text-decoration: none;
}

.entry h2 a:hover { color: #f8e8b8; }

/* Non-italic body text for readability */
.entry-body {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.95;
  margin-bottom: 18px;
}

.entry-read {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-dim);
  text-transform: uppercase;
  text-decoration: none;
}

.entry-read::after { content: ' ›'; }

/* ── Sidebar ── */
.sidebar {
  padding: 42px 28px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sidebar-heading {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-dim);
}

/* Sidebar links kept for About etc but styled cleanly */
.sidebar-link {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-dim);
  text-decoration: none;
  margin-bottom: 12px;
  padding-left: 18px;
  position: relative;
  text-transform: uppercase;
}

.sidebar-link::before {
  content: '✦';
  position: absolute;
  left: 0;
  font-size: 9px;
  color: var(--gold-mute);
  top: 4px;
}

.sidebar-link:hover { color: var(--gold); }

/* ── Spotify widget ── */
.now-playing {
  border: 1px solid var(--border);
  padding: 16px 18px;
  background: var(--bg-deep);
}

.np-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 12px;
}

.spotify-embed-wrap { margin-top: 8px; }

.spotify-embed-wrap iframe {
  border: none;
  width: 100%;
  border-radius: 0;
  filter: grayscale(0.2) sepia(0.2);
}

/* ── Letterboxd ── */
.lb-feed { display: flex; flex-direction: column; }

.lb-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  text-decoration: none;
}

.lb-poster {
  width: 48px;
  height: 70px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lb-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.2) brightness(0.9);
}

.lb-poster-placeholder {
  width: 14px; height: 18px;
  border: 1px solid var(--border);
  opacity: 0.3;
}

.lb-title {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.45;
}

.lb-stars {
  font-size: 13px;
  color: var(--gold-dim);
  margin-top: 5px;
  letter-spacing: 1px;
}

.lb-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 3px;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--text-mute);
}

.footer-diamond {
  width: 5px; height: 5px;
  background: var(--gold-mute);
  transform: rotate(45deg);
}

.site-footnote {
  text-align: right;
  padding: 10px 0 20px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: #6a5040;
  min-height: 36px;
  transition: opacity 2s ease;
}

/* ── Post page ── */
.post-layout {
  padding: 56px 0;
  max-width: 760px;
}

.post-header { margin-bottom: 44px; }

.post-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.4;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.post-body {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 20px;
  line-height: 2;
  color: var(--text);
}

.post-body p { margin-bottom: 1.6em; }

.post-body h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  margin: 2.4em 0 1em;
  letter-spacing: 1px;
}

.post-body blockquote {
  border-left: 2px solid var(--gold-mute);
  padding-left: 26px;
  margin: 2em 0;
  color: var(--text-dim);
  font-size: 19px;
  font-style: italic;
}

/* ── Collection pages ── */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  padding: 38px 0;
}

.collection-card {
  border: 1px solid var(--border-dim);
  padding: 26px;
  background: var(--bg-panel);
  text-decoration: none;
  display: block;
  transition: border-color 0.2s;
}

.collection-card:hover { border-color: var(--gold-mute); }

.collection-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.4;
}

.collection-card p {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  #site-wrapper { padding: 0 28px; }
  .main-layout { grid-template-columns: 1fr; }
  .feed { border-right: none; border-bottom: 1px solid var(--border); }
  
.header-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  margin-top: 10px;
}

.header-byline-rule {
  width: 44px;
  height: 1px;
  background: var(--gold-dim);
  flex-shrink: 0;
}

.header-byline-diamond {
  width: 5px;
  height: 5px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.header-byline-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-mute);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav { gap: 22px; }
}

@media (max-width: 540px) {
  #site-wrapper { padding: 0 18px; }
  
.header-fade-bar {
  height: 2px;
  background: linear-gradient(to right, #c09a65 0%, #7a6040 30%, transparent 75%);
  margin-bottom: 20px;
}

.site-title { font-size: 30px; }
  .entry h2 { font-size: 20px; }
  .entry-body { font-size: 17px; }
}

/* ── Entry banners ── */
.entry {
  padding-bottom: 0;
  margin-bottom: 32px;
  border: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
  position: relative;
}

.entry:last-child { margin-bottom: 0; }

.entry-banner-link {
  display: block;
  text-decoration: none;
}

.entry-banner {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.entry-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) sepia(0.28);
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.entry:hover .entry-banner img {
  transform: scale(1.04);
  filter: brightness(0.58) sepia(0.38);
}

.entry-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 30%,
    rgba(13,11,9,0.55) 60%,
    rgba(13,11,9,0.96) 100%
  );
  pointer-events: none;
}

.entry-banner-meta {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 2;
}

.entry-banner-meta .tag {
  background: rgba(13,11,9,0.55);
}

.entry-banner-meta .entry-date {
  color: rgba(237,224,202,0.75);
  font-size: 13px;
}

.entry-body {
  padding: 0 22px 22px;
  position: relative;
  margin-top: -36px;
  z-index: 2;
}

.entry-body h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.45;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.entry-body h2 a {
  color: inherit;
  text-decoration: none;
}

.entry-body h2 a:hover { color: #f8e8b8; }

.entry-divider {
  height: 1px;
  background: var(--border-dim);
  margin-bottom: 14px;
}

.entry-excerpt {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 16px;
}

/* fallback colour bands per type when no image supplied */
.entry-banner.fallback-essay  { background: #1a1020; }
.entry-banner.fallback-review { background: #0e1a18; }
.entry-banner.fallback-lore   { background: #1a1008; }
.entry-banner.fallback-dispatch { background: #141008; }

/* ── Post hero (image-led page header) ──
   A larger banner with the post's tag, date, and title overlaid on the
   image, gradient-darkened toward the bottom for legibility. The actual
   diamond rule below the hero (.post-divider) acts as the formal break
   between header and body. */
.post-hero {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  border: 1px solid var(--border-dim);
}

.post-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) sepia(0.28) contrast(0.95);
  display: block;
}

.post-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,11,9,0)    20%,
    rgba(13,11,9,0.55) 60%,
    rgba(13,11,9,0.95) 100%
  );
  pointer-events: none;
}

.post-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 36px;
  z-index: 1;
}

.post-hero-content .post-meta { margin-bottom: 18px; }

.post-hero-content .post-title {
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.85), 0 0 6px rgba(0,0,0,0.7);
}

/* Diamond divider — used between the hero and the post body, and
   anywhere else a horizontal rule with a diamond accent is wanted.
   .header-rule itself supplies the flex layout for line + diamond + line. */
.header-rule {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-divider {
  margin: 36px auto 44px;
  max-width: 280px;
}

.header-rule-line { flex: 1; height: 1px; background: var(--border); }
.header-rule-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold-mute);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Highlight reel (homepage carousel) ── */
.highlight-reel {
  /* No bottom margin: the frame's bottom border doubles as the
     top border of .main-layout below, giving one continuous frame. */
  margin-bottom: 0;
}

.hl-counter {
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  color: var(--text-mute);
  font-size: 11px;
}

.hl-frame {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  /* No clip here — arrows sit at -21px and need to overhang */
}

.hl-stage {
  position: relative;
  width: 100%;
  min-height: 360px;
  /* Clip slides here instead, so arrows (siblings of .hl-stage) aren't cropped */
  overflow: hidden;
}

.hl-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hl-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hl-image {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.hl-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) sepia(0.38) contrast(0.95);
  display: block;
  transition: transform 0.8s ease, filter 0.4s ease;
}

.hl-slide:hover .hl-image img {
  transform: scale(1.04);
  filter: brightness(0.68) sepia(0.42) contrast(0.95);
}

.hl-image::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Two stacked gradients: a soft vertical vignette + a horizontal
     dissolve into the panel on the right. Kept gentle so the image
     reads clearly while still bleeding into the surrounding frame. */
  background:
    linear-gradient(
      180deg,
      rgba(13,11,9,0.32) 0%,
      rgba(13,11,9,0)    22%,
      rgba(13,11,9,0)    78%,
      rgba(13,11,9,0.32) 100%
    ),
    linear-gradient(
      90deg,
      rgba(17,14,11,0)    0%,
      rgba(17,14,11,0)    35%,
      rgba(17,14,11,0.55) 80%,
      var(--bg-panel)     100%
    );
  pointer-events: none;
}

.hl-info {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hl-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hl-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 14px;
  /* Cap at 2 lines so all slides settle at a similar height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hl-slide:hover .hl-title { color: #f8e8b8; }

.hl-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  max-width: 160px;
}

.hl-rule-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.hl-rule-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold-mute);
  transform: rotate(45deg);
}

.hl-excerpt {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 18px;
  /* Cap at 3 lines for height consistency */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bare floating chevrons — no box, just the arrow with a soft
   drop-shadow so it reads against bright or muted parts of the image. */
.hl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--gold-mute);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 2;
  padding: 0;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.75));
}

.hl-arrow svg {
  width: 24px;
  height: 24px;
}

.hl-arrow:hover {
  color: var(--gold);
  transform: translateY(-50%) scale(1.18);
}

.hl-arrow:focus-visible {
  outline: 1px solid var(--gold-mute);
  outline-offset: 4px;
}

/* Arrows sit fully inside the frame — overhanging at -21px made the
   frame border appear to slice through them, which read as "clipped". */
.hl-prev { left: 16px; }
.hl-next { right: 16px; }

@media (max-width: 720px) {
  .hl-stage { min-height: 0; }
  .hl-slide {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    display: none;
  }
  .hl-slide.is-active { display: grid; }
  .hl-image { height: 200px; }
  .hl-image::after {
    background: linear-gradient(
      180deg,
      rgba(17,14,11,0) 50%,
      rgba(17,14,11,0.85) 92%,
      var(--bg-panel) 100%
    );
  }
  .hl-info { padding: 24px 22px; }
  .hl-title { font-size: 21px; }
  .hl-prev { left: 8px; }
  .hl-next { right: 8px; }
}

/* ──────────────────────────────────────────────────────────────
   Mobile improvements — purely additive, all gated by media
   queries so desktop styling is untouched. Three breakpoints:
     ≤ 900px : tablet
     ≤ 720px : large phone / small tablet
     ≤ 540px : phone
   ────────────────────────────────────────────────────────────── */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  /* Trim the post-page hero so it doesn't dominate */
  .post-hero { height: 300px; }
  .post-hero-content { padding: 26px 28px; }
  .post-hero-content .post-title { font-size: 22px; }

  /* Tighter post layout & smaller body type */
  .post-layout { padding: 40px 0; }
  .post-body { font-size: 18px; line-height: 1.85; }
  .post-body h2 { font-size: 20px; }

  /* Feed & sidebar padding shrinks once they're stacked */
  .feed { padding: 32px 28px; }
  .sidebar { padding: 28px 28px; }

  /* The Spotify embed (sidebar full-width once stacked) doesn't need
     the tall card — the medium height reads cleaner here. */
  .spotify-embed-wrap iframe { height: 232px; }
}

/* ── Large phone / small tablet (≤ 720px) ── */
@media (max-width: 720px) {
  /* The vertical bleed words on the page margins crowd the content
     once the viewport is this narrow. Hide them on mobile only —
     the scattered low-opacity ones in the bleed layer remain. */
  .bleed-word.margin-left,
  .bleed-word.margin-right { display: none; }

  /* Post hero — smaller and tighter */
  .post-hero { height: 240px; }
  .post-hero-content { padding: 22px 22px; }
  .post-hero-content .post-meta { gap: 10px; margin-bottom: 12px; }
  .post-hero-content .post-title { font-size: 20px; }

  /* Body type readable on a phone column */
  .post-body { font-size: 17px; line-height: 1.8; }
  .post-body h2 { font-size: 19px; margin: 1.8em 0 0.8em; }
  .post-body blockquote { font-size: 17px; padding-left: 18px; margin: 1.5em 0; }

  /* Header byline can wrap onto two lines if needed */
  .header-byline { flex-wrap: wrap; row-gap: 6px; margin-bottom: 18px; }

  /* Nav bar — drop the diamond separators, let items wrap as a
     centered cluster instead of one tight horizontal line. */
  .site-nav-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }
  .nav-sep { display: none; }

  /* Feed entry banners get a touch shorter so each card doesn't
     take up the whole screen vertically. */
  .entry-banner { height: 140px; }

  /* Sidebar slimming */
  .sidebar { padding: 24px 22px; gap: 28px; }
}

/* ──────────────────────────────────────────────────────────────
   Podcast page (Loose Juice) — gothic chassis with citrus accents.
   Defines a single citrus accent (--citrus) scoped to .podcast-page
   so the rest of the site is unaffected.
   ────────────────────────────────────────────────────────────── */
.podcast-page {
  --citrus:     #f5a623;
  --citrus-dim: #c97b14;
  padding: 36px 0 48px;
}

.podcast-hero {
  position: relative;
  text-align: center;
  padding: 28px 24px 36px;
  margin-bottom: 12px;
}

/* Soft citrus glow behind the logo */
.podcast-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  width: min(560px, 90%);
  height: 280px;
  background: radial-gradient(
    ellipse at center,
    rgba(245,166,35,0.18) 0%,
    rgba(245,166,35,0.06) 35%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.podcast-hero-logo {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
}

.podcast-tagline {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-top: 18px;
}

.podcast-intro {
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  color: var(--text-dim);
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.podcast-intro code {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 14px;
  color: var(--text-mute);
  background: var(--bg-panel);
  padding: 1px 6px;
  border: 1px solid var(--border-dim);
}

/* Citrus diamond just for this page */
.podcast-divider {
  margin: 36px auto 36px;
  max-width: 280px;
}
.podcast-divider .header-rule-diamond { background: var(--citrus); }

/* Episode list */
.podcast-episode-list {
  max-width: 760px;
  margin: 0 auto;
}

.podcast-episode {
  padding: 36px 0;
  border-top: 1px solid var(--border-dim);
}
.podcast-episode:first-of-type { border-top: none; padding-top: 0; }

.podcast-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

/* Tag color tuned to Loose Juice's orange */
.tag-podcast {
  color: var(--citrus);
  border-color: var(--citrus-dim);
}

.podcast-episode-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.4;
  margin-bottom: 14px;
}

.podcast-episode-description {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 22px;
}

/* 16:9 responsive iframe wrapper */
.podcast-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border: 1px solid var(--border);
  overflow: hidden;
}

.podcast-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .podcast-page { padding: 24px 0 36px; }
  .podcast-hero { padding: 18px 12px 24px; }
  .podcast-hero-logo { max-width: 320px; }
  .podcast-intro { font-size: 16px; }
  .podcast-episode-title { font-size: 20px; }
  .podcast-episode-description { font-size: 16px; }
}

/* ── Phone (≤ 540px) ── */
@media (max-width: 540px) {
  /* Hero gets minimal — phone screens are narrow */
  .post-hero { height: 200px; }
  .post-hero-content { padding: 18px 18px; }
  .post-hero-content .post-title { font-size: 18px; }

  /* Layout breathing room */
  .post-layout { padding: 28px 0; }
  .post-body { font-size: 16px; line-height: 1.75; }
  .post-body h2 { font-size: 18px; }

  /* Feed entries */
  .entry-banner { height: 120px; }
  .feed { padding: 22px 18px; }

  /* Footer wraps onto two lines and drops its diamond separators */
  .site-footer { flex-wrap: wrap; gap: 8px 14px; justify-content: center; }
  .footer-diamond { display: none; }
  .footer-text { font-size: 10px; letter-spacing: 1.5px; }

  /* Header byline text — quieter at this size */
  .header-byline-text { font-size: 9px; letter-spacing: 1.5px; }

  /* Carousel arrows scale down a touch */
  .hl-arrow { width: 28px; height: 28px; }
  .hl-arrow svg { width: 20px; height: 20px; }

  /* Diamond divider tighter on small screens */
  .post-divider { margin: 28px auto 32px; max-width: 200px; }
}
