/* ==========================================================================
   Earth Voice Index — pre-launch site
   Palette and typography aligned with the EVI grant dossier (June 2026)
   ========================================================================== */

:root {
  --ivory:        #FAF7F0;
  --ivory-warm:   #F4EFE4;
  --paper:        #FFFFFF;
  --forest:       #24493C;
  --forest-deep:  #1B3830;
  --forest-mid:   #3D6B58;
  --crimson:      #9E1B32;
  --crimson-soft: #C24359;
  --gold:         #B8912F;
  --gold-soft:    #D4B15C;
  --ink:          #23272A;
  --ink-soft:     #4A5158;
  --ink-faint:    #7C848B;
  --rule:         #DED6C6;
  --rule-soft:    #EBE4D7;

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

  --wide: 1140px;
  --text: 760px;
}

/* --- reset ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

/* --- typography ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 700; letter-spacing: .01em; }

p { margin: 0 0 1.1em; }

a { color: var(--crimson); text-decoration: none; border-bottom: 1px solid rgba(158,27,50,.28); }
a:hover { border-bottom-color: var(--crimson); }

strong { font-weight: 600; color: var(--forest-deep); }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 .9rem;
}

.eyebrow.gold  { color: var(--gold); }
.eyebrow.light { color: var(--gold-soft); }

.lede {
  font-size: 1.16rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.note {
  font-size: .88rem;
  color: var(--ink-faint);
  line-height: 1.55;
}

.section-rule {
  width: 64px; height: 3px; border: 0; margin: 0 0 1.6rem;
  background: var(--gold);
}

/* --- layout --------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
.wrap-text { width: 100%; max-width: var(--text); margin: 0 auto; padding: 0 28px; }

section { padding: 76px 0; }
section.tight { padding: 52px 0; }

.band-paper  { background: var(--paper); }
.band-warm   { background: var(--ivory-warm); }
.band-forest { background: var(--forest); color: rgba(255,255,255,.86); }
.band-forest h2, .band-forest h3, .band-forest h4 { color: #fff; }
.band-forest strong { color: #fff; }
.band-forest a { color: var(--gold-soft); border-bottom-color: rgba(212,177,92,.4); }
.band-forest .lede { color: rgba(255,255,255,.8); }
.band-forest .note { color: rgba(255,255,255,.6); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,240,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; border: 0; }
.brand:hover { border: 0; }

.brand-mark { width: 34px; height: 34px; flex: none; }

.brand-name {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--forest-deep);
  line-height: 1.15;
}

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 0;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--forest); border-bottom-color: var(--gold); }
.nav a.current { color: var(--forest-deep); border-bottom-color: var(--crimson); }

.nav-cta {
  display: inline-block;
  background: var(--crimson);
  color: #fff !important;
  padding: 9px 17px !important;
  border-radius: 3px;
  font-size: .84rem;
  font-weight: 600;
  border: 0 !important;
}
.nav-cta:hover { background: #85162a; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); border-radius: 3px;
  padding: 7px 11px; cursor: pointer;
  font-size: .8rem; font-weight: 600; color: var(--forest-deep);
}

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

.hero {
  background: linear-gradient(180deg, var(--ivory-warm) 0%, var(--ivory) 100%);
  border-bottom: 1px solid var(--rule);
  padding: 92px 0 84px;
  position: relative;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; max-width: 780px; }

.hero h1 { margin-bottom: .35em; }

.hero .tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--gold);
  margin: 0 0 1.6rem;
}

.hero-art {
  position: absolute; right: -60px; bottom: -40px;
  width: 460px; opacity: .5; z-index: 1; pointer-events: none;
}

.page-head {
  background: var(--forest);
  color: #fff;
  padding: 66px 0 58px;
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .lede { color: rgba(255,255,255,.82); max-width: 680px; margin: 0; }
.page-head .eyebrow { color: var(--gold-soft); }

/* --- buttons -------------------------------------------------------------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: .92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease;
}

.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: #85162a; border-color: transparent; }

.btn-secondary {
  background: transparent; color: var(--forest-deep);
  border-color: var(--forest-mid);
}
.btn-secondary:hover { background: var(--forest); color: #fff; }

.btn-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
}
.btn-light:hover { background: #fff; color: var(--forest-deep); }

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9d7b26; }

/* --- stat strip ----------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
}

.stat { padding: 26px 22px; border-right: 1px solid var(--rule-soft); }
.stat:last-child { border-right: 0; }

.stat .figure {
  font-family: var(--serif);
  font-size: 2.05rem;
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat .label {
  font-size: .76rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--crimson); margin-bottom: .2rem;
}
.stat .sub { font-size: .82rem; color: var(--ink-faint); }

.stats.on-forest { background: var(--forest-deep); border-color: rgba(255,255,255,.15); }
.stats.on-forest .stat { border-right-color: rgba(255,255,255,.12); }
.stats.on-forest .figure { color: #fff; }
.stats.on-forest .label { color: var(--gold-soft); }
.stats.on-forest .sub { color: rgba(255,255,255,.6); }

/* --- cards ---------------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px 26px;
}

.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }

.card-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .6rem;
  display: block;
}

.card-accent { border-top: 3px solid var(--gold); }
.card-accent-crimson { border-top: 3px solid var(--crimson); }

.card-quiet { background: transparent; border-color: var(--rule-soft); }

.card.on-forest {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.15);
}

/* --- callout -------------------------------------------------------------- */

.callout {
  background: var(--ivory-warm);
  border-left: 4px solid var(--gold);
  padding: 26px 28px;
  border-radius: 0 4px 4px 0;
  margin: 34px 0;
}
.callout h3 { margin-bottom: .45em; }
.callout p:last-child { margin-bottom: 0; }

