/* Changelog pages (/blog, /blog/:slug) — the Ask Avi dev blog. Styled on
   the docs/legal design system (same .lp.legal shell and warm palette), so
   blog cards, post bodies and the subscribe band feel like the same brand. */

.lp.legal .legal-article.blog {
  max-width: 760px;
}

.blog-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #b3552f;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.lp.legal .legal-article.blog > h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #241f19;
  margin: 0 0 18px;
}

.blog-lede {
  color: #6b5d48;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 30px;
}

.blog-subscribe {
  margin: 0 0 34px;
}

.blog-subscribe-band {
  background: #f3eee4;
  border: 1px solid #e7dfd0;
  border-radius: 14px;
  padding: 22px 24px;
}

.newsletter-form label {
  display: block;
  font-weight: 700;
  color: #241f19;
  font-size: 15px;
  margin: 0 0 10px;
}

.newsletter-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.newsletter-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid #d8cdb8;
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: #241f19;
  background: #fffdf8;
}

.newsletter-row input[type="email"]:focus {
  outline: 2px solid #c2603e;
  outline-offset: 1px;
}

.newsletter-row .lp-book-btn {
  white-space: nowrap;
}

.newsletter-status {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #6b5d48;
}

.newsletter-status-error {
  color: #a8372b;
}

.blog-list {
  display: grid;
  gap: 14px;
  margin: 0 0 34px;
}

a.blog-post-card {
  display: block;
  background: #f7f2e9;
  border: 1px solid #eadfc9;
  border-radius: 14px;
  padding: 22px 24px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.blog-post-card:hover {
  border-color: #c2603e;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(36, 31, 25, 0.07);
}

.blog-post-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b3552f;
  margin: 0 0 8px;
}

.blog-post-title {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  color: #241f19;
  margin: 0 0 8px;
}

.blog-post-tagline {
  display: block;
  color: #6b5d48;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.blog-post-read {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #c2603e;
}

.blog-empty {
  color: #6b5d48;
  margin: 0 0 30px;
}

/* ── Roadmap: progress bar + milestones + vision ── */
.blog-anchor-note a {
  font-size: 14px;
  font-weight: 700;
  color: #b3552f;
  text-decoration: none;
}
.blog-anchor-note a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-roadmap {
  background: #f7f2e9;
  border: 1px solid #eadfc9;
  border-radius: 16px;
  padding: 26px 28px;
  margin: 0 0 38px;
}
.roadmap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.roadmap-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  color: #241f19;
  margin: 0;
}
.roadmap-count {
  font-size: 13px;
  font-weight: 700;
  color: #b3552f;
  font-variant-numeric: tabular-nums;
}
.roadmap-track {
  height: 10px;
  background: #e7dfd0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 18px;
}
.roadmap-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c2603e, #8c4322);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.roadmap-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.roadmap-item {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  grid-template-areas: "dot label status window" ". detail detail detail";
  align-items: baseline;
  gap: 2px 10px;
}
.roadmap-dot {
  grid-area: dot;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8cdb8;
}
.roadmap-achieved .roadmap-dot {
  background: #5ea17c;
}
.roadmap-in_progress .roadmap-dot {
  background: #c2603e;
  box-shadow: 0 0 0 3px rgba(194, 96, 62, 0.2);
}
.roadmap-upcoming .roadmap-dot {
  background: #d8cdb8;
}
.roadmap-label {
  grid-area: label;
  font-weight: 700;
  font-size: 15px;
  color: #241f19;
}
.roadmap-upcoming .roadmap-label {
  color: #8a7c6a;
}
.roadmap-status {
  grid-area: status;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 9px;
  background: #efe8d8;
  color: #8a7c6a;
}
.roadmap-achieved .roadmap-status {
  background: rgba(94, 161, 124, 0.16);
  color: #3d7a54;
}
.roadmap-in_progress .roadmap-status {
  background: rgba(194, 96, 62, 0.14);
  color: #b3552f;
}
.roadmap-window {
  grid-area: window;
  font-size: 12px;
  color: #8a7c6a;
  font-variant-numeric: tabular-nums;
}
.roadmap-detail {
  grid-area: detail;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6b5d48;
}
.roadmap-vision {
  margin: 0;
  padding: 16px 18px;
  background: #fffdf8;
  border: 1px dashed #d8cdb8;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a4238;
}

@media (max-width: 640px) {
  .roadmap-item {
    grid-template-columns: 14px 1fr;
    grid-template-areas: "dot label" ". status" ". window" ". detail";
  }
}

.blog-back {
  margin: 0 0 18px;
}

.blog-back a {
  color: #8a7c6a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.blog-back a:hover {
  color: #b3552f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp.legal .legal-article.blog .blog-post-tagline {
  font-size: 17px;
  margin-bottom: 26px;
}

/* Server-rendered Mermaid figures (Kroki SVG baked into the page HTML). */
.lp.legal .legal-article.blog .mermaid-figure {
  background: #f7f2e9;
  border: 1px solid #eadfc9;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 26px 0;
  overflow-x: auto;
}
.lp.legal .legal-article.blog .mermaid-figure svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.lp.legal .legal-article.blog .mermaid-fallback {
  background: #f3eee4;
  border-style: dashed;
}
.lp.legal .legal-article.blog .mermaid-fallback pre {
  background: none;
  color: #8c4322;
  padding: 0;
  margin: 0;
  font-family: "Instrument Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
}

/* Post body reuses the docs design tokens below the byline. */
.lp.legal .legal-article.blog .blog-body h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  color: #241f19;
  margin: 38px 0 14px;
  padding-top: 24px;
  border-top: 1px dashed #e7dfd0;
}

.lp.legal .legal-article.blog .blog-body h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: #241f19;
  margin: 28px 0 10px;
}

.lp.legal .legal-article.blog .blog-body p {
  color: #4a4238;
  font-size: 16px;
  line-height: 1.7;
}

.lp.legal .legal-article.blog .blog-body ul,
.lp.legal .legal-article.blog .blog-body ol {
  color: #4a4238;
  line-height: 1.6;
  padding-left: 24px;
}

.lp.legal .legal-article.blog .blog-body strong {
  color: #241f19;
}

.lp.legal .legal-article.blog .blog-body a {
  color: #b3552f;
}

@media (max-width: 560px) {
  .newsletter-row {
    flex-direction: column;
  }
}