/* Blog typography and index cards.

   Separate from site.css so the homepage's byte budget stays flat: nothing on
   the marketing page needs prose measure, table wrappers or post cards, and
   nothing here needs the hero, the phone mockup or the waiting-list modal.
   Both are served no-cache, so the second request costs a 304.

   Conventions follow site.css exactly — literal hex rather than custom
   properties, the same palette (#0a0c10 ground, #14171c raised, #f5f6f8 text,
   #c7ccd4 secondary, #8a8f98 muted, #30D158 accent, hairlines in
   rgba(255,255,255,.06-.14)), and breakpoints mirroring 900/600/460.

   Unlike index.html, generated blog markup carries *no inline styles at all*.
   index.html's ~490 of them are the design straight from a Claude Design
   canvas and are left alone deliberately; these pages have no such original,
   and an inline `display` cannot be overridden by any stylesheet rule — media
   query or not — which is the sharp edge that made .topnav declare its own. */

/* --- Shell ---------------------------------------------------------------- */

.post-wrap {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 96px;
}

/* --- Breadcrumbs ---------------------------------------------------------- */

.crumbs { margin: 0 0 28px; font-size: 14px; color: #8a8f98; }

.crumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* The separator is decoration: a real character here would be read aloud
   between every crumb, and the list already conveys the structure. */
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #4a4f57;
}

.crumbs a { color: #8a8f98; }
.crumbs a:hover { color: #c7ccd4; }
.crumbs [aria-current] { color: #c7ccd4; }

/* The deepest crumb is a whole article title; clamped so it cannot push the
   trail onto three lines on a phone. */
.crumbs li:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Article head --------------------------------------------------------- */

.post-h1 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #f5f6f8;
}

.post-lede {
  margin: 0 0 40px;
  font-size: 19px;
  line-height: 1.65;
  color: #c7ccd4;
}

.post-meta {
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #8a8f98;
}

.post-dot { color: #4a4f57; }

.post-tags {
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tag {
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: #14171c;
  font-size: 13px;
  font-weight: 500;
  color: #c7ccd4;
}

.post-hero { margin: 0 0 40px; }

.post-hero img,
.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

/* --- Body ----------------------------------------------------------------- */

.post-body {
  font-size: 18px;
  line-height: 1.75;
  color: #c7ccd4;
}

.post-body p { margin: 0 0 24px; }

.post-body strong { color: #f5f6f8; font-weight: 600; }

.post-body h2,
.post-body h3,
.post-body h4 {
  margin: 48px 0 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #f5f6f8;
  /* The header is sticky; without this a heading landed on from the table of
     contents or a shared #fragment sits underneath it. */
  scroll-margin-top: 100px;
}

.post-body h2 { font-size: 29px; font-weight: 700; }
.post-body h3 { font-size: 22px; font-weight: 600; }
.post-body h4 { font-size: 18px; font-weight: 600; }

.post-body > :first-child { margin-top: 0; }

.post-list { margin: 0 0 24px; padding-left: 24px; }
.post-list li { margin-bottom: 10px; }
.post-list li::marker { color: #8a8f98; }

.post-body blockquote {
  margin: 0 0 24px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid #30D158;
  color: #f5f6f8;
}

.post-body blockquote p { margin: 0; }

.post-body hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.post-body code {
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  background: #14171c;
  font-size: 0.88em;
  color: #f5f6f8;
}

.post-code {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: #0f1115;
  /* A code block is one of two things on a text page that cannot be made
     narrower than its content. It scrolls inside its own box so the document
     never scrolls sideways. */
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.post-code code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
  color: #c7ccd4;
}

/* The other one. */
.post-table {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}

.post-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.post-table th,
.post-table td {
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.post-table th {
  background: #14171c;
  font-weight: 600;
  color: #f5f6f8;
}

.post-table tbody tr:last-child td { border-bottom: 0; }

.post-body a { border-bottom: 1px solid rgba(48,209,88,0.35); }
.post-body a:hover { border-bottom-color: #7CE49A; }

.post-disclaimer {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  line-height: 1.6;
  color: #6d727a;
}

/* --- Closing CTA ---------------------------------------------------------- */

.post-cta {
  margin: 40px 0 0;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: #14171c;
}

.post-cta-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #f5f6f8;
}

.post-cta-body {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #c7ccd4;
}

.post-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 26px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 700;
}

/* --- Index and related cards ---------------------------------------------- */

.post-related { margin-top: 72px; }

.post-related-title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 600;
  color: #f5f6f8;
}

.post-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.post-card-link {
  display: block;
  padding: 24px 26px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: #14171c;
  color: #f5f6f8;
  transition: border-color .16s ease, background .16s ease;
}

.post-card-link:hover {
  border-color: rgba(255,255,255,0.16);
  background: #171b21;
  color: #f5f6f8;
}

.post-card-title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: #f5f6f8;
}

.post-card-desc {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #c7ccd4;
}

.post-card-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8a8f98;
}

/* --- Breakpoints ----------------------------------------------------------
   Mirroring site.css: 900 for the first step down, 600 for the phone layout,
   460 for the narrow end where the header wordmark already drops. */

@media (max-width: 900px) {
  .post-wrap { padding-top: 44px; padding-bottom: 72px; }
  .post-h1 { font-size: 38px; }
  .post-body h2 { font-size: 26px; margin-top: 44px; }
}

@media (max-width: 600px) {
  .post-wrap { padding-top: 32px; padding-bottom: 56px; }
  .post-h1 { font-size: 31px; }
  .post-lede { font-size: 17px; margin-bottom: 32px; }
  .post-body { font-size: 17px; }
  .post-body h2 { font-size: 24px; margin-top: 40px; }
  .post-body h3 { font-size: 20px; }
  .post-cta { padding: 26px 22px; }
  .post-cta-title { font-size: 21px; }
  /* Full width puts the action inside the thumb's arc, matching what the
     homepage's hero and closing CTA do at this width. */
  .post-cta-btn { display: flex; width: 100%; }
  .post-card-link { padding: 20px 22px; }
  .post-card-title { font-size: 19px; }
  .post-related { margin-top: 56px; }
}

@media (max-width: 460px) {
  .post-h1 { font-size: 28px; }
  .post-hero img, .post-figure img { border-radius: 12px; }
  .post-code { padding: 14px 16px; }
}
