/* The ECO Files — theecofiles.org
   Single background color. All text colors verified at 7:1 or better (WCAG AAA).
   Minimum rendered text size: 14px. Body text: 17px. */

:root {
  --paper:   #FAF9F5;   /* the single background color */
  --ink:     #151F1A;   /* 16.04:1 — headings, body */
  --ink-2:   #39463F;   /*  9.39:1 — secondary body */
  --meta:    #424F47;   /*  8.17:1 — labels, captions */
  --accent:  #1F4A3A;   /*  9.50:1 — links */
  --rule:    #8F3222;   /*  7.53:1 — margin rule, section marks */
  --hair:    rgba(21, 31, 26, .16);
  --row: 30px;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.75rem);
}

.band { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.band + .band { border-top: 1px solid var(--hair); }

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

.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 1.1rem 0;
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}

.lockup {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.lockup img { display: block; width: 34px; height: 34px; }
.lockup span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.4rem;
  font-size: .9375rem;
  font-weight: 500;
}
.navlinks a { color: var(--ink-2); }

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

.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.25rem); }

.hero-inner {
  position: relative;
  padding-left: clamp(1.1rem, 3vw, 2rem);
  border-left: 3px solid var(--rule);
  max-width: 46rem;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.028em;
}

.standfirst {
  margin: 0;
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38rem;
}

/* ---------- headings ---------- */

h2 {
  margin: 0 0 1.4rem;
  padding-top: .85rem;
  border-top: 3px solid var(--rule);
  display: inline-block;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

h3 {
  margin: 0 0 .4rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

p { margin: 0 0 1rem; max-width: 42rem; }
p:last-child { margin-bottom: 0; }

.lede { color: var(--ink-2); max-width: 44rem; }

/* ---------- record list (the credibility payload) ---------- */

.record { margin: 0; border-top: 1px solid var(--hair); }

.record > div {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: .25rem 2rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--hair);
}

.record dt {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--meta);
}
.record dd { margin: 0; color: var(--ink); }

@media (max-width: 42rem) {
  .record > div { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- grids ---------- */

.grid {
  display: grid;
  gap: 1.75rem 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

.item { border-top: 1px solid var(--hair); padding-top: .9rem; }
.item p { font-size: 1rem; color: var(--ink-2); margin-bottom: 0; }

.tag {
  display: block;
  margin-bottom: .3rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--meta);
}

/* ---------- flow (how it works) ---------- */

.flow { counter-reset: step; }
.flow .item { padding-top: 1.1rem; }
.flow .item::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: .35rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--rule);
}

/* ---------- funders ---------- */

.funders {
  display: grid;
  gap: .9rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1rem;
}
.funders div { border-top: 1px solid var(--hair); padding-top: .6rem; }
.funders b { display: block; font-weight: 700; font-size: 1rem; }
.funders span { font-size: .9375rem; color: var(--ink-2); }

.subhead {
  margin: 2.25rem 0 .25rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
.subhead:first-of-type { margin-top: 1.5rem; }

/* ---------- people ---------- */

.person { border-top: 1px solid var(--hair); padding-top: .9rem; }
.person h3 { margin-bottom: .1rem; }
.person .role { font-size: .9375rem; color: var(--meta); margin-bottom: .45rem; }
.person p { font-size: 1rem; color: var(--ink-2); margin-bottom: 0; }

/* ---------- contact ---------- */

.contact-line {
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  font-weight: 700;
  margin-bottom: .35rem;
}
.contact-line a { color: var(--accent); }

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

.foot {
  border-top: 2px solid var(--ink);
  padding: 2rem 0 2.75rem;
  font-size: .9375rem;
  color: var(--ink-2);
}
.foot p { max-width: 54rem; }
.foot .legal { font-size: .875rem; color: var(--meta); }

/* ---------- links & focus ---------- */

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--rule); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: static;
  display: inline-block;
  margin: .5rem 0 0 1.25rem;
  padding: .5rem .85rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
}
