/* Direction 2a editorial system. The blog is deliberately led by the newest
   story, with a quiet grid beneath; article pages move from a wide image to a
   focused reading measure rather than inheriting a generic content template. */
.editorial-index,
.editorial-post-shell {
  --editorial-warm-paper: color-mix(in srgb, var(--paper) 88%, var(--linen));
  --editorial-light-sand: color-mix(in srgb, var(--paper) 38%, var(--linen));
  --editorial-muted-sage: color-mix(in srgb, var(--paper) 72%, var(--sage));
  --editorial-pale-clay: color-mix(in srgb, var(--paper) 92%, var(--clay));
  background: var(--paper);
  color: var(--ink);
}

/* Broad, quiet surfaces distinguish major editorial bands without introducing
   alternating color inside article prose. The pseudo-elements carry each tone
   to the viewport edge while the content keeps its established measure. */
.editorial-index-heading,
.editorial-feature,
.editorial-all-stories,
.editorial-index > .editorial-grid,
.editorial-post-heading,
.editorial-post-lead {
  isolation: isolate;
  position: relative;
}

.editorial-index-heading::before,
.editorial-feature::before,
.editorial-all-stories::before,
.editorial-index > .editorial-grid::before,
.editorial-post-heading::before,
.editorial-post-lead::before {
  content: "";
  inset-block: 0;
  left: 50%;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
}

.editorial-index-heading::before {
  background: var(--editorial-warm-paper);
}

.editorial-feature::before {
  background: var(--editorial-light-sand);
}

.editorial-all-stories::before,
.editorial-index > .editorial-grid::before {
  background: var(--editorial-muted-sage);
}

.editorial-post-heading::before {
  background: var(--editorial-pale-clay);
}

.editorial-post-lead::before {
  background: var(--editorial-light-sand);
}

.editorial-index-heading,
.editorial-feature,
.editorial-all-stories,
.editorial-breadcrumb,
.editorial-post-heading,
.editorial-post-lead,
.editorial-reading-layout {
  margin-inline: auto;
  max-width: 84rem;
}

.editorial-index-heading {
  padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 5.5vw, 5rem) clamp(1.4rem, 2.5vw, 2.15rem);
}

.editorial-kicker,
.editorial-card-meta,
.editorial-story-count,
.editorial-meta,
.editorial-updated,
.editorial-breadcrumb,
.editorial-figure figcaption,
.editorial-share {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.editorial-kicker {
  color: var(--clay);
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.editorial-index-heading-row {
  align-items: end;
  border-bottom: 1px solid rgb(63 77 55 / 28%);
  display: flex;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  padding-bottom: clamp(1rem, 1.5vw, 1.4rem);
}

.editorial-index-heading h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  max-width: 48rem;
}

.editorial-story-count {
  color: var(--muted);
  flex: 0 0 auto;
  margin: 0.25rem 0 0;
  white-space: nowrap;
}

.editorial-feature {
  align-items: center;
  border-top: 1px solid rgb(63 77 55 / 28%);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.9fr);
  padding: clamp(1.5rem, 2.5vw, 2.15rem) clamp(1.5rem, 5.5vw, 5rem) clamp(2rem, 3.5vw, 3rem);
}

/* The heading row already supplies the editorial rule; do not repeat it at
   the beginning of the lead story. */
.editorial-index-heading + .editorial-feature {
  border-top: 0;
}

.editorial-feature-image-link,
.editorial-card-image-link {
  color: inherit;
  display: block;
  overflow: hidden;
}

.editorial-feature-image {
  aspect-ratio: 16 / 10;
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
  width: 100%;
}

.editorial-feature-image-link:hover .editorial-feature-image,
.editorial-feature-image-link:focus-visible .editorial-feature-image,
.editorial-card-image-link:hover .editorial-card-image,
.editorial-card-image-link:focus-visible .editorial-card-image {
  transform: scale(1.025);
}