.callout-forest {
  background: var(--forest-deep); color: rgba(255,255,255,.86);
  border-left-color: var(--gold);
}
.callout-forest h3 { color: #fff; }
.callout-forest strong { color: #fff; }

.callout-crimson { border-left-color: var(--crimson); background: #FBF1F2; }

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.45;
  color: var(--forest-deep);
  border-left: 4px solid var(--crimson);
  padding: 6px 0 6px 28px;
  margin: 36px 0;
}
.pullquote cite { display: block; font-family: var(--sans); font-size: .85rem;
  font-style: normal; color: var(--ink-faint); margin-top: .9rem; }

/* --- tables --------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin: 26px 0;
  background:
    linear-gradient(to right, var(--paper) 30%, rgba(255,255,255,0)) left center / 40px 100% no-repeat,
    linear-gradient(to left,  var(--paper) 30%, rgba(255,255,255,0)) right center / 40px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(36,73,60,.16), rgba(0,0,0,0)) left center / 16px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(36,73,60,.16), rgba(0,0,0,0)) right center / 16px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.table-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}

thead th {
  background: var(--forest);
  color: #fff;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 16px;
}

tbody td { padding: 13px 16px; border-top: 1px solid var(--rule-soft); vertical-align: top; }
tbody tr:nth-child(even) { background: #FCFAF5; }
tbody th {
  text-align: left; padding: 13px 16px; border-top: 1px solid var(--rule-soft);
  font-weight: 600; color: var(--forest-deep); vertical-align: top;
}
td.num, th.num { text-align: right; white-space: nowrap; }

.table-caption { font-size: .82rem; color: var(--ink-faint); margin-top: -12px; margin-bottom: 26px; }

/* --- lists ---------------------------------------------------------------- */

ul.ticks, ul.plain { list-style: none; padding: 0; margin: 0 0 1.2em; }

ul.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: .75em;
}
ul.ticks li::before {
  content: "";
  position: absolute; left: 4px; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
}

ul.plain li { margin-bottom: .6em; }

.band-forest ul.ticks li::before { background: var(--gold-soft); }

dl.spec { margin: 0; }
dl.spec dt {
  font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--crimson); margin-top: 1.3em;
}
dl.spec dd { margin: .35em 0 0; }

/* --- timeline ------------------------------------------------------------- */

.timeline { border-left: 2px solid var(--rule); padding-left: 0; margin: 30px 0 0; list-style: none; }

.timeline li { position: relative; padding: 0 0 30px 30px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,145,47,.18);
}
.timeline .phase-when {
  font-size: .76rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--crimson); display: block; margin-bottom: .2rem;
}
.timeline h3 { margin-bottom: .3em; }
.timeline p { margin-bottom: 0; }

/* --- FAQ ------------------------------------------------------------------ */

.faq-cluster { margin-bottom: 54px; }

.faq-item {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 54px 20px 24px;
  position: relative;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest-deep);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.4rem; font-weight: 400; color: var(--gold);
}
.faq-item[open] > summary::after { content: "–"; }
.faq-item > summary:hover { background: #FCFAF5; }

.faq-q {
  display: block;
  font-family: var(--sans);
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--crimson);
  margin-bottom: .4rem;
}

.faq-body { padding: 20px 24px 24px; border-top: 1px solid var(--rule-soft); }
.faq-body p:last-child { margin-bottom: 0; }

.mvp-note {
  background: var(--ivory-warm);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-size: .87rem;
  color: var(--ink-soft);
  margin-top: 18px;
}
.mvp-note strong { color: var(--gold); }

/* --- team ----------------------------------------------------------------- */

.person {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--forest);
  border-radius: 4px;
  padding: 28px 26px;
}
.person.specialist { border-top-color: var(--gold); }
.person h3 { margin-bottom: .2em; }
.person .role {
  font-size: .84rem; font-weight: 600; color: var(--crimson);
  margin: 0 0 .2rem;
}
.person .affil { font-size: .84rem; color: var(--ink-faint); margin: 0 0 1rem; }
.person p:last-child { margin-bottom: 0; }

/* --- logo strip ----------------------------------------------------------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.4em; }

.chip {
  font-size: .82rem;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink-soft);
}

.band-forest .chip {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
}

/* --- CTA band ------------------------------------------------------------- */

.cta-band {
  background: var(--forest-deep);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.8); max-width: 620px; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }

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

.site-footer {
  background: var(--ivory-warm);
  border-top: 1px solid var(--rule);
  padding: 56px 0 34px;
  font-size: .88rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.site-footer h4 {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--crimson); margin-bottom: .9em;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a { color: var(--ink-soft); border-bottom-color: var(--rule); }
.site-footer a:hover { color: var(--crimson); }

.footer-base {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .8rem; color: var(--ink-faint);
}

/* --- status flag ---------------------------------------------------------- */

.status-flag {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(184,145,47,.13);
  border: 1px solid rgba(184,145,47,.4);
  color: #7d6220;
  border-radius: 20px;
  padding: 6px 15px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 1.6rem;
}
.status-flag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat { border-bottom: 1px solid var(--rule-soft); }
  .stat:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { width: 340px; opacity: .32; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .hero { padding: 60px 0 56px; }
  .hero-art { display: none; }
  .page-head { padding: 46px 0 42px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .wrap, .wrap-text { padding: 0 20px; }

  .status-flag { border-radius: 6px; align-items: flex-start; }
  .status-flag::before { margin-top: .48em; flex: none; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    padding: 8px 20px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  .nav a.current { border-bottom-color: var(--rule-soft); color: var(--crimson); }
  .nav-cta { text-align: center; margin-top: 12px; }
}

@media print {
  .site-header, .nav, .cta-band, .btn-row { display: none; }
  body { background: #fff; font-size: 11pt; }
  section { padding: 18px 0; }
}
