:root {
  --forest: #173f35;
  --forest-deep: #0d2d26;
  --green-soft: #dce9e2;
  --coral: #d85d4a;
  --coral-dark: #b94232;
  --ink: #202623;
  --muted: #66706b;
  --line: #d8ded9;
  --paper: #f5f5f1;
  --white: #ffffff;
  --header-height: 72px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.25;
}

h2 {
  margin-bottom: 16px;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--forest-deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.content-shell,
.nav-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: var(--white);
  background: rgba(13, 45, 38, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--forest-deep);
  background: var(--white);
  border-radius: 50%;
  place-items: center;
  font-family: "STSong", "Songti SC", serif;
  font-size: 1.15rem;
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(820px, 86vh);
  padding-top: var(--header-height);
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(5, 25, 21, 0.84) 0%, rgba(5, 25, 21, 0.55) 42%, rgba(5, 25, 21, 0.08) 76%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 80px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 14px;
  color: var(--coral-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  color: #f4c6bc;
}

.section-kicker.light {
  color: #f4c6bc;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 18px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  color: var(--white);
  background: var(--coral);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--coral-dark);
}

.secondary-action {
  color: var(--forest);
  background: var(--white);
  border-color: var(--forest);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: var(--green-soft);
}

.asset-note {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(13, 45, 38, 0.84);
  border-radius: 3px;
  font-size: 0.72rem;
  line-height: 1.4;
}

.impact-band,
.stories-section,
.outcomes-section,
.ledger-section,
.contact-section {
  padding: 96px 0;
}

.impact-band {
  background: var(--paper);
}