.editorial-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.editorial-card-meta {
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

.editorial-feature-copy h2,
.editorial-section-heading h2,
.editorial-recent-heading h2 {
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}

.editorial-feature-copy h2 {
  font-size: clamp(1.85rem, 3vw, 2.75rem);
}

.editorial-feature-copy h2 a,
.editorial-card-copy h2 a,
.editorial-card-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.editorial-feature-copy h2 a:hover,
.editorial-feature-copy h2 a:focus-visible,
.editorial-card-copy h2 a:hover,
.editorial-card-copy h2 a:focus-visible,
.editorial-card-copy h3 a:hover,
.editorial-card-copy h3 a:focus-visible {
  color: var(--clay);
}

.editorial-feature-copy > p:not(.editorial-card-meta) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.editorial-text-link {
  align-items: center;
  color: var(--moss);
  display: inline-flex;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.45rem;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
  text-transform: uppercase;
}

.editorial-text-link:hover,
.editorial-text-link:focus-visible {
  color: var(--clay);
}

.editorial-all-stories {
  padding: 0 clamp(1.5rem, 5.5vw, 5rem) clamp(2.25rem, 3.5vw, 3.25rem);
}

/* Captured index routes place the grid directly after the title rather than
   inside .editorial-all-stories. Give that equivalent shape the same frame
   and a single, deliberate exit space before the site footer. */
.editorial-index > .editorial-grid {
  margin-inline: auto;
  max-width: 84rem;
  padding: 0 clamp(1.5rem, 5.5vw, 5rem) clamp(2.25rem, 3.5vw, 3.25rem);
}

.editorial-section-heading {
  align-items: end;
  border-top: 1px solid rgb(63 77 55 / 28%);
  display: flex;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding: 1rem 0 1.4rem;
}

.editorial-section-heading .editorial-kicker {
  margin: 0 0 0.7rem;
}

.editorial-section-heading h2,
.editorial-recent-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.editorial-grid {
  display: grid;
  gap: clamp(1.5rem, 2.75vw, 2.5rem) 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-card {
  border-top: 1px solid rgb(63 77 55 / 28%);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 0.75rem;
}

.editorial-card-image {
  aspect-ratio: 16 / 10;
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
  width: 100%;
}

.editorial-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.7rem;
}

.editorial-card-copy h2,
.editorial-card-copy h3 {
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.75vw, 1.5rem);
  font-weight: 400;
  line-height: 1.22;
  margin: 0;
}

.editorial-card-copy > p:not(.editorial-card-meta) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.editorial-card-copy .editorial-text-link { margin-top: auto; }

.editorial-breadcrumb {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 1rem clamp(1.5rem, 5.5vw, 5rem) 0;
}

.editorial-breadcrumb a {
  color: var(--moss);
  text-decoration: none;
}

.editorial-breadcrumb a:hover,
.editorial-breadcrumb a:focus-visible {
  color: var(--clay);
  text-decoration: underline;
}

.editorial-breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-backlink {
  margin: 0 auto;
  max-width: 84rem;
  padding: clamp(0.85rem, 1.4vw, 1.15rem) clamp(1.5rem, 5.5vw, 5rem) 0;
}

.editorial-backlink a {
  color: var(--moss);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.editorial-backlink a:hover,
.editorial-backlink a:focus-visible {
  color: var(--clay);
  text-decoration: underline;
}

.editorial-post {
  padding-top: clamp(1.2rem, 2.25vw, 2rem);
}

.editorial-post-heading {
  display: flex;
  flex-direction: column;
  max-width: 48rem;
  padding-inline: clamp(1.5rem, 5.5vw, 5rem);
}

.editorial-post-heading .editorial-kicker {
  margin-bottom: 0.7rem;
}

.editorial-meta {
  align-items: center;
  border-bottom: 1px solid rgb(63 77 55 / 28%);
  border-top: 1px solid rgb(63 77 55 / 28%);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.9rem;
  padding: 0.6rem 0;
}

.editorial-avatar {
  height: 1.6rem;
  object-fit: contain;
  width: 1.6rem;
}

.editorial-post h1 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5.3vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
}

