/* Sherloq — single blog post page (loaded after styles.css) */

.post-head {
  padding: 140px 0 0;
  text-align: center;
}
.post-head .container { max-width: 820px; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.post-back:hover { color: var(--pink); }
.post-head h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.post-meta {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-muted);
}
.post-hero {
  max-width: 920px;
  margin: 46px auto 0;
  padding: 0 20px;
}
.post-hero img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-softer);
}

/* ---- Article body ---- */
.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px 130px;
}
.post-body > *:first-child { margin-top: 0; }

.post-body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-main);
  margin: 22px 0;
}
.post-body h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.25;
  margin: 52px 0 6px;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-soft);
  margin: 36px 0 4px;
}
.post-body h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-soft);
  margin: 30px 0 4px;
}
.post-body a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body a:hover { color: #ff6bad; }
.post-body strong, .post-body b { color: var(--text-soft); font-weight: 700; }
.post-body ul, .post-body ol {
  margin: 22px 0;
  padding-left: 26px;
}
.post-body li {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-main);
  margin: 10px 0;
}
.post-body li h3, .post-body li h4 { margin: 4px 0; display: inline; }
.post-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-softer);
  margin: 34px 0;
}
.post-body blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--pink);
  color: var(--text-soft);
  font-size: 20px;
  font-style: italic;
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  padding: 2px 6px;
  color: #ff9ecb;
}
.post-body pre {
  background: #0c0c0f;
  border: 1px solid var(--border-softer);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 28px 0;
}
.post-body pre code {
  background: none;
  padding: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Post CTA ---- */
.post-cta {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-softer);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
}
.post-cta h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-soft);
}
.post-cta p { margin-top: 10px; font-size: 16px; color: var(--text-main); }
.post-cta .btn-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* ---- More posts ---- */
.more-posts { padding: 0 0 130px; }
.more-posts h2 {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 40px;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-head { padding-top: 118px; }
  .post-head h1 { font-size: 30px; }
  .post-body { padding: 40px 22px 90px; }
  .post-body p, .post-body li { font-size: 17px; }
  .post-body h2 { font-size: 25px; }
  .post-cta { padding: 30px 24px; }
  .more-grid { grid-template-columns: 1fr; }
}