.section-heading {
  max-width: 670px;
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.heading-inline {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
}

.heading-inline > div h2 {
  margin-bottom: 0;
}

.as-of {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.stat {
  padding: 32px 24px 12px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat-value {
  min-height: 58px;
  margin-bottom: 4px;
  color: var(--forest);
  font-family: "STSong", "Songti SC", serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.stat-value span {
  margin-left: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.stat-label {
  margin-bottom: 0;
  color: var(--muted);
}

.story-list {
  display: grid;
  gap: 28px;
}

.story-card {
  display: grid;
  min-height: 320px;
  grid-template-columns: minmax(300px, 44%) 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.story-media {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--paper);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-body {
  display: flex;
  min-width: 0;
  padding: 42px;
  flex-direction: column;
  justify-content: center;
}

.story-meta {
  display: flex;
  margin-bottom: 16px;
  gap: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.story-body h3 {
  margin-bottom: 14px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 2rem;
}

.story-summary {
  color: var(--muted);
}

.story-footer {
  display: flex;
  margin-top: auto;
  padding-top: 26px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.status-pill,
.tag-list span {
  display: inline-flex;
  padding: 4px 10px;
  color: var(--forest);
  background: var(--green-soft);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
}

.text-action {
  padding: 4px 0;
  color: var(--coral-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.load-more-wrap {
  margin-top: 36px;
  text-align: center;
}

.outcomes-section {
  background: var(--forest);
  color: var(--white);
}

.outcomes-layout {
  display: grid;
  gap: 80px;
  grid-template-columns: 0.8fr 1.2fr;
}

.outcomes-heading {
  margin: 0;
}

.outcomes-heading > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.outcomes-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.outcomes-list li {
  display: grid;
  padding: 28px 0;
  gap: 24px;
  grid-template-columns: 42px 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.outcome-index {
  color: #f4c6bc;
  font-weight: 800;
}

.outcomes-list h3 {
  margin-bottom: 8px;
}

.outcomes-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.support-section {
  padding: 104px 0;
  color: var(--white);
  background: var(--forest-deep);
}

.support-layout {
  display: grid;
  gap: 100px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.support-copy > p:not(.section-kicker) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.72);
}

.support-notice {
  max-width: 650px;
  margin-top: 34px;
  padding: 18px 0 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid var(--coral);
}

.support-notice p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.qr-panel {
  padding: 32px;
  color: var(--ink);
  background: var(--white);
  border-radius: 6px;
}

.qr-panel h3 {
  margin: 22px 0 6px;
}

.qr-placeholder {
  display: grid;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 22px;
  color: var(--forest);
  background:
    linear-gradient(45deg, var(--green-soft) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(-45deg, var(--green-soft) 25%, transparent 25%) 0 0 / 24px 24px,
    var(--paper);
  border: 12px solid var(--white);
  outline: 1px solid var(--line);
  place-content: center;
  text-align: center;
}

.qr-placeholder span {
  font-family: "STSong", "Songti SC", serif;
  font-size: 2rem;
  font-weight: 700;
}

.qr-placeholder small {
  display: block;
  margin-top: 8px;
}

.qr-image {
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0 auto;
  object-fit: contain;
}

.qr-updated {
  color: var(--muted);
  font-size: 0.82rem;
}

.purpose-list {
  margin: 22px 0 0;
  padding: 18px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  list-style: none;
}

.purpose-list li::before {
  margin-right: 8px;
  color: var(--coral);
  content: "✓";
}

.ledger-section {
  background: var(--paper);
}

.ledger-summary {
  display: grid;
  margin-bottom: 36px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.ledger-total {
  padding: 24px 28px;
  border-left: 1px solid var(--line);
}

.ledger-total:first-child {
  border-left: 0;
}

.ledger-total p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.ledger-total strong {
  color: var(--forest);
  font-size: 1.45rem;
}

.ledger-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
}

td:last-child,
th:last-child {
  text-align: right;
}

.income {
  color: var(--forest);
}

.expense {
  color: var(--coral-dark);
}

.empty-state {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  text-align: center;
}

.ledger-table-wrap table:has(+ .empty-state:not([hidden])) {
  display: none;
}

.contact-section {
  background: var(--white);
}

.contact-inner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.contact-inner h2 {
  margin-bottom: 0;
}

.site-footer {
  padding: 54px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #10221d;
}

.footer-inner {
  display: flex;
  gap: 50px;
  align-items: end;
  justify-content: space-between;
}

.footer-inner > p {
  max-width: 520px;
  margin-bottom: 0;
  text-align: right;
}

.footer-brand {
  margin-bottom: 18px;
  color: var(--white);
}

.footer-brand + p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.story-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: 88vh;
  padding: 0 0 42px;
  overflow-x: hidden;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.story-dialog::backdrop {
  background: rgba(8, 25, 21, 0.72);
}

.dialog-close {
  position: sticky;
  z-index: 4;
  top: 12px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 12px;
  color: var(--white);
  background: rgba(13, 45, 38, 0.88);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.dialog-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dialog-meta,
.story-dialog h2,
.dialog-body,
.tag-list,
.dialog-note {
  margin-right: 42px;
  margin-left: 42px;
}

.dialog-meta {
  margin-top: 34px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.story-dialog h2 {
  margin-bottom: 20px;
}

.dialog-body {
  color: var(--muted);
}

.dialog-note {
  margin-top: 10px;
  color: var(--coral-dark);
  font-size: 0.78rem;
}

.tag-list {
  display: flex;
  margin-top: 24px;
  gap: 8px;
  flex-wrap: wrap;
}

:focus-visible {
  outline: 3px solid #f0a393;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  :root {
    --header-height: 64px;
  }

  .content-shell,
  .nav-shell {
    width: min(100% - 32px, 680px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    padding: 14px 16px 20px;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: var(--forest-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .site-nav a {
    padding: 12px max(16px, calc((100vw - 680px) / 2));
  }

  .hero {
    min-height: 78vh;
    align-items: end;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(5, 25, 21, 0.9) 0%, rgba(5, 25, 21, 0.48) 64%, rgba(5, 25, 21, 0.14) 100%);
  }

  .hero-content {
    padding-block: 92px 70px;
  }

  .impact-band,
  .stories-section,
  .outcomes-section,
  .ledger-section,
  .contact-section,
  .support-section {
    padding: 72px 0;
  }

  .heading-inline,
  .contact-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .stat,
  .stat:first-child {
    padding: 24px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .story-card,
  .outcomes-layout,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .story-body {
    padding: 28px;
  }

  .story-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .outcomes-layout,
  .support-layout {
    gap: 46px;
  }

  .ledger-summary {
    grid-template-columns: 1fr;
  }

  .ledger-total {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .ledger-total:first-child {
    border-top: 0;
  }

  .footer-inner > p {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 8px;
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .story-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-body h3 {
    font-size: 1.7rem;
  }

  .dialog-meta,
  .story-dialog h2,
  .dialog-body,
  .tag-list,
  .dialog-note {
    margin-right: 24px;
    margin-left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
