/* Blog pages (/blog/, /tr/blog/), rendered by the web Worker (apps/worker/src/web-blog.ts). On top of legal.css. */
main.blog {
  max-width: 800px;
}
main.blog header.top {
  flex-wrap: wrap;
}
main.blog header.top .section {
  color: var(--muted);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
}
main.blog header.top .section::before {
  content: '/';
  margin-right: 10px;
  opacity: 0.5;
}
main.blog header.top .play {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1000;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.lead {
  margin: 0 0 28px;
  font-size: 18px;
}

/* ---- list ---- */
.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.post-card a {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.post-card a:hover {
  border-color: rgba(255, 165, 31, 0.5);
  transform: translateY(-2px);
}
.post-card img,
.post-card .no-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: linear-gradient(135deg, #2a1f6b, #0b0820);
}
.post-card h2 {
  margin: 4px 0 6px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.25;
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.meta {
  color: var(--muted);
  font-size: 14px;
}
.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

/* ---- post ---- */
.post .back {
  margin: 0 0 12px;
  font-size: 14px;
}
.post .back a {
  color: var(--muted);
  text-decoration: none;
}
.post .back a:hover {
  color: var(--accent);
}
.post h1 {
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.15;
  margin-bottom: 10px;
}
.post .meta {
  margin: 0 0 20px;
}
.post .cover {
  display: block;
  width: 100%;
  border-radius: 16px;
  margin: 0 0 24px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--card);
}
.prose {
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.prose h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 40px 0 10px;
}
.prose h3 {
  font-size: 19px;
  margin: 28px 0 8px;
}
.prose h2,
.prose h3 {
  scroll-margin-top: 16px;
}
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 12px;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 6px;
}
.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.prose code {
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.prose pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 12px;
  background: #0b0820;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.prose pre code {
  padding: 0;
  background: none;
}
.prose hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 36px 0;
}
.prose table {
  display: block;
  overflow-x: auto;
}
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  border: 1px solid rgba(255, 165, 31, 0.35);
}
.cta p {
  margin: 4px 0 0;
  color: var(--muted);
}
.button {
  flex: none;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1000;
  font-weight: 800;
  text-decoration: none;
}
.draft-banner {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 165, 31, 0.15);
  border: 1px solid rgba(255, 165, 31, 0.5);
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 600px) {
  main.blog header.top {
    flex-wrap: nowrap;
    gap: 8px;
  }
  main.blog header.top img {
    width: 30px;
    height: 30px;
  }
  main.blog header.top .section::before {
    margin-right: 6px;
  }
  main.blog header.top .play {
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .post-card a {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
