:root {
  --page-bg: #f6f1e8;
  --paper: #fffdfa;
  --paper-soft: #f0e7d8;
  --brand-deep: #1b4a46;
  --brand-mid: #2f6d67;
  --brand-ochre: #aa7a2f;
  --ink-strong: #1d2726;
  --ink: #2f3837;
  --ink-muted: #697573;
  --line: rgba(29, 39, 38, 0.12);
  --shadow: 0 22px 55px rgba(41, 51, 49, 0.12);
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.site-body {
  background:
    radial-gradient(circle at top right, rgba(170, 122, 47, 0.16), transparent 28%),
    linear-gradient(180deg, #f9f5ee 0%, var(--page-bg) 70%);
  color: var(--ink);
  font-family: var(--font-sans);
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--brand-deep);
}

a:hover {
  color: var(--brand-mid);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.top-ribbon {
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-mid), var(--brand-ochre));
  height: 0.45rem;
}

.site-nav {
  background: rgba(255, 253, 250, 0.88);
  border-bottom: 1px solid rgba(27, 74, 70, 0.08);
}

.nav-toggle {
  border-color: rgba(27, 74, 70, 0.15);
}

.nav-link-cta {
  background: rgba(255, 253, 250, 0.72);
  color: var(--brand-deep) !important;
}

.nav-link-cta:hover,
.nav-link-cta:focus {
  background: var(--brand-deep) !important;
  color: #fff !important;
}

.site-main {
  padding: 2rem 0 4rem;
}

.hero-shell,
.page-hero,
.content-section,
.page-section {
  margin-bottom: 2rem;
}

.hero-shell {
  background:
    linear-gradient(135deg, rgba(27, 74, 70, 0.96), rgba(37, 92, 86, 0.88)),
    linear-gradient(45deg, rgba(170, 122, 47, 0.32), transparent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  color: #f9f5ef;
  overflow: hidden;
  padding: 2.5rem;
  position: relative;
}

.hero-shell::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  position: absolute;
}

.hero-grid,
.split-layout,
.contact-grid,
.governance-grid,
.grant-grid,
.two-column-copy,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  align-items: end;
  grid-template-columns: 1.5fr 0.95fr;
  position: relative;
  z-index: 1;
}

.eyebrow,
.panel-kicker,
.support-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--brand-ochre);
  margin-bottom: 0.75rem;
}

.hero-copy .eyebrow {
  color: #f2cd8c;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.page-section h2,
.support-card h2,
.detail-card h2 {
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.05;
}

.hero-copy h1 {
  color: #fffaf2;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  margin-bottom: 1rem;
  max-width: 10ch;
}

.hero-lead,
.page-lead,
.measure {
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-lead {
  color: rgba(255, 248, 236, 0.88);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.8rem 1.3rem;
}

.btn-accent {
  background: #f3cc85;
  border: 1px solid transparent;
  color: #2f2512;
}

.btn-accent:hover,
.btn-accent:focus {
  background: #ebc06c;
  color: #241d11;
}

.btn-outline {
  border: 1px solid rgba(255, 250, 242, 0.42);
  color: #fff8ec;
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-panel,
.feature-card,
.note-card,
.support-card,
.detail-card,
.form-card,
.archive-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px rgba(40, 45, 44, 0.06);
  padding: 1.5rem;
}

.hero-panel {
  background: rgba(255, 248, 236, 0.14);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff8ec;
}

.hero-panel .panel-kicker {
  color: #f2cd8c;
  margin-bottom: 1rem;
}

.hero-facts,
.detail-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.hero-facts dt,
.detail-list dt {
  color: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  opacity: 0.82;
  text-transform: uppercase;
}

.hero-facts dd,
.detail-list dd {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.section-heading {
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.section-heading h2,
.page-hero h1,
.page-section h2,
.support-card h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.feature-grid,
.support-grid,
.archive-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.muted-section,
.banded-panel,
.deadline-panel {
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.75), rgba(240, 231, 216, 0.75));
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  padding: 1.75rem;
}

.split-layout,
.contact-grid,
.governance-grid,
.grant-grid,
.two-column-copy,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tick-list,
.body-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.tick-list li,
.body-list li {
  margin-bottom: 0.8rem;
}

.note-card h3,
.feature-card h3,
.support-card h3,
.archive-item h3 {
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin-bottom: 0.8rem;
}

.support-tag {
  color: var(--brand-mid);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-hero {
  padding: 1rem 0 0.5rem;
}

.page-lead {
  max-width: 44rem;
}

.deadline-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.deadline-strip div {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
}

.deadline-strip span {
  color: var(--ink-muted);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.muted-note {
  color: var(--ink-muted);
}

.review-note {
  background: #fff7e6;
  border: 1px solid rgba(170, 122, 47, 0.28);
  border-left: 5px solid var(--brand-ochre);
  border-radius: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
}

.review-note strong {
  color: #6f4c15;
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.review-note p {
  margin: 0;
}

.form-card .form-control {
  background: #fffdf9;
  border: 1px solid rgba(27, 74, 70, 0.15);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
}

.form-card .form-control:focus,
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus {
  border-color: rgba(47, 109, 103, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(47, 109, 103, 0.16);
}

.site-footer {
  background: #173835;
  color: rgba(249, 245, 239, 0.84);
  margin-top: 2rem;
  padding: 2rem 0 2.25rem;
}

.footer-title {
  color: #fff6e8;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.footer-copy {
  max-width: 34rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
}

.footer-links a {
  color: #f7e7c2;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #fff6e8;
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .hero-grid,
  .feature-grid,
  .support-grid,
  .archive-grid,
  .split-layout,
  .contact-grid,
  .governance-grid,
  .grant-grid,
  .two-column-copy,
  .deadline-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    padding: 2rem 1.4rem;
  }

  .site-main {
    padding-top: 1.2rem;
  }

  .site-links {
    margin-top: 1rem;
  }
}
