:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --ink: #18211d;
  --muted: #65706a;
  --line: #d8ddd3;
  --panel: #ffffff;
  --panel-soft: #edf2ea;
  --green: #315d47;
  --green-dark: #213f32;
  --blue: #2e6474;
  --rust: #9a5d3a;
  --gold: #c2a55d;
  --shadow: 0 18px 48px rgba(24, 33, 29, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 33, 29, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 33, 29, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
}

a { color: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 221, 211, 0.9);
  background: rgba(245, 242, 234, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.page,
.wide {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  background: var(--green);
  font-size: 0.9rem;
  font-weight: 820;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 620;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--ink); }

.nav-action {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--green);
  border-radius: 7px;
  color: var(--green-dark);
  background: #fff;
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: end;
  margin-bottom: 54px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 28, 24, 0.88), rgba(17, 28, 24, 0.56) 54%, rgba(17, 28, 24, 0.20)),
    url("/assets/hero-board.png") center / cover no-repeat;
}

.hero-inner {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 88px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-title {
  padding: 70px 0 24px;
}

.page-title h1 { color: var(--ink); }

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1.28;
}

.lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.16rem;
}

.page-title .lead,
.section-lead,
.muted,
.panel p,
.resource small,
.timeline p,
.form-note { color: var(--muted); }

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

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
button.primary {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green);
}

.button.dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 58px 0;
}

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

.section-head p { max-width: 620px; }

.grid {
  display: grid;
  gap: 16px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel,
.resource,
.case-card,
.form-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel,
.case-card,
.notice { padding: 24px; }

.panel.featured {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.panel.featured p { color: rgba(255, 255, 255, 0.78); }

.metric {
  display: block;
  margin-bottom: 8px;
  color: var(--rust);
  font-size: 2rem;
  font-weight: 820;
  line-height: 1;
}

.band {
  margin: 44px 0;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

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

.list-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child { border-bottom: 0; }

.case-card {
  display: grid;
  gap: 16px;
}

.case-meta,
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 650;
}

.resource {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  text-decoration: none;
}

.resource:hover { border-color: var(--green); }

.resource strong { font-size: 1rem; }

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.confirmation {
  display: none;
  padding: 16px;
  border: 1px solid #b8d0bd;
  border-radius: 8px;
  color: #1d4c2f;
  background: #edf7ef;
}

.confirmation.is-visible { display: block; }

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: #eef0e9;
}

.footer-inner {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding: 42px 0;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover { color: var(--ink); }

.fine-print {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden { display: none !important; }

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  nav { justify-content: flex-start; }
  .hero { min-height: 580px; }
  .grid.two, .grid.three, .grid.four, .split, .footer-inner, .form-row { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .hero-inner { padding: 64px 0 54px; }
  .section { padding: 42px 0; }
  .band { padding: 24px; }
  nav { gap: 12px; }
  .button, button { width: 100%; }
}
