/* ==========================================================================
   blog.css — styling for Markdown-rendered blog article content.
   Loaded only by the blog templates. The rest of the site is unaffected.
   Palette mirrors the Tailwind tokens: frost #F2F5F9, mist #8B97A8,
   accent #FF4E1F, panel #0A101C, line rgba(148,163,184,0.14).
   ========================================================================== */

.article-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #C7D0DC;
}

.article-content > *:first-child { margin-top: 0; }

/* Headings — Instrument Serif display face, matching the site */
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  color: #F2F5F9;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.article-content h2 { font-size: 2rem; margin: 2.75rem 0 1rem; }
.article-content h3 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
.article-content h4 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }

.article-content p { margin: 1.15rem 0; }

/* Links */
.article-content a {
  color: #FF4E1F;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 78, 31, 0.35);
  transition: border-color 0.2s ease;
}
.article-content a:hover { border-bottom-color: #FF4E1F; }

.article-content strong { color: #F2F5F9; font-weight: 600; }
.article-content em { font-style: italic; }

/* Lists */
.article-content ul,
.article-content ol { margin: 1.15rem 0; padding-left: 1.4rem; }
.article-content li { margin: 0.5rem 0; }
.article-content ul > li { list-style: none; position: relative; }
.article-content ul > li::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: #FF4E1F;
}
.article-content ol { list-style: decimal; }
.article-content ol > li { padding-left: 0.25rem; }

/* Blockquote */
.article-content blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid #FF4E1F;
  color: #8B97A8;
  font-style: italic;
}
.article-content blockquote p { margin: 0.5rem 0; }

/* Inline + block code — JetBrains Mono */
.article-content code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.875em;
  background: rgba(148, 163, 184, 0.12);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  color: #F2F5F9;
}
.article-content pre {
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  background: #0A101C;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  overflow-x: auto;
  line-height: 1.6;
}
.article-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
  color: #C7D0DC;
}

/* Media */
.article-content img,
.article-content video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.75rem 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}
.article-content th,
.article-content td {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
}
.article-content th { color: #F2F5F9; font-weight: 600; background: rgba(148, 163, 184, 0.06); }

/* Horizontal rule */
.article-content hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  margin: 2.5rem 0;
}

/* Blog index cards */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #05080F;
  padding: 2rem;
  transition: background-color 0.3s ease;
}
.blog-card:hover { background: #0A101C; }
.blog-card:hover .blog-card__title { color: #FF4E1F; }
.blog-card__title { transition: color 0.2s ease; }
