:root {
  --ink: #17212b;
  --muted: #5d6872;
  --paper: #f7f5ef;
  --white: #ffffff;
  --green: #356857;
  --green-dark: #1f473d;
  --brass: #bb8e3f;
  --blue: #2f536d;
  --line: #d9d4c8;
  --shadow: 0 22px 60px rgba(23, 33, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.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: 18px clamp(18px, 4vw, 52px);
  color: var(--white);
  background: linear-gradient(rgba(23, 33, 43, 0.76), rgba(23, 33, 43, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
  font-family: Georgia, serif;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.88);
}

.nav a {
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: 120px clamp(20px, 6vw, 74px) 84px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(110deg, rgba(23, 33, 43, 0.08), rgba(23, 33, 43, 0.02)),
    radial-gradient(circle at 24% 28%, rgba(187, 142, 63, 0.42) 0 7%, transparent 7.5%),
    radial-gradient(circle at 74% 32%, rgba(53, 104, 87, 0.42) 0 9%, transparent 9.5%),
    linear-gradient(135deg, #786243 0 18%, #2f536d 18% 30%, #f7f5ef 30% 52%, #356857 52% 64%, #17212b 64% 100%);
  background-size: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 21, 29, 0.9), rgba(14, 21, 29, 0.54) 48%, rgba(14, 21, 29, 0.16)),
    linear-gradient(0deg, rgba(14, 21, 29, 0.86), rgba(14, 21, 29, 0.08) 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

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

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-line {
  max-width: 650px;
  margin: 26px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.8vw, 2.1rem);
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
}

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

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

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

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

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

.statement {
  padding: clamp(38px, 7vw, 72px) clamp(20px, 6vw, 74px);
  background: var(--ink);
  color: var(--white);
}

.statement p {
  max-width: 980px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 3.6rem);
  line-height: 1.18;
}

.section {
  padding: clamp(56px, 9vw, 108px) clamp(20px, 6vw, 74px);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(280px, 1.18fr);
  gap: clamp(30px, 7vw, 82px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.copy {
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
}

.copy p:first-child,
.section-heading p:first-child {
  margin-top: 0;
}

.band {
  background: var(--white);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
}

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

.grant-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.grant-card h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 1.13rem;
}

.grant-card p {
  margin: 0;
  color: var(--muted);
}

.side-note {
  max-width: 440px;
  color: var(--muted);
}

.story-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8c2b5;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffefa;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
.button:focus-visible {
  outline: 3px solid rgba(187, 142, 63, 0.45);
  outline-offset: 2px;
}

.form-button {
  width: fit-content;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 750;
}

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

.metric {
  padding: 22px;
  border-top: 4px solid var(--green);
  background: var(--paper);
}

.metric span {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 850;
  line-height: 1;
}

.metric p {
  margin: 10px 0 0;
  color: var(--muted);
}

.closing {
  background: var(--green-dark);
  color: var(--white);
}

.closing p {
  margin: 0 0 16px;
  color: #d8c08f;
  font-weight: 800;
  text-transform: uppercase;
}

.closing h2 {
  max-width: 1050px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 6vw, 74px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(14, 21, 29, 0.92), rgba(14, 21, 29, 0.42)),
      linear-gradient(0deg, rgba(14, 21, 29, 0.88), rgba(14, 21, 29, 0.1) 58%);
  }

  .split,
  .grant-grid,
  .metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 180px;
    line-height: 1.1;
  }

  .hero {
    padding-bottom: 54px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .grant-card {
    min-height: auto;
  }
}
