/* =========================================================
   Caldas Works — Blog archive / single styles.

   Ported 1:1 from wp/prototype/styles.css (the approved blog
   prototype). Header, footer, mobile menu, shared tokens and the
   Misterfront credit live in theme.css; this file holds ONLY the
   blog-specific surface: sticky hero, filter rail, featured post,
   the 1 -> 3 -> 2 posts grid, the CTA band and the reveal /
   load-sequence animations that go with them.

   Enqueued conditionally (is_home / is_archive / single post) from
   inc/enqueue.php so global pages never pay for it.
   ========================================================= */

/* ---- Shared eyebrow label ---- */
.eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.56);
}


/* ===================================================================
   STICKY HERO — mirrors the home: the hero pins to the top while the
   content slab below scrolls up and over it. The hero fades and lifts
   slightly as it gets covered (driven by --hero-scroll from JS).
   =================================================================== */
.blog-hero {
  position: sticky;
  top: 0;
  z-index: 0;
  --hero-scroll: 0;
  display: flex;
  align-items: center;
  min-height: 600px;
  height: 100svh;
  overflow: hidden;
  color: var(--color-inverse);
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-hero__bg img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  /* Subtle settle-in on load */
  transform: scale(1.05);
  animation: blog-hero-settle 1.6s var(--ease-luxury) both;
}

@keyframes blog-hero-settle {
  to { transform: scale(1); }
}

.blog-hero__topband {
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(13,17,23,0.62) 0%, rgba(13,17,23,0.32) 55%, transparent 100%);
}

.blog-hero__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(13,17,23,0.78) 0%, rgba(13,17,23,0.34) 46%, rgba(13,17,23,0.04) 100%);
  box-shadow: inset 0 0 120px rgba(13,17,23,0.35);
}

/* Stage fades + lifts as the slab covers it */
.blog-hero__stage {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-gutter);
  opacity: calc(1 - (var(--hero-scroll) * 0.55));
  transform: translateY(calc(var(--hero-scroll) * -32px));
  will-change: opacity, transform;
}

.blog-hero__content {
  max-width: 52rem;
}

.blog-hero__eyebrow {
  color: rgba(245, 245, 240, 0.8);
  margin-bottom: clamp(1.5rem, 3.5vh, 2.25rem);
}

.blog-hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-hero);
  font-weight: 300;
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

/* Staggered indentation, mirroring the home hero's stepped words */
.blog-hero__word {
  display: block;
}

.blog-hero__word:nth-child(2) {
  margin-left: clamp(1.5rem, 8vw, 7rem);
}

.blog-hero__intro {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  display: grid;
  gap: 1.5rem;
  max-width: 34rem;
  margin-left: clamp(0rem, 6vw, 6rem);
}

.blog-hero__intro p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(245, 245, 240, 0.86);
}

@media (max-width: 380px) {
  .blog-hero__stage {
    padding-inline: 1.25rem;
  }

  .blog-hero__eyebrow {
    margin-bottom: 1.25rem;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .blog-hero__title {
    font-size: 2.75rem;
    line-height: 0.94;
  }

  .blog-hero__word:nth-child(2) {
    margin-left: 1.35rem;
  }

  .blog-hero__intro {
    margin-top: 1.45rem;
    margin-left: 1.1rem;
    max-width: 16rem;
  }

  .blog-hero__intro p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

@media (max-width: 340px) {
  .blog-hero__title {
    font-size: 2.45rem;
  }

  .blog-hero__intro {
    margin-left: 0.75rem;
    max-width: 15rem;
  }
}

.blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 245, 240, 0.2);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.7);
}

.blog-hero__meta strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--color-inverse);
  margin-right: 0.4rem;
}

/* Scroll indicator, bottom-right. Mirrors the home's Hero.astro: a
   rounded, blurred dark backing sits behind the label/track so the
   indicator stays legible over bright hero photography. */
.blog-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: calc(1 - (var(--hero-scroll) * 1.4));
}

.blog-hero__scroll-backdrop {
  position: absolute;
  inset: -1rem;
  z-index: -1;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.45);
  backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
  .blog-hero__scroll {
    display: flex;
  }
}

.blog-hero__scroll-label {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.85);
  writing-mode: vertical-rl;
}

.blog-hero__scroll-track {
  position: relative;
  z-index: 1;
  display: block;
  height: 3rem;
  width: 1px;
  overflow: hidden;
  background: rgba(245, 245, 240, 0.45);
}

.blog-hero__scroll-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(245, 245, 240, 0.9);
  transform: translate(-50%, -50%);
  animation: blog-hero-dot 2.4s var(--ease-luxury) infinite;
}

