/* Layout: single centered column, full-bleed landscape hero, forest-green bands with gold rule accents */
:root {
  --lake: #1f4a33;
  --lake-deep: #132b1e;
  --gold: #d4a72c;
  --granite: #56645a;
  --paper: #f6f7f2;
  --ink: #17221b;
  --line: #d8ddd2;
  --white: #ffffff;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--lake); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Masthead */
.masthead { background: var(--lake-deep); color: var(--white); border-bottom: 4px solid var(--gold); }
.masthead .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
  padding-block: 18px;
}
.brand {
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
}
.brand span { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nav a { color: #d6e3d4; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

/* Hero: landscape image under a green scrim; solid green if the image fails */
.hero {
  color: var(--white);
  background-color: var(--lake-deep);
  background-image:
    linear-gradient(100deg, rgba(19, 43, 30, 0.88) 0%, rgba(19, 43, 30, 0.55) 48%, rgba(19, 43, 30, 0) 80%),
    url("images/idaho-hero.svg");
  background-size: cover;
  background-position: center 60%;
}
.hero .wrap { padding-block: 96px 112px; }
@media (max-width: 640px) { .hero .wrap { padding-block: 64px 72px; } }
.eyebrow {
  font-family: var(--display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05;
  margin: 0 0 20px; max-width: 18ch; text-wrap: balance;
}
.hero p { font-size: 1.15rem; max-width: 56ch; margin: 0; color: #e6eee1; text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* Content */
main .wrap { padding-block: 56px; }
h2 {
  font-family: var(--display); font-weight: 800; font-size: 1.7rem;
  line-height: 1.2; margin: 0 0 14px; text-wrap: balance;
}
h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 28px 0 6px; }
p, li { max-width: 68ch; }

.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px; margin: 28px 0 0; padding: 0; list-style: none;
}
.pillars li { border-top: 3px solid var(--gold); padding-top: 14px; }
.pillars strong { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 4px; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line);
}
.split > * { min-width: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Form */
.signup {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 28px; display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input {
  font: inherit; padding: 11px 12px; border: 1px solid #b7c1b2; border-radius: 4px;
  background: var(--white); color: var(--ink); width: 100%;
}
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--lake); }
.consent label { font-size: 0.85rem; line-height: 1.55; color: var(--granite); }
.btn {
  font: inherit; font-family: var(--display); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; background: var(--gold); color: var(--lake-deep);
  border: 0; border-radius: 4px; padding: 13px 22px; cursor: pointer; justify-self: start;
}
.btn:hover { background: #e3ba4a; }
.fine { font-size: 0.82rem; color: var(--granite); margin: 0; }

/* Legal pages */
.legal h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.1; margin: 0 0 8px;
}
.legal .updated { color: var(--granite); font-size: 0.95rem; margin: 0 0 32px; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.callout {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  padding: 16px 20px; margin: 20px 0; border-radius: 4px; max-width: 68ch;
}
.callout p { margin: 0; }

/* Footer */
footer { background: var(--lake-deep); color: #c3d1c0; font-size: 0.9rem; }
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between;
  padding-block: 32px;
}
footer a { color: #e6eee1; }
.disclaimer {
  border: 1px solid #4b6a52; padding: 8px 14px; display: inline-block;
  font-weight: 600; color: var(--white); margin: 0 0 8px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Donate button: deep green with gold edge so it reads on the dark masthead */
.nav { align-items: center; }
.nav a.btn-donate {
  background: #0a1a10; color: var(--gold); border: 1.5px solid var(--gold);
  border-radius: 4px; padding: 8px 18px;
  font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.nav a.btn-donate:hover { background: var(--gold); color: #0a1a10; }
.fine-foot { font-size: 0.8rem; margin: 0 0 8px; }

@media (min-width: 900px) { .disclaimer { white-space: nowrap; } }

footer .wrap { flex-direction: column; }
.disclaimer { max-width: 100%; }

/* Centered footer */
footer .wrap { align-items: center; text-align: center; }
.footer-links { justify-content: center; }
