/* --- prose (rendered Markdown body) --- */
.prose { font-size: var(--fs-sm); line-height: 1.5; color: var(--color-fg); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.25em;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.prose h3 {
  margin-top: 1.75em;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.3;
}
.prose h4 {
  margin-top: 1.5em;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.3;
}
.prose p, .prose ul, .prose ol, .prose blockquote { margin-block: 1em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.35em; }
.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; color: var(--color-fg); }
.prose blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.25rem 0 0.25rem 1.1rem;
  color: var(--color-muted);
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.prose pre {
  background: var(--color-code-bg);
  color: var(--color-code-fg);
  padding: var(--sp-base);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--color-rule); margin-block: var(--sp-lg); }
.prose img, .prose video, .prose figure {
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 1.5em;
}
.prose img,
.prose video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.prose video { width: 100%; background: var(--color-bg-soft); }
.prose figure { text-align: center; }
.prose figure img,
.prose figure video { border-radius: 0; margin-inline: auto; }
.prose figure.wp-block-video { background: transparent; }
.prose figure.wp-block-video video { border-radius: var(--radius); }

/* Responsive video embeds (YouTube, Vimeo, etc). The figure handles the
   16:9 aspect; the iframe fills it. Same rounded-corner / vertical-rhythm
   treatment as .prose img/video. */
.prose figure.wp-block-embed {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-soft);
}
.prose figure.wp-block-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.prose th, .prose td {
  border-bottom: 1px solid var(--color-rule);
  padding: 0.6rem 0.5rem;
  text-align: left;
}
.prose th { font-weight: 700; }
