/* ==========================================================================
   Echo Replay — blog (/blog, /blog/<slug>), on top of styles.css tokens.
   Listing: the newest post as one slate, the rest as a ruled rundown.
   Post: a 720px measure; the authors' callouts restyled for the dark theme.
   ========================================================================== */

.blog, .post { padding-top: 85px; }              /* under the fixed nav */
.blog > .container, .post__frame { padding-left: 40px; padding-right: 40px; }

/* ---- Shared meta line: date | author | read time ---- */
.post-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-eyebrow);
}
.post-meta__sep {
  display: inline-block;
  width: 1px; height: 12px;
  margin: 0 14px;
  vertical-align: -1px;
  background: var(--hairline-strong);
}

/* ==========================================================================
   Listing
   ========================================================================== */
.blog__head { padding-top: 96px; padding-bottom: 56px; }
.blog__title {
  margin: 18px 0 20px;
  max-width: 900px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .96;
  letter-spacing: -.025em;
  font-weight: 900;
  text-transform: uppercase;
}
.blog__lede { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.65; color: var(--text-body); }
.blog__empty { margin: 0; font-size: 18px; color: var(--text-muted); }

/* The newest post */
.lead {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color .2s ease;
}
.lead:hover { border-color: rgba(75, 123, 255, .55); color: var(--text); }
.lead__image { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lead__image--empty { background: var(--card); }
.lead__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 44px 40px;
  background:
    linear-gradient(rgba(30, 75, 255, .07) 1px, transparent 1px) 0 0 / 100% 46px,
    radial-gradient(120% 100% at 100% 0%, var(--hero-stop) 0%, var(--bg-alt) 62%);
}
.lead__title {
  margin: 14px 0 16px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -.02em;
  font-weight: 900;
  text-transform: uppercase;
}
.lead__summary {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lead__more {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.lead:hover .lead__more { color: var(--text); }

/* Earlier posts, newest first */
.rundown { margin-top: 56px; border-top: 1px solid var(--hairline-strong); }
.row {
  display: grid;
  grid-template-columns: 150px 1fr 220px;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
}
.row:hover { color: var(--text); background: linear-gradient(90deg, rgba(30, 75, 255, .07), transparent 60%); }
.row__date {
  align-self: start;
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.row__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.row:hover .row__title { color: var(--blue-light); }
.row__summary {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row__read { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-fine); }
.row__thumb {
  display: block;
  width: 220px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--hairline-strong);
  background: var(--card);
}

/* ---- Closing band on both pages ---- */
.blog-cta {
  margin-top: 110px;
  padding: 90px 0;
  background: linear-gradient(180deg, var(--cta-top), var(--bg));
  border-top: 1px solid var(--hairline);
}
.blog-cta__title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -.02em;
  font-weight: 900;
  text-transform: uppercase;
}
.blog-cta__sub { margin: 18px 0 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--text-body); }
.blog-cta .btn-row { margin-top: 32px; }
.blog-cta .container { padding: 0 40px; }

/* ==========================================================================
   Post
   ========================================================================== */
.post__frame { max-width: 1040px; padding-top: 72px; }
.post__back {
  display: inline-block;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.post__back::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 10px;
  vertical-align: 1px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.post__head { max-width: 960px; }
.post__title {
  margin: 16px 0 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.025em;
  font-weight: 900;
  text-transform: uppercase;
}
.post__figure { margin: 44px 0 0; max-width: 960px; }
.post__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
}

/* ---- Article body (HubSpot HTML, inline styles stripped) ---- */
.article {
  max-width: 720px;
  margin: 56px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-body);
  overflow-wrap: anywhere;
}
.article p { margin: 0 0 1.4em; }
.article .echo-lead { font-size: 22px; line-height: 1.5; color: var(--text); letter-spacing: -.005em; }
.article .echo-answer { padding-left: 18px; border-left: 2px solid var(--blue); color: var(--text); }
.article h2 {
  margin: 2.4em 0 .7em;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--text);
}
.article h2 .eyebrow { display: block; margin-bottom: 10px; font-size: 12px; }
.article h3 { margin: 1.8em 0 .5em; font-size: 21px; line-height: 1.25; font-weight: 800; color: var(--text); }
.article a {
  color: var(--blue-light);
  text-decoration: underline;
  text-decoration-color: rgba(75, 123, 255, .45);
  text-underline-offset: 3px;
}
.article a:hover { color: var(--text); text-decoration-color: currentColor; }
.article strong { color: var(--text); font-weight: 700; }
.article ul, .article ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.article li { margin-bottom: .5em; }
.article img { display: block; height: auto; border-radius: 4px; }
.article hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--hairline-strong); }

