/* =========================================================
   The Montecillo Foundation
   Single stylesheet — no external dependencies.
   Palette: warm stone, forest, and clay tones.
   ========================================================= */

:root {
  --ink:        #23201b;   /* near-black warm */
  --ink-soft:   #4a453d;
  --stone:      #f5f1ea;   /* page background */
  --stone-2:    #ebe4d8;   /* alt section */
  --line:       #ddd4c5;
  --forest:     #2f4a3c;   /* deep green accent */
  --forest-2:   #3d6151;
  --clay:       #a8623c;   /* warm accent */
  --gold:       #b08a3e;
  --paper:      #fffdf9;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
           Helvetica, Arial, sans-serif;

  --maxw: 1080px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--clay); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, 0.88);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.brand .kicker { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
}
.nav-links a:hover { color: var(--clay); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(61, 97, 81, 0.12), transparent 60%),
    linear-gradient(180deg, var(--stone) 0%, var(--stone-2) 100%);
  overflow: hidden;
}
.hero-inner { padding: 84px 0 96px; position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--forest); border: 1px solid var(--line); background: var(--paper);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero p.lede { font-size: 1.28rem; color: var(--ink-soft); margin: 22px 0 34px; max-width: 60ch; }
.hero-range {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 180px; z-index: 1;
  pointer-events: none; opacity: 0.9;
}
@media (max-width: 640px) { .hero-range { height: 110px; } }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none; padding: 13px 26px; border-radius: 8px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,0.15); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(47,74,60,0.28); }
.btn-ghost { border: 1px solid var(--forest); color: var(--forest); margin-left: 10px; }
.btn-ghost:hover { background: var(--forest); color: #fff; }
@media (max-width: 480px) { .btn-ghost { margin-left: 0; margin-top: 10px; } }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head .tag {
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay);
  font-weight: 700; margin-bottom: 12px; display: block;
}
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Focus cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px; position: relative; overflow: hidden;
}
.card .icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--forest); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--forest), var(--gold));
}

/* ---------- Grantees ---------- */
.grantees { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .grantees { grid-template-columns: 1fr; } }
.grantee {
  background: var(--stone); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; display: flex; flex-direction: column; gap: 8px;
}
.grantee .region { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.grantee h3 { margin: 0; }
.grantee p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.grantee .pill {
  align-self: flex-start; margin-top: 6px; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--forest); color: #fff; padding: 4px 12px; border-radius: 999px;
}

/* ---------- Prose / About ---------- */
.prose { max-width: 66ch; }
.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 1.1em; }
.two-col { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

.factsheet {
  background: var(--forest); color: #f2efe8; border-radius: 16px; padding: 30px 28px;
}
.factsheet h3 { color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.factsheet dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.factsheet dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a9c2b4; }
.factsheet dd { margin: 2px 0 0; font-size: 0.98rem; }

/* ---------- Values strip ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .values { grid-template-columns: 1fr; } }
.value h3 { font-size: 1.02rem; margin-bottom: 4px; }
.value p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.value { border-left: 2px solid var(--gold); padding-left: 16px; }

/* ---------- Contact ---------- */
.contact-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 40px; text-align: center; max-width: 640px; margin: 0 auto;
}
.contact-box .email {
  font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--forest); text-decoration: none; display: inline-block; margin: 10px 0 4px;
}
.contact-box .email:hover { color: var(--clay); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc7b8; padding: 48px 0 40px; font-size: 0.9rem; }
.site-footer a { color: #e5ddcd; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand .name { font-family: var(--serif); font-size: 1.1rem; color: #fff; }
.site-footer .fine { color: #8f887b; font-size: 0.8rem; margin-top: 22px; max-width: 70ch; }
.site-footer .mark { width: 30px; height: 30px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
