/* ============================================================
   Blog — index + article
   The blog was left on the original June wireframe styling (plain
   text brand, hairline black nav, no accent) while the rest of the
   site moved to logo.css + site-chrome.css in July. This file brings
   it onto the same system and adds the article typography the posts
   never had — they were carrying per-element inline margins instead.

   Load order on a blog page:
     style.css  ->  logo.css  ->  site-chrome.css  ->  site-overlays.css  ->  blog.css
   ============================================================ */

:root {
  /* site-chrome.css colours the nav pill from --accent, which each page
     is expected to define. The blog is brand-neutral — no business-page
     blue or green — so it takes the core Sukhi teal. */
  --accent: #086a6b;
  --accent-dark: #065758;
  --line: #e3e7e8;
  --paper: #f6f5f2;
}

/* ---------- SHARED ---------- */

.blog-wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* Category chip. Same object on the index cards and at the top of a
   post, so a reader recognises where they are. */
.post-cat {
  display: inline-block;
  font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  padding: 5px 11px; border-radius: 999px;
  text-decoration: none;
}
a.post-cat:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }

.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .74rem; color: var(--muted);
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---------- INDEX HERO ---------- */

.blog-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 96px 0 80px;
}
.blog-hero .display { max-width: 780px; letter-spacing: -.045em; }
.blog-hero .lead { max-width: 540px; margin-top: 22px; }

/* ---------- FEATURED POST ----------
   The newest/most substantial piece gets a wide two-column card so the
   index has a clear entry point instead of 15 equal-weight tiles. */

.blog-featured { padding: 64px 0 0; }
.feat-card {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
  border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; background: #fff;
  text-decoration: none; color: inherit;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.feat-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 18px 40px -20px rgba(8, 32, 31, .3);
}
.feat-body { padding: 44px 44px 40px; display: flex; flex-direction: column; }
.feat-body .h2 { margin: 16px 0 14px; letter-spacing: -.032em; }
.feat-body .body { color: var(--mid); }
.feat-read {
  margin-top: auto; padding-top: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; color: var(--accent);
  transition: gap .25s ease;
}
.feat-card:hover .feat-read { gap: 13px; }
/* Right panel is a flat tinted field rather than a stock photo — the blog
   has no art direction and a generic image reads worse than none. */
.feat-aside {
  background: linear-gradient(150deg, #0d3b3a 0%, #08201f 100%);
  color: #fff; padding: 44px 40px;
  /* Centred, not bottom-aligned — the left column is taller, so pinning the
     pull-quote to the bottom left two-thirds of the panel visibly empty. */
  display: flex; flex-direction: column; justify-content: center;
}
.feat-aside .eyebrow { color: rgba(255,255,255,.4); margin-bottom: 10px; }
.feat-aside-quote { font-size: 1.12rem; line-height: 1.55; font-weight: 500; letter-spacing: -.015em; }

/* ---------- CARD GRID ---------- */

.blog-grid-sect { padding: 56px 0 96px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px 26px; background: #fff;
  text-decoration: none; color: inherit;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 16px 34px -20px rgba(8, 32, 31, .28);
}
.post-card .h3 { margin: 14px 0 10px; letter-spacing: -.022em; }
.post-card .body { color: var(--mid); }
.post-card .post-meta { margin-top: auto; padding-top: 22px; }

/* Reveal on scroll — matches the .reveal treatment on the main pages. */
.reveal-card { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal-card.in-view { opacity: 1; transform: none; }

/* ---------- ARTICLE ---------- */

.post-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}
.post-head-inner { max-width: 760px; margin: 0 auto; }
.post-title {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.038em;
  margin: 18px 0 0;
}
.post-head .post-meta { margin-top: 22px; }

.post-article { padding: 60px 0 88px; }
.post-body { max-width: 720px; margin: 0 auto; }

/* Typography lives here rather than on per-element inline styles, which
   is what the posts shipped with. First paragraph reads as the dek. */
.post-body > p {
  font-size: 1.05rem; line-height: 1.78; color: var(--mid);
  margin-bottom: 24px;
}
.post-body > p:first-of-type {
  font-size: 1.2rem; line-height: 1.72; color: var(--ink);
  margin-bottom: 34px;
}
.post-body h2 {
  font-size: 1.42rem; font-weight: 700; line-height: 1.28;
  letter-spacing: -.024em; color: var(--ink);
  margin: 48px 0 16px;
}
.post-body ul { margin: 0 0 28px; padding-left: 4px; list-style: none; }
.post-body li {
  position: relative; padding-left: 26px; margin-bottom: 14px;
  font-size: 1.02rem; line-height: 1.72; color: var(--mid);
}
/* Accent rule instead of a bullet — the lists are all definition-style
   ("term — explanation"), so a dot fights the bolded lead-in. */
.post-body li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--accent); opacity: .55;
}
.post-body li strong, .post-body p strong { color: var(--ink); font-weight: 650; }

