/* coyote capital */

:root {
  --white: #ffffff;
  --band: #f6f8f6;
  --green: #457350;
  --green-light: #58b079;
  --ink: #222222;
  --body-text: #333333;
  --muted: #888888;
  --rule: #e6e6e6;
  --dark: #1c1c1c;

  --display: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body-text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap.narrow { max-width: 720px; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-light); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* jumping to a section shouldn't draw a box around it; the field inside
   the contact form shows its own focus ring when the script lands there. */
.section:focus,
.section:focus-visible { outline: none; }

/* ---------- about, top right ---------- */

.topbar {
  display: flex;
  justify-content: flex-end;
  padding-top: 28px;
}

.about-link {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
  padding: 4px 2px;
}

.about-link:hover {
  color: var(--green-light);
  text-decoration: underline;
}

/* ---------- subpages: /about and /message ---------- */

.subhead {
  text-align: center;
  padding: 40px 0 8px;
}

.wordmark-link {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green);
  text-decoration: none;
}

.wordmark-link:hover { color: var(--green-light); }

.subpage main { padding-top: 40px; }

.back {
  text-align: center;
  margin: 44px 0 0;
  font-size: 14.5px;
}

/* ---------- about ---------- */

.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: #666666;
  text-align: center;
  margin: 0 0 18px;
}

.prose p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 36px 0 104px;
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--green);
  margin: 0;
}

.hero .coyote-dollar {
  padding-top: 56px;
}

.tagline {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  color: #666666;
  max-width: 17em;
  margin: 4px auto 22px;
}

/* ---------- pill button ---------- */

.pill {
  display: inline-block;
  font: 500 14px/1 var(--body);
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 11px 18px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(31, 47, 34, .16);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.pill:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--white);
}

.pill-quiet {
  background: var(--white);
  color: var(--green);
}

.pill-quiet:hover { color: var(--white); }

/* ---------- sections ---------- */

.section { padding: 0 0 104px; }

.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--green);
  text-align: center;
  margin: 0 0 14px;
}

.section-note {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  max-width: 34em;
  margin: 0 auto 44px;
}

/* ---------- grantees ---------- */

.grantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.grantee img,
.grantee .placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  background: var(--band);
  margin-bottom: 14px;
}

.grantee h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.grantee p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.empty {
  text-align: center;
  color: var(--muted);
  max-width: 44em;
  margin: 0 auto;
}

/* ---------- support ---------- */

.support-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.option {
  text-align: center;
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 30px 26px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.minibill {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
}

.option h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}

.option .amount {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green);
  margin: 0 0 12px;
}

.option .amount span {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.option p {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 24em;
}

.custom-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--muted);
}

.custom-amount input { width: 96px; text-align: center; }

/* ---------- faq band ---------- */

.faq-band {
  background: var(--band);
  padding: 84px 0 88px;
  margin-bottom: 104px;
}

.faq-band .section-title { margin-bottom: 36px; }

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-of-type { border-top: 1px solid var(--rule); }

.faq summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  color: var(--body-text);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "+";
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
  flex: none;
}

.faq details[open] summary::before { content: "\2013"; }

.faq summary:hover { color: var(--green); }

.faq p {
  margin: 0 0 18px;
  padding-left: 28px;
  font-size: 15px;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- message form ---------- */

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  font: 400 15px/1.5 var(--body);
  color: var(--body-text);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
}

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

input:focus-visible,
textarea:focus-visible {
  border-color: var(--green);
  outline: 2px solid rgba(88, 176, 121, .35);
  outline-offset: 1px;
}

.form-actions { text-align: center; margin-top: 22px; }

.form-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- footer ---------- */

.footer {
  background: var(--dark);
  color: #cfcfcf;
  padding: 26px 0;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-row p { margin: 0; }

.footer a { color: var(--green-light); }
.footer a:hover { color: var(--white); }

.footer-mid { text-align: center; color: var(--muted); }
.footer-questions { text-align: right; }

/* ---------- narrow screens ---------- */

@media (max-width: 860px) {
  .grantee-grid { grid-template-columns: repeat(2, 1fr); }
  .support-options { grid-template-columns: 1fr; max-width: 420px; }
  .hero { padding-bottom: 72px; }
  .section { padding-bottom: 72px; }
  .faq-band { padding: 60px 0 64px; margin-bottom: 72px; }

  .topbar { justify-content: center; }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .footer-mid,
  .footer-questions { text-align: center; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grantee-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .hero .coyote-dollar { padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