@keyframes blog-hero-dot {
  0% { transform: translate(-50%, -50%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(-50%, 3rem); opacity: 0; }
}

/* The slab that rides up over the hero. It starts exactly at the bottom
   of the full-height hero (no negative margin, so nothing peeks out on
   load), then scrolls up and over the sticky hero. Solid dark top covers
   the hero cleanly; a faint rule and lift shadow sell the overlap. */
.blog-slab {
  position: relative;
  z-index: 20;
  background: var(--color-surface-dark);
  border-top: 1px solid rgba(245, 245, 240, 0.08);
  box-shadow: 0 -32px 80px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero__bg img {
    animation: none;
    transform: none;
  }
  .blog-hero__stage {
    opacity: 1;
    transform: none;
  }
  .blog-hero__scroll-dot {
    animation: none;
  }
}

/* ===================================================================
   FILTER RAIL
   =================================================================== */
.filter-rail {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  background: rgba(13, 17, 23, 0.86);
  backdrop-filter: blur(10px);
  border-block: 1px solid rgba(245, 245, 240, 0.08);
  transition: opacity 220ms var(--ease-luxury), visibility 220ms var(--ease-luxury);
}

body.posts-grid-ended .filter-rail {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.filter-rail__inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.85rem;
  scrollbar-width: none;
}

.filter-rail__inner::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.6rem 1rem;
  color: rgba(245, 245, 240, 0.56);
  border: 1px solid rgba(245, 245, 240, 0.14);
  transition: color 0.22s var(--ease-luxury),
    border-color 0.22s var(--ease-luxury),
    background-color 0.22s var(--ease-luxury);
}

.chip:hover {
  color: var(--color-inverse);
  border-color: rgba(245, 245, 240, 0.4);
}

.chip--active {
  color: var(--color-surface-dark);
  background: var(--color-inverse);
  border-color: var(--color-inverse);
}

/* ===================================================================
   FEATURED POST
   =================================================================== */
.featured {
  padding-top: clamp(3rem, 7vh, 5.5rem);
}

.featured__card {
  position: relative;
  display: grid;
  gap: 0;
  border: 1px solid rgba(245, 245, 240, 0.1);
  overflow: hidden;
}

@media (min-width: 900px) {
  .featured__card {
    grid-template-columns: 1.15fr 1fr;
  }
}

.featured__index {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(245, 245, 240, 0.74);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(245, 245, 240, 0.32);
}

.featured__media {
  position: relative;
  min-height: clamp(20rem, 42vh, 30rem);
  overflow: hidden;
}

/* reveal-img wrapper fills the media area */
.featured__media .reveal-img,
.featured__media .reveal-img__inner {
  position: absolute;
  inset: 0;
}

.featured__media img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
}

.featured__card:hover .reveal-img.is-visible img {
  transform: scale(1.04);
  filter: saturate(0.95) contrast(1.02);
}

.featured__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.06) 0%, rgba(13, 17, 23, 0.34) 60%, rgba(13, 17, 23, 0.82) 100%);
}

.featured__body {
  display: grid;
  align-content: center;
  gap: 1.15rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: rgba(245, 245, 240, 0.018);
}

.meta-row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meta-tag {
  color: var(--color-surface-dark);
  background: var(--color-inverse);
  padding: 0.32rem 0.5rem;
  line-height: 1;
}

.meta-cat {
  color: rgba(245, 245, 240, 0.62);
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(245, 245, 240, 0.4);
}

.featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  line-height: 1;
  text-wrap: balance;
  color: var(--color-inverse);
}

.featured__excerpt {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 245, 240, 0.66);
  max-width: 36rem;
  display: -webkit-box;
  min-height: calc(0.95rem * 1.7 * 3);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.featured__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 240, 0.46);
}

.byline {
  color: rgba(245, 245, 240, 0.66);
}

.link-arrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.78);
  transition: gap 0.22s var(--ease-luxury), color 0.22s var(--ease-luxury);
}

.featured__card:hover .link-arrow {
  gap: 0.95rem;
  color: var(--color-inverse);
}

/* ===================================================================
   POSTS GRID
   =================================================================== */
.posts {
  padding-block: clamp(3.5rem, 8vh, 6rem);
}

.posts__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: clamp(1.5rem, 3vh, 2.25rem);
  margin-bottom: clamp(2rem, 4vh, 3rem);
  border-bottom: 1px solid rgba(245, 245, 240, 0.1);
}

/* Wide editorial banner — full width, image + text side by side.
   Lives outside the tile grid so it never orphans a column. */
