/* ── BLOG STYLES ──
   Layered on top of shared.css. Two surfaces:
     1) The hub  (blog/index.html)              — featured + filterable grid
     2) The post (blog/<slug>/index.html)       — editorial single
   Both reuse: --primary / --foreground / --background / --font-serif /
   --font-sans / --shadow-card / --ease-out from shared.css. No new
   colors invented. Category accents echo in-app chapter colors. */

/* Category accents — same palette as the in-app chapters and the
   landing-page .question[data-batch] system. Attribute differs
   (data-category on blog, data-batch on the homepage). */
:root {
  --cat-wellness:    #94A87C;  /* sage */
  --cat-connection:  var(--primary);
  --cat-reflection:  #C9A655;  /* ochre */
  --cat-forward:     #8DA0B5;  /* dusty-blue */
  --cat-commitments: #D4899A;  /* rose */
  --cat-behind:      #6B5A4D;  /* warm neutral, for company writing */
}

[data-category="wellness"]    { --cat: var(--cat-wellness); }
[data-category="connection"]  { --cat: var(--cat-connection); }
[data-category="reflection"]  { --cat: var(--cat-reflection); }
[data-category="forward"]     { --cat: var(--cat-forward); }
[data-category="commitments"] { --cat: var(--cat-commitments); }
[data-category="behind"]      { --cat: var(--cat-behind); }

/* ── Shared editorial atoms ── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cat, var(--text-tertiary));
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cat, var(--primary));
  flex-shrink: 0;
}

.meta-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}
.meta-row .dot-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.5;
}
.meta-row time { color: var(--text-secondary); }

/* Soft placeholder image — warm gradient washed with the category accent,
   plus a quiet radial bloom. Used until real hero images land. */
.cover {
  position: relative;
  isolation: isolate;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-section);
  aspect-ratio: 16 / 10;
}
.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 78% 22%,
      color-mix(in oklab, var(--cat, var(--primary)) 38%, transparent) 0%,
      transparent 70%),
    radial-gradient(80% 100% at 22% 100%,
      color-mix(in oklab, var(--cat, var(--primary)) 18%, transparent) 0%,
      transparent 65%),
    linear-gradient(135deg,
      color-mix(in oklab, var(--cat, var(--primary)) 14%, #fff) 0%,
      color-mix(in oklab, var(--cat, var(--primary)) 6%, #fff) 100%);
}
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("/images/kindred-mark.png") no-repeat;
  background-position: 50% 50%;
  background-size: 18% auto;
  opacity: 0.16;
  mix-blend-mode: multiply;
}
.cover > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ════════════════════════════════════════════════════════════════════
   HUB  /blog/index.html
   ════════════════════════════════════════════════════════════════════ */

.hub-intro {
  padding: 96px 0 56px;
  background: var(--background);
}
.hub-intro-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 22px;
}
.hub-intro h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 14ch;
}
.hub-intro h1 em {
  font-family: inherit;
  font-style: italic;
  font-weight: 400;
}
.hub-intro p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 52ch;
}

/* Filter chips — sentence-case, hairline pills, single source of truth
   for category color. Sticky offset accounts for the 60px nav. */
.hub-filters {
  position: sticky;
  top: 60px;
  z-index: 40;
  background: rgba(247, 242, 238, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.hub-filters-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hub-filters-inner::-webkit-scrollbar { display: none; }

.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 7px 14px 7px 12px;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition:
    color 200ms var(--ease-out),
    background 200ms var(--ease-out),
    border-color 200ms var(--ease-out);
}
.chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cat, var(--text-tertiary));
  flex-shrink: 0;
}
.chip[data-category="all"]::before { display: none; }
.chip[data-category="all"]         { padding-left: 14px; }

