.post-body {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.post-body > * + * { margin-top: 1.3em; }

/* --- headings --- */
.post-body h1 {
  color: var(--color-text);
  font-size: 2.0rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 6rem;
}

.post-body h2 {
  color: var(--color-text);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  padding-bottom: 0.3em;
  scroll-margin-top: 6rem;
}

.post-body h3 {
  color: var(--color-text);
  font-size: 1.27rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  scroll-margin-top: 6rem;
}

.post-body h4 {
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

/* --- links --- */
.post-body a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity 0.15s ease;
}
.post-body a:hover { opacity: 0.8; }

/* --- emphasis --- */
.post-body strong { color: var(--color-text); font-weight: 600; }
.post-body em { font-style: italic; }

/* --- lists --- */
.post-body ul,
.post-body ol {
  padding-left: 1.5em;
  margin-top: 1.3em;
  margin-bottom: 1.3em;
}
.post-body ul { list-style-type: disc; }
.post-body ol { list-style-type: decimal; }
.post-body li { margin-top: 0.5em; padding-left: 0.3em; }
.post-body li::marker { color: var(--color-border); }

.post-body li > ul,
.post-body li > ol { margin-top: 0.5em; margin-bottom: 0.5em; }

/* --- blockquote --- */
.post-body blockquote {
  border-left: 3px solid var(--color-link);
  padding: 0.2em 0 0.2em 1.1em;
  color: var(--color-text-secondary);
  font-style: italic;
}
.post-body blockquote p { margin-top: 0.6em; }
.post-body blockquote p:first-child { margin-top: 0; }

/* --- rule --- */
.post-body hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin-top: 2.75em;
  margin-bottom: 2.75em;
}

/* --- tables --- */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}
.post-body th,
.post-body td {
  border: 1px solid var(--color-border);
  padding: 0.55em 0.8em;
  text-align: left;
}
.post-body th {
  background: var(--color-background-secondary);
  color: var(--color-text);
  font-weight: 600;
}

/* --- images --- */
.post-body img {
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  margin-top: 1.6em;
  margin-bottom: 1.6em;
}

/* --- inline code (fenced blocks owned by rouge.css) --- */
.post-body :not(pre) > code {
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.12em 0.38em;
  border-radius: 0.3rem;
  font-size: 0.875em;
}

/* --- code block wrapper: spacing + frame only, colors from rouge.css --- */
.post-body pre {
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border);
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding: 1em 1.25em;
  border-radius: 1.0rem;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.6;
}
