:root {
  --ink: #1e2520;
  --muted-ink: #5e665f;
  --leaf: #2f6b4f;
  --leaf-dark: #214d3a;
  --cotton: #f7f2e8;
  --earth: #9d643c;
  --ochre: #c4974d;
  --white: #ffffff;
  --line: #ded7c9;
  --shadow: 0 18px 50px rgba(32, 39, 33, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(222, 215, 201, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: var(--white);
  background: var(--leaf);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted-ink);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
  color: var(--muted-ink);
}

.site-nav a:hover {
  color: var(--leaf-dark);
}

.lang-switch,
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.lang-switch {
  min-width: 44px;
  height: 36px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: 6px;
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero picture,
.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(17, 25, 19, 0.84), rgba(17, 25, 19, 0.45) 52%, rgba(17, 25, 19, 0.15));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100% - 40px));
  margin: 0 clamp(20px, 5vw, 80px) 90px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--ochre);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(44px, 6vw, 82px);
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--leaf);
}

.button.primary:hover {
  background: var(--leaf-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.button.neutral {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button.danger {
  color: #ffffff;
  background: #9f2f2f;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.metrics article {
  padding: 28px clamp(18px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 26px;
}

.metrics span {
  margin-top: 6px;
  color: var(--muted-ink);
}

.section {
  padding: 92px clamp(20px, 5vw, 80px);
}

.two-column,
.impact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.section h2 {
  font-size: clamp(32px, 4vw, 56px);
  max-width: 780px;
}

.prose {
  color: var(--muted-ink);
  font-size: 18px;
  line-height: 1.8;
}

.muted {
  background: var(--cotton);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

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

.activity-card,
.news-card,
.chain-steps article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(32, 39, 33, 0.06);
}

.activity-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.activity-card div,
.news-card,
.chain-steps article {
  padding: 24px;
}

.activity-card h3,
.news-card h3,
.chain-steps h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.activity-card p,
.news-card p,
.chain-steps p {
  margin: 0;
  color: var(--muted-ink);
  line-height: 1.65;
}

.chain-layout {
  background: var(--white);
}

.chain-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.chain-steps span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--earth);
  font-weight: 900;
}

.impact-band {
  color: var(--white);
  background: var(--leaf-dark);
}

.impact-band .section-kicker {
  color: #e7c477;
}

.impact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  padding: 18px 20px;
  border-left: 4px solid var(--ochre);
  background: rgba(255, 255, 255, 0.08);
}

.news-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--earth);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card-link {
  display: block;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.news-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 107, 79, 0.45);
  box-shadow: 0 16px 36px rgba(32, 39, 33, 0.12);
}

.news-card-link strong {
  display: inline-flex;
  margin-top: 18px;
  color: var(--leaf);
}

.news-thumb {
  width: calc(100% + 48px);
  max-width: none;
  height: 190px;
  margin: -24px -24px 18px;
  object-fit: cover;
}

.listing-page {
  padding: 118px clamp(20px, 5vw, 80px) 72px;
  background: var(--cotton);
}

.listing-hero {
  margin-bottom: 28px;
}

.listing-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
}

.listing-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 90px);
  background: var(--cotton);
}

.contact-section p {
  color: var(--muted-ink);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label,
.contact-form span {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--muted-ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.upload-button {
  position: relative;
  overflow: hidden;
}

.upload-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--leaf-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(20px, 5vw, 80px);
  color: var(--white);
  background: #151a17;
}

.site-footer p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.admin-body {
  background: var(--cotton);
}

.admin-shell {
  padding: 118px clamp(20px, 5vw, 80px) 64px;
}

.admin-panel {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-panel h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.admin-panel p {
  max-width: 760px;
  color: var(--muted-ink);
  line-height: 1.7;
}

.admin-login {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.login-form {
  width: min(460px, 100%);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: start;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.admin-section {
  margin-top: 0;
}

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

.dashboard-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(32, 39, 33, 0.06);
}

.dashboard-grid strong,
.dashboard-grid span {
  display: block;
}

.dashboard-grid strong {
  font-size: 34px;
}

.dashboard-grid span {
  margin-top: 6px;
  color: var(--muted-ink);
}

.admin-form,
.admin-list-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(32, 39, 33, 0.06);
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-form label,
.admin-form label > span {
  display: grid;
  gap: 8px;
}

.admin-form label > span {
  color: var(--muted-ink);
  font-size: 13px;
  font-weight: 800;
}

.admin-form .checkbox-row {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.admin-form .checkbox-row input {
  width: 18px;
  height: 18px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-image-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cotton);
}

.inline-image-panel[hidden] {
  display: none;
}

.field-help {
  color: var(--muted-ink);
  line-height: 1.5;
}

.admin-actions,
.admin-row-actions,
.admin-list-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-list-wrap {
  padding: 24px;
}

.admin-list-header {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-list-header h2 {
  margin: 0;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-article h3,
.admin-article p {
  margin: 8px 0;
}

.admin-article p,
.admin-article small {
  color: var(--muted-ink);
}

.message-card p {
  white-space: pre-wrap;
}

.admin-row-actions {
  align-content: start;
  justify-content: flex-end;
}

.status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status.published {
  color: #174c35;
  background: #dceee5;
}

.status.draft {
  color: #73501d;
  background: #f3e5c7;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted-ink);
}

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

.media-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: var(--cotton);
}

.media-card strong,
.media-card small {
  display: block;
  overflow-wrap: anywhere;
}

.media-card small {
  margin-top: 4px;
  color: var(--muted-ink);
}

.article-page {
  padding: 118px clamp(20px, 5vw, 80px) 72px;
  background: var(--cotton);
}

.article-detail {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-detail h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.article-cover {
  width: 100%;
  max-height: 430px;
  margin-bottom: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--leaf);
  font-weight: 800;
}

.article-meta {
  margin: 18px 0;
  color: var(--earth);
  font-weight: 800;
}

.article-summary {
  color: var(--muted-ink);
  font-size: 21px;
  line-height: 1.7;
}

.article-content {
  margin-top: 34px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.9;
}

.article-image {
  margin: 34px 0;
}

.article-image img {
  width: 100%;
  max-height: 520px;
  border-radius: 8px;
  object-fit: cover;
}

.article-image figcaption {
  margin-top: 10px;
  color: var(--muted-ink);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 77px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .admin-top-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .metrics,
  .activity-grid,
  .news-grid,
  .chain-steps,
  .two-column,
  .impact-band,
  .contact-section,
  .admin-grid,
  .dashboard-grid,
  .media-grid,
  .listing-tools {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    margin: 0 20px 48px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .metrics,
  .activity-grid,
  .news-grid,
  .chain-steps,
  .two-column,
  .impact-band,
  .contact-section,
  .admin-grid,
  .dashboard-grid,
  .media-grid,
  .listing-tools,
  .upload-row,
  .admin-article {
    grid-template-columns: 1fr;
  }

  .metrics article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 64px 20px;
  }

  .site-footer {
    display: block;
  }
}