.chip:hover { color: var(--foreground); border-color: #CFC6BC; }
.chip.is-active {
  color: #fff;
  background: var(--cat, var(--foreground));
  border-color: var(--cat, var(--foreground));
}
.chip.is-active::before { background: rgba(255,255,255,0.7); }
.chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Featured — full-bleed editorial card. Image left, copy right on desktop. */
.hub-featured {
  padding: 56px 0 24px;
}
.hub-featured-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hub-featured-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.featured .cover { aspect-ratio: 5 / 4; border-radius: 18px; }
.featured-body { padding: 8px 0; }
.featured h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
  text-wrap: pretty;
}
.featured h2 em {
  font-style: italic;
}
.featured p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 24px;
}
.featured-cta-row { margin-top: 24px; }
.featured-cta {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.featured-cta::after {
  content: '→';
  transition: transform 200ms var(--ease-out);
}
.featured:hover .featured-cta::after { transform: translateX(4px); }
.featured:hover h2 { color: var(--primary); }

/* Grid — hairline-divided columns, no card chrome. */
.hub-grid-wrap { padding: 48px 0 96px; }
.hub-grid-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.hub-grid-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.hub-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.hub-grid > li {
  border-bottom: 1px solid var(--border);
}
.hub-grid > li:not(:nth-child(3n+1)) {
  border-left: 1px solid var(--border);
}
/* Close the right edge of a lone cell on an incomplete final row. */
.hub-grid > li:last-child:not(:nth-child(3n)) {
  border-right: 1px solid var(--border);
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: background 220ms var(--ease-out);
}
.post-card:hover { background: rgba(255,255,255,0.4); }
.post-card .cover { aspect-ratio: 4 / 3; border-radius: 10px; }
.post-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--foreground);
  text-wrap: pretty;
  transition: color 200ms var(--ease-out);
  margin: 0;
}
.post-card:hover h3 { color: var(--primary); }
.post-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.post-card-foot {
  margin-top: auto;
  padding-top: 4px;
}

.hub-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 64px;
}
.hub-pager a, .hub-pager span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}
.hub-pager a:hover { background: var(--surface-section); color: var(--foreground); }
.hub-pager .is-current {
  background: var(--foreground);
  color: #fff;
}

/* ════════════════════════════════════════════════════════════════════
   POST  /blog/<slug>/index.html
   ════════════════════════════════════════════════════════════════════ */

.post {
  background: var(--background);
}

.post-breadcrumb {
  padding: 32px 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-tertiary);
}
.post-breadcrumb a { color: var(--text-tertiary); }
.post-breadcrumb a:hover { color: var(--foreground); }
.post-breadcrumb .sep {
  display: inline-block;
  margin: 0 8px;
  opacity: 0.5;
}

.post-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 28px 40px;
  text-align: left;
}
.post-header .eyebrow { margin-bottom: 22px; }
.post-header h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin-bottom: 22px;
  text-wrap: pretty;
}
.post-header h1 em {
  font-style: italic;
  font-weight: 400;
}
.post-dek {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 32px;
  text-wrap: pretty;
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
}
.byline .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #C9806F);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  flex-shrink: 0;
}
.byline strong {
  color: var(--foreground);
  font-weight: 500;
}
.byline .byline-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
}
.byline .byline-meta .dot-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.5;
}

.post-hero {
  max-width: 1040px;
  margin: 0 auto 56px;
  padding: 0 28px;
}
.post-hero .cover {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

/* ── Prose ── reading column. Width matches .post-header so the text edges
   line up with the byline banner above the hero. All editorial typography
   lives here. */
.post-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px 80px;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--foreground);
}
.post-prose > * + * { margin-top: 1.2em; }
.post-prose p { text-wrap: pretty; }
.post-prose p:first-of-type { margin-top: 0; }

.post-prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-top: 2.2em;
  margin-bottom: 0.4em;
  text-wrap: pretty;
}
.post-prose h2 em {
  font-style: italic;
}
.post-prose h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-top: 1.6em;
  margin-bottom: 0.3em;
}
.post-prose h2 + p,
.post-prose h3 + p { margin-top: 0.4em; }

