/* ==========================================================================
   Sawdust-Plastic Ecobricks — single stylesheet
   Design: memory/design.md — modern academic, green/earth palette,
   system fonts only (fast on mobile), no build step.
   ========================================================================== */

:root {
  --green-deep:  #234d32;   /* primary — forest green */
  --green-mid:   #3a7a4e;
  --earth:       #9c6b3c;   /* sawdust brown accent */
  --ink:         #22271f;
  --muted:       #5f6a5e;
  --paper:       #ffffff;
  --paper-tint:  #f3f5ef;   /* warm off-white section background */
  --line:        #e0e5db;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--earth); font-weight: 400; }

.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--green-mid); }

/* ---------- Shared section bits ---------- */

.section { padding: 4.5rem 0; }
.section-tint { background: var(--paper-tint); }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--earth);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--green-deep);
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

.lede { font-size: 1.15rem; max-width: 62ch; }
p { max-width: 68ch; }

section { scroll-margin-top: 4.5rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 33, 24, 0.88) 0%,
    rgba(20, 33, 24, 0.45) 45%,
    rgba(20, 33, 24, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.25rem 3.5rem;
  width: 100%;
  color: #fff;
}

.hero .eyebrow { color: #d8c9a8; }

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  margin: 0 0 0.75rem;
  max-width: 18ch;
  color: #fff;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  line-height: 1.2;
  max-width: 34ch;
  margin: 0 0 0.9rem;
  color: #fff;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 46ch;
  margin: 0 0 1.5rem;
  color: #e9ede6;
}

.hero-credit {
  font-size: 0.9rem;
  color: #c3cdbd;
  margin: 0;
}

/* ---------- Problem: split + stats ---------- */

.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.stats li {
  border-left: 3px solid var(--earth);
  padding-left: 1rem;
}

.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--green-deep);
  line-height: 1.1;
}

.stats span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Approach ---------- */

.objectives {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  max-width: 46rem;
}
.section-tint .objectives { background: var(--paper); }

.objectives h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--green-deep);
}

.objectives ul { margin: 0; padding-left: 1.2rem; }
.objectives li { margin-bottom: 0.5rem; }

/* ---------- Activities: cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card img {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--green-deep);
  margin: 1rem 0 0.4rem;
}

.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.person .portrait {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 0.75rem;
}

.person .avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e7dac5 0%, #f5f2ea 100%);
  border: 1px solid #d8cbb5;
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
}

.person h3 { margin: 0 0 0.15rem; font-size: 1.15rem; color: var(--green-deep); }
.person .role { color: var(--earth); font-size: 0.9rem; margin: 0 0 0.5rem; font-weight: 600; }
.person p:last-child { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Partners ---------- */

.partners-list { font-size: 1.05rem; color: var(--muted); max-width: 60ch; }

/* ---------- Contact / dark section ---------- */

.section-dark {
  background: var(--green-deep);
  color: #e9ede6;
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #d8c9a8; }
.section-dark a { color: #cfe3d3; }

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

.affiliations {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  padding: 2.5rem 1.25rem;
  background: var(--paper);
}

.affiliations img {
  height: 56px;
  width: auto;
}

.affil {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.affil span {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-deep);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #1a3a25;
  color: #a9bcab;
  font-size: 0.88rem;
  padding: 1.5rem 0;
}
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .split, .cards, .team { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hero { min-height: 68vh; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
}