/* Key takeaways / callout panels */
.article .echo-key, .article .echo-callout {
  margin: 2.2em 0;
  padding: 26px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--hairline-mid);
  border-radius: 6px;
  font-size: 16px;
}
.article .echo-key { border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0; }
.article .echo-key .head, .article .echo-callout .head {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-eyebrow);
}
.article .echo-key ul, .article .echo-callout ul { margin: 0; padding-left: 1.1em; }
.article .echo-callout .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.article .echo-callout .col .label {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.article .echo-callout .col.them { color: var(--text-muted); }
.article .echo-callout .col.them .label { color: var(--text-fine); }
.article .echo-callout .col.us .label { color: var(--blue-light); }
.article .echo-callout .col ul { font-size: 15px; }

/* Big numbers */
.article .echo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 2.4em 0; }
.article .echo-stats .s { padding-top: 16px; border-top: 2px solid var(--blue); }
.article .echo-stats .n { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--text); }
.article .echo-stats .l { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--text-muted); }

/* Pull quote */
.article .echo-pull { margin: 2.4em 0; padding-left: 28px; border-left: 3px solid var(--blue); }
.article .echo-pull p { margin: 0 0 14px; font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--text-quote); }
.article .echo-pull cite { display: block; font-style: normal; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--text-muted); }

/* FAQ */
.article .echo-faq { margin: 2.4em 0; border-top: 1px solid var(--hairline-strong); }
.article .echo-faq .qa { padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.article .echo-faq h3 { margin: 0 0 10px; font-size: 19px; }
.article .echo-faq p { margin: 0; font-size: 16px; }

/* Tables */
.article table { width: 100%; margin: 2.2em 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.article caption {
  padding-bottom: 12px;
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-eyebrow);
}
.article th, .article td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.article th { width: 32%; font-weight: 700; color: var(--text); }
.article thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

/* Previous / next */
.neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 80px 0 0; }
.neighbour {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  color: var(--text);
}
.neighbour:hover { border-color: var(--blue-light); color: var(--text); }
.neighbour--empty { border: 0; }
.neighbour:last-child { align-items: flex-end; text-align: right; }
.neighbour__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-fine); }
.neighbour__title { font-size: 18px; font-weight: 800; line-height: 1.25; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .lead { grid-template-columns: 1fr; }
  .lead__image { height: auto; aspect-ratio: 16 / 9; }
  .row { grid-template-columns: 120px 1fr 180px; gap: 24px; }
  .row__thumb { width: 180px; }
}
@media (max-width: 880px) {
  .blog, .post { padding-top: 67px; }
}
@media (max-width: 720px) {
  .blog > .container, .post__frame { padding-left: 20px; padding-right: 20px; }
  .blog__head { padding-top: 60px; padding-bottom: 40px; }
  .lead__copy { padding: 28px 24px; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .row__date { padding-top: 0; }
  .row__thumb { display: none; }
  .blog-cta { margin-top: 80px; padding: 64px 0; }
  .blog-cta .container { padding: 0 20px; }
  .post__frame { padding-top: 48px; }
  .post__back { margin-bottom: 28px; }
  .article { margin-top: 40px; font-size: 17px; }
  .article .echo-lead { font-size: 20px; }
  .article h2 { font-size: 26px; }
  .article .echo-key, .article .echo-callout { padding: 20px; }
  .article .echo-callout .cols { grid-template-columns: 1fr; gap: 20px; }
  .article .echo-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .article th { width: 40%; }
  .neighbours { grid-template-columns: 1fr; margin-top: 56px; }
  .neighbour:last-child { align-items: flex-start; text-align: left; }
  .neighbour--empty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lead { transition: none; }
}