/* The 1 in 1->3->2: a full-width banner card, media beside body. As a
   group grid child it spans the whole row (see .posts__group spans);
   its inner <a> lays media and body side by side on wider screens. */
@media (min-width: 768px) {
  .post-card--wide > a {
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
    gap: clamp(2rem, 4vw, 4rem);
  }

  .post-card--wide .post-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: clamp(18rem, 26vw, 25rem);
  }

  .post-card--wide .post-card__body {
    align-content: center;
    gap: 1.1rem;
  }

  .post-card--wide .post-card__title {
    font-size: clamp(1.8rem, 3vw, 2.9rem);
    max-width: 18ch;
  }

  .post-card--wide .post-card__excerpt {
    font-size: 0.95rem;
    max-width: 46ch;
    min-height: 0;
  }
}

/* Post group — one repeating editorial unit of 6 posts laid out as
   1 full-width banner -> a row of 3 -> a row of 2. Each "Load more"
   page repeats the same 1->3->2 rhythm. A 6-track base makes the spans
   land exactly: banner spans 6, the three span 2 each, the two span 3
   each. A partial final group still lays out cleanly because the spans
   key off fixed child positions. */
.posts__group {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}

/* Groups after the first need separation from the one above */
.posts__group + .posts__group {
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 640px) {
  .posts__group {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Banner stays full-width on tablet so it reads as a row of its own */
  .posts__group > .post-card--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .posts__group {
    grid-template-columns: repeat(6, 1fr);
  }

  /* 1) Banner: full-width row */
  .posts__group > .post-card--wide {
    grid-column: span 6;
  }

  /* 2) Row of 3: thirds. Default for every non-banner card, so a
     partial final group (banner + up to 3 cards) lays out as 1 -> 3
     with no orphaned column. */
  .posts__group > .post-card:not(.post-card--wide) {
    grid-column: span 2;
  }

  /* 3) Row of 2: halves. Banner is always child 1, so children 5 and 6
     are the 4th and 5th tile — the final row of a full group. Keying on
     fixed position (not :nth-last-child) means a partial final group
     (banner + 1-3 cards) keeps those cards as thirds and never wraps.
     They get a landscape frame to match image heights to the thirds. */
  .posts__group > .post-card:nth-child(5),
  .posts__group > .post-card:nth-child(6) {
    grid-column: span 3;
  }

  .posts__group > .post-card:nth-child(5) .post-card__media,
  .posts__group > .post-card:nth-child(6) .post-card__media {
    aspect-ratio: 16 / 10;
  }
}

.post-card a {
  display: grid;
  gap: 1.1rem;
}

/* Image-dominant: a tall editorial frame so photography leads each card */
.post-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(245, 245, 240, 0.04);
}

.post-card__media .reveal-img,
.post-card__media .reveal-img__inner {
  position: absolute;
  inset: 0;
}

.post-card__media img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.06);
}

/* Hover zoom layers on top of the reveal scale; both use transform only */
.post-card a:hover .reveal-img.is-visible img {
  transform: scale(1.05);
  filter: saturate(0.95) contrast(1.02);
}

/* Hairline that draws across the top of the image on reveal */
.post-card__rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  background: rgba(245, 245, 240, 0.5);
}

.post-card__index {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(245, 245, 240, 0.78);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(245, 245, 240, 0.3);
}

.post-card__body {
  display: grid;
  gap: 0.7rem;
}

.post-card__cat {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.62);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.08;
  text-wrap: balance;
  color: var(--color-inverse);
  transition: opacity 0.22s var(--ease-luxury);
}

.post-card a:hover .post-card__title {
  opacity: 0.74;
}

.post-card__excerpt {
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(245, 245, 240, 0.58);
  display: -webkit-box;
  min-height: calc(0.86rem * 1.65 * 3);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.post-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(245, 245, 240, 0.12);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 240, 0.58);
}

/* A hidden "Load more" group must stay out of layout. .posts__group
   sets display:grid, which would otherwise win over the [hidden]
   attribute's UA display:none, so restore it explicitly. */
.posts__group[hidden] {
  display: none;
}

.posts__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(3rem, 6vh, 4.5rem);
}

.posts__more[hidden] {
  display: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  background: transparent;
  border: 1px solid rgba(245, 245, 240, 0.24);
  border-radius: 0;
  color: rgba(245, 245, 240, 0.82);
  cursor: pointer;
  transition: border-color 0.22s var(--ease-luxury),
    background-color 0.22s var(--ease-luxury), color 0.22s var(--ease-luxury);
}

.btn-ghost:hover {
  border-color: rgba(245, 245, 240, 0.6);
  background: rgba(245, 245, 240, 0.05);
  color: var(--color-inverse);
}

