/* ==========================================================================
   My Strange Bible — static mockup stylesheet
   Mobile-first. Dark, atmospheric, slightly aged. Ready for a WP theme port.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Hell Print";
  src: url("../fonts/Hell-Print.otf") format("opentype"),
       url("../fonts/Hell-Print.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #0f171d;
  --bg-2: #1a2428;
  --bg-3: #212d32;
  --text: #e6e6e6;
  --text-muted: #aab4b9;
  --text-dim: #7f8b91;
  --teal: #14262c;
  --teal-2: #1d3a42;
  --wood: #3d2b1f;
  --wood-2: #5a3f2c;
  --wood-3: #2a1c14;
  --gold: #a6894c;
  --gold-2: #c4a45f;
  --amber: #d9a441;
  --amber-glow: rgba(217, 164, 65, 0.55);
  --line: rgba(230, 230, 230, 0.10);

  --font-display: "Hell Print", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-mono: "Special Elite", "Courier Prime", "Courier New", Courier, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 72rem;
  --gutter: 1.25rem;
  --radius: 4px;
  --safe-top: constant(safe-area-inset-top);
  --safe-top: env(safe-area-inset-top, 0px);
  --header-h: 4rem;
  --header-offset: calc(var(--header-h) + var(--safe-top));

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  /* Reserve space for fixed header (incl. notch). */
  padding-top: var(--header-offset);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overscroll-behavior-y: none;
}

/* Subtle film grain over the whole page, keeps the dark UI from feeling flat. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50; /* below fixed header; was 9999 and stacked over the safe-area mask */
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: #fff; }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 400; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: #fff; }
em { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; outline-color: #fff; }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */
.wordmark,
.display,
.brand__mark {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  text-wrap: balance;
}

.wordmark {
  font-size: clamp(2.8rem, 13vw, 6rem);
  line-height: 0.95;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.55);
}

.display--lg { font-size: clamp(2rem, 6vw, 3.5rem); }
.display--md { font-size: clamp(1.6rem, 4.5vw, 2.5rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.eyebrow--gold { color: var(--gold-2); }

.hosts {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text-muted);
  margin: 0.9rem 0 0;
}
.hosts--sm { font-size: 0.95rem; margin-top: 0.5rem; }

.meta,
.episode__meta,
.episode__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono); /* Special Elite — sitewide pill standard */
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.tag__label {
  display: block;
  letter-spacing: 0.05em;
  margin-right: -0.05em;
  /* Keep btn-center-6 optical for Special Elite. */
  transform: translateY(0.14em);
}
.tag--article { color: var(--text); border-color: rgba(230, 230, 230, 0.22); }
.tag--video   { color: var(--text); border-color: rgba(230, 230, 230, 0.22); }

/* Thin gilt hairline used as a section divider */
.gilt-line,
.section-head::after {
  content: "";
  display: block;
  height: 1px;
  width: 6rem;
  margin: 1.5rem 0 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), transparent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 2.75rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: center;
  text-transform: lowercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transform: none;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn__label {
  display: block;
  letter-spacing: 0.05em;
  /* Cancel trailing tracking so the ink is horizontally centered. */
  margin-right: -0.05em;
  /* Special Elite ink sits high in the em-box on no-descender labels
     (listen/watch). 0.08em still ~1px high in Steve crop; 0.14em. */
  transform: translateY(0.14em);
}
.btn--sm {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.btn--primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 0 rgba(217, 164, 65, 0);
  transition: box-shadow 220ms var(--ease), filter 180ms var(--ease), transform 180ms var(--ease);
}
.btn--primary:hover {
  filter: brightness(1.08);
  color: var(--bg);
  box-shadow: 0 0 22px rgba(217, 164, 65, 0.35);
}

.btn--ghost {
  background: rgba(15, 23, 29, 0.35);
  border-color: rgba(230, 230, 230, 0.35);
  color: var(--text);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  border-color: var(--amber);
  color: #fff;
  background: rgba(217, 164, 65, 0.08);
  box-shadow: 0 0 18px rgba(217, 164, 65, 0.18);
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-top: var(--safe-top);
  min-height: var(--header-offset);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

/* Extra paint over the status bar / Dynamic Island (and a hair below) so iOS overscroll
   cannot flash hero content above the menu. */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: max(var(--safe-top), 1px);
  background: var(--bg);
  pointer-events: none;
}

