/* Blog */
.blog-page {
  background: #f7fff9;
  padding-top: 4rem;
}

.blog-hero {
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7.5rem) 1rem clamp(4rem, 8vw, 7rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.blog-hero-copy {
  max-width: 42rem;
}

.blog-intro {
  color: #1e6b35;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.blog-hero h1 {
  max-width: 13ch;
  color: #1a2e35;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.blog-hero-copy > p:last-child {
  max-width: 38rem;
  margin-top: 1.75rem;
  color: #4b5563;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.blog-hero-visual {
  min-height: 24rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1rem;
  background: #dcfce7;
}

.blog-hero-visual img {
  width: min(100%, 31rem);
  max-height: 34rem;
  object-fit: contain;
  filter: drop-shadow(0 0.5rem 0.5rem rgba(86, 31, 53, 0.18));
}

.blog-index {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem clamp(5rem, 10vw, 8rem);
}

.blog-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #1a2e35;
}

.blog-section-heading h2 {
  color: #1a2e35;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

.blog-section-heading > div > p {
  color: #4b5563;
  margin-top: 0.75rem;
}

.blog-count {
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 600;
}

.blog-list {
  min-height: 16rem;
}

.blog-story {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid #d1fae5;
}

.blog-story-body {
  max-width: 58rem;
}

.blog-story-date,
.blog-article-meta {
  color: #54705d;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-story h3 {
  color: #1a2e35;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.blog-story h3 a {
  text-decoration-color: transparent;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.15em;
  transition: color 180ms ease-out, text-decoration-color 180ms ease-out;
}

.blog-story h3 a:hover {
  color: #1e6b35;
  text-decoration-color: #4ec56d;
}

.blog-story-body > p:not(.blog-story-date) {
  max-width: 68ch;
  color: #4b5563;
  line-height: 1.7;
  margin-top: 1rem;
  text-wrap: pretty;
}

.blog-read-link,
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1e6b35;
  font-weight: 750;
  margin-top: 1.25rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25rem;
  transition: text-decoration-color 180ms ease-out;
}

.blog-read-link:hover,
.blog-back:hover {
  text-decoration-color: currentColor;
}

.blog-load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 2.5rem;
}

.blog-load-more {
  display: inline-flex;
  justify-content: center;
  border: 2px solid #1e6b35;
  border-radius: 999px;
  background: #1e6b35;
  color: #ffffff;
  padding: 0.8rem 1.4rem;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}

.blog-load-more:hover {
  background: #ffffff;
  color: #1e6b35;
  transform: translateY(-2px);
}

.blog-status {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #4b5563;
  text-align: center;
}

.blog-status h1,
.blog-status h2 {
  color: #1a2e35;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
}

.blog-loader {
  width: 2rem;
  height: 2rem;
  border: 3px solid #bbf7d0;
  border-top-color: #1e6b35;
  border-radius: 50%;
  animation: blog-spin 800ms linear infinite;
}

@keyframes blog-spin {
  to { transform: rotate(360deg); }
}

.blog-article {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 1rem clamp(5rem, 10vw, 8rem);
}

.blog-back {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
}

.blog-article-header {
  max-width: 58rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.blog-article-header h1 {
  color: #1a2e35;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.blog-article-summary {
  max-width: 66ch;
  color: #4b5563;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
  margin-top: 1.75rem;
  text-wrap: pretty;
}

.blog-prose {
  max-width: 72ch;
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  color: #1a2e35;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.blog-prose h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 3.5rem 0 1.25rem;
}

.blog-prose h3 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 2.75rem 0 1rem;
}

.blog-prose h4 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.blog-prose p,
.blog-prose ul,
.blog-prose ol,
.blog-prose blockquote {
  margin: 0 0 1.35rem;
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 1.5rem;
}

.blog-prose ul { list-style: disc; }
.blog-prose ol { list-style: decimal; }
.blog-prose li { margin-bottom: 0.65rem; }
.blog-prose strong { color: #1a2e35; }

.blog-prose a {
  color: #1e6b35;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.blog-prose blockquote {
  background: #ecfdf5;
  color: #365344;
  padding: 1.25rem;
  border-radius: 0.75rem;
}

.blog-app-note {
  max-width: 62rem;
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: grid;
  gap: 1.25rem;
  align-items: center;
  border: 2px solid #86efac;
  border-radius: 1rem;
  background: #f0fdf4;
}

.blog-app-note img {
  border-radius: 0.9rem;
}

.blog-app-note h2 {
  color: #1a2e35;
  font-size: 1.35rem;
  font-weight: 800;
}

.blog-app-note p {
  color: #4b5563;
  margin-top: 0.3rem;
  line-height: 1.6;
}

.blog-app-note a {
  justify-self: start;
  border-radius: 999px;
  background: #1e6b35;
  color: #ffffff;
  padding: 0.7rem 1.1rem;
  font-weight: 750;
}

@media (min-width: 640px) {
  .blog-hero,
  .blog-index,
  .blog-article {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .blog-app-note {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (min-width: 768px) {
  .blog-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  }
}

@media (min-width: 1024px) {
  .blog-hero,
  .blog-index,
  .blog-article {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 639.98px) {
  .blog-hero-visual {
    min-height: 20rem;
  }

  .blog-app-note {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .blog-app-note a {
    grid-column: 1 / -1;
  }
}