/* ===================================================================
   CTA BAND
   =================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid rgba(245, 245, 240, 0.08);
}

.cta-band__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 30%, rgba(245, 245, 240, 0.06), transparent 30%),
    linear-gradient(90deg, rgba(245, 245, 240, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(245, 245, 240, 0.032) 1px, transparent 1px);
  background-size: auto, 104px 104px, 104px 104px;
  mask-image: linear-gradient(90deg, black 0%, black 60%, transparent 100%);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.cta-band__eyebrow {
  margin-bottom: 1.25rem;
}

.cta-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  text-wrap: balance;
}

.cta-band__sub {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(245, 245, 240, 0.56);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 2.5rem;
  color: var(--color-surface-dark);
  background: var(--color-inverse);
  transition: background-color 0.22s var(--ease-luxury), transform 0.22s var(--ease-luxury);
}

.btn-solid:hover {
  background: #ffffff;
  transform: translateY(-2px);
}


/* ---- Reveal / load-sequence animations (blog only) ---- */
/* ===================================================================
   SCROLL REVEAL (same contract as the home: .js gate + .is-visible)
   =================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===================================================================
   PAGE-LOAD SEQUENCE — one orchestrated entrance for above-the-fold
   content (hero, rail, featured) so the page settles in instead of
   snapping. Runs once on load via staggered delays, not on scroll.
   A gentle fade + short rise with a soft ease; no clip-path wipe up
   top (the wipe is reserved for images scrolled into view below).
   =================================================================== */
.blog-js .load-seq {
  opacity: 0;
  transform: translateY(18px);
}

.blog-js .load-ready .load-seq {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s var(--ease-luxury), transform 1s var(--ease-luxury);
}

.load-seq--1 { transition-delay: 0.05s; }
.load-seq--2 { transition-delay: 0.18s; }
.load-seq--3 { transition-delay: 0.32s; }
.load-seq--4 { transition-delay: 0.48s; }
.load-seq--5 { transition-delay: 0.64s; }

/* Hero title: words ease in one by one with a brief focus-pull blur,
   echoing the home hero at a faster, blog-appropriate tempo (~0.16s
   between words vs the home's ~0.77s). GPU-cheap (opacity + filter). The
   single article title (variable WP content) eases in as one block. The
   .blog-js gate hides the title only when JS will animate it, so the
   heading ships visible for crawlers / no-JS. */
/* Same focus-pull as the home hero (hero-word-in): opacity + blur only,
   no vertical movement. Faster, blog-appropriate tempo. */
@keyframes blog-word-in {
  from { opacity: 0; filter: blur(4px); }
  to   { opacity: 1; filter: blur(0); }
}

.blog-js .blog-hero__word {
  opacity: 0;
}

.blog-js .load-ready .blog-hero__word {
  animation: blog-word-in 1.1s var(--ease-luxury) both;
}

.blog-js .load-ready .blog-hero__word:nth-child(1) { animation-delay: 0.2s; }
.blog-js .load-ready .blog-hero__word:nth-child(2) { animation-delay: 0.55s; }
.blog-js .load-ready .blog-hero__word:nth-child(3) { animation-delay: 0.9s; }

.blog-js .article-hero__title {
  opacity: 0;
}

.blog-js .load-ready .article-hero__title {
  animation: blog-word-in 1.1s var(--ease-luxury) 0.25s both;
}

/* Featured image above the fold settles with a soft scale, no harsh wipe */
.blog-js .featured__media .reveal-img__inner {
  clip-path: none;
}

@media (prefers-reduced-motion: reduce) {
  .blog-js .load-seq {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .blog-js .blog-hero__word,
  .blog-js .article-hero__title {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}

/* ===================================================================
   IMAGE REVEAL — the home's signature motion, applied to every photo.
   A vertical clip-path mask wipes the image in while it settles from
   scale(1.05) to scale(1). One movement per image, ~1.1s, transform/
   clip-path only (no layout). This is what makes the blog feel
   image-led without turning it into a landing page.
   =================================================================== */
.reveal-img {
  position: relative;
  overflow: hidden;
}

.blog-js .reveal-img__inner {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--ease-luxury);
}

.blog-js .reveal-img.is-visible .reveal-img__inner {
  clip-path: inset(0 0 0 0);
}

.reveal-img img {
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-luxury), filter 0.6s var(--ease-luxury);
}

.blog-js .reveal-img.is-visible img {
  transform: scale(1);
}

/* Metadata that staggers up under each revealed image */
.blog-js .reveal-meta > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-luxury), transform 0.7s var(--ease-luxury);
}