.editorial-updated {
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.editorial-post-lead {
  margin-top: clamp(1.25rem, 2vw, 1.85rem);
  padding-inline: clamp(1.5rem, 5.5vw, 5rem);
}

.editorial-post-lead .editorial-figure {
  margin: 0;
}

.editorial-figure {
  margin: clamp(1.35rem, 2.25vw, 2rem) 0;
}

/* Older captured posts keep the lead figure in the narrow heading. Let that
   image resume the Direction 2a wide-lead role without changing its markup. */
.editorial-post-heading > .editorial-figure-lead {
  align-self: center;
  margin-top: clamp(1.25rem, 2vw, 1.85rem);
  max-width: none;
  width: min(60rem, calc(100vw - 3rem));
}

.editorial-figure-lead .editorial-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.editorial-image {
  display: block;
  height: auto;
  max-height: 44rem;
  object-fit: cover;
  width: 100%;
}

.editorial-figure figcaption {
  color: var(--muted);
  line-height: 1.45;
  padding-top: 0.65rem;
}

.editorial-reading-layout {
  padding: 0 clamp(1.5rem, 5.5vw, 5rem) clamp(3rem, 5vw, 4.5rem);
}

.editorial-body,
.editorial-share {
  margin-inline: auto;
  max-width: 42.5rem;
}

.editorial-body {
  color: var(--ink);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.72;
  padding-top: clamp(1.25rem, 2.25vw, 2rem);
}

.editorial-body p,
.editorial-body ul,
.editorial-body blockquote {
  margin: 0 0 1.2rem;
}

.editorial-body h2,
.editorial-body h3 {
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.18;
}

.editorial-body h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: clamp(1.8rem, 3vw, 2.6rem) 0 0.9rem;
}

.editorial-body h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  margin: 1.75rem 0 0.75rem;
}

.editorial-body ul {
  padding-left: 1.25rem;
}

.editorial-body li + li {
  margin-top: 0.5rem;
}

.editorial-lede {
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.25vw, 1.7rem);
  line-height: 1.42;
}

.editorial-emphasis,
.editorial-deck {
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.42;
}

.editorial-caption-text {
  color: var(--muted);
  font-size: 0.92em;
  font-style: italic;
}

.editorial-body blockquote {
  background: var(--linen);
  border-left: 0.2rem solid var(--clay);
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.42;
  padding: 1.15rem clamp(1.15rem, 2.5vw, 1.7rem);
}

.editorial-body blockquote p {
  margin: 0;
}

.editorial-share {
  border-top: 1px solid rgb(63 77 55 / 28%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 0.8rem;
}

.editorial-share a {
  color: var(--moss);
  text-decoration: none;
}

.editorial-share a:hover,
.editorial-share a:focus-visible {
  color: var(--clay);
  text-decoration: underline;
}

.editorial-recent {
  background: color-mix(in srgb, var(--paper) 28%, var(--sage));
  margin-top: 0;
  padding: clamp(2.25rem, 3.5vw, 3.25rem) max(1.5rem, calc((100vw - 74rem) / 2));
}

.editorial-recent-heading {
  align-items: end;
  display: flex;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  margin: 0 auto 1.4rem;
  max-width: 74rem;
}

.editorial-recent-heading .editorial-kicker {
  margin: 0 0 0.7rem;
}

.editorial-recent-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-inline: auto;
  max-width: 74rem;
}

.editorial-card-compact .editorial-card-copy h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

/* Related stories and the shared footer are adjacent bands, so each gets a
   restrained inner offset rather than compounding two oversized paddings. */
.family-blog-index .tf-site-footer,
.family-blog-post .tf-site-footer {
  padding-top: clamp(2rem, 3vw, 3rem);
}

@media (max-width: 50rem) {
  .editorial-feature {
    grid-template-columns: 1fr;
  }

  .editorial-feature-copy {
    max-width: 38rem;
  }

  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 38rem) {
  .editorial-index-heading-row,
  .editorial-section-heading,
  .editorial-recent-heading {
    align-items: start;
    flex-direction: column;
  }

  .editorial-grid,
  .editorial-recent-grid {
    grid-template-columns: 1fr;
  }

  .editorial-post h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .editorial-post-lead,
  .editorial-reading-layout,
  .editorial-post-heading {
    padding-inline: 1.25rem;
  }

  .editorial-body {
    font-size: 1rem;
  }

  .editorial-recent {
    padding-inline: 1.25rem;
  }

  .editorial-card-compact {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(7.5rem, 0.8fr) minmax(0, 1.2fr);
  }

  .editorial-card-compact .editorial-card-copy {
    padding-top: 0;
  }

  .editorial-card-compact .editorial-card-image {
    aspect-ratio: 1 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-feature-image,
  .editorial-card-image {
    transition: none;
  }
}
