/* ---------------------------------------------------------------------------
   blog/blog.css - the few rules a post needs that the site does not already
   have. Loaded AFTER styles.css on every page under /blog/, and nowhere else.

   Everything else on a post is a block the site already ships: page-hero,
   section--paper, eyebrow, the browser embed, deal rows, faq-list, final-cta,
   the real header and footer. This file only styles the article body (the
   .post prose), the byline, the author box, the example block's link card,
   and the /blog/ listing. Tokens come from :root in styles.css.

   A separate file on purpose: styles.css is cache-stamped on every page's
   <link>, and adding rules there means bumping that stamp on eleven pages.
   This file carries its own ?v= (BLOG_CSS_VERSION in the CRM's article.ts).
   --------------------------------------------------------------------------- */

/* ---------- the hero ------------------------------------ */
.post-hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  max-width: 860px;
}
.post-hero .post-answer {
  font-size: 19px;
  line-height: 1.6;
  max-width: 720px;
  color: var(--offwhite);
}
.post-byline {
  margin-top: 22px !important;
  font-family: var(--font-mono);
  font-size: 11px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-on-dark) !important;
}
.post-byline a {
  color: var(--signal-amber);
  text-decoration: none;
}
.post-byline a:hover { text-decoration: underline; }

/* ---------- the article body ---------------------------- */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 0;
}
.post h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 56px 0 18px;
}
.post h2:first-child { margin-top: 0; }
.post p,
.post li {
  font-size: 18px;
  line-height: 1.72;
  color: var(--body-ink);
  margin: 0 0 20px;
}
.post ul {
  margin: 0 0 24px;
  padding-left: 22px;
  list-style: disc;
}
.post li { margin-bottom: 8px; }
.post a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal-amber);
  text-underline-offset: 3px;
}
.post a:hover { color: var(--signal-amber); }
.post-related {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 13px !important;
  letter-spacing: 0.02em;
}

/* ---------- the example block --------------------------- */
.post-example {
  margin: 40px 0 44px;
}
.post-example .eyebrow { margin-bottom: 14px; }
.post-example .browser { margin: 0; }
.post-example__note {
  margin-top: 14px !important;
  text-align: left;
  flex: none;
}
.post-example__note a { color: var(--ink); }
.post-example__card {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--ink);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.post-example__card:hover { background: var(--ink); color: var(--offwhite); }
.post-example__host {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-amber);
}
.post-example__biz {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.post-example__go {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
}
.browser-spacer { flex: 0 0 40px; }

/* ---------- the author box ------------------------------ */
.post-author {
  display: grid;
  gap: 4px;
  margin-top: 48px;
  padding: 22px 24px;
  border-left: 3px solid var(--signal-amber);
  background: var(--drafting-paper-alt);
}
.post-author__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.post-author__line {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-ink);
}

/* ---------- the FAQ on paper-alt ------------------------ */
.post-faq { max-width: 880px; }

/* ---------- /blog/, the listing ------------------------- */
.post-feed-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-amber);
  text-decoration: none;
  margin-left: 10px;
}
.post-feed-link:hover { text-decoration: underline; }
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 880px;
  border-top: 1px solid var(--edge);
}
.post-list__item { border-bottom: 1px solid var(--edge); }
.post-list__item a {
  display: grid;
  gap: 8px;
  padding: 28px 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-out);
}
.post-list__item a:hover { background: var(--surface); }
.post-list__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-amber);
}
.post-list__q {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.post-list__d {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-ink);
  max-width: 720px;
}
.post-empty {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--body-ink);
}
.post-empty a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal-amber); }

@media (max-width: 720px) {
  .post h2 { font-size: 25px; margin-top: 40px; }
  .post p, .post li { font-size: 17px; }
  .post-list__q { font-size: 22px; }
  .post-example { margin: 32px 0 36px; }
}