.blog-js .reveal-meta.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-meta.is-visible > *:nth-child(1) { transition-delay: 120ms; }
.reveal-meta.is-visible > *:nth-child(2) { transition-delay: 200ms; }
.reveal-meta.is-visible > *:nth-child(3) { transition-delay: 280ms; }
.reveal-meta.is-visible > *:nth-child(4) { transition-delay: 360ms; }
.reveal-meta.is-visible > *:nth-child(5) { transition-delay: 440ms; }

/* Thin measurement line that draws in — borrowed from the home's line-draw */
.line-draw {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1s var(--ease-luxury);
}

.line-draw.is-visible {
  transform: scaleX(1);
}

/* ===================================================================
   GRID CARD REVEAL — a quiet, readable entrance for the post grid.
   Each card fades and rises a touch, staggered row by row so the grid
   settles in a wave instead of all at once. Lighter than the image
   wipe; keeps the page reading like a blog, not a landing.
   The card images are always visible (reveal-card never clips them);
   only opacity + a small transform animate, both GPU-cheap.
   =================================================================== */
.blog-js .reveal-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-luxury), transform 0.7s var(--ease-luxury);
}

.blog-js .reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger by source order; ~70ms between cards reads as a gentle wave */
.blog-js .reveal-card:nth-child(1).is-visible { transition-delay: 0ms; }
.blog-js .reveal-card:nth-child(2).is-visible { transition-delay: 70ms; }
.blog-js .reveal-card:nth-child(3).is-visible { transition-delay: 140ms; }
.blog-js .reveal-card:nth-child(4).is-visible { transition-delay: 70ms; }
.blog-js .reveal-card:nth-child(5).is-visible { transition-delay: 140ms; }

/* Inside a reveal-card the image is static (no wipe) and the meta has no
   separate entrance — the whole card moves as one calm unit. */
.blog-js .reveal-card .reveal-img__inner {
  clip-path: none;
}

.blog-js .reveal-card .reveal-meta > * {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .blog-js .reveal-img__inner,
  .blog-js .reveal-img img,
  .blog-js .reveal-meta > *,
  .blog-js .reveal-card,
  .line-draw {
    clip-path: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Hover zoom is motion too — hold images still when motion is reduced */
  .post-card a:hover .reveal-img.is-visible img,
  .post-card a:hover .reveal-card.is-visible img,
  .featured__card:hover .reveal-img.is-visible img {
    transform: none;
  }

  .article-hero__scroll-dot {
    animation: none;
  }
}


/* ---- Focus rings for blog interactive surfaces ---- */
.post-card a:focus-visible,
.featured__card:focus-visible {
  outline: 2px solid rgba(245, 245, 240, 0.8);
  outline-offset: 6px;
}

.chip:focus-visible,
.btn-ghost:focus-visible,
.btn-solid:focus-visible,
.link-arrow:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible,
.site-footer__nav a:focus-visible,
.site-footer__contact a:focus-visible {
  outline: 2px solid rgba(245, 245, 240, 0.8);
  outline-offset: 3px;
}

/* =========================================================
   WORDPRESS PORT ADDITIONS

   Net-new rules the static prototype never needed: real-data
   fallbacks (posts without a featured image, an empty archive),
   the two-link PHP pagination row, and the single-post layout
   (the prototype only covered the archive). Everything reuses the
   prototype's tokens and existing classes — no new design language.
   ========================================================= */

/* Pagination row now holds two links (Newer / Load more) */
.posts__more {
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-ghost--prev {
  opacity: 0.72;
}

.btn-ghost--prev:hover {
  opacity: 1;
}

/* Fallback for posts with no featured image: a quiet brand gradient so
   the media frame still reads as intentional rather than empty. */
.post-card__media-empty {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(135deg, #161c26 0%, #0d1117 60%, #11161f 100%);
}

.post-card__media-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245, 245, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 240, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

/* Empty archive state */
.posts__empty {
  margin: clamp(3rem, 8vh, 6rem) 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  color: rgba(245, 245, 240, 0.6);
}

/* =========================================================
   SINGLE ARTICLE — ported from wp/prototype/single.html.
   Full-bleed hero with the featured image and title overlaid; a
   centered reading column for the body; prev/next and related reuse
   the card and link patterns from the archive. Body element styles
   target descendants of .article-prose because the_content() emits
   raw HTML (h2/p/ul/blockquote) without classes.
   ========================================================= */
.article {
  display: block;
}

/* ---- Hero: full-bleed image, title overlaid ---- */
.article-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  height: clamp(560px, 82vh, 880px);
  padding-block: clamp(2.5rem, 6vh, 5rem);
  overflow: hidden;
  color: var(--color-inverse);
}

/* No featured image: fall back to a dark gradient surface */
.article--no-image .article-hero {
  min-height: 0;
  height: auto;
  padding-top: calc(var(--header-height) + clamp(3rem, 8vh, 6rem));
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 245, 240, 0.06), transparent 38%),
    var(--color-surface-dark);
}

