.blog {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(6vh + 32px) 48px 80px;
}

.blog__kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.blog__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 760px;
}

.blog__empty {
  font-family: var(--font-heading);
  color: var(--color-text-muted);
}

.post-card {
  display: block;
  padding: 26px 30px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px);
  animation: post-card-reveal 0.7s var(--ease-out) both;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s var(--ease-spring);
}

.post-card:hover {
  border-color: rgba(253, 233, 204, 0.3);
  background-color: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.post-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.post-card__date {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.post-card__title {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text);
}

.post-card__excerpt {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
}

.post-card__read-more i {
  font-size: 0.8rem;
  transition: transform 0.3s var(--ease-spring);
}

.post-card:hover .post-card__read-more i {
  transform: translateX(4px);
}

@keyframes post-card-reveal {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* ---------- Single post page ---------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.06);
  z-index: 200;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(253, 233, 204, 0.6);
}

.post {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(6vh + 32px) 48px 100px;
}

.post__container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
}

.post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 32px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.post__back i {
  transition: transform 0.3s var(--ease-spring);
}

.post__back:hover {
  color: var(--color-accent);
}

.post__back:hover i {
  transform: translateX(-4px);
}

.post__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: var(--color-accent);
  margin-bottom: 18px;
  animation: post-title-ignite 1s var(--ease-out) both;
}

@keyframes post-title-ignite {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(10px);
    text-shadow: 0 0 0 rgba(253, 233, 204, 0);
  }
  60% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
  100% {
    text-shadow: 0 0 40px rgba(253, 233, 204, 0.4);
  }
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  animation: line-reveal 0.7s var(--ease-out) 0.3s both;
}

@keyframes line-reveal {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.post__content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.post__content--revealed {
  opacity: 1;
}

.post__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
}

.post__content h1,
.post__content h2,
.post__content h3,
.post__content h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.3;
  margin: 40px 0 16px;
}

.post__content h1 {
  font-size: 1.8rem;
}

.post__content h2 {
  font-size: 1.5rem;
}

.post__content h3 {
  font-size: 1.2rem;
}

.post__content p {
  margin-bottom: 22px;
}

.post__content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(253, 233, 204, 0.4);
  text-underline-offset: 3px;
  transition: text-shadow 0.3s ease;
}

.post__content a:hover {
  text-shadow: 0 0 16px rgba(253, 233, 204, 0.5);
}

.post__content strong {
  color: var(--color-text);
  font-weight: 700;
}

.post__content em {
  color: rgba(255, 255, 255, 0.88);
}

.post__content blockquote {
  margin: 28px 0;
  padding: 2px 24px;
  border-left: 3px solid var(--color-accent);
  color: rgba(255, 255, 255, 0.62);
  font-style: italic;
}

.post__content ul,
.post__content ol {
  margin: 0 0 22px 22px;
}

.post__content li {
  margin-bottom: 8px;
}

.post__content li::marker {
  color: var(--color-accent);
}

.post__content code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);
}

.post__content pre {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 14px;
  overflow-x: auto;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
}

.post__content pre code {
  padding: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
}

.post__content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 44px 0;
}

.post__content img {
  max-width: 100%;
  border-radius: 14px;
  margin: 28px 0;
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post__title,
  .post__meta {
    animation: none;
  }

  .post__title {
    text-shadow: 0 0 40px rgba(253, 233, 204, 0.4);
  }
}

@media (max-width: 640px) {
  .blog,
  .post {
    padding: 72px 20px 60px;
  }

  .post-card {
    padding: 20px 22px;
  }
}
