/* ===== Single Post ================================================ */
:root {
  --brand: #dac2a9;
  --brand-600: #c5ab90;
  --ink: #222;
  --ink-weak: #5a5a5a;
  --paper: #fff;
  --paper-alt: #f7f5f2;
  --header-bg: rgba(24, 24, 24, 0.72);
}

/* Header color behavior for image hero:
   - at top: transparent header, WHITE links
   - after scroll: dark header, WHITE links */
.site-header:not(.scrolled) .primary-nav a {
  color: #fff;
}
.site-header:not(.scrolled) .nav-toggle {
  color: #fff;
}
/* mobile dropdown always white (dark sheet) */
@media (max-width: 880px) {
  .site-header .primary-nav a {
    color: #fff;
  }
  .site-header .nav-toggle {
    color: #fff;
  }
}

/* ===== HERO ======================================================== */
.post-hero {
  position: relative;
  min-height: clamp(44vh, 56vh, 68vh);
  display: grid;
  align-items: end;
  color: #fff;
}
.post-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.post-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.72)
  );
  z-index: -1;
}
.post-hero-inner {
  padding: clamp(88px, 12vh, 120px) 0 clamp(22px, 5vh, 36px);
  max-width: min(92%, 900px);
}
.post-title {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.post-meta {
  margin: 0;
  color: #ecebe7;
  font: 500 14px/1.4 'Inter', system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
}

/* ===== BODY / PROSE =============================================== */
.post-main {
  background: #fff;
}
.post-body {
  max-width: min(90vw, 760px);
  padding: clamp(28px, 6vh, 48px) 0;
  color: var(--ink);
}
.post-body p {
  margin: 0 0 1.05rem;
}
.post-body .lede {
  font-size: clamp(18px, 1.4vw, 20px);
  color: var(--ink-weak);
  margin-bottom: 1.1rem;
}
.post-body h2,
.post-body h3 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  margin: 1.4rem 0 0.5rem;
  letter-spacing: -0.01em;
}
.post-body h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
}
.post-body h3 {
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.25;
}

/* Figures */
.media {
  margin: 1.2rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}
.media img {
  width: 100%;
  height: auto;
  display: block;
}
.media figcaption {
  padding: 10px 12px;
  font: 500 13px/1.4 'Inter', system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
  color: #6b6b6b;
  background: #faf9f7;
}

/* Pull quotes */
.pull {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  color: #1b1b1b;
  background: #f7f5f2;
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 1rem 0 1.2rem;
}
@media (min-width: 900px) {
  .pull {
    width: min(36ch, 38%);
    margin: 0.4rem 0 1rem;
  }
  .pull-right {
    float: right;
    margin-left: 22px;
    shape-outside: inset(0 round 14px);
  }
  .pull-left {
    float: left;
    margin-right: 22px;
    shape-outside: inset(0 round 14px);
  }
}

/* Clear floats at container end */
.post-body::after {
  content: '';
  display: block;
  clear: both;
}

/* ===== NEXT / PREV ================================================ */
.post-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 18px);
  padding-bottom: clamp(36px, 10vh, 72px);
}
@media (max-width: 699px) {
  .post-pager {
    grid-template-columns: 1fr;
  }
}

.pager-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
}
.pager-card img {
  width: 86px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.pager-card .kicker {
  display: block;
  font: 600 12px/1 'Inter', system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6b64;
  margin-bottom: 4px;
}
.pager-card .title {
  display: block;
  font: 600 16px/1.3 'Inter', system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
  color: #1e1e1e;
}
.pager-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
