.blog-main {
  max-width: 40rem;
  margin: 0 auto;
}

.blog-post {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-post .post-featured-image {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 2rlh;
  padding-inline: 6rem;
}

@media (max-width: 40rem) {
  .blog-post .post-featured-image {
    padding-inline: 4rem;
  }
}

.blog-post-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 2.5rem;
}

.blog-post-header h1 {
  font-size: 1.125rem;
  margin-bottom: 0.5rlh;
  line-height: 1.4;
}

.blog-post-header .post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.blog-post .post-content > * + * {
  margin-top: 0.5rlh;
}

.blog-post .post-content h2 {
  margin-top: 2rlh;
  margin-bottom: 1rlh;
  padding-left: 1.5rem;
  position: relative;
}
.blog-post .post-content h2:first-of-type {
  margin-top: 0;
}

.blog-post .post-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background-image: url('/images/icon-moon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.blog-post .post-content h3 {
  margin-top: 1.5rlh;
  margin-bottom: 0.75rlh;
}

.blog-post .post-content ul,
.blog-post .post-content ol {
  margin-bottom: 1.5rlh;
  padding-left: 2rem;
}

.blog-post .post-content ul {
  list-style: none;
  padding-left: 1.25rem;
}

.blog-post .post-content li {
  margin-bottom: 0.25rlh;
  position: relative;
}

.blog-post .post-content ul li::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.9em;
  width: 4px;
  height: 4px;
  border: 1px solid var(--text-color);
  border-radius: 50%;
  transform: translateY(-50%);
}

.blog-post .post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1em;
  margin: 1rem 0;
  color: var(--text-light);
  font-style: italic;
}

.blog-post .post-content code {
  background: var(--bg-light);
  padding: 0.2rlh 0.4rlh;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.blog-post .post-content pre {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rlh;
}

.blog-post .post-content pre code {
  background: transparent;
  padding: 0;
}

.audio-player {
  margin: 2rem 0;
  padding: 1.5rlh;
  background: var(--bg-light);
  border-radius: 8px;
}

.audio-player audio {
  width: 100%;
  margin-top: 0.5rlh;
}

@media print {
  .blog-header {
    display: none;
  }

  .blog-post {
    box-shadow: none;
    padding: 0;
  }

  .blog-post h1 {
    font-size: 2rem;
  }

  .audio-player {
    border: 1px solid #000;
  }
}

