.blog-content,
.blog-card,
.blog-article-header,
.blog-tags {
  min-width: 0;
  overflow-wrap: anywhere;
}

.blog-hero h1,
.blog-article h1,
.blog-card h2,
.blog-content h2,
.blog-content h3 {
  letter-spacing: 0;
}

.blog-hero h1,
.blog-article h1 {
  font-size: 52px;
}

.blog-card h2 {
  font-size: 30px;
}

.blog-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  background: var(--accent-surface);
  border-radius: 8px;
}

.blog-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.blog-card-image {
  display: block;
  width: 220px;
  max-width: 100%;
  margin-bottom: 16px;
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-byline {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.blog-byline a,
.blog-author a,
.blog-related a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-author {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.blog-author img {
  display: block;
  width: 80px;
  height: auto;
  aspect-ratio: 643 / 876;
  border-radius: 8px;
}

.blog-content:has(> hr:last-child) + .blog-author {
  border-top: 0;
}

.blog-author .blog-author-name,
.blog-related h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

.blog-author p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.blog-related {
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .blog-hero h1,
  .blog-article h1 {
    font-size: 34px;
  }

  .blog-card h2 {
    font-size: 22px;
  }
}
