/* Circular Agriculture Solutions. A faithful rebuild of the Squarespace site,
   palette sampled from Liz's screenshots (2026-10-08). */
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/poppins-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-style: italic; font-display: swap; src: url(fonts/poppins-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2"); }

:root {
  --cream: #feffeb;
  --footer: #fffdc7;
  --olive: #2e310d;
  --sage: #b9bc86;
  --lime: #e0e786;
  --ink: #2b2e12;
  --muted: #6e705a;   /* secondary text on cream: 5.0:1 (WCAG AA) */
  --field: #f8f8f8;   /* form field background */
  --error: #8a1c1c;   /* form error text: 7.5:1 on cream */
  --wave: #d9e58c;
  --terra: #a4532b;
  --terra-tint: #f3dccd;
  /* type roles: one size per job (typeset, 2026-10-09). Use these, not new literals. */
  --fs-display: clamp(2.5rem, 5vw, 4rem);      /* the home banner */
  --fs-title: clamp(2rem, 4.2vw, 3rem);        /* every page title (h1), and Our Founders / Board */
  --fs-lede: clamp(2rem, 4.8vw, 3rem);         /* the home lead-in */
  --fs-section: clamp(1.8rem, 3.6vw, 2.4rem);  /* section headings (h2) */
  --fs-card: clamp(1.6rem, 3vw, 2.2rem);       /* project and update titles */
  --fs-sub: clamp(1.35rem, 2.2vw, 1.6rem);     /* step titles, people's names (h3) */
  --fs-footer: clamp(1.7rem, 3.4vw, 2.1rem);   /* both footer headings */
  --fs-quote: clamp(1.5rem, 3.2vw, 2.2rem);   /* the pull quote on Our Vision */
  --fs-menu: clamp(2.4rem, 10vw, 3.4rem);     /* links in the full-screen phone menu */
  --fs-label: 1.1rem;                           /* uppercase terracotta labels */
  --fs-meta: .875em;                            /* dates, roles, captions, credits, legal line */
  --gutter: clamp(20px, 6vw, 56px);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 300 clamp(18px, 1.08rem + .25vw, 21px)/1.85 "Poppins", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Hanken Grotesk", system-ui, sans-serif; font-weight: 400; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: var(--fs-title); line-height: 1.15; }
h2 { font-size: var(--fs-section); }
h3 { font-size: var(--fs-sub); font-weight: 500; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
section { padding: clamp(64px, 10vw, 128px) 0; }

/* buttons */
.btn {
  display: inline-block; padding: 1.05em 2.6em; background: var(--olive); color: var(--cream);
  font: 400 1.05rem/1 "Poppins", sans-serif; text-decoration: none; letter-spacing: .02em;
  border: 0; border-radius: 12px; cursor: pointer; transition: opacity .15s;
}
.btn svg { width: 1.25em; height: 1.25em; margin: -.2em .6em -.2em 0; vertical-align: middle; fill: currentColor; }
.btn:hover { opacity: .88; }
.btn--lime { background: var(--lime); color: var(--olive); }

/* header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.logo { display: inline-block; padding: 4px 0; margin: -4px 0; }
.logo img { width: clamp(128px, 32vw, 190px); }
.nav { display: flex; gap: 2.2em; align-items: center; font: 400 1rem "Poppins", sans-serif; }
.nav a { text-decoration: none; }
.nav a:not(.btn) { padding: 8px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { padding: .85em 1.8em; }
.menu-btn { display: none; background: none; border: 0; padding: 12px 4px; margin-right: -4px; cursor: pointer; }
.menu-btn span { display: block; width: 36px; height: 1.5px; background: currentColor; margin: 7px 0; }
.page-plain .site-header { position: static; }
.on-hero .nav a:not(.btn), .on-hero .menu-btn { color: var(--olive); }

/* full-screen mobile menu, as on Squarespace */
.overlay { position: fixed; inset: 0; z-index: 20; background: var(--cream); display: none; flex-direction: column; }
.overlay.open { display: flex; }
.overlay .top { display: flex; justify-content: space-between; align-items: center; padding: 28px var(--gutter); }
.overlay .close { background: none; border: 0; font: 300 3rem/1 "Poppins", sans-serif; color: var(--ink); cursor: pointer; }
.overlay nav { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .4em; }
.overlay nav a { font: 300 var(--fs-menu)/1.3 "Poppins", sans-serif; text-decoration: none; }
.overlay .donate { margin: 0 auto 64px; width: min(480px, 80%); text-align: center; font-size: 1.6rem; padding: 1em; }
@media (max-width: 899px) { .nav { display: none; } .menu-btn { display: block; } }
body.locked { overflow: hidden; }

/* hero: the sunrise gradient with the green wave */
.hero {
  position: relative; padding: clamp(150px, 22vw, 230px) 0 clamp(120px, 14vw, 180px);
  background: linear-gradient(172deg, #95a4b3 0%, #b9c2c1 28%, #e2cfb2 55%, #f6cb78 78%, #f3b965 100%);
  color: var(--olive);
}
/* full-width banner text, still left-aligned with the logo and page content */
.hero .wrap { max-width: none; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: var(--gutter); }
.hero h1 { max-width: none; margin: 0; font-weight: 500; font-size: var(--fs-display); line-height: 1.12; }
.hero svg { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); }

/* home intro */
.intro .lede { font: 400 var(--fs-lede)/1.25 "Hanken Grotesk", sans-serif; }
.intro .cols p { margin: 0 0 1.6em; }
.intro .cols { display: grid; gap: 48px; }
@media (min-width: 900px) { .intro .cols { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* project rows: a big photo beside its text, alternating sides (Home and Our Projects) */
.cards { background: var(--sage); color: var(--olive); }
.rows { display: grid; gap: clamp(56px, 8vw, 96px); }
.feature { display: grid; gap: 28px; align-items: center; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature h2, .feature h3 { font-weight: 400; font-size: var(--fs-card); margin: 0 0 .6em; }
.feature p { margin: 0 0 1.4em; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .feature:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
  .feature:nth-child(even) img { order: 2; }
}

/* contact */
.contact h2 { font-weight: 500; }
.contact form { display: grid; gap: 22px; margin-top: 2.4em; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact .row > *, .contact input { min-width: 0; }
@media (max-width: 420px) { .contact .row { grid-template-columns: 1fr; } }
.contact label { display: grid; gap: 8px; }
.contact label small { color: var(--muted); font-size: .95em; }
.contact input, .contact textarea {
  font: inherit; width: 100%; padding: .7em .8em; background: var(--field); border: 1.5px solid var(--ink); border-radius: 0; color: var(--ink);
}
.contact textarea { min-height: 150px; resize: vertical; }
/* honeypot: invisible to people, filled in by spam bots, which site.js then drops */
.contact .honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact .btn { justify-self: start; }
.contact .btn:disabled { opacity: .6; cursor: progress; }
.contact .form-error { margin: 0; color: var(--error); }
.contact .form-error[hidden] { display: none; }

/* projects page */
.projects .back { margin: 0 0 2em; }
.projects h1.page-title { margin: 0 0 .6em; }
.projects .detail { display: grid; gap: 36px; margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(32px, 5vw, 48px); border-top: 2px solid var(--wave); }
.projects .detail h2 { font: 500 var(--fs-label)/1.3 "Hanken Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5em; color: var(--terra); }
.projects .detail p { margin: 0 0 1em; }
.projects .detail ul { margin: 0; padding-left: 1.4em; }
.projects .detail li { margin: .2em 0; }
.projects .detail .btn { margin-top: .4em; }
@media (min-width: 900px) {
  .projects .detail { grid-template-columns: 1fr 1fr; gap: 40px 56px; }
}

/* "what we're learning" posts on the project pages */
.update { max-width: 760px; margin: 0 0 clamp(40px, 6vw, 64px); }
.update .date { text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-meta); margin: 0 0 .3em; color: var(--terra); }
.update h4, .update h3.sublabel { font: 500 var(--fs-label)/1.3 "Hanken Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .06em; margin: 1.6em 0 .4em; color: var(--terra); }
.update p { margin: 0 0 1em; }
.update ul, .update ol { margin: 0 0 1em; padding-left: 1.5em; }
.update li { margin: .25em 0; }
.update h2 { font-weight: 400; font-size: var(--fs-card); margin: 0 0 .6em; }
.update .tag a { display: inline-block; margin-left: .8em; padding: .45em .9em; background: var(--terra-tint); color: var(--olive); border-radius: 999px; text-decoration: none; text-transform: none; letter-spacing: 0; font-size: .95em; }
.updates-page .update { position: relative; max-width: 760px; margin: 0 0 clamp(56px, 8vw, 88px); padding-top: clamp(32px, 5vw, 48px); border-top: 2px solid var(--wave); scroll-margin-top: 16px; }
.update .credit { font-size: var(--fs-meta); font-style: italic; margin: 1.4em 0 0; color: var(--olive); }
.update .ref { font-size: var(--fs-meta); }
.update figure { margin: 1.6em 0; }
.update figure img { width: 100%; height: auto; }
.update figcaption { font-size: var(--fs-meta); margin-top: .5em; }
.update .figs { display: grid; gap: 20px; margin: 1.6em 0; }
.update .figs figure { margin: 0; }
.update .figs img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 600px) { .update .figs { grid-template-columns: 1fr 1fr; } }
.update figure.narrow { max-width: 420px; }
.feature img.top { object-position: 50% 18%; }

/* vision page */
.vision .grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .vision .grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; } }
.vision .sig { margin-top: 2em; line-height: 1.6; }

/* team page */
.team h2 { margin-top: .4em; font-size: var(--fs-title); }
.people { display: grid; gap: clamp(72px, 9vw, 96px); margin: 2em 0 clamp(80px, 10vw, 120px); }
@media (min-width: 760px) { .people { grid-template-columns: 1fr 1fr; gap: 64px 56px; } }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person h3 { font-weight: 500; margin: 1em 0 .2em; }
.person .role { text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-meta); margin: 0 0 1.2em; color: var(--terra); }
/* the phone screenshots were framed differently: keep every face at the same height in the 4:5 frame */
.person img[src*="andy"] { object-position: 30% 22%; }
.person img[src*="erin"] { object-position: 50% 30%; }
.person img[src*="ewan"] { object-position: 50% 40%; }
.person img[src*="elizabeth"] { object-position: 62% 48%; }
.person img[src*="kriti"] { object-position: 50% 30%; }
.person p { margin: 0 0 1em; }

/* footer */
.site-footer { background: var(--footer); padding: clamp(56px, 8vw, 88px) 0; }
.site-footer .grid { display: grid; gap: 48px; }
@media (min-width: 760px) { .site-footer .grid { grid-template-columns: 1.4fr 1fr; } }
.site-footer h2 { font-size: var(--fs-footer); font-weight: 500; }
.site-footer h3 { font-weight: 400; font-size: var(--fs-footer); }
.site-footer p { margin: 0 0 1em; }
.site-footer a { display: block; text-underline-offset: 5px; }
.site-footer a:not(.btn) { padding: 3px 0; }
.site-footer a.btn { display: inline-block; text-decoration: none; margin-top: .4em; }
.site-footer .legal { margin-top: clamp(32px, 5vw, 48px); padding-top: 24px; border-top: 1px solid rgba(46, 49, 13, .2); font-size: var(--fs-meta); }
.site-footer .legal p { margin: 0; }
.nowrap { white-space: nowrap; }

/* items waiting on Liz: visible on the review copy, never silent */
.gap { background: #fff3a6; outline: 1px dashed #b49a00; padding: 0 .25em; font-style: normal; }
.btn .gap { background: none; outline: 0; padding: 0; }
.donate-page .gap { display: inline-block; margin-top: 1em; padding: .6em .9em; }

/* a heading that structures the page for screen readers and search engines but is not shown */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--olive); color: var(--cream); padding: .75em 1.1em; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
/* the browser's own surfaces, in the site's colours */
::selection { background: var(--lime); color: var(--olive); }
input, textarea { caret-color: var(--olive); accent-color: var(--olive); }

/* terracotta accent on link hovers (labels, tags and icons set their own colour) */
a:hover { text-decoration-color: var(--terra); }

/* rounded photos, to match the rounded buttons */
.feature img, .person img, .vision img, .update img, .update figure img { border-radius: 14px; }
.feature img { transition: box-shadow .25s, transform .25s; }
.feature:hover img { box-shadow: 0 12px 30px rgba(46, 49, 13, .2); transform: translateY(-2px); }

/* two buttons side by side on the project pages */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--outline { background: transparent; color: var(--olive); box-shadow: inset 0 0 0 2px var(--olive); }

/* wavy edges around the green project rows, as in the banner */
.cards { position: relative; margin-top: clamp(32px, 5vw, 64px); margin-bottom: clamp(32px, 5vw, 64px); }
.cards::before, .cards::after { content: ""; position: absolute; left: 0; width: 100%; height: clamp(36px, 5vw, 64px); background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.cards::before { top: calc(-1 * clamp(36px, 5vw, 64px) + 1px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C 260 8 520 18 760 46 S 1220 70 1440 28 V80 H0 Z' fill='%23b9bc86'/%3E%3C/svg%3E"); }
.cards::after { bottom: calc(-1 * clamp(36px, 5vw, 64px) + 1px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 260 72 520 62 760 34 S 1220 10 1440 52 V0 H0 Z' fill='%23b9bc86'/%3E%3C/svg%3E"); }

/* how we work: three steps */
.how { padding-top: 0; }
.how h2 { display: flex; align-items: center; justify-content: center; gap: .5em; font-weight: 500; margin: 0 0 1.4em; }
.leaf { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: var(--terra); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.steps li { text-align: center; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.steps .icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--terra-tint); margin: 0 auto 1em; }
.steps .icon svg { width: 32px; height: 32px; fill: none; stroke: var(--terra); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps h3 { margin: 0 0 .4em; }
.steps p { margin: 0; }

/* updates read like a feed: small photo beside each title, a leaf on each rule */
.update .head { display: flex; align-items: center; gap: 20px; margin-bottom: 1.2em; }
.update .head h2 { margin: 0; }
.update .figcap { font-size: var(--fs-meta); margin: -.8em 0 1.4em; }
.updates-page .update::before { content: ""; position: absolute; top: -15px; left: 50%; width: 30px; height: 30px; margin-left: -15px; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4532b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20C4 11 10 4 21 4c0 10-6 16-17 16z'/%3E%3Cpath d='M4 20L15 9'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* Home focus areas, as pills */
.focus { padding-top: 0; text-align: center; }
.focus p { margin: 0 0 1.4em; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pills li { margin: 0; padding: .5em 1.3em; background: var(--lime); color: var(--olive); border-radius: 999px; font-size: .95em; line-height: 1.5; }

/* pull quote on Our Vision */
.quote-wrap { max-width: 1100px; }
@media (min-width: 700px) { .pullquote blockquote p span { display: block; } }
.pullquote { padding-top: 0; text-align: center; }
.pullquote .leaf { width: 2.2rem; height: 2.2rem; margin: 0 auto 1rem; display: block; }
.pullquote blockquote { margin: 0; }
.pullquote blockquote p { font: 400 var(--fs-quote)/1.4 "Hanken Grotesk", sans-serif; margin: 0 0 .8em; }
.pullquote footer { color: var(--terra); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-meta); }

/* a soft fade when a page opens */
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
main { animation: page-in .5s ease-out both; }
@media (prefers-reduced-motion: reduce) { main { animation: none; } .feature img { transition: none; } }
