:root {
  --green: #1c6e14;
  --green-hover: #086100;
  --gold: #ffbb1d;
  --yellow: #ffdc22;
  --text: #333;
  --muted: #707c95;
  --extra-muted: #a3acbe;
  --border: #d0d2dc;
  --light: #eff0f4;
  --alt: #f3f5f7;
  --shadow: 0 12px 32px rgba(25, 42, 62, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  background: #fff;
  font-family: "neue-haas-grotesk-text", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--green-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  height: 60px;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.brand svg {
  width: auto;
  height: 28px;
}

.site-nav,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 24px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  text-decoration: none;
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 25px;
  border-radius: 36px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.btn:hover {
  background: var(--green-hover);
  color: #fff;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: #333;
}

.btn-gold:hover {
  background: #e8a300;
  color: #333;
}

.nav-cta {
  min-height: 42px;
  padding: 9px 20px;
  font-size: 15px;
}

.index-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 112px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 220, 34, 0.13) 0 2px, transparent 3px) 0 0 / 24px 24px,
    linear-gradient(125deg, var(--green) 0%, #155c10 100%);
}

.index-hero::after {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: -210px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.index-hero h1 {
  max-width: 800px;
  margin: 0 0 22px;
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 64px;
}

.highlight {
  color: var(--yellow);
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 20px;
  line-height: 30px;
}

.featured-wrap {
  position: relative;
  z-index: 1;
  margin-top: -58px;
}

.featured-card {
  display: grid;
  grid-template-columns: 45% 1fr;
  overflow: hidden;
  min-height: 380px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.featured-media,
.card-media {
  overflow: hidden;
  background: var(--green);
}

.featured-media img,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.featured-card:hover .featured-media img,
.post-card:hover .card-media img {
  transform: scale(1.02);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
}

.eyebrow,
.card-meta,
.post-meta,
.archive-date,
.nav-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.featured-content h2 {
  margin: 14px 0 16px;
  font-size: 36px;
  line-height: 40px;
}

.featured-content h2 a:hover,
.post-card:hover h3 {
  color: var(--green-hover);
  text-decoration: underline;
}

.featured-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 26px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.read-more {
  align-self: flex-start;
}

.recent-section,
.archive-section {
  padding: 120px 0;
}

.section-heading {
  margin: 0 0 40px;
  font-size: 36px;
  line-height: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.post-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--light);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(25, 42, 62, 0.08);
  color: var(--text);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.post-card:hover {
  color: var(--text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 16 / 9;
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.card-meta {
  font-size: 13px;
  line-height: 20px;
}

.post-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 12px;
  color: var(--green);
  font-size: 24px;
  line-height: 32px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 400;
  line-height: 24px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-author {
  margin-top: auto;
  color: var(--extra-muted);
  font-size: 13px;
  font-weight: 400;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background: linear-gradient(145deg, var(--green), #124e0d);
}

.placeholder svg {
  width: 72px;
  height: auto;
}

.archive-section {
  background: var(--alt);
}

.year-group + .year-group {
  margin-top: 56px;
}

.year-heading {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 40px;
}

.archive-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--light);
  list-style: none;
}

.archive-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--light);
}

.archive-date {
  flex: 0 0 auto;
}

.post-main {
  padding: 80px 0 120px;
}

.post-column {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 14px;
}

.post-header h1 {
  margin: 0 0 24px;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 64px;
}

.post-meta {
  margin: 0;
}

.post-hero {
  width: 100%;
  margin: 40px 0 48px;
  border-radius: 8px;
}

.article-body {
  font-size: 20px;
  line-height: 32px;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body table,
.article-body figure {
  margin-top: 0;
  margin-bottom: 28px;
}

.article-body h2 {
  margin: 56px 0 20px;
  font-size: 36px;
  line-height: 40px;
}

.article-body h3 {
  margin: 44px 0 16px;
  font-size: 24px;
  line-height: 32px;
}

.article-body h1 {
  margin: 56px 0 20px;
  font-size: 36px;
  line-height: 40px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body figure {
  margin-right: 0;
  margin-left: 0;
}

.article-body figure img,
.article-body > img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
  border-radius: 8px;
}

.article-body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.article-body blockquote {
  margin-left: 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--green);
  color: var(--muted);
  font-style: italic;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: var(--light);
}

.article-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 24px;
}

.article-body th,
.article-body td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-body pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 8px;
  background: #252a2e;
  color: #f7f7f7;
  font-size: 15px;
  line-height: 24px;
}

.article-body :not(pre) > code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--alt);
  font-size: 0.88em;
}

.article-body .post-cta {
  text-align: center;
}

.article-body .post-cta .btn {
  background: var(--gold);
  color: #333;
}

.end-cta {
  margin-top: 72px;
  padding: 40px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  text-align: center;
}

.end-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
  line-height: 32px;
}

.end-cta p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 26px;
}

.post-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.pagination-card {
  display: flex;
  flex-direction: column;
  min-height: 132px;
  padding: 24px;
  border: 1px solid var(--light);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(25, 42, 62, 0.07);
}

.pagination-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow);
}

.pagination-title {
  margin-top: 8px;
  color: var(--green);
  line-height: 24px;
}

.site-footer {
  padding: 80px 0;
  border-top: 1px solid var(--light);
  background: #fff;
}

.footer-inner {
  max-width: 900px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  margin-bottom: 28px;
}

.copyright {
  font-weight: 700;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-cfa-info {
  max-width: 750px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

@media (max-width: 1099px) {
  .recent-section,
  .archive-section {
    padding: 80px 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .desktop-only {
    display: none;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-link {
    font-size: 14px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 13px;
  }

  .brand svg {
    height: 24px;
  }

  .index-hero {
    padding: 48px 0 88px;
  }

  .index-hero h1,
  .post-header h1 {
    font-size: 28px;
    letter-spacing: -0.3px;
    line-height: 32px;
  }

  .hero-copy {
    font-size: 17px;
    line-height: 26px;
  }

  .featured-wrap {
    margin-top: -48px;
  }

  .featured-card {
    display: block;
    min-height: 0;
  }

  .featured-media {
    aspect-ratio: 16 / 9;
  }

  .featured-content {
    padding: 28px 24px 32px;
  }

  .featured-content h2,
  .section-heading,
  .year-heading,
  .article-body h2,
  .article-body h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .recent-section,
  .archive-section {
    padding: 40px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .archive-row {
    display: block;
  }

  .archive-date {
    display: block;
    margin-top: 5px;
  }

  .post-main {
    padding: 40px 0 80px;
  }

  .back-link {
    margin-bottom: 28px;
  }

  .post-hero {
    margin: 28px 0 36px;
  }

  .article-body {
    font-size: 16px;
    line-height: 24px;
  }

  .article-body h2,
  .article-body h1 {
    margin-top: 40px;
  }

  .article-body h3 {
    margin-top: 36px;
  }

  .end-cta {
    margin-top: 48px;
    padding: 32px 24px;
  }

  .post-pagination {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 40px 0;
  }
}

@media (max-width: 430px) {
  .brand svg {
    width: auto;
    height: 20px;
  }

  .nav-links {
    gap: 10px;
  }
}
