.blog-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.blog-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 72px;
  font-size: 0.95rem;
}

.blog-home-link {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}

.blog-home-link:hover,
.blog-list-item a:hover,
.blog-content a:hover {
  text-decoration: underline;
}

.blog-intro {
  margin-bottom: 56px;
}

.blog-intro h1,
.blog-article h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.blog-intro p {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

.blog-month {
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  padding-top: 28px;
  margin-top: 32px;
}

.blog-month h2 {
  margin: 0 0 20px;
  font-size: 1.2rem;
}

.blog-post-list {
  display: grid;
  gap: 22px;
}

.blog-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.blog-list-item a {
  color: inherit;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-list-item time,
.blog-meta time {
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-size: 0.95rem;
  white-space: nowrap;
}

.blog-list-item p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.65;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tags span {
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: color-mix(in srgb, currentColor 72%, transparent);
}

.blog-article header {
  margin-bottom: 44px;
}

.blog-kicker {
  margin: 0 0 14px;
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.blog-content {
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.78;
}

.blog-content h2,
.blog-content h3 {
  margin: 2.1em 0 0.6em;
  line-height: 1.2;
}

.blog-content p,
.blog-content ul,
.blog-content pre {
  margin: 0 0 1.25em;
}

.blog-content a {
  color: inherit;
  font-weight: 650;
}

.blog-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border-radius: 8px;
}

.blog-content code {
  font-size: 0.92em;
}

.blog-content :not(pre) > code {
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 5px;
  padding: 0.08em 0.35em;
}

.blog-content pre {
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 8px;
  padding: 18px;
  line-height: 1.55;
}

.blog-content .mermaid {
  margin: 1.5em 0;
  overflow-x: auto;
}

@media (max-width: 640px) {
  .blog-shell {
    width: min(100% - 24px, 920px);
    padding-top: 24px;
  }

  .blog-header {
    margin-bottom: 48px;
  }

  .blog-list-item {
    grid-template-columns: 1fr;
  }

  .blog-list-item time {
    white-space: normal;
  }
}
