/* ── cerver blog — long-form typography on the spectrum design system ──
   Loaded AFTER spectrum.css. Reuses its tokens (--paper, --ink, --muted,
   --line, --accent, --c-*, --mono, --sans). Two surfaces:
   1. .post   — a single article (readable measure, headings, quotes, math)
   2. .blog-* — the index list of posts                                    */

/* ── article ───────────────────────────────────────────────────────── */
.post { max-width: 720px; margin: 0 auto; padding: 0 40px; }

.post-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.post-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
}
.post-eyebrow .block { width: 12px; height: 12px; }
.post-head h1 {
  font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 18px; color: var(--ink);
}
.post-dek { font-size: 19px; line-height: 1.5; color: var(--muted); margin: 0; }
.post-meta {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: 22px; display: flex; gap: 16px; flex-wrap: wrap;
}
.post-meta time::before { content: ""; }

.post-body { padding: 36px 0 8px; font-size: 17.5px; line-height: 1.72; }
.post-body > p { margin: 0 0 22px; }
.post-body h2 {
  font-size: 25px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700;
  color: var(--ink); margin: 46px 0 16px;
}
.post-body h3 {
  font-size: 19px; font-weight: 700; color: var(--ink); margin: 34px 0 12px;
}
.post-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.post-body a:hover { color: var(--accent); }
.post-body strong { font-weight: 600; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 22px; }
.post-body li { margin: 0 0 9px; }
.post-body code {
  font-family: var(--mono); font-size: .86em; background: var(--paper-2);
  padding: 1px 6px; border: 1px solid var(--line);
}

/* pull-quote */
.post-body blockquote {
  margin: 32px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent);
  font-size: 22px; line-height: 1.4; color: var(--ink); font-weight: 500;
}
.post-body blockquote cite {
  display: block; margin-top: 12px; font-size: 13px; font-style: normal;
  font-family: var(--mono); color: var(--muted);
}

/* simple-math "cost block" — three textured tiles with a verdict */
.mathblock { margin: 34px 0; border: 1px solid var(--line); }
.mathblock-row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.mathblock-cell { padding: 22px 20px; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.mathblock-cell:last-child { border-right: 0; }
.mathblock-cell .block { position: absolute; inset: 0; opacity: .14; }
.mathblock-cell .k { position: relative; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mathblock-cell .v { position: relative; font-family: var(--mono); font-size: 27px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.mathblock-cell .n { position: relative; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.mathblock-foot {
  border-top: 1px solid var(--line); padding: 14px 20px; background: var(--paper-2);
  font-family: var(--mono); font-size: 14px; color: var(--ink);
}
.mathblock-foot b { color: var(--accent); }

/* end-of-post CTA */
.post-cta {
  margin: 48px 0 12px; padding: 30px; border: 1px solid var(--line);
  background: var(--paper-2);
}
.post-cta h3 { font-size: 21px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.post-cta p { font-size: 15.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.55; }
.post-cta .row { display: flex; gap: 12px; flex-wrap: wrap; }
.post-cta a {
  font-family: var(--mono); font-size: 13px; padding: 11px 18px;
  border: 1px solid var(--ink); color: var(--ink); text-decoration: none; transition: background .15s, color .15s;
}
.post-cta a.primary { background: var(--ink); color: var(--paper); }
.post-cta a.primary:hover { background: var(--accent); border-color: var(--accent); }
.post-cta a:hover { background: var(--ink); color: var(--paper); }

.post-foot { margin: 40px 0 0; padding: 22px 0 64px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post-foot a { color: var(--muted); }
.post-foot a:hover { color: var(--ink); }

.post-note { font-size: 13px; color: var(--muted); font-style: italic; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; line-height: 1.55; }

/* ── index list ──────────────────────────────────────────────────────
   Centered to the same 1100px measure as the site header (.wrap) so the
   hero + post list line up with the logo/nav above. */
.blog-hero { max-width: var(--max); margin: 0 auto; padding: 60px 40px 40px; }
.blog-hero .post-eyebrow { margin-bottom: 16px; }
.blog-hero h1 { font-size: clamp(32px, 5.5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 16px; max-width: 14ch; }
.blog-hero p { font-size: 18px; color: var(--muted); margin: 0; max-width: 60ch; line-height: 1.55; }

.blog-list { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.blog-row { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .18s; align-items: start; }
.blog-row:hover { padding-left: 10px; }
.blog-row .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; line-height: 1.7; }
.blog-row .meta .chip { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; margin-right: 6px; }
.blog-row h2 { font-size: 22px; line-height: 1.22; letter-spacing: -0.01em; font-weight: 700; color: var(--ink); margin: 0 0 7px; }
.blog-row:hover h2 { color: var(--accent); }
.blog-row p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }
.blog-section-head { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 46px 0 4px; }

/* featured report card */
.blog-feature { max-width: var(--max); margin: 0 auto; padding: 4px 40px 0; }
.fcard { display: block; border: 1px solid var(--line); background: var(--paper-2); text-decoration: none; color: inherit; transition: border-color .15s; }
.fcard:hover { border-color: var(--ink); }
.fcard .fwrap { padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.fcard .eyebrow2 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 9px; }
.fcard h2 { font-size: 23px; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 7px; color: var(--ink); }
.fcard .fdek { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; max-width: 56ch; }
.fcard .btn { font-family: var(--mono); font-size: 13px; border: 1px solid var(--ink); padding: 11px 18px; white-space: nowrap; color: var(--ink); }
.fcard .fstats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fcard .fstat { padding: 15px 24px; border-right: 1px solid var(--line); }
.fcard .fstat:last-child { border-right: 0; }
.fcard .fstat .v { font-family: var(--mono); font-size: 21px; font-weight: 600; color: var(--ink); }
.fcard .fstat .l { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) {
  .blog-feature { padding-left: 22px; padding-right: 22px; }
  .fcard .fwrap { grid-template-columns: 1fr; }
  .fcard .fstats { grid-template-columns: 1fr; }
  .fcard .fstat { border-right: 0; border-bottom: 1px solid var(--line); }
  .fcard .fstat:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .post, .blog-hero, .blog-list { padding-left: 22px; padding-right: 22px; }
  .post { padding: 0 22px; }
  .mathblock-row { grid-template-columns: 1fr; }
  .mathblock-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .blog-row { grid-template-columns: 1fr; gap: 8px; }
}
