.blog-main {
  padding: 32px 20px 70px;
}

.blog-shell {
  max-width: var(--max-width);
  margin: 0 auto;
}

body.blog-page-pending .blog-shell,
body.blog-page-pending .post-shell {
  opacity: 0;
  transform: translateY(10px);
}

body.blog-page-ready .blog-shell,
body.blog-page-ready .post-shell {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.blog-page-leaving .blog-shell,
body.blog-page-leaving .post-shell {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.blog-hero {
  background: linear-gradient(180deg, #edf6f2 0%, #f7fbf9 100%);
  border: 1px solid #d6e4da;
  border-radius: 18px;
  padding: 36px 34px 30px;
}

.blog-kicker {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--green-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 0;
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
  font-size: 44px;
  line-height: 1.15;
}

.blog-hero p {
  margin: 14px 0 0;
  font-size: 20px;
  max-width: 44ch;
}

.blog-listing {
  margin-top: 28px;
}

.blog-list-head {
  margin-bottom: 18px;
}

.blog-list-head h2 {
  margin: 0;
  color: var(--green-heading);
  font-family: "Playfair Display", serif;
  font-size: 34px;
  line-height: 1.2;
}

.blog-list-head p {
  margin: 10px 0 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: #cfe0d5;
  box-shadow: 0 16px 30px rgba(22, 58, 42, 0.12);
}

.blog-card-enter {
  opacity: 0;
  transform: translateY(16px);
}

.blog-card-enter.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.42s ease, transform 0.42s ease;
  transition-delay: var(--card-delay, 0ms);
}

.blog-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ecf3ef;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}

.blog-card-image-link {
  display: block;
  text-decoration: none;
}

.blog-card-body {
  padding: 18px 18px 20px;
}

.blog-meta {
  margin: 0 0 8px;
  color: #5d756b;
  font-size: 14px;
  font-weight: 500;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.blog-meta-row .blog-meta {
  margin: 0;
}

.blog-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cfded5;
  background: #edf6f2;
  color: #314e41;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text-dark);
}

.blog-card-title-link {
  color: inherit;
  text-decoration: none;
}

.blog-card-title-link:hover {
  text-decoration: underline;
}

.blog-card p {
  margin: 10px 0 0;
}

.blog-card-link {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
  font-weight: 600;
  color: var(--green-heading);
}

.blog-card-link:hover {
  text-decoration: underline;
}

.blog-card-skeleton {
  pointer-events: none;
}

.blog-skeleton-block,
.blog-skeleton-row {
  border-radius: 10px;
  background: linear-gradient(100deg, #edf4f0 18%, #f9fcfa 42%, #edf4f0 66%);
  background-size: 200% 100%;
  animation: blogShimmer 1.35s linear infinite;
}

.blog-skeleton-block {
  min-height: 200px;
}

.blog-skeleton-row {
  height: 14px;
  margin-top: 10px;
}

.blog-skeleton-sm {
  width: 45%;
}

.blog-skeleton-link {
  width: 32%;
  margin-top: 18px;
}

.blog-empty,
.blog-error {
  margin: 0;
  padding: 20px;
  border-radius: 12px;
  background: #eef5f1;
  border: 1px solid #d7e5dc;
}

.post-main {
  padding: 32px 20px 80px;
}

.post-shell {
  max-width: 880px;
  margin: 0 auto;
}

.post-back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green-heading);
  font-weight: 600;
  text-decoration: none;
}

.post-back-link:hover {
  text-decoration: underline;
}

.post-article {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.post-article {
  opacity: 0;
  transform: translateY(14px);
}

.post-article.is-loaded {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.post-article h1 {
  margin: 0;
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
  font-size: 42px;
  line-height: 1.2;
}

.post-meta {
  margin: 12px 0 0;
  color: #5d756b;
  font-size: 15px;
}

.post-category-tag {
  margin: 0 0 12px;
}

.post-cover {
  width: 100%;
  margin-top: 20px;
  border-radius: 14px;
  max-height: 430px;
  object-fit: cover;
  border: 1px solid #dce8df;
}

.post-article.is-loaded .post-cover {
  animation: postCoverIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.post-body {
  margin-top: 24px;
  max-width: 72ch;
  line-height: 1.75;
  font-size: 1.08rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--text-dark);
  line-height: 1.3;
  margin: 28px 0 10px;
}

.post-body h2 {
  font-size: 32px;
}

.post-body h3 {
  font-size: 26px;
}

.post-body h4 {
  font-size: 22px;
}

.post-body p {
  margin: 16px 0 0;
}

.post-body ul,
.post-body ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.post-body li + li {
  margin-top: 6px;
}

.post-body blockquote {
  margin: 18px 0 0;
  padding: 8px 16px;
  border-left: 4px solid #b8cdc0;
  background: #f4faf7;
  border-radius: 6px;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.94em;
}

.post-body pre {
  overflow: auto;
  padding: 14px;
  border-radius: 10px;
  background: #eef5f1;
}

@keyframes blogShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes postCoverIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .blog-main,
  .post-main {
    padding: 18px 14px 56px;
  }

  .blog-hero {
    border-radius: 14px;
    padding: 24px 18px 20px;
  }

  .blog-hero h1 {
    font-size: 34px;
  }

  .blog-hero p {
    font-size: 18px;
  }

  .blog-list-head h2 {
    font-size: 30px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-card h3 {
    font-size: 22px;
  }

  .post-article {
    border-radius: 14px;
    padding: 22px 16px;
  }

  .post-article h1 {
    font-size: 33px;
  }

  .post-body h2 {
    font-size: 28px;
  }

  .post-body h3 {
    font-size: 24px;
  }

  .post-body h4 {
    font-size: 20px;
  }

  .post-body {
    max-width: 100%;
    font-size: 1.03rem;
    line-height: 1.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.blog-page-pending .blog-shell,
  body.blog-page-pending .post-shell,
  body.blog-page-ready .blog-shell,
  body.blog-page-ready .post-shell,
  body.blog-page-leaving .blog-shell,
  body.blog-page-leaving .post-shell,
  .blog-card,
  .blog-card-enter,
  .blog-card-enter.is-visible,
  .blog-card-media img,
  .post-article,
  .post-article.is-loaded,
  .post-article.is-loaded .post-cover {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .blog-skeleton-block,
  .blog-skeleton-row {
    animation: none !important;
  }
}
