:root {
  --green-950: #102018;
  --green-900: #163323;
  --green-800: #1f4a34;
  --green-700: #2c6848;
  --green-600: #3f815b;
  --green-100: #e4f0e8;
  --green-50: #f4faf6;
  --cream: #fbfbf5;
  --ink: #17231d;
  --muted: #5d6b62;
  --line: #d7e3db;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(16, 32, 24, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 132px;
  height: 76px;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--green-900);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.nav-action {
  padding: 9px 13px;
  border: 1px solid var(--green-700);
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: min(720px, 82vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--green-900);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 32, 24, 0.86), rgba(16, 32, 24, 0.5) 48%, rgba(16, 32, 24, 0.08)),
    linear-gradient(0deg, rgba(16, 32, 24, 0.84), transparent 45%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 72px) clamp(44px, 10vh, 92px);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green-100);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.status-band article {
  padding: 22px clamp(18px, 4vw, 56px);
  background: var(--green-50);
}

.status-band span {
  display: block;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-band strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.section {
  padding: clamp(42px, 7vw, 78px) clamp(18px, 6vw, 72px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 82px);
  align-items: start;
}

.intro-section .section-kicker,
.section-heading .section-kicker {
  color: var(--green-700);
}

h2 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.intro-section p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.repository-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.text-link {
  color: var(--green-800);
  font-weight: 800;
  text-decoration-color: rgba(44, 104, 72, 0.35);
  text-underline-offset: 4px;
}

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

.filter-button {
  min-height: 40px;
  padding: 9px 13px;
  color: var(--green-900);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
}

.document-list,
.feed-list {
  display: grid;
  gap: 12px;
}

.document-card,
.feed-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(16, 32, 24, 0.04);
}

.repository-section .document-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--green-900);
  background: var(--green-100);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.document-card h3,
.feed-card h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.05rem;
  line-height: 1.25;
}

.document-card p,
.feed-card p {
  margin: 0;
  color: var(--muted);
}

.document-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--green-800);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
}

.content-grid .section {
  background: var(--green-50);
}

.feed-card time {
  color: var(--green-700);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--green-950);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 780px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 660px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(16, 32, 24, 0.9), rgba(16, 32, 24, 0.5) 70%, rgba(16, 32, 24, 0.22)),
      linear-gradient(90deg, rgba(16, 32, 24, 0.72), transparent);
  }

  .status-band,
  .intro-section,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .repository-section .document-card,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .repository-section .document-card {
    grid-template-columns: 1fr;
  }

  .document-link {
    width: 100%;
  }
}
