/* Blog index and article pages. Long-form reading, same tokens as the rest. */

.blog-index,
.article {
  border-top: none;
}

.post-meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.post-meta a {
  color: var(--accent);
}

/* Index -------------------------------------------------------------- */
.post-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.post-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.post-card:last-child {
  border-bottom: none;
}

.post-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

.post-link:hover {
  text-decoration: underline;
}

/* Article ------------------------------------------------------------ */
.draft-flag {
  background: #fff4d6;
  border: 1px solid #e0a800;
  border-radius: var(--radius);
  color: #5c4600;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.article h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
}

.article .lede {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article-body {
  font-size: 1.05rem;
}

.article-body h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
}

.article-body h3 {
  font-size: 1.08rem;
  margin-top: 1.75rem;
}

.article-body p,
.article-body li {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.article-body strong {
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.65rem;
}

.article-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-size: 1.1rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

/* Wide content must scroll inside itself, never the page. */
.article-body :is(table, pre) {
  display: block;
  overflow-x: auto;
}

.post-updated {
  margin-top: 2rem;
  font-size: 0.88rem;
  font-style: italic;
}

.article-cta {
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-cta h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.article-cta p {
  font-size: 0.97rem;
}

@media (max-width: 40rem) {
  .article-cta .btn {
    width: 100%;
    text-align: center;
  }
}
