:root {
  --bg: #f4f1e8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fcfbf7;
  --ink: #11261f;
  --ink-soft: #4f625b;
  --line: rgba(17, 38, 31, 0.12);
  --brand: #0f7661;
  --brand-deep: #0b4f42;
  --accent: #d6ea62;
  --night: #0f1f1a;
  --shadow: 0 24px 80px rgba(15, 31, 26, 0.12);
  --radius: 28px;
  --container: min(1180px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 234, 98, 0.32), transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
}

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-shell {
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0;
  transition: background-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(15, 31, 26, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.custom-logo {
  width: auto;
  max-height: 54px;
}

.site-title {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-tagline,
.footer-eyebrow,
.eyebrow,
.post-card__meta,
.theme-card__label,
.signal-card__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.site-tagline {
  margin-top: 4px;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.menu a,
.footer-menu a {
  color: var(--ink-soft);
  font-weight: 600;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(11, 79, 66, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(11, 79, 66, 0.24);
}

.button--small {
  padding: 12px 18px;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(17, 38, 31, 0.16);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--brand-deep);
}

.link-arrow::after {
  content: "\2192";
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: none;
  border: 1px solid var(--line);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  padding: 68px 0 48px;
}

.hero__bg {
  position: absolute;
  inset: 24px 0 auto;
  height: 520px;
  background:
    linear-gradient(135deg, rgba(15, 118, 97, 0.12), rgba(214, 234, 98, 0.22)),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.7), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.14));
  border-radius: 0 0 42px 42px;
}

.hero__grid,
.split-grid,
.narrative-grid,
.site-footer__grid {
  position: relative;
  display: grid;
  gap: 32px;
  grid-template-columns: 1.25fr 0.85fr;
}

.hero__content {
  padding: 42px 0 16px;
}

.hero h1,
.section h1,
.section h2,
.site-footer h2 {
  margin: 10px 0 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 1.04;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.hero__lead,
.section-heading p,
.content-body,
.narrative-copy p,
.initiative p,
.split-card p,
.cta-block p,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 1.02rem;
}

.hero__lead {
  max-width: 62ch;
  margin: 24px 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__panel {
  align-self: end;
}

.signal-card,
.split-card,
.post-card,
.content-article,
.theme-card,
.initiative,
.cta-block,
.intro-band {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.signal-card {
  padding: 28px;
}

.signal-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.signal-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(17, 38, 31, 0.08);
  font-weight: 600;
}

.signal-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.signal-band span {
  background: rgba(15, 31, 26, 0.06);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.section {
  padding: 44px 0 96px;
}

.section--intro {
  padding-top: 10px;
}

.intro-band {
  padding: 34px;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 70ch;
}

.section h2,
.section h1,
.site-footer h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.theme-card {
  min-height: 100%;
  padding: 28px 24px;
}

.theme-card h3,
.initiative h3,
.post-card h2,
.post-card h3,
.split-card h2 {
  margin: 12px 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.theme-card p,
.theme-card li,
.post-card p,
.initiative p {
  color: var(--ink-soft);
}

.theme-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.theme-card li {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(17, 38, 31, 0.08);
}

.section--dark {
  background: linear-gradient(135deg, #16342c, #0f1f1a);
  color: #eef5f2;
}

.section--dark .eyebrow,
.section--dark p {
  color: rgba(238, 245, 242, 0.82);
}

.narrative-grid {
  align-items: start;
}

.initiative-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.initiative {
  padding: 26px 28px;
}

.section--split {
  padding-top: 12px;
}

.split-card {
  padding: 34px;
}

.split-card--accent {
  background:
    linear-gradient(150deg, rgba(214, 234, 98, 0.56), rgba(255, 255, 255, 0.82)),
    var(--surface-strong);
}

.section--news {
  background: rgba(255, 255, 255, 0.42);
}

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

.post-card,
.content-article,
.cta-block {
  padding: 28px;
}

.post-card a:hover,
.menu a:hover,
.footer-menu a:hover {
  color: var(--brand-deep);
}

.section--cta {
  padding-top: 24px;
}

.cta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background:
    linear-gradient(135deg, rgba(15, 118, 97, 0.88), rgba(11, 79, 66, 0.96)),
    var(--brand);
  color: #fff;
}

.cta-block .eyebrow,
.cta-block p,
.cta-block h2 {
  color: #fff;
}

.content-shell {
  width: min(860px, calc(100vw - 40px));
  margin: 0 auto;
}

.content-shell--narrow {
  width: min(720px, calc(100vw - 40px));
}

.content-article,
.archive-layout {
  background: transparent;
}

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

.content-body a {
  color: var(--brand-deep);
  text-decoration: underline;
}

.content-body ul,
.content-body ol {
  padding-left: 1.2rem;
}

.search-form {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.search-field,
input[type="search"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.site-footer {
  padding: 36px 0 48px;
  background: #eef3ee;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 38, 31, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal-delay {
  --delay: 140ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.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;
}

@media (max-width: 1100px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .split-grid,
  .narrative-grid,
  .site-footer__grid,
  .cta-block,
  .post-grid,
  .initiative-list {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 24px;
    background: rgba(251, 250, 246, 0.96);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .menu {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero {
    padding-top: 24px;
  }

  .hero__bg {
    inset: 0 0 auto;
    height: 420px;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100vw - 24px, 100vw - 24px);
    --radius: 22px;
  }

  .site-header {
    padding: 14px 0;
  }

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

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1,
  .section h1,
  .section h2,
  .site-footer h2 {
    max-width: none;
  }
}
