
.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.blog-nav {
  margin-bottom: 36px;
  text-align: left;
}

@keyframes bounce-left {
  0%   { transform: translateX(0); }
  35%  { transform: translateX(-6px); }
  65%  { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.back-link {
  font-size: 0.9em;
  text-decoration: none;
  opacity: 0.65;
  display: inline-block;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
  animation: bounce-left 0.4s ease;
}

.post-title {
  font-size: 1.75em;
  font-weight: bold;
  margin: 0 0 8px;
  line-height: 1.3;
  color: var(--accent);
}

.post-date {
  display: block;
  font-size: 0.88em;
  opacity: 0.6;
  margin-bottom: 36px;
  letter-spacing: 0.03em;
}

.post-tags {
  margin-bottom: 32px;
  font-size: 0.78em;
  letter-spacing: 0.04em;
  color: #6B6560;
}

[data-theme="dark"] .post-tags {
  color: #A09890;
}

.post-content {
  line-height: 1.85em;
}

.post-content h2 {
  margin: 2em 0 0.5em;
  font-size: 1.25em;
  color: var(--accent);
}

.post-content h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.05em;
}

.post-content p {
  margin-bottom: 1.2em;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.2em 1.5em;
}

.post-content li {
  margin-bottom: 0.35em;
}

.post-content img,
.post-content iframe {
  display: block;
  margin: 1.4em auto;
  max-width: 100%;
}

.post-content pre {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 1.4em 0;
  font-size: 0.88em;
  line-height: 1.55em;
}

.post-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88em;
  background: var(--card-bg);
  padding: 2px 5px;
  border-radius: 3px;
}

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

/* Blog index listing */
/* .section ul { margin: 0 } in style.css has higher specificity, so we need
   .section .post-list to win */
.post-list,
.section .post-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 860px;
  text-align: left;
}

.post-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: baseline;
  padding: 9px 6px;
  column-gap: 20px;
  row-gap: 4px;
}

.post-list-item > a {
  grid-column: 1;
  grid-row: 1;
  line-height: 1.45em;
}

.post-list-date {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.82em;
  opacity: 0.55;
  white-space: nowrap;
}

.post-list-item .post-tags {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  display: block;
  font-size: 0.78em;
  color: #6B6560;
}

[data-theme="dark"] .post-list-item .post-tags {
  color: #A09890;
}

.post-list-item .post-tag {
  letter-spacing: 0;
  color: #6B6560;
  text-decoration: none;
}

[data-theme="dark"] .post-list-item .post-tag {
  color: #A09890;
}

.post-list-item .post-tag:hover {
  color: var(--link);
  text-decoration: underline;
}


@media screen and (max-width: 560px) {
  .blog-post-container {
    padding-bottom: 60px;
  }

  .post-list-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .post-list-date {
    grid-column: 1;
    grid-row: 2;
  }

}