/* Full-bleed top shield: covers the physical safe area even if sticky/fixed paint fails. */
body > .safe-top-shield {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-top);
  min-height: 0;
  background: var(--bg);
  z-index: 1001;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.brand__mark {
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}
.brand:hover .brand__mark { color: #fff; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.25rem;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: background-color 150ms var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease);
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.site-nav.is-open { display: block; }
.site-header.is-open { background: var(--bg); }

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: min(100%, var(--container));
  margin-inline: auto;
}
.site-nav__list a:not(.btn) {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav__list a:not(.btn):hover { color: #fff; }
.site-nav__list a[aria-current="true"] { color: var(--gold-2); }
.site-nav__cta { margin-top: 0.75rem; }

@media (min-width: 48em) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav__list { width: auto; margin: 0; }
  .site-nav__list { flex-direction: row; align-items: center; gap: 1.75rem; }
  .site-nav__list a:not(.btn) { padding: 0.25rem 0; font-size: 0.9rem; }
  .site-nav__list a:not(.btn):hover { border-bottom-color: var(--text-dim); }
  .site-nav__list a[aria-current="true"] { border-bottom-color: var(--gold); }
  .site-nav__cta { margin: 0 0 0 0.5rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  /* Bottom padding reserves room for the Bible in the plate (anchored bottom). */
  padding: clamp(2.5rem, 7vh, 5rem) 0 clamp(11rem, 30vh, 18rem);
  overflow: hidden;
  background: var(--bg);
}

/* The plate has a small wordmark baked into its top edge; pulling the layer
   upward by 12% crops it out while keeping the Bible anchored to the bottom. */
.hero__bg {
  position: absolute;
  inset: -12% 0 0 0;
  z-index: -3;
  background-image: url("../assets/msb-background.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  filter: saturate(0.95);
  transform-origin: 50% 100%;
  animation: hero-zoom 40s linear both;
}

/* Intro-video feel: page opens near-black, then the plate and title come up.
   Zoom keeps its origin on the Bible so the book creeps toward the viewer. */
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* Darken the top so the wordmark stays legible over the bokeh, keep the Bible
   bright at the bottom, and put a soft warm spotlight behind the title. */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 40% at 50% 26%, rgba(217, 164, 65, 0.10), transparent 70%),
    radial-gradient(120% 70% at 50% 100%, transparent 40%, rgba(15, 23, 29, 0.55) 100%),
    radial-gradient(90% 90% at 50% 45%, transparent 55%, rgba(10, 16, 20, 0.75) 100%),
    linear-gradient(180deg, rgba(12, 20, 25, 0.88) 0%, rgba(15, 23, 29, 0.45) 40%, rgba(15, 23, 29, 0.05) 75%, rgba(15, 23, 29, 0.35) 100%);
}

/* Fade-from-black curtain, mirrors the intro video's opening. */
.hero__curtain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #070b0e;
  pointer-events: none;
  animation: hero-curtain 2.2s ease-in-out 0.1s both;
}
@keyframes hero-curtain {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}

/* Ember drift. Each span is one warm particle; JS randomises position, size,
   and timing via custom properties. Purely decorative. */
.hero__embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ember {
  --x: 50%;
  --size: 4px;
  --dur: 14s;
  --delay: 0s;
  --drift: 20px;
  --peak: 0.7;
  position: absolute;
  left: var(--x);
  bottom: -2%;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, #ffe8b0 0%, var(--amber) 40%, transparent 75%);
  box-shadow: 0 0 calc(var(--size) * 2) var(--amber-glow);
  opacity: 0;
  filter: blur(0.4px);
  will-change: transform, opacity;
  animation: ember-rise var(--dur) linear var(--delay) infinite;
}
.ember--soft {
  filter: blur(2px);
  background: radial-gradient(circle, rgba(255, 232, 176, 0.9) 0%, var(--amber-glow) 45%, transparent 75%);
}
@keyframes ember-rise {
  0%   { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12%  { opacity: var(--peak); }
  50%  { transform: translate3d(var(--drift), -55vh, 0) scale(1); }
  85%  { opacity: calc(var(--peak) * 0.5); }
  100% { transform: translate3d(calc(var(--drift) * -0.6), -110vh, 0) scale(0.7); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 60rem;
}

.hero__content > * {
  animation: hero-rise 1.4s var(--ease) both;
}
.hero__content > .eyebrow      { animation-delay: 1.3s; }
.hero__content > .wordmark     { animation-delay: 0.8s; animation-duration: 2.2s; }
.hero__content > .hosts        { animation-delay: 1.5s; }
.hero__content > .hero__pitch  { animation-delay: 1.7s; }
.hero__content > .hero__actions{ animation-delay: 1.9s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.hero__pitch-line { display: block; color: var(--gold-2); }

.hero__pitch {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--text);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__actions .btn { min-width: 11rem; }

/* Wooden "table edge" that carries the artwork's desk into the page below. */
.hero__shelf,
.site-footer__wood {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 45%, rgba(0, 0, 0, 0.25)),
    repeating-linear-gradient(90deg, transparent 0 180px, rgba(0, 0, 0, 0.35) 180px 182px),
    repeating-linear-gradient(88deg,
      var(--wood) 0 6px, var(--wood-3) 6px 8px, var(--wood) 8px 19px,
      var(--wood-2) 19px 21px, var(--wood) 21px 34px, var(--wood-3) 34px 35px);
}

.hero__shelf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  z-index: 1;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.45);
}