.article-hero__bg,
.article-hero__bg .reveal-img,
.article-hero__bg .reveal-img__inner {
  position: absolute;
  inset: 0;
}

.article-hero__bg img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
}

.article-hero__topband {
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 17, 23, 0.66) 0%, rgba(13, 17, 23, 0.3) 55%, transparent 100%);
}

.article--no-image .article-hero__topband {
  display: none;
}

.article-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.92) 0%, rgba(13, 17, 23, 0.72) 26%, rgba(13, 17, 23, 0.22) 62%, rgba(13, 17, 23, 0.05) 100%);
}

.article--no-image .article-hero__shade {
  display: none;
}

.article-hero__stage {
  position: relative;
  z-index: 2;
  width: 100%;
}

.article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.82);
  transition: color 0.22s var(--ease-luxury);
}

.article-hero__back:hover {
  color: var(--color-inverse);
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.78);
}

.article-hero__meta time,
.article-hero__meta span:not(.meta-tag):not(.meta-dot) {
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.8rem;
}

.article-hero__title {
  margin: 1.1rem 0 0;
  max-width: 20ch;
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.article-hero__byline {
  margin: clamp(1rem, 2.5vh, 1.5rem) 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(245, 245, 240, 0.7);
}

/* Reuse the home's scroll indicator, here labelled "Read" */
.article-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.6rem;
}

@media (min-width: 768px) {
  .article-hero__scroll {
    display: flex;
  }
}

.article-hero__scroll-backdrop {
  position: absolute;
  inset: -0.5rem;
  z-index: -1;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.45);
  backdrop-filter: blur(4px);
}

.article-hero__scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.85);
  writing-mode: vertical-rl;
}

.article-hero__scroll-track {
  position: relative;
  display: block;
  height: 3rem;
  width: 1px;
  overflow: hidden;
  background: rgba(245, 245, 240, 0.45);
}

.article-hero__scroll-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(245, 245, 240, 0.9);
  transform: translate(-50%, -50%);
  animation: blog-hero-dot 2.4s var(--ease-luxury) infinite;
}

/* ---- Body: centered reading column ---- */
.article-body {
  padding-block: clamp(3rem, 8vh, 6rem);
}

.article-prose {
  max-width: 58rem;
  margin-inline: auto;
  padding-inline: var(--frame-gutter);
}

.article-prose > * {
  margin-block: 0;
}

.article-prose > * + * {
  margin-top: 1.5rem;
}

.article-prose p {
  font-size: 1.075rem;
  font-weight: 300;
  line-height: 1.78;
  color: rgba(245, 245, 240, 0.84);
}

/* First paragraph reads as the lede */
.article-prose > p:first-of-type {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.55;
  color: var(--color-inverse);
}

.article-prose h2 {
  margin-top: clamp(2.75rem, 6vh, 4rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--color-inverse);
}

.article-prose h3 {
  margin-top: clamp(2.25rem, 5vh, 3rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.15;
  color: var(--color-inverse);
}

.article-prose a {
  color: var(--color-inverse);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(245, 245, 240, 0.4);
  transition: text-decoration-color 0.22s var(--ease-luxury);
}

.article-prose a:hover {
  text-decoration-color: var(--color-inverse);
}

.article-prose ul,
.article-prose ol {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.75rem;
}

.article-prose li {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 245, 240, 0.84);
  padding-left: 0.35rem;
}

.article-prose li::marker {
  color: rgba(245, 245, 240, 0.4);
}

.article-prose blockquote {
  margin: clamp(2.25rem, 5vh, 3rem) 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid rgba(245, 245, 240, 0.3);
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 240, 0.92);
  text-wrap: balance;
}

/* WordPress images / figures inside the content */
.article-prose img {
  width: 100%;
  height: auto;
}

.article-prose figure {
  margin: clamp(2.5rem, 6vh, 3.5rem) 0;
}

@media (min-width: 880px) {
  .article-prose > figure.alignwide,
  .article-prose > figure:not([class*="align"]) {
    width: calc(100% + 8rem);
    margin-inline: -4rem;
  }
}

.article-prose figure img {
  filter: saturate(0.82) contrast(1.06);
}

.article-prose figcaption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(245, 245, 240, 0.56);
}

