:root {
  --ink: #12251f;
  --muted: #597068;
  --paper: #f7f4ec;
  --white: #fffef9;
  --green: #176b52;
  --green-dark: #0d4a39;
  --lime: #d8ef9c;
  --line: #d8ddd5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--green); color: white; font-size: 14px; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 650; }
nav a:hover, nav a:focus-visible { color: var(--green); }
.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 76px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 74px;
  align-items: center;
}
.kicker, .eyebrow, .card-label { margin: 0 0 18px; color: var(--green); font-size: 12px; line-height: 1.2; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 790px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 7vw, 82px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 700px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 750; }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--green-dark); }
.secondary { border: 1px solid #b8c2ba; background: rgba(255,255,255,.5); }
.trust-list { display: flex; flex-wrap: wrap; gap: 24px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 900; }
.hero-card { position: relative; overflow: hidden; padding: 34px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(18, 37, 31, .09); }
.hero-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 190px; height: 190px; border-radius: 50%; background: var(--lime); opacity: .75; }
.hero-card h2 { position: relative; margin: 0; font-family: Georgia, serif; font-size: 32px; font-weight: 500; z-index: 1; }
.hero-card ol { position: relative; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: steps; z-index: 1; }
.hero-card li { counter-increment: steps; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); color: #31483f; font-size: 14px; line-height: 1.5; }
.hero-card li::before { content: counter(steps); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e6f0ea; color: var(--green); font-weight: 800; }
.note { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 84px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.section-heading h2, .about h2, .source-section h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--muted); line-height: 1.7; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card { min-height: 340px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.55); }
.article-number { color: #9eb0a8; font-family: Georgia, serif; font-size: 32px; }
.article-card .eyebrow { margin-top: 46px; margin-bottom: 12px; }
.article-card h3 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; line-height: 1.2; }
.article-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; font-size: 14px; }
.text-link { margin-top: auto; color: var(--green); font-weight: 800; font-size: 14px; }
.source-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 54px; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: center; color: white; background: var(--green-dark); border-radius: 30px; }
.source-section > p { color: #d3e3dc; line-height: 1.75; }
.light { color: var(--lime); }
.light-button { background: var(--lime); color: var(--green-dark); white-space: nowrap; }
.about { max-width: 850px; text-align: center; }
.about > p:last-child { max-width: 720px; margin: 26px auto 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 44px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 850px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 58px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: auto; }
  .source-section { grid-template-columns: 1fr; padding: 34px; }
  .section-heading, footer { align-items: start; flex-direction: column; }
}
@media (max-width: 520px) {
  .topbar, .hero, .section, .source-section, footer { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 46px; }
  h1 { font-size: 48px; }
  .hero-card { padding: 26px; }
}

/* Static Netlify pages */
.site-shell { min-height: 100vh; }
.site-header { background: rgba(247,244,236,.94); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.hero-static { padding-top: 64px; }
.hero-media { overflow: hidden; min-height: 420px; border-radius: 28px; box-shadow: 0 24px 70px rgba(18,37,31,.12); }
.hero-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.featured { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 26px; }
.featured img { width: 100%; min-height: 310px; height: 100%; object-fit: cover; border-radius: 18px; }
.featured-copy { display: flex; flex-direction: column; justify-content: center; padding: 20px; }
.featured-copy h2 { margin: 0; font: 500 clamp(30px,4vw,46px)/1.08 Georgia,serif; letter-spacing: -.035em; }
.featured-copy p { color: var(--muted); line-height: 1.75; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.article-layout { width: min(1120px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0,760px) 260px; gap: 70px; padding: 70px 0 90px; }
.article-main h1 { margin: 0; font: 500 clamp(42px,6vw,70px)/1.02 Georgia,serif; letter-spacing: -.045em; }
.article-deck { margin: 24px 0 0; color: var(--muted); font-size: 20px; line-height: 1.65; }
.article-meta { margin-top: 24px; color: #72837c; font-size: 13px; }
.article-cover { width: 100%; margin: 38px 0; border-radius: 22px; display: block; }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.86; color: #263c34; }
.article-body h2 { margin: 56px 0 16px; color: var(--ink); font-family: Inter,ui-sans-serif,system-ui,sans-serif; font-size: 29px; line-height: 1.2; }
.article-body h3 { margin: 34px 0 10px; color: var(--ink); font-family: Inter,ui-sans-serif,system-ui,sans-serif; font-size: 21px; }
.article-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 26px; }
.callout { margin: 34px 0; padding: 24px 26px; border-left: 4px solid var(--green); background: #edf3ee; border-radius: 0 16px 16px 0; font-family: Inter,ui-sans-serif,system-ui,sans-serif; font-size: 15px; line-height: 1.7; }
.related-links { margin-top: 54px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 20px; background: #f7faf7; }
.article-body .related-links h2 { margin-top: 0; }
.related-links p { font-family: Inter,ui-sans-serif,system-ui,sans-serif; font-size: 15px; line-height: 1.7; }
.related-links li { margin: 10px 0; }
.related-links a { font-family: Inter,ui-sans-serif,system-ui,sans-serif; font-size: 16px; font-weight: 650; }
.sidebar { align-self: start; position: sticky; top: 110px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.sidebar h2 { margin: 0 0 14px; font-size: 18px; }
.sidebar a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--green); font-size: 14px; line-height: 1.5; }
.page-wrap { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 78px 0 100px; }
.page-wrap h1 { font-size: clamp(44px,7vw,70px); }
.page-wrap h2 { margin-top: 42px; font-size: 25px; }
.page-wrap p, .page-wrap li { color: #435b52; font-size: 17px; line-height: 1.8; }
.contact-card { margin-top: 34px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.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: 850px) {
  .featured, .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-media, .hero-media img { min-height: 300px; }
}
