/* Blog index */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

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

.post-date {
  font-size: 0.875rem;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Post page */
.post-title {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.post-meta {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 2rem;
}

.post-body {
  line-height: 1.6;
}

.post-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.post-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.post-body p {
  margin: 0.6rem 0;
}

.post-body a {
  text-underline-offset: 3px;
}

.post-body pre {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.25rem 0;
}

.post-body code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: #f5f5f5;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 1em;
}

.post-body figure {
  margin: 1.5rem 0;
}

.post-body figcaption {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

.post-body img {
  max-width: 100%;
  border-radius: 6px;
  display: block;
}

.post-body iframe {
  display: block;
  width: 100%;
  max-width: 315px;
  aspect-ratio: 9 / 16;
  border: none;
  border-radius: 6px;
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin: 0.2rem 0 0.5rem;
}

.post-body li {
  margin: 0.15rem 0;
}

.post-nav {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
}
