/* ─── post prose styles ─── */

.post-hero {
  padding: 80px 0 52px;
}

.post-back {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a3d47;
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.post-back:hover { color: #39ff7e; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  color: #3a3d47;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.post-meta .tag {
  color: #39ff7e;
  border: 1px solid rgba(57,255,126,0.3);
  background: rgba(57,255,126,0.05);
  padding: 2px 10px;
  border-radius: 3px;
}

.post-title-display {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  color: #eceef4;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.post-excerpt {
  font-size: 0.9rem;
  color: #6b7080;
  max-width: 560px;
  line-height: 1.8;
}

/* ─── prose content (rendered markdown) ─── */

.prose {
  padding: 12px 0 100px;
  max-width: 680px;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #eceef4;
  letter-spacing: -0.02em;
  margin-top: 2.4em;
  margin-bottom: 0.75em;
  line-height: 1.2;
}

.prose h1 { font-size: 1.7rem; }
.prose h2 {
  font-size: 1.25rem;
  padding-bottom: 10px;
  border-bottom: 1px solid #1a1d22;
}
.prose h3 { font-size: 1.05rem; color: #c8ccd8; }
.prose h4 { font-size: 0.9rem; color: #8891a8; text-transform: uppercase; letter-spacing: 0.1em; }

.prose p {
  font-size: 0.92rem;
  color: #8891a8;
  line-height: 1.9;
  margin-bottom: 1.4em;
}

.prose a {
  color: #39ff7e;
  text-decoration: underline;
  text-decoration-color: rgba(57,255,126,0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.prose a:hover {
  text-decoration-color: #39ff7e;
}

.prose strong {
  color: #c8ccd8;
  font-weight: 600;
}

.prose em {
  color: #a0a8bc;
  font-style: italic;
}

/* ─── code ─── */

.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: #131417;
  border: 1px solid #252830;
  border-radius: 3px;
  padding: 2px 6px;
  color: #39ff7e;
}

.prose pre {
  background: #0e0f12 !important;
  border: 1px solid #252830;
  border-radius: 4px;
  padding: 22px 24px;
  overflow-x: auto;
  margin-bottom: 1.6em;
  position: relative;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.83rem;
  line-height: 1.7;
}

/* ─── blockquote ─── */

.prose blockquote {
  border-left: 2px solid #39ff7e;
  margin: 1.8em 0;
  padding: 2px 0 2px 22px;
}

.prose blockquote p {
  color: #6b7080;
  font-style: italic;
  margin-bottom: 0;
}

/* ─── lists ─── */

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
  color: #8891a8;
  font-size: 0.92rem;
  line-height: 1.9;
}

.prose ul { list-style: none; }

.prose ul li::before {
  content: '→';
  color: #39ff7e;
  font-size: 0.75em;
  margin-left: -1.4em;
  margin-right: 0.6em;
}

.prose ol { list-style: decimal; }
.prose ol li::marker { color: #3a3d47; }

.prose li { margin-bottom: 0.3em; }

/* ─── horizontal rule ─── */

.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #252830 20%, #252830 80%, transparent);
  margin: 2.4em 0;
}

/* ─── tables ─── */

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-bottom: 1.6em;
}

.prose th {
  font-weight: 600;
  color: #eceef4;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #252830;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid #1a1d22;
  color: #8891a8;
  vertical-align: top;
}

.prose tr:last-child td { border-bottom: none; }

/* ─── images ─── */

.prose img {
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid #252830;
  margin: 1.4em 0;
  display: block;
}

.prose img + em {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: #3a3d47;
  margin-top: -0.8em;
  margin-bottom: 1.4em;
}

/* ─── keyboard / mark ─── */

.prose kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78em;
  background: #131417;
  border: 1px solid #3a3d47;
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 1px 6px;
  color: #c8ccd8;
}

.prose mark {
  background: rgba(57,255,126,0.15);
  color: #39ff7e;
  border-radius: 2px;
  padding: 1px 4px;
}