.post-prose a {
  color: var(--foreground);
  background-image: linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 95%;
  padding-bottom: 1px;
  transition: color 200ms var(--ease-out), background-size 200ms var(--ease-out);
}
.post-prose a:hover {
  color: var(--primary);
  background-size: 100% 2px;
}

.post-prose strong { font-weight: 600; color: var(--foreground); }
.post-prose em     { font-style: italic; }

.post-prose ul, .post-prose ol {
  padding-left: 1.2em;
}
.post-prose li { margin: 0.4em 0; }
.post-prose li::marker { color: var(--text-tertiary); }

/* Pull quote — italic serif with a small terracotta heart-mark anchor
   to the left. Reuses the brand mark, no SVG redraws. */
.post-prose blockquote {
  position: relative;
  margin: 2em 0;
  padding: 8px 0 8px 56px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.32;
  color: var(--foreground);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.post-prose blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px; height: 32px;
  background: url("/images/kindred-mark.png") no-repeat center / contain;
  opacity: 0.9;
}
.post-prose blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.post-prose figure {
  margin: 2em 0;
}
.post-prose figure img,
.post-prose figure .cover {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.post-prose figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 10px;
  text-align: left;
}

/* Callout — soft cream card with a category-colored hairline. */
.post-prose .callout {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  margin: 2em 0;
  position: relative;
}
.post-prose .callout::before {
  content: '';
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 3px;
  border-radius: 2px;
  background: var(--cat, var(--primary));
}
.post-prose .callout-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cat, var(--primary));
  margin-bottom: 10px;
  display: block;
}
.post-prose .callout p { font-size: 16px; margin: 0; }
.post-prose .callout ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 16px;
}
.post-prose .callout li { margin: 0.3em 0; }

.post-prose hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.6em auto;
  max-width: 80px;
}

.post-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px 32px;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-section);
  padding: 6px 12px;
  border-radius: 9999px;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-bottom: 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-tertiary);
}
.post-share-buttons {
  display: inline-flex;
  gap: 8px;
}
.post-share button, .post-share a {
  appearance: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.post-share button:hover, .post-share a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}
.post-share svg { width: 16px; height: 16px; }

/* The signature card before related posts — quiet brand close. */
.post-cta {
  margin: 24px auto 80px;
  max-width: 760px;
  padding: 36px 28px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.post-cta-mark {
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.post-cta-body {
  flex: 1;
  min-width: 240px;
}
.post-cta-body strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin-bottom: 4px;
}
.post-cta-body span {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-secondary);
}
.post-cta .btn-primary {
  font-size: 14px;
  padding: 12px 22px;
}

/* Related — 3 posts in a hairline row */
.post-related {
  background: var(--surface-section);
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}
.post-related h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
.related-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.related-list > li + li { border-left: 1px solid var(--border); }
.related-list .post-card h3 { font-size: 19px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hub-intro { padding: 64px 0 40px; }
  .featured { grid-template-columns: 1fr; gap: 28px; }
  .featured .cover { aspect-ratio: 16/10; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-grid > li:not(:nth-child(3n+1)) { border-left: none; }
  .hub-grid > li:not(:nth-child(2n+1)) { border-left: 1px solid var(--border); }
  .hub-grid > li:last-child:not(:nth-child(3n)) { border-right: none; }
  .hub-grid > li:last-child:not(:nth-child(2n)) { border-right: 1px solid var(--border); }
  .related-list { grid-template-columns: 1fr; }
  .related-list > li + li { border-left: none; border-top: 1px solid var(--border); }
  .post-header { padding-top: 32px; }
}
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-grid > li { border-left: none !important; border-right: none !important; }
  .post-card { padding: 22px; }
  .byline { flex-wrap: wrap; row-gap: 8px; }
  .byline .byline-meta { margin-left: 0; width: 100%; }
  .post-cta { padding: 28px 22px; }
  .post-prose blockquote { padding-left: 0; padding-top: 48px; }
  .post-prose blockquote::before { top: 0; }
}