.single-post__pages {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ---- Article close ---- */
.article-end {
  max-width: 58rem;
  margin: clamp(3rem, 7vh, 4.5rem) auto 0;
  padding: clamp(2rem, 4vh, 2.75rem) var(--frame-gutter) 0;
  border-top: 1px solid rgba(245, 245, 240, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.article-end__note {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.5);
}

/* ---- Prev / Next ---- */
.article-nav {
  display: grid;
  gap: 1px;
  margin-top: clamp(3.5rem, 8vh, 6rem);
  background: rgba(245, 245, 240, 0.1);
  border-block: 1px solid rgba(245, 245, 240, 0.1);
}

@media (min-width: 720px) {
  .article-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.article-nav__link {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-surface-dark);
  transition: background-color 0.3s var(--ease-luxury);
}

.article-nav__link:hover {
  background: rgba(245, 245, 240, 0.03);
}

.article-nav__link--next {
  text-align: right;
}

.article-nav__dir {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.56);
  transition: color 0.22s var(--ease-luxury);
}

.article-nav__link:hover .article-nav__dir {
  color: var(--color-inverse);
}

.article-nav__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.12;
  text-wrap: balance;
  color: var(--color-inverse);
}

/* ---- Related ---- */
.related {
  padding-block: clamp(3.5rem, 8vh, 6rem);
}

.related__header {
  padding-bottom: clamp(1.5rem, 3vh, 2.25rem);
  margin-bottom: clamp(2rem, 4vh, 3rem);
  border-bottom: 1px solid rgba(245, 245, 240, 0.1);
}

.related__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================================================
   BG MIX VARIANT (opt-in via body.blog-bg-mix; toggled from
   Appearance > Customize > Caldas Works > Blog). Ported 1:1 from
   wp/prototype-bg-mix. Hero stays dark/photo-led; the editorial content
   (filter rail, featured, posts grid) switches to a light archive
   surface; CTA and footer return to dark — matching the home rhythm.
   =================================================================== */
.blog-bg-mix .blog-slab {
  background: var(--color-surface);
  border-top-color: rgba(0, 0, 0, 0.08);
}

.blog-bg-mix .filter-rail {
  background: rgba(255, 255, 255, 0.88);
  border-block-color: rgba(0, 0, 0, 0.08);
}

.blog-bg-mix .chip {
  color: rgba(26, 26, 26, 0.62);
  border-color: rgba(26, 26, 26, 0.16);
}

.blog-bg-mix .chip:hover {
  color: var(--color-ink);
  border-color: rgba(26, 26, 26, 0.42);
}

.blog-bg-mix .chip--active {
  color: var(--color-inverse);
  background: var(--color-ink);
  border-color: var(--color-ink);
}

.blog-bg-mix .featured__card {
  border-color: rgba(0, 0, 0, 0.1);
}

.blog-bg-mix .featured__body {
  background: var(--color-surface-secondary);
}

.blog-bg-mix .meta-tag {
  color: var(--color-inverse);
  background: var(--color-ink);
}

.blog-bg-mix .meta-cat,
.blog-bg-mix .featured__excerpt,
.blog-bg-mix .featured__foot,
.blog-bg-mix .byline {
  color: rgba(26, 26, 26, 0.62);
}

.blog-bg-mix .meta-dot {
  background: rgba(26, 26, 26, 0.36);
}

.blog-bg-mix .featured__title,
.blog-bg-mix .post-card__title,
.blog-bg-mix .link-arrow {
  color: var(--color-ink);
}

.blog-bg-mix .featured__card:hover .link-arrow,
.blog-bg-mix .post-card a:hover .post-card__title {
  color: var(--color-ink);
  opacity: 0.72;
}

.blog-bg-mix .posts__header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.blog-bg-mix .posts__header .eyebrow,
.blog-bg-mix .post-card__cat {
  color: rgba(26, 26, 26, 0.62);
}

.blog-bg-mix .post-card__excerpt {
  color: rgba(26, 26, 26, 0.66);
}

.blog-bg-mix .post-card__foot {
  border-top-color: rgba(0, 0, 0, 0.12);
  color: rgba(26, 26, 26, 0.58);
}

.blog-bg-mix .post-card__media {
  background: rgba(13, 17, 23, 0.08);
}

.blog-bg-mix .btn-ghost {
  color: rgba(26, 26, 26, 0.78);
  border-color: rgba(26, 26, 26, 0.2);
}

.blog-bg-mix .btn-ghost:hover {
  color: var(--color-ink);
  border-color: rgba(26, 26, 26, 0.52);
  background: rgba(13, 17, 23, 0.04);
}

.blog-bg-mix .cta-band {
  background: var(--color-surface-dark);
  color: var(--color-inverse);
}