@media (min-width: 48em) {
  .hero {
    padding-top: clamp(3rem, 8vh, 6rem);
    padding-bottom: clamp(14rem, 36vh, 24rem);
  }
}

/* --------------------------------------------------------------------------
   What's new — articles & videos (primary feed)
   -------------------------------------------------------------------------- */
.new {
  position: relative;
  padding: 1.75rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}

/* Lead card. Sits over the hero's table edge; no gilt frame, the artwork and
   the primary button carry the gold. */
.feature-card {
  position: relative;
  margin-top: 0.75rem;
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.feature-card__art {
  width: min(100%, 18rem);
  margin-inline: auto;
}

.feature-card__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  outline: 1px solid rgba(230, 230, 230, 0.08);
  outline-offset: -1px;
}

.feature-card__art--square img {
  aspect-ratio: 1 / 1;
}

.feature-card__body .display { margin-bottom: 0.75rem; }
.feature-card__body .meta { margin-bottom: 1rem; }

.feature-card__link {
  color: inherit;
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.feature-card__link:hover { color: #fff; }

.feature-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 48em) {
  .new { padding-top: 2.5rem; }
  .feature-card__art { width: 100%; }
  .feature-card {
    grid-template-columns: minmax(14rem, 18rem) 1fr;
    align-items: center;
    gap: 2.25rem;
    padding: 2rem;
    margin-top: 1rem;
  }
}

@media (min-width: 64em) {
  .feature-card { grid-template-columns: 20rem 1fr; padding: 2.5rem; }
}

/* --------------------------------------------------------------------------
   Sections (generic)
   -------------------------------------------------------------------------- */
.section-head { margin-bottom: 2.5rem; }
.section-head .display { margin-bottom: 0.75rem; }
.section-head__lede { max-width: 40rem; color: var(--text-muted); }

/* Heading that follows the lead card rather than opening a section. */
.section-head--inline { margin-top: 3.5rem; }
.section-head--inline .display--lg { font-size: clamp(1.6rem, 4.5vw, 2.5rem); }

/* Post grid ------------------------------------------------------------- */
.post-grid {
  display: grid;
  gap: 1rem;
}

.post__thumb {
  position: relative;
  z-index: 1;
  display: block;
  margin: -1.35rem -1.35rem 1.1rem;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.post__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post__actions { position: relative; z-index: 1; }
.post__meta { position: relative; z-index: 1; }

@media (min-width: 40em) {
  .post-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}


.post__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.35rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.post__card:hover {
  background: var(--bg-3);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.post__kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.8rem;
}
.post__ref {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.post__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.post__title a::after {
  /* Whole card is clickable via the title link. */
  content: "";
  position: absolute;
  inset: 0;
}
.post { position: relative; }
.post__card:hover .post__title a { color: #fff; }

.post__blurb {
  color: var(--text-muted);
  font-size: 0.98rem;
  flex: 1 1 auto;
  margin-bottom: 1.1rem;
}

.post__meta {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.post__companion {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  text-decoration: none;
}
.post__companion::before { content: "\2192\00a0"; }
.post__companion:hover { color: var(--gold-2); }

.post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.post__action {
  color: var(--gold-2);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.post__action:hover { color: #fff; }

.tag--article {
  color: var(--text);
  border-color: rgba(230, 230, 230, 0.28);
}
.tag--video {
  color: var(--gold-2);
  border-color: rgba(201, 162, 39, 0.45);
}


.new__more { margin-top: 2.5rem; text-align: center; }

@media (min-width: 40em) {
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 64em) {
  .post-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Podcast — from the archive (compact, secondary)
   -------------------------------------------------------------------------- */
.podcast {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(29, 58, 66, 0.55), transparent 70%),
    radial-gradient(50% 35% at 10% 100%, rgba(29, 58, 66, 0.35), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.podcast__inner {
  display: grid;
  gap: 2.5rem;
}

.podcast__head .display { margin-bottom: 0.75rem; }

.podcast__art {
  margin: 0 0 1.35rem;
  max-width: 14.5rem;
}
.podcast__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  outline: 1px solid rgba(230, 230, 230, 0.08);
}

@media (min-width: 56em) {
  .podcast__art { max-width: 18rem; }
}


.podcast__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}
.podcast__rss {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-muted);
}
.podcast__rss:hover { color: #fff; }

/* Episode rows: quieter than the post cards on purpose. */
.episode-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.episode + .episode { border-top: 1px solid var(--line); }

.episode__link {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms var(--ease);
}
.episode__link:hover { background: rgba(230, 230, 230, 0.03); }

.episode__num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: right;
}
.episode__body { display: grid; gap: 0.15rem; min-width: 0; }
.episode__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 150ms var(--ease);
}
.episode__link:hover .episode__title { color: #fff; }
.episode__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.episode__play {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(230, 230, 230, 0.2);
  color: var(--text-muted);
  transition: color 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.episode__link:hover .episode__play {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

.podcast__more {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-top: -1rem;
}
.podcast__more a { color: var(--text-muted); text-decoration: none; }
.podcast__more a:hover { color: var(--gold-2); }

@media (min-width: 56em) {
  .podcast__inner {
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    grid-template-areas:
      "head list"
      "head more";
    gap: 1.5rem 4rem;
    align-items: start;
  }
  .podcast__head { grid-area: head; position: sticky; top: calc(var(--header-offset) + 2rem); }
  .episode-list  { grid-area: list; }
  .podcast__more { grid-area: more; margin-top: 0; }
}


/* --------------------------------------------------------------------------
   Rightly promo — big house ad
   -------------------------------------------------------------------------- */
.promo {
  padding: 1.5rem 0 4.5rem;
  background: var(--bg);
}

.promo__card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.promo__kicker { margin-bottom: 0.75rem; }

.promo__title {
  margin-bottom: 1rem;
  max-width: 18ch;
}

.promo__title em {
  font-style: normal;
  color: var(--gold-2);
}

.promo__lede {
  max-width: 40rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

.promo__points {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 2rem;
  max-width: 36rem;
}

.promo__points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
  font-size: 0.98rem;
}

.promo__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.promo__actions .btn { min-width: 11rem; }

@media (min-width: 48em) {
  .promo { padding: 2rem 0 5rem; }
  .promo__card { padding: 3rem 3.25rem; }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(70% 60% at 85% 50%, rgba(29, 58, 66, 0.45), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}

.about__inner {
  display: grid;
  gap: 2.5rem;
}

.about__text .display { margin-bottom: 1.25rem; }
.about__text p { color: var(--text); }

.about__quote {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about__quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.about__quote-text em { font-style: normal; color: var(--gold-2); display: block; }

@media (min-width: 56em) {
  .about__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--bg);
  color: var(--text-muted);
}

.site-footer__wood { height: 10px; }

.site-footer__inner {
  display: grid;
  gap: 1.75rem;
  padding: 3rem 0 2.5rem;
}

.brand__mark--footer { font-size: 1.6rem; margin: 0; }

.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text);
  text-decoration: none;
}
.site-footer__nav a:hover { color: var(--gold-2); }

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

@media (min-width: 48em) {
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
  }
  .site-footer__nav ul { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Article pages (/articles/*.html)
   -------------------------------------------------------------------------- */
.article {
  padding: 5.5rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-2), var(--bg) 35%);
}

.article__inner {
  max-width: 42rem;
}

.article__title {
  margin: 0.35rem 0 0.75rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.article__backlink {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article__backlink a {
  color: var(--gold-2);
}

.article__backlink--foot {
  margin-top: 2.5rem;
}

.article__actions {
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.article__body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.article__body p {
  margin: 0 0 1.15rem;
}

.article__body h2,
.article__body h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 1.75rem 0 0.75rem;
  line-height: 1.2;
}

.article__body blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 3px solid var(--gold);
  color: var(--text-muted);
  font-style: italic;
}

.article__body ul,
.article__body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.article__body li {
  margin: 0.35rem 0;
}

.article__chapters {
  list-style: none;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article__chapters li {
  margin: 0.4rem 0;
  padding-left: 0;
}

.article__nav {
  margin: 2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.article__nav a {
  color: var(--gold-2);
  text-decoration: none;
}

.article__nav a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero__curtain,
  .hero__embers { display: none; }
}

/* ==========================================================================
   Video feature — side-by-side, video owns most of the card
   (higher specificity + last in file so 20rem column rules cannot win)
   ========================================================================== */
.feature-card.feature-card--video {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.1rem;
}

.feature-card.feature-card--video .feature-card__art {
  width: 100%;
  max-width: none;
  margin: 0;
}

.feature-card.feature-card--video .feature-card__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 48em) {
  .feature-card.feature-card--video {
    grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr);
    align-items: center;
    gap: 1.75rem 2rem;
    padding: 1.5rem;
  }
}

@media (min-width: 64em) {
  .feature-card.feature-card--video {
    grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr);
    padding: 1.75rem;
  }
}
