/* Climate Vision — editorial policy-journal aesthetic */

:root {
  --paper: #faf7f0;
  --paper-deep: #f2ede1;
  --ink: #14281d;
  --ink-soft: #3d5245;
  --ink-faint: #6b7d71;
  --evergreen: #1d4d33;
  --amber: #eabd15; /* brand gold sampled from Climate Vision logo */
  --amber-deep: #9a7c08; /* darkened brand gold for small text (contrast) */
  --rule: rgba(20, 40, 29, 0.18);
  --rule-strong: rgba(20, 40, 29, 0.55);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* faint paper grain */
  background-image:
    radial-gradient(rgba(20, 40, 29, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
}

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

::selection { background: var(--amber); color: var(--ink); }

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

.topbar {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 14px;
}

.wordmark { display: block; line-height: 0; }
.wordmark img { height: 42px; width: auto; display: block; }

nav.site-nav { display: flex; gap: 28px; }

nav.site-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

nav.site-nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }
nav.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }

/* kicker line under header on every page */
.kicker-band {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
}
.kicker-band .wrap {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- shared blocks ---------- */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--amber);
  flex: none;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }

main a:not(.btn) {
  color: var(--evergreen);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}
main a:not(.btn):hover { color: var(--amber-deep); }

.lede {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--evergreen);
  padding: 15px 30px 14px;
  border: 1px solid var(--evergreen);
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }

.btn.ghost {
  color: var(--evergreen);
  background: transparent;
}
.btn.ghost:hover { background: var(--evergreen); color: var(--paper); }

/* staggered load-in */
.rise { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards; }
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.3s; }
.rise.d4 { animation-delay: 0.42s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
}

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

.hero { padding: 84px 0 72px; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  max-width: 15ch;
  margin-bottom: 30px;
}
.hero h1 em { font-style: italic; color: var(--evergreen); }

.hero .lede { max-width: 54ch; margin-bottom: 18px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px;
  align-items: end;
}

.hero-aside {
  border-top: 3px solid var(--ink);
  padding-top: 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-aside strong { color: var(--ink); }
.hero-aside p + p { margin-top: 12px; }

/* full-bleed image band */
.image-band { position: relative; }
.image-band img { width: 100%; height: 46vh; min-height: 300px; object-fit: cover; display: block; }
.image-band figcaption {
  position: absolute;
  right: 0; bottom: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
}

/* mission section */
.mission { padding: 88px 0; }
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
}
.mission h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.mission h2 em { color: var(--evergreen); }
.mission .body p { margin-bottom: 16px; }
.mission .body p:last-of-type { margin-bottom: 32px; }

/* ---------- interior pages ---------- */

.page-head { padding: 76px 0 56px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 20ch; }
.page-head .lede { margin-top: 24px; max-width: 58ch; }

.prose { padding: 72px 0 96px; }
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 64px;
}
.prose p { margin-bottom: 18px; max-width: 62ch; }
.prose .side {
  border-top: 3px solid var(--ink);
  padding-top: 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.prose .side h3 { font-size: 1.1rem; margin-bottom: 10px; }
.prose .side ul { list-style: none; }
.prose .side li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.prose .side li:last-child { border-bottom: none; }

/* who-we-are portrait */
.portrait { float: right; width: min(260px, 42%); margin: 0 0 20px 36px; }
.portrait img { width: 100%; display: block; filter: saturate(0.92); }
.portrait figcaption {
  font-size: 0.8rem;
  color: var(--ink-faint);
  padding-top: 10px;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 10px;
}
.portrait figcaption strong { color: var(--ink); display: block; font-size: 0.9rem; }

/* ---------- media page ---------- */

.media-group { margin-bottom: 56px; }
.media-group:last-of-type { margin-bottom: 0; }

.media-group-title {
  font-size: 0.8rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.media-list { list-style: none; }

.media-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.media-list li:last-child { border-bottom: none; }

.media-meta {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.media-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
a.media-title:hover { color: var(--amber-deep) !important; }
a.media-title::after {
  content: "↗";
  font-family: var(--sans);
  font-size: 0.85em;
  color: var(--amber-deep);
  margin-left: 8px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  padding: 72px 0 96px;
}

.contact-ways { border-top: 3px solid var(--ink); padding-top: 24px; }
.contact-ways dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 26px;
}
.contact-ways dt:first-child { margin-top: 0; }
.contact-ways dd {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-top: 6px;
}
.contact-ways a { color: var(--evergreen); text-decoration: none; border-bottom: 1px solid var(--amber); }
.contact-ways a:hover { color: var(--amber-deep); }

form.contact-form { display: grid; gap: 20px; }
form.contact-form label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--rule-strong);
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--evergreen);
  box-shadow: 0 0 0 3px rgba(29, 77, 51, 0.15);
}
form.contact-form textarea { min-height: 160px; resize: vertical; }
form.contact-form button { cursor: pointer; font-family: var(--sans); }

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

footer.site-foot {
  border-top: 1px solid var(--rule-strong);
  background: var(--ink);
  color: rgba(250, 247, 240, 0.85);
  margin-top: 0;
}
footer.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 34px;
  padding-bottom: 38px;
}
footer .foot-mark { line-height: 0; }
footer .foot-mark img { height: 30px; width: auto; display: block; opacity: 0.95; }
footer a { color: rgba(250, 247, 240, 0.85); text-decoration: none; border-bottom: 1px solid rgba(200, 134, 10, 0.6); }
footer a:hover { color: var(--paper); }
footer .fine { font-size: 0.8rem; color: rgba(250, 247, 240, 0.55); width: 100%; }

/* cta band before footer */
.cta-band { background: var(--evergreen); color: var(--paper); }
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 52px;
  padding-bottom: 52px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 24ch; }
.cta-band .btn { background: var(--paper); color: var(--evergreen); border-color: var(--paper); }
.cta-band .btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

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

@media (max-width: 800px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid, .mission-grid, .prose-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .topbar .wrap { flex-direction: column; gap: 10px; align-items: flex-start; }
  nav.site-nav { gap: 18px; flex-wrap: wrap; }
  .kicker-band .wrap { flex-direction: column; gap: 2px; }
  .portrait { float: none; width: 70%; margin: 0 0 24px; }
}
