/* Blog-specific styles for penguin.engineer */

.blog-listing {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: #ffffffc2;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1em 2em;
}

.blog-listing h1 {
  margin-bottom: 2rem;
}

.post-summary {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.post-summary h2 {
  margin-bottom: 0.25rem;
}

.post-summary h2 a {
  color: inherit;
  text-decoration: none;
}

.post-summary h2 a:hover {
  color: #0066cc;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.post-meta .tag {
  background: #f0f0f0;
  padding: 0.1em 0.5em;
  border-radius: 3px;
  font-size: 0.85em;
  margin-left: 0.25em;
}

.summary {
  color: #444;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.pagination a {
  color: #0066cc;
  text-decoration: none;
}

.pagination a:hover {
  text-decoration: underline;
}

/* Article page */
.blog-article article {
  background: #ffffffc2;
  padding: 1em 2em;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.blog-article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.blog-article h1 {
  margin-bottom: 0.25rem;
}

.entry-content {
  line-height: 1.7;
  margin-top: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content p {
  margin-bottom: 1rem;
}

.entry-content pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.entry-content code {
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 0.9em;
}

.entry-content p code,
.entry-content li code {
  background: #f5f5f5;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.entry-content blockquote {
  border-left: 3px solid #ddd;
  margin-left: 0;
  padding-left: 1rem;
  color: #555;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.article-footer a {
  color: #0066cc;
  text-decoration: none;
}

.article-footer a:hover {
  text-decoration: underline;
}
