:root {
  color-scheme: light;
  --bg: #f3efe7;
  --panel: #fffaf3;
  --panel-strong: #ffffff;
  --ink: #14211c;
  --muted: #5d685f;
  --accent: #1f5f55;
  --accent-dark: #113a33;
  --accent-soft: #dce9e4;
  --gold: #a87738;
  --border: rgba(20, 33, 28, 0.12);
  --shadow: 0 20px 50px rgba(19, 33, 28, 0.08);
  --radius: 24px;
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 95, 85, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(168, 119, 56, 0.13), transparent 30%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
  font-family: "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 242, 0.82);
  border-bottom: 1px solid rgba(20, 33, 28, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
}

.menu-button {
  display: none;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.thanks-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 0.96;
  margin: 0.35rem 0 1rem;
  letter-spacing: -0.03em;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.77rem;
  font-weight: 800;
}

.lead {
  max-width: 58ch;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 95, 85, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--border);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.stats div,
.card,
.feature-panel,
.contact-card,
.grant-form,
.thanks-page .card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats div {
  padding: 1rem 1.1rem;
}

.stats dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.stats dd {
  margin: 0;
  font-weight: 700;
}

.hero-visual {
  padding: 1rem;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(31, 95, 85, 0.12), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 33, 28, 0.08);
  box-shadow: var(--shadow);
}

.hero-visual img {
  border-radius: 24px;
}

.section {
  padding: 1.5rem 0 2rem;
}

.section-heading,
.page-hero {
  margin-bottom: 1.2rem;
}

.section-heading h2,
.feature-panel h2,
.contact-card h2,
.grant-form legend,
.card h2,
.card h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

.section-heading h2,
.feature-panel h2,
.contact-card h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 1.4rem;
}

.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-panel,
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
}

.feature-panel.compact {
  align-items: flex-start;
}

.process-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.contact-section {
  padding-bottom: 4rem;
}

.contact-card p {
  color: var(--muted);
  max-width: 62ch;
}

.page-hero {
  padding-top: 2.5rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-section {
  padding-bottom: 4rem;
}

.grant-form {
  padding: 1.5rem;
}

.grant-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--ink);
}

.grant-form input,
.grant-form select,
.grant-form textarea {
  width: 100%;
  border: 1px solid rgba(20, 33, 28, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
}

.grant-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.grant-form input:focus,
.grant-form select:focus,
.grant-form textarea:focus,
.button:focus,
.menu-button:focus,
.site-nav a:focus {
  outline: 3px solid rgba(31, 95, 85, 0.2);
  outline-offset: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(20, 33, 28, 0.08);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.thanks-page .card {
  max-width: 700px;
  padding: 2rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .feature-panel,
  .contact-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .stats,
  .card-grid.three-up,
  .card-grid.two-up,
  .field-grid.two-up {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 5rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 250, 243, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-shell {
    position: relative;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
