/* ============================================================
   post.css — styles only for the single-post page (post.html).
   The shared look (background, fonts, footer) comes from styles.css.
   ============================================================ */

.back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.back:hover { color: var(--accent); transform: translateX(-3px); }

.article { margin-bottom: 4rem; }

.article__head { margin-bottom: 2.5rem; }
.article__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.article__date { color: var(--muted); font-size: 0.9rem; }

/* The rendered Markdown body */
.article__body { font-size: 1.08rem; line-height: 1.75; }
.article__body > * + * { margin-top: 1.3rem; }

.article__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin-top: 2.6rem;
}
.article__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 2rem;
}
.article__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article__body a:hover { text-decoration-thickness: 2px; }

.article__body ul,
.article__body ol { padding-left: 1.4rem; }
.article__body li + li { margin-top: 0.4rem; }

.article__body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
  color: var(--muted);
  font-style: italic;
}

.article__body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}
.article__body pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
  overflow-x: auto;
}
.article__body pre code { background: none; border: none; padding: 0; }

.article__body img {
  max-width: 100%;
  border-radius: 12px;
}