.blog-bg-mix .post-card a:focus-visible,
.blog-bg-mix .featured__card:focus-visible,
.blog-bg-mix .chip:focus-visible,
.blog-bg-mix .btn-ghost:focus-visible,
.blog-bg-mix .link-arrow:focus-visible {
  outline-color: rgba(26, 26, 26, 0.72);
}


/* ===================================================================
   BG MIX — SINGLE ARTICLE (opt-in via body.blog-bg-mix)
   Same rhythm as the archive mix: the hero stays dark/photo-led, the
   reading body and related switch to a light surface, and prev/next +
   CTA + footer stay dark. Text flips to ink tones at AA contrast.
   =================================================================== */
.blog-bg-mix .article-body {
  background: var(--color-surface);
}

.blog-bg-mix .article-prose p {
  color: rgba(26, 26, 26, 0.78);
}

.blog-bg-mix .article-prose > p:first-of-type {
  color: var(--color-ink);
}

.blog-bg-mix .article-prose h2,
.blog-bg-mix .article-prose h3 {
  color: var(--color-ink);
}

.blog-bg-mix .article-prose li {
  color: rgba(26, 26, 26, 0.78);
}

.blog-bg-mix .article-prose li::marker {
  color: rgba(26, 26, 26, 0.4);
}

.blog-bg-mix .article-prose a {
  color: var(--color-ink);
  text-decoration-color: rgba(26, 26, 26, 0.4);
}

.blog-bg-mix .article-prose a:hover {
  text-decoration-color: var(--color-ink);
}

.blog-bg-mix .article-prose blockquote {
  border-left-color: rgba(26, 26, 26, 0.28);
  color: rgba(26, 26, 26, 0.82);
}

.blog-bg-mix .article-figure figcaption {
  color: rgba(26, 26, 26, 0.58);
}

.blog-bg-mix .article-end {
  border-top-color: rgba(0, 0, 0, 0.12);
}

.blog-bg-mix .article-end__note {
  color: rgba(26, 26, 26, 0.66);
}

/* link-arrow ("All articles") sits on the light body now */
.blog-bg-mix .article-end .link-arrow {
  color: rgba(26, 26, 26, 0.72);
}

.blog-bg-mix .article-end .link-arrow:hover {
  color: var(--color-ink);
}

/* Related sits on a light surface; cards flip to the light card style */
.blog-bg-mix .related {
  background: var(--color-surface);
}

.blog-bg-mix .related__header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.blog-bg-mix .related__header .eyebrow {
  color: rgba(26, 26, 26, 0.62);
}

.blog-bg-mix .related .post-card__cat {
  color: rgba(26, 26, 26, 0.62);
}

.blog-bg-mix .related .post-card__title {
  color: var(--color-ink);
}

.blog-bg-mix .related .post-card a:hover .post-card__title {
  color: var(--color-ink);
  opacity: 0.72;
}

.blog-bg-mix .related .post-card__excerpt {
  color: rgba(26, 26, 26, 0.66);
}

.blog-bg-mix .related .post-card__foot {
  border-top-color: rgba(0, 0, 0, 0.12);
  color: rgba(26, 26, 26, 0.66);
}

.blog-bg-mix .related .post-card__media {
  background: rgba(13, 17, 23, 0.08);
}

/* Prev / next sit on the light body too, so the flow stays light ->
   light -> light instead of dropping to a dark island between the body
   and the related cards. A light surface on .article spans the gutters
   of the centered .shell nav so no dark band shows through; the dark
   hero (first child) paints over it at the top. */
.blog-bg-mix .article {
  background: var(--color-surface);
}

.blog-bg-mix .article-hero {
  background: var(--color-surface-dark);
}

.blog-bg-mix .article-nav {
  margin-top: 0;
  background: rgba(0, 0, 0, 0.12);
  border-block-color: rgba(0, 0, 0, 0.1);
}

.blog-bg-mix .article-nav__link {
  background: var(--color-surface);
}

.blog-bg-mix .article-nav__link:hover {
  background: var(--color-surface-secondary);
}

.blog-bg-mix .article-nav__dir {
  color: rgba(26, 26, 26, 0.62);
}

.blog-bg-mix .article-nav__link:hover .article-nav__dir {
  color: var(--color-ink);
}

.blog-bg-mix .article-nav__title {
  color: var(--color-ink);
}

/* Focus rings on the light body */
.blog-bg-mix .related .post-card a:focus-visible,
.blog-bg-mix .article-end .link-arrow:focus-visible,
.blog-bg-mix .article-nav__link:focus-visible {
  outline-color: rgba(26, 26, 26, 0.72);
}
