/* Blog typography. Loaded by post + blog-index templates. */

.prose {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #07191B;
  font-size: 15px;
  line-height: 1.75;
}

.prose > * + * { margin-top: 1.25em; }

.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
  border-left: 4px solid #c84f42;
  padding-left: 0.75rem;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #07191B;
}

.prose h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

.prose p { margin-top: 1em; }

.prose a {
  color: #c84f42;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover {
  color: #07191B;
  background: #c84f42;
  text-decoration: none;
  padding: 0 2px;
}

.prose strong { font-weight: 800; }
.prose em { font-style: italic; }

.prose ul, .prose ol {
  margin-top: 1em;
  padding-left: 1.5em;
}
.prose ul { list-style: none; }
.prose ul > li {
  position: relative;
  padding-left: 1.25em;
}
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5em;
  height: 0.5em;
  background: #00bcd4;
}
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.4em; }

.prose blockquote {
  margin: 1.5em 0;
  padding: 0.75em 1.25em;
  border-left: 4px solid #07191B;
  background: #f0efea;
  font-style: italic;
}

.prose code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: #f0efea;
  border: 1px solid rgba(7, 25, 27, 0.1);
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

.prose pre {
  margin: 1.5em 0;
  padding: 1.25em;
  background: #07191B;
  color: #f0efea;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.5;
  border: 3px solid #07191B;
  box-shadow: 4px 4px 0 #c84f42;
}
.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.prose hr {
  margin: 3em 0;
  border: none;
  border-top: 3px solid #07191B;
}

.prose img {
  margin: 2em 0;
  border: 3px solid #07191B;
  box-shadow: 4px 4px 0 #07191B;
}

/* Header anchor links rendered by markdown-it-anchor (headerLink mode wraps the heading text). */
.prose h2 a, .prose h3 a, .prose h4 a {
  color: inherit;
  text-decoration: none;
  background: none;
}
.prose h2 a:hover, .prose h3 a:hover, .prose h4 a:hover {
  color: #c84f42;
  background: none;
  padding: 0;
}

/* FAQ section rendered by build-blog.mjs */
.faq {
  margin-top: 4em;
  padding-top: 2em;
  border-top: 3px solid #07191B;
}
.faq h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1em;
  border-left: 4px solid #00bcd4;
  padding-left: 0.75rem;
}
.faq-item {
  border: 2px solid #07191B;
  margin-bottom: 0.75em;
  background: #ffffff;
}
.faq-item[open] {
  box-shadow: 4px 4px 0 #00bcd4;
}
.faq-q {
  cursor: pointer;
  padding: 0.85em 1em;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-anchor {
  color: #c84f42;
  text-decoration: none;
  font-size: 0.85em;
}
.faq-q:hover { background: #f0efea; }
.faq-a {
  padding: 0 1em 1em 1em;
  color: #07191B;
  line-height: 1.7;
}

/* Blog index post cards */
.post-card {
  display: block;
  padding: 1.5em;
  border: 3px solid #07191B;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.post-card:hover {
  box-shadow: 6px 6px 0 #c84f42;
  transform: translate(-2px, -2px);
}
.post-card-date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777777;
  margin-bottom: 0.5em;
}
.post-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5em;
}
.post-card-desc {
  font-size: 0.9rem;
  color: #777777;
  line-height: 1.6;
}

/* Shiki overrides — keep our own background for cohesion */
.prose pre.shiki { background: #07191B !important; }
