:root {
  --ink: #17332d;
  --muted: #61706b;
  --green: #087b6b;
  --green-dark: #124a40;
  --coral: #dc5f4b;
  --yellow: #f0bd45;
  --blue: #2563a6;
  --paper: #ffffff;
  --soft: #f3f6f4;
  --warm: #fff9ec;
  --line: #dbe3df;
  --focus: #1769aa;
  --font-scale: 1;
  --shadow: 0 18px 44px rgba(23, 51, 45, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: calc(17px * var(--font-scale));
  line-height: 1.58;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.content-width { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-main {
  display: grid;
  grid-template-columns: auto minmax(240px, 520px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1360px, calc(100% - 40px));
  min-height: 88px;
  margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-logo { width: 78px; height: 78px; object-fit: contain; }
.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 6px;
}
.header-search:focus-within { background: #fff; border-color: var(--green); }
.header-search svg { width: 19px; color: var(--green); }
.header-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .subscribe-button, .hero-button, .card-button, .listen-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
}
.icon-button { width: 44px; padding: 0; background: #fff; border-color: var(--line); color: var(--ink); }
.subscribe-button { padding: 0 16px; background: var(--coral); color: #fff; }
.subscribe-button svg, .hero-button svg, .card-button svg, .listen-button svg { width: 18px; }
.mobile-menu-button { display: none; }
.category-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 20px;
  border-top: 1px solid #eef1ef;
  overflow-x: auto;
}
.category-nav button {
  min-width: max-content;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
}
.category-nav button.active { color: var(--ink); border-bottom-color: var(--coral); }

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: min(680px, calc(100vh - 120px));
  overflow: hidden;
  background: var(--green-dark);
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(9, 40, 35, .52); }
.hero-content {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 76px;
  color: #fff;
}
.eyebrow { margin: 0 0 8px; color: var(--coral); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.eyebrow.light { color: #ffd06a; }
.hero h1, .section-heading h2, .newsletter-band h2, .community-band h2, .article-dialog h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: 0;
}
.hero h1 { max-width: 700px; font-size: clamp(3.2rem, 8vw, 7.2rem); line-height: .9; }
.hero-content > p:not(.eyebrow) { max-width: 620px; margin: 20px 0 28px; font-size: clamp(1.05rem, 2vw, 1.32rem); }
.hero-button { padding: 0 18px; background: #fff; color: var(--green-dark); }

.topic-strip { background: var(--warm); border-bottom: 1px solid #f0e4c7; }
.topic-strip .content-width { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px 22px;
  background: transparent;
  border: 0;
  border-right: 1px solid #eadbb7;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}
.topic-link:first-child { border-left: 1px solid #eadbb7; }
.topic-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #fff; color: var(--green); }

.news-section { padding-block: 72px 84px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2, .newsletter-band h2, .community-band h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; }
.result-count { margin: 0; color: var(--muted); }
.featured-story {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 420px;
  margin-bottom: 22px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.featured-media { min-height: 330px; background: #dfe9e5; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: var(--yellow); color: var(--green-dark); }
.featured-placeholder svg { width: 70px; height: 70px; }
.featured-copy { display: flex; flex-direction: column; justify-content: center; padding: 42px; }
.category-label { display: inline-flex; align-items: center; gap: 7px; width: max-content; margin-bottom: 14px; color: #ffd06a; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.featured-copy h3 { margin: 0 0 14px; font-family: "Newsreader", Georgia, serif; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.05; }
.featured-copy p { margin: 0 0 24px; color: #dfeae6; }
.card-button { width: max-content; padding: 0 16px; background: #fff; color: var(--green-dark); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); transition: transform .18s ease, box-shadow .18s ease; }
.card-visual { display: grid; width: 100%; aspect-ratio: 16 / 8; place-items: center; background: var(--soft); color: var(--category-color, var(--green)); }
.card-visual img { width: 100%; height: 100%; object-fit: cover; }
.card-visual svg { width: 48px; height: 48px; }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.card-meta .category-label { margin: 0; color: var(--category-color, var(--green)); }
.article-card h3 { margin: 0 0 10px; font-family: "Newsreader", Georgia, serif; font-size: 1.55rem; line-height: 1.12; }
.article-card p { margin: 0; color: var(--muted); }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 20px; }
.card-actions button { min-height: 42px; }
.card-actions .card-button { background: var(--green-dark); color: #fff; }
.listen-button { width: 44px; background: #fff; border-color: var(--line); color: var(--green-dark); }
.empty-state { grid-column: 1 / -1; padding: 40px; background: var(--soft); border: 1px solid var(--line); text-align: center; }

.newsletter-band { padding: 70px 0; background: var(--blue); color: #fff; }
.newsletter-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, .75fr); gap: 70px; align-items: center; }
.newsletter-layout > div > p:last-child { max-width: 580px; margin-bottom: 0; color: #dce9f7; }
.subscribe-form { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.subscribe-form label:not(.consent) { display: grid; gap: 5px; font-size: .78rem; font-weight: 800; }
.subscribe-form input[type="text"], .subscribe-form input[type="email"] { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #9fc0df; border-radius: 6px; }
.subscribe-form button { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; border-radius: 6px; background: var(--yellow); color: var(--ink); font-weight: 800; }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; color: #e8f1fa; font-size: .82rem; }
.consent input { margin-top: 5px; }
.form-status { grid-column: 1 / -1; min-height: 24px; margin: 0; font-weight: 700; }
.honeypot { position: absolute !important; left: -9999px !important; }

.community-band { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; padding-block: 80px; }
.community-copy p:last-child { color: var(--muted); }
.community-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.community-points > div { display: grid; gap: 8px; min-height: 170px; align-content: start; padding: 22px; background: var(--soft); border-left: 4px solid var(--coral); }
.community-points svg { color: var(--green); }
.community-points span { color: var(--muted); }

.site-footer { padding: 34px 0; background: #102b26; color: #dce8e4; }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-layout p { margin: 0; }
.footer-layout > a { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; }
.footer-brand .brand-logo { width: 92px; height: 92px; border-radius: 6px; }

.article-dialog { width: min(820px, calc(100% - 28px)); max-height: 90vh; padding: 0; border: 0; border-radius: 8px; color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
.article-dialog::backdrop { background: rgba(10, 31, 27, .62); }
.dialog-close { position: sticky; top: 14px; float: right; z-index: 2; margin: 14px 14px -58px 0; }
.dialog-hero { width: 100%; max-height: 390px; object-fit: cover; }
.dialog-body { padding: 38px 42px 44px; }
.dialog-body h2 { margin-bottom: 16px; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.dialog-summary { color: var(--muted); font-size: 1.08rem; }
.info-callout { margin: 24px 0; padding: 18px; background: var(--warm); border-left: 4px solid var(--yellow); }
.source-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.source-links a { padding: 6px 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; color: var(--blue); font-size: .86rem; font-weight: 700; text-decoration: none; }
.dialog-actions { display: flex; gap: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .header-main { grid-template-columns: auto 1fr auto; }
  .header-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .hero { min-height: 590px; }
  .featured-story, .newsletter-layout, .community-band { grid-template-columns: 1fr; }
  .featured-story { min-height: auto; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-points { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .content-width, .header-main, .hero-content { width: min(100% - 28px, 1240px); }
  .header-main { min-height: 74px; gap: 10px; }
  .brand-logo { width: 62px; height: 62px; }
  .header-actions .icon-button:not(.mobile-menu-button), .subscribe-button span { display: none; }
  .subscribe-button { width: 44px; padding: 0; }
  .mobile-menu-button { display: inline-flex; }
  .category-nav { display: none; justify-content: start; padding: 10px 14px; }
  .category-nav.open { display: flex; }
  .hero { min-height: 520px; }
  .hero > img { object-position: 60% center; }
  .hero-overlay { background: rgba(9, 40, 35, .66); }
  .hero-content { padding: 48px 0; }
  .hero h1 { font-size: clamp(3.1rem, 18vw, 5rem); }
  .topic-strip .content-width { grid-template-columns: 1fr 1fr; width: 100%; }
  .topic-link { min-height: 72px; padding: 10px 14px; border-bottom: 1px solid #eadbb7; }
  .news-section { padding-block: 52px 64px; }
  .section-heading { align-items: start; flex-direction: column; }
  .featured-copy { padding: 28px 22px; }
  .article-grid { grid-template-columns: 1fr; }
  .newsletter-layout { gap: 30px; }
  .subscribe-form { grid-template-columns: 1fr; }
  .subscribe-form > * { grid-column: 1 !important; }
  .community-band { gap: 28px; padding-block: 60px; }
  .community-points { grid-template-columns: 1fr; }
  .community-points > div { min-height: auto; }
  .footer-layout { align-items: flex-start; flex-direction: column; }
  .dialog-body { padding: 30px 22px 36px; }
}