/* ---------- RELATED ---------- */

.post-related {
  max-width: 720px; margin: 64px auto 0;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.post-related h3 {
  font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  transition: border-color .25s ease, transform .25s ease;
}
.related-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); transform: translateY(-2px); }
.related-card .rc-cat { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.related-card .rc-title { font-size: .92rem; font-weight: 650; line-height: 1.36; letter-spacing: -.015em; margin-top: 8px; }

.post-back {
  max-width: 720px; margin: 40px auto 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; color: var(--mid);
  transition: gap .25s ease, color .25s ease;
}
.post-back:hover { gap: 13px; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .feat-card, .post-card, .related-card, .reveal-card, .feat-read, .post-back { transition: none; }
  .feat-card:hover, .post-card:hover, .related-card:hover { transform: none; }
  .reveal-card { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .blog-wrap { padding: 0 24px; }
  .blog-hero { padding: 64px 0 52px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .feat-card { grid-template-columns: 1fr; }
  .feat-aside { padding: 32px 30px; }
  .feat-body { padding: 34px 30px 30px; }
  .post-head { padding: 52px 0 40px; }
  .post-article { padding: 44px 0 64px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- CLOSING CTA ----------
   The blog shipped with style.css's flat-black .cta-band, which no longer
   matches the deep-green footer it sits directly on top of. Scoped to
   .blog-page so nothing else on the site inherits it. */
.blog-page .cta-band {
  background: linear-gradient(150deg, #0d3b3a 0%, #08201f 100%);
  color: #fff; text-align: center;
  padding: 96px 0;
}
.blog-page .cta-band .eyebrow { color: rgba(255,255,255,.4); }
.blog-page .cta-band .h2 { color: #fff; margin: 0 auto 16px; max-width: 480px; letter-spacing: -.032em; }
.blog-page .cta-band .cta-sub { color: rgba(255,255,255,.6); font-size: 1rem; margin: 0 auto 30px; max-width: 62ch; }
.blog-page .cta-band .btn-white { background: #fff; color: #08201f; border-color: #fff; }

/* ---------- POST IMAGERY ----------
   Added when the Squarespace archive was migrated in — every one of those posts
   brought a hero with it, so cards and articles are no longer text-only.

   Note the legacy images already have the retired teal lotus watermark baked
   into the bottom-right corner. That's accepted rather than reworked (see
   docs/blog-migration-notes.md), which is also why nothing here overlays a
   second mark on top. */

.card-media {
  /* Break out of .post-card's padding so the image meets the card edges. */
  margin: -30px -28px 0;
  border-radius: 19px 19px 0 0;
  overflow: hidden;
  background: var(--paper);
}
.card-media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.post-card:hover .card-media img { transform: scale(1.03); }
/* A card with an image needs less air above its category chip than one without. */
.card-media + div { margin-top: 24px; }

/* The title block and the hero are one visual unit, so the rule that normally
   closes .post-head moves down to sit under the image instead. */
.post-head:has(+ .post-hero) { border-bottom: 0; padding-bottom: 32px; }
.post-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 0 44px;
}
.post-hero .blog-wrap { max-width: 760px; }
.post-hero-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .card-media img, .post-card:hover .card-media img { transition: none; transform: none; }
}
@media (max-width: 900px) {
  .post-hero { padding-bottom: 32px; }
  .post-hero-img { border-radius: 14px; aspect-ratio: 16 / 9; }
}
