/* Forge blog — prose, article cards, and byline styling.
   Hand-written (not Tailwind-generated) so it survives main.css purging. */

/* ---------- shared layout ---------- */
.blog-article,
.blog-related,
.blog-cta {
  max-width: 760px;
}

.blog-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: #c9d3ee;
  text-decoration: none;
}
.blog-back:hover {
  color: #fff;
}

.blog-article h1 {
  font-family: "HelveticaNowDisplay", system-ui, sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 32px;
  line-height: 115%;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .blog-article h1 {
    font-size: 40px;
  }
}

.blog-byline {
  margin-top: 1rem;
  color: #939db8;
  font-size: 0.875rem;
  line-height: 150%;
}
.blog-byline time {
  color: #c9d3ee;
}

/* ---------- tags ---------- */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.blog-tags li {
  font-size: 0.75rem;
  color: #c9d3ee;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(114, 125, 161, 0.25);
  border-radius: 999px;
  background-color: rgba(114, 125, 161, 0.08);
}

.blog-rule {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(114, 125, 161, 0.2);
}

/* ---------- article prose ---------- */
.blog-prose {
  color: #d4d4d4;
  font-size: 1.0625rem;
  line-height: 175%;
  text-wrap: pretty;
}
.blog-prose > * + * {
  margin-top: 1.25rem;
}
.blog-prose h2 {
  color: #fff;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 130%;
  margin-top: 2.5rem;
}
.blog-prose h3 {
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 135%;
  margin-top: 2rem;
}
.blog-prose h2 + *,
.blog-prose h3 + * {
  margin-top: 0.75rem;
}
.blog-prose ul,
.blog-prose ol {
  padding-left: 1.4rem;
  margin-top: 1rem;
}
.blog-prose ul {
  list-style: disc;
}
.blog-prose ol {
  list-style: decimal;
}
.blog-prose li {
  margin-top: 0.4rem;
}
.blog-prose li::marker {
  color: #7c87f7;
}
.blog-prose a {
  color: #c9d3ee;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(201, 211, 238, 0.3);
}
.blog-prose a:hover {
  text-decoration-color: #c9d3ee;
}
.blog-prose strong {
  color: #fff;
  font-weight: 600;
}
.blog-prose em {
  font-style: italic;
}
.blog-prose blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid rgba(114, 125, 161, 0.4);
  color: #e5e7eb;
  font-style: italic;
}
.blog-prose code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background-color: rgba(114, 125, 161, 0.12);
  border: 1px solid rgba(114, 125, 161, 0.18);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
}
.blog-prose pre {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background-color: #0f101a;
  border: 1px solid rgba(147, 157, 184, 0.12);
  border-radius: 12px;
}
.blog-prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 165%;
}
.blog-prose hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(114, 125, 161, 0.2);
}

/* ---------- related articles ---------- */
.blog-related {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(114, 125, 161, 0.2);
}
.blog-related h2 {
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
}
.blog-related ul {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.blog-related li + li {
  margin-top: 0.75rem;
}
.blog-related a {
  color: #c9d3ee;
  text-decoration: none;
}
.blog-related a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.blog-related-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: #939db8;
}

/* ---------- CTA ---------- */
.blog-cta {
  margin-top: 3rem;
}
.blog-cta .prose-cta-box {
  padding: 1.75rem;
}

/* ---------- index card list ---------- */
.blog-card-list {
  margin-top: 2.5rem;
  max-width: 820px;
  padding: 0;
  list-style: none;
}
.blog-card {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(114, 125, 161, 0.15);
}
.blog-card:last-child {
  border-bottom: 1px solid rgba(114, 125, 161, 0.15);
}
.blog-card-title {
  text-decoration: none;
}
.blog-card-title h2 {
  color: #fff;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 130%;
  text-wrap: pretty;
  transition: color 0.2s ease;
}
.blog-card-title:hover h2 {
  color: #c9d3ee;
}
.blog-card-meta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #939db8;
}
.blog-card-meta time {
  color: #c9d3ee;
}
.blog-card-summary {
  margin-top: 0.75rem;
  color: #d4d4d4;
  line-height: 165%;
  text-wrap: pretty;
}
.blog-card-more {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: #c9d3ee;
  text-decoration: none;
}
.blog-card-more:hover {
  color: #fff;
}
