/* ============================================================
   blog.css — long-form article layout for the Journal.
   Rides on styles.css tokens; only adds article-specific type.
   ============================================================ */

/* ---- article hero ---- */
.post-hero {
  padding: clamp(120px, 16vw, 180px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.post-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; margin-bottom: clamp(20px, 3vw, 32px);
}
.post-back:hover { color: var(--terra); }
.post-eyebrow { margin-bottom: 1.1rem; }
.post-title {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.03; letter-spacing: -0.02em; color: var(--ink);
  max-width: 18ch; margin: 0 0 1.3rem;
}
.post-dek {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5; color: var(--ink-2);
  max-width: 56ch; margin: 0 0 1.8rem;
}
.post-byline {
  display: flex; align-items: center; gap: 14px;
  font-size: .95rem; color: var(--ink-2);
}
.post-byline .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--terra-tint); color: var(--terra-deep);
  display: grid; place-items: center;
  font-family: var(--hand); font-size: 1.3rem; font-weight: 700;
  flex: 0 0 auto;
}
.post-byline strong { color: var(--ink); font-weight: 600; }
.post-byline .dotsep {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--line); vertical-align: middle; margin: 0 2px;
}

/* ---- article body ---- */
.post-body { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 40px); }
.post-body .wrap-narrow > * { margin-left: auto; margin-right: auto; }

.post-body h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.08; letter-spacing: -0.015em; color: var(--ink);
  margin: clamp(48px, 6vw, 76px) 0 1rem;
}
.post-body h3 {
  font-family: var(--sans);
  font-size: 1.28rem; font-weight: 700; color: var(--ink);
  margin: 2rem 0 .5rem;
}
.post-body p {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.66; color: var(--ink-2);
  margin: 0 0 1.2rem;
}
.post-body p strong { color: var(--ink); font-weight: 600; }
.post-body .lead {
  font-size: clamp(1.18rem, 2vw, 1.4rem);
  color: var(--ink); line-height: 1.55;
}
.post-body a.tlink {
  color: var(--terra-ink); text-decoration: none;
  border-bottom: 1.5px solid var(--terra-tint);
}
.post-body a.tlink:hover { border-bottom-color: var(--terra); }

/* trigger / signal lists */
.post-list { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0; }
.post-list li {
  position: relative; padding-left: 38px;
  font-family: var(--serif);
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.55; color: var(--ink-2);
  margin-bottom: 1rem;
}
.post-list li svg.hcheck { position: absolute; left: 0; top: .05em; }
.post-list li strong { color: var(--ink); font-weight: 600; }

/* numbered "keys" */
.keys { list-style: none; counter-reset: k; margin: 1.8rem 0; padding: 0; }
.keys li {
  counter-increment: k; position: relative;
  padding: 0 0 1.5rem 64px; margin: 0;
}
.keys li::before {
  content: counter(k, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--display); font-size: 1.6rem;
  color: var(--terra); line-height: 1;
}
.keys li h3 { margin: 0 0 .3rem; }
.keys li p { margin: 0; }

/* ---- case-study cards inside the article ---- */
.post-cases {
  display: grid; gap: clamp(20px, 3vw, 30px);
  margin: 2rem 0 1rem;
}
.post-case {
  display: block; text-decoration: none; color: inherit;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.post-case:hover { transform: translateY(-3px); }
.post-case .pc-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: .9rem;
}
.post-case .pc-no {
  font-family: var(--display); font-size: 1.15rem; color: var(--terra);
}
.post-case h3 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.05;
  color: var(--ink); margin: 0 0 .2rem;
}
.post-case .pc-kind { font-size: .92rem; color: var(--ink-2); margin: 0 0 1rem; }
.post-case .pc-block { margin-bottom: .9rem; }
.post-case .pc-block:last-child { margin-bottom: 0; }
.post-case .pc-label {
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--terra-deep);
  margin: 0 0 .25rem;
}
.post-case .pc-block p {
  font-family: var(--serif); font-size: 1.02rem; line-height: 1.55;
  color: var(--ink-2); margin: 0;
}
.post-case .pc-focus {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: 1rem;
}
.post-case .chip {
  font-size: .8rem; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px;
}
.post-case .pc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1.1rem; font-weight: 600; color: var(--terra-ink);
}

/* pull-quote / callout */
.post-callout {
  border-left: 3px solid var(--terra);
  background: var(--terra-tint);
  border-radius: 0 14px 14px 0;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 3vw, 32px);
  margin: 2rem 0;
}
.post-callout p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem); line-height: 1.5;
  color: var(--terra-ink); margin: 0;
}

/* honest concept note */
.post-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper-2); border: 1px dashed var(--line);
  border-radius: 14px; padding: 18px 20px; margin: 2rem 0;
}
.post-note p { font-size: .98rem; margin: 0; color: var(--ink-2); }
.post-note .post-note-tag {
  font-family: var(--hand); font-size: 1.3rem; color: var(--terra);
  flex: 0 0 auto; line-height: 1;
}

/* author bio */
.post-author {
  display: flex; gap: 18px; align-items: flex-start;
  border-top: 1px solid var(--line); margin-top: clamp(44px, 6vw, 68px);
  padding-top: clamp(28px, 4vw, 40px);
}
.post-author .avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--terra-tint); color: var(--terra-deep);
  display: grid; place-items: center;
  font-family: var(--hand); font-size: 1.7rem; font-weight: 700;
  flex: 0 0 auto;
}
.post-author h4 { font-size: 1.05rem; margin: 0 0 .35rem; color: var(--ink); }
.post-author p { font-size: .98rem; line-height: 1.55; margin: 0; color: var(--ink-2); }

@media (max-width: 640px) {
  .post-list li { padding-left: 32px; }
  .keys li { padding-left: 52px; }
}
