:root {
  --green: #72b92d;
  --green-dark: #3f8f18;
  --teal: #006f67;
  --teal-dark: #00554f;
  --ink: #111815;
  --muted: #60706a;
  --line: #dfe8e2;
  --soft: #f4f8ee;
  --white: #fff;
  --shadow: 0 16px 40px rgba(13, 54, 47, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
}

.site-brand {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.brand-green {
  color: var(--green);
}

.brand-teal {
  color: var(--teal);
}

.header-actions,
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions a,
.footer-social a,
.search-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #bfcac5;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-toggle {
  width: 56px;
  height: 56px;
  cursor: pointer;
}

.search-toggle span {
  position: relative;
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.search-toggle span::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 10px;
  height: 3px;
  background: var(--ink);
  transform: rotate(45deg);
  border-radius: 2px;
}

.main-nav {
  overflow-x: auto;
}

.primary-menu,
.footer-grid ul {
  display: flex;
  gap: 42px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a {
  display: block;
  padding: 0 0 18px;
  border-bottom: 3px solid transparent;
  font-weight: 650;
  white-space: nowrap;
}

.primary-menu .current-menu-item a,
.primary-menu a:hover {
  color: var(--green-dark);
  border-color: var(--green);
}

.header-search {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 18px 0;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-field,
.newsletter-card input,
.footer-newsletter input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  font: inherit;
  background: #fff;
}

button,
.button-primary,
.search-form button,
.newsletter-card button,
.footer-newsletter button,
.load-more-button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.hero-section {
  padding-top: 26px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) 1fr;
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.post-card,
.topic-card,
.newsletter-card,
.compact-post,
.author-box,
.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.post-kicker {
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 9em;
  margin: 16px 0;
  font-size: clamp(1.85rem, 3vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 32rem;
  color: #27332f;
  font-size: 1.05rem;
}

.hero-image img,
.hero-image .placeholder-image {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
}

.placeholder-image {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(114, 185, 45, 0.35), rgba(0, 111, 103, 0.25)),
    radial-gradient(circle at 70% 25%, #d9f0ff, #f7fbf3 42%, #cfe3b8);
}

.card-grid,
.archive-grid,
.section-list.layout-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.top-stories,
.topic-grid,
.home-section,
.news-and-sidebar,
.read-next {
  margin-top: 22px;
}

.post-card {
  overflow: hidden;
}

.post-card-image img,
.post-card-image .placeholder-image {
  width: 100%;
  aspect-ratio: 16 / 8.7;
  object-fit: cover;
}

.post-card-body {
  padding: 18px;
}

.post-card h3,
.compact-post h3 {
  margin: 8px 0;
  font-size: 1.2rem;
  line-height: 1.18;
}

.post-card p,
.compact-post time,
.newsletter-card p,
.footer-grid p,
.article-subtitle,
.article-meta,
.author-box p {
  color: var(--muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.topic-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 190px;
  padding: 22px 14px;
  text-align: center;
}

.topic-icon,
.newsletter-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-weight: 850;
}

.topic-card strong {
  color: var(--teal);
  font-size: 1.1rem;
  line-height: 1.05;
}

.topic-card span:not(.topic-icon) {
  color: #394a45;
  font-size: 0.86rem;
}

.topic-card em {
  color: var(--teal);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 750;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-header h2,
.archive-header h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
}

.section-header a {
  color: var(--green-dark);
  font-weight: 750;
}

.section-list.layout-small {
  grid-template-columns: repeat(5, 1fr);
}

.section-list.layout-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.news-and-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.compact-post {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 10px;
}

.compact-thumb img,
.compact-thumb .placeholder-image {
  width: 112px;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
}

.newsletter-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: linear-gradient(135deg, #f2f7e8, #eef5df);
}

.newsletter-card h2 {
  margin: 0;
  color: var(--teal);
  font-size: 1.45rem;
  line-height: 1.1;
}

.newsletter-card form,
.footer-newsletter form {
  display: grid;
  gap: 10px;
}

.ad-slot {
  overflow: hidden;
  margin-block: 22px;
  border: 1px dashed #b5c7bd;
  border-radius: var(--radius);
  background: #f7faf5;
  text-align: center;
}

.ad-billboard {
  min-height: 90px;
}

.ad-box {
  min-height: 250px;
}

.archive-header,
.author-header {
  padding: 40px 0 18px;
}

.archive-grid {
  margin-top: 10px;
}

.single-article {
  padding-top: 36px;
}

.article-hero {
  max-width: 920px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-weight: 650;
}

.article-meta a {
  color: var(--teal);
}

.article-hero h1 {
  margin: 14px 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.article-subtitle {
  max-width: 760px;
  font-size: 1.25rem;
}

.article-featured img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-featured figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 64px;
  align-items: start;
}

.article-content {
  font-size: 1.1rem;
}

.article-content a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-block: 0 1.3em;
}

.article-content h2,
.article-content h3 {
  margin-top: 1.8em;
  line-height: 1.12;
}

.article-taxonomy,
.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.article-taxonomy a,
.tag-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--teal);
  text-decoration: none;
}

.author-box,
.author-header {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
}

.author-box {
  margin-top: 34px;
  padding: 22px;
}

.author-box img,
.author-header img {
  border-radius: 50%;
}

.author-box span,
.author-header span {
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.author-box h2,
.author-header h1 {
  margin: 2px 0 6px;
}

.article-next-prev {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.article-next-prev a {
  display: grid;
  gap: 5px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
}

.article-next-prev strong {
  color: var(--ink);
}

.widget {
  margin-bottom: 18px;
  padding: 20px;
}

.site-footer {
  margin-top: 56px;
  padding-top: 36px;
  background: var(--teal-dark);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.8fr 1.2fr;
  gap: 48px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-grid ul {
  display: grid;
  gap: 5px;
}

.footer-grid a {
  color: #fff;
}

.footer-newsletter button {
  background: #c8df42;
  color: #10221c;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.load-more-button:disabled {
  background: #cbd6cf;
  color: #4e5b56;
  cursor: default;
}

@media (max-width: 980px) {
  .hero-card,
  .news-and-sidebar,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topic-grid,
  .section-list.layout-small {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid,
  .archive-grid,
  .section-list.layout-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .topbar {
    align-items: flex-start;
    gap: 18px;
  }

  .site-brand {
    font-size: 2rem;
  }

  .header-actions a {
    display: none;
  }

  .search-toggle {
    width: 46px;
    height: 46px;
  }

  .primary-menu {
    gap: 24px;
  }

  .hero-card,
  .card-grid,
  .archive-grid,
  .section-list.layout-cards,
  .section-list.layout-small,
  .section-list.layout-compact,
  .topic-grid,
  .article-next-prev,
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .hero-image img,
  .hero-image .placeholder-image {
    min-height: 260px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2rem;
  }

  .article-hero h1 {
    max-width: none;
    font-size: 2.3rem;
  }

  .search-form,
  .author-box,
  .author-header {
    grid-template-columns: 1fr;
  }

  .compact-post {
    grid-template-columns: 92px 1fr;
  }

  .compact-thumb img,
  .compact-thumb .placeholder-image {
    width: 92px;
    height: 74px;
  }

  .footer-bottom {
    display: grid;
  }
}
