/* Grounded Cultivation — site styles
   Colours come from the logo artwork. Change them here and the whole site updates. */
:root {
  --cream: #F4EFE4;
  --cream-deep: #EAE2D2;
  --forest: #1F3324;
  --forest-soft: #3B5243;
  --sage: #5E7B50;        /* links (darker sage so it's readable) */
  --sage-light: #A9BC98;  /* accents */
  --ochre: #C9893A;       /* the sun: buttons, accents, later the "Featured" badge */
  --soil: #43301F;        /* footer */
  --ochre-text: #8A5A14;  /* darker sun colour for small text, so it stays readable */
  --line: #D6CCB8;
  --serif-display: "Alegreya", Georgia, serif;          /* headings: same family as the logo */
  --serif-body: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;  /* body: matches CULTIVATION */
  --max: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--serif-body);
  font-size: 1.15rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.45rem; }

.eyebrow {
  font-family: var(--serif-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-soft);
  margin: 0 0 1rem;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: block; text-decoration: none; color: var(--forest); }
.brand img { height: 60px; width: auto; }
.brand .wordmark-text {
  font-family: var(--serif-display); font-size: 1.9rem; font-style: italic;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.main-nav a {
  font-family: var(--serif-display); font-size: 0.98rem;
  color: var(--forest); text-decoration: none; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--ochre-text); }

/* Mobile menu (no JavaScript needed) */
.menu-toggle { display: none; }
.menu-toggle summary {
  list-style: none; cursor: pointer; font-family: var(--serif-display);
  border: 1px solid var(--forest); border-radius: 999px; padding: 6px 16px; font-size: 0.95rem;
}
.menu-toggle summary::-webkit-details-marker { display: none; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle[open] { position: static; }
  .menu-toggle[open] ul {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 10;
    background: var(--cream); border-bottom: 1px solid var(--line);
    list-style: none; margin: 0; padding: 8px 20px 20px;
  }
  .menu-toggle[open] li a {
    display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
    font-family: var(--serif-display); font-size: 1.15rem; color: var(--forest); text-decoration: none;
  }
  .site-header { position: relative; }
  .brand img { height: 44px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--serif-display); font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--forest); color: var(--forest); background: transparent;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--forest); color: var(--cream); }
.btn-primary { background: var(--ochre); border-color: var(--ochre-text); color: var(--forest); font-weight: 700; }
.btn-primary:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.hero-logo { width: min(880px, 100%); margin: 0 0 2.5rem -1.5%; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: clamp(1.2rem, 2vw, 1.45rem); max-width: 36ch; color: var(--forest-soft); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.more-link { font-family: var(--serif-display); white-space: nowrap; }

/* Story cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; gap: 28px; } }

.story-card { display: flex; flex-direction: column; }
.story-card .block {
  aspect-ratio: 4 / 3; border-radius: 4px; margin-bottom: 1.1rem;
  background-color: var(--cream-deep);
  background-image: url("images/horizon.svg");
  background-size: cover; background-position: center bottom;
}
.story-card:nth-child(2) .block { background-color: #DDE3D3; background-position: left top; }
.story-card:nth-child(3) .block { background-color: #E8D9BE; background-position: right bottom; }
.story-card .meta { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--serif-display); color: var(--forest-soft); margin: 0 0 0.4rem; }
.story-card h3 a { color: var(--forest); text-decoration: none; }
.story-card h3 a:hover { text-decoration: underline; }
.story-card p { margin: 0; color: var(--forest-soft); font-size: 1.05rem; }

/* Three doors */
.door {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 300px; padding: 32px; border-radius: 6px; text-decoration: none;
  color: var(--forest); transition: transform .15s;
}
.door:hover { transform: translateY(-3px); color: var(--forest); }
.door h3 { font-size: 1.9rem; }
.door p { margin: 0 0 1.5rem; color: var(--forest-soft); }
.door .go { font-family: var(--serif-display); }
.door-1 { background: var(--forest); color: var(--cream); }
.door-1 p, .door-1 .go, .door-1:hover { color: var(--cream); }
.door-1 p { opacity: .85; }
.door-2 { background: #DDE3D3; }
.door-3 { background: #E8D9BE; }

/* Research list */
.research-list { list-style: none; margin: 0; padding: 0; }
.research-list li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.research-list li:first-child { border-top: 1px solid var(--line); }
.research-list .tag { font-family: var(--serif-display); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ochre-text); padding-top: 4px; }
.research-list h3 { margin-bottom: 0.3rem; }
.research-list p { margin: 0; color: var(--forest-soft); }
@media (max-width: 640px) { .research-list li { grid-template-columns: 1fr; gap: 6px; } }

/* Newsletter band */
.newsletter-band {
  background-color: var(--cream-deep);
  background-image: url("images/sun-row.svg");
  background-size: 180px auto; background-repeat: repeat;
  padding: clamp(56px, 8vw, 96px) 0;
}
.newsletter-card {
  background: var(--cream); max-width: 640px; margin: 0 auto; padding: clamp(28px, 5vw, 48px);
  border-radius: 6px; text-align: center; box-shadow: 0 1px 0 var(--line);
}
.newsletter-card p { color: var(--forest-soft); margin: 0 0 1.5rem; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.signup input[type="email"] {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 18px;
  border: 1.5px solid var(--forest); border-radius: 999px; background: #fff; color: var(--forest);
}
.signup button { cursor: pointer; font: inherit; }
.small { font-size: 0.88rem; color: var(--forest-soft); }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(48px, 8vw, 100px) 0 clamp(32px, 5vw, 56px); }
.page-hero .lede { font-size: 1.35rem; max-width: 40ch; color: var(--forest-soft); margin: 0; }
.prose { max-width: 680px; padding-bottom: 80px; }
.prose h2 { margin-top: 2.2rem; font-size: 1.9rem; }
.notice {
  border-left: 3px solid var(--ochre); background: var(--cream-deep);
  padding: 18px 22px; border-radius: 0 4px 4px 0; margin: 1.5rem 0;
}
.pattern-strip {
  height: 120px; background-color: var(--cream-deep);
  background-image: url("images/sun-row.svg"); background-size: 180px auto; background-position: center bottom; background-repeat: repeat-x;
}

/* Slots for later (switched off at launch) */
.badge-featured { display: inline-block; background: var(--ochre); color: var(--forest); font-family: var(--serif-display); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.label-sponsored { display: inline-block; border: 1px solid var(--forest-soft); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--soil); color: #EDE5D6; padding: 64px 0 36px; font-size: 1rem; }
.site-footer a { color: #EDE5D6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { font-family: var(--serif-display); font-size: 1.8rem; font-style: italic; margin: 0 0 .6rem; }
.site-footer h4 { font-family: var(--serif-display); font-weight: 400; font-size: 0.8rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1rem; opacity: .75; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-note { border-top: 1px solid rgba(237,229,214,.25); margin-top: 48px; padding-top: 24px; font-size: 0.9rem; opacity: .85; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--forest); color: var(--cream); padding: 8px 14px; z-index: 20; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* ---------- Directory and Get Involved boards ---------- */
.board { padding-bottom: 80px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 2rem; }
.chip {
  font-family: var(--serif-display); font-size: 0.95rem; text-decoration: none;
  color: var(--forest); border: 1px solid var(--forest-soft); border-radius: 999px; padding: 7px 16px;
}
.chip:hover { background: var(--forest); color: var(--cream); }
.dir-cat { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.dir-cat-head { max-width: 640px; margin-bottom: 1.5rem; }
.dir-cat-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .3rem; }
.dir-cat-head p { margin: 0; color: var(--forest-soft); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.listing { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.listing h3 { font-size: 1.3rem; margin: .4rem 0 .3rem; }
.listing p { margin: 0 0 .8rem; font-size: 1.02rem; color: var(--forest-soft); }
.listing .listing-meta { font-family: var(--serif-display); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.listing-empty {
  background: var(--cream-deep); border-style: dashed; display: flex; flex-direction: column;
  justify-content: center; min-height: 140px;
}
.listing-empty p { margin-bottom: .4rem; }
.cta-band {
  margin-top: 40px; padding: clamp(28px, 5vw, 48px); border-radius: 6px; text-align: center;
  background-color: var(--cream-deep); background-image: url("images/sun-row.svg"); background-size: 180px auto;
}
.cta-card { background: var(--cream); max-width: 560px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border-radius: 6px; }
.cta-card h2 { margin-bottom: .4rem; }
.cta-card p { color: var(--forest-soft); margin: 0 0 1.4rem; }

/* Homepage header has no small logo: keep the menu on the right */
.header-inner.no-brand { justify-content: flex-end; }

/* Two-card grid (homepage doors) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 28px; } }

/* Resources page entries */
.resource h3 { margin-top: 0; }
.resource h3 a { color: var(--forest); text-decoration: none; }
.resource h3 a:hover { text-decoration: underline; }
.resource h3 a::after { content: " \2197"; font-size: .8em; color: var(--ochre-text); }
.resource .listing-meta { margin-bottom: .6rem; }
.resource p:last-child { margin-bottom: 0; }

/* Contact page */
.contact-email { font-family: var(--serif-display); font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 1.5rem; overflow-wrap: anywhere; }

/* Book entries with a cover tile */
.resource.book { display: flex; gap: 16px; align-items: flex-start; }
.book-cover {
  flex: 0 0 80px; width: 80px; height: auto;
  border-radius: 3px; box-shadow: 0 1px 3px rgba(35,56,42,.25);
}
.book-cover-blank { height: 120px;
  background-color: var(--cream-deep); background-image: url("images/sun-row.svg");
  background-size: 90px auto; background-position: center;
}
.books-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .books-grid { grid-template-columns: 1fr; } }

/* About page: photo beside the opening paragraph */
.about-intro {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: 24px;
}
.about-intro img { width: 100%; border-radius: 6px; }
.about-intro p { margin: 0; font-size: 1.25rem; max-width: 34ch; }
@media (max-width: 760px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-intro p { max-width: none; }
}

/* ---------- Farms page: farm tiles ---------- */
.farm-board { padding-bottom: 56px; }
.farm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.farm-tile {
  display: flex; flex-direction: column; background: #FBF8F1; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--forest);
  box-shadow: 0 1px 0 var(--line); transition: transform .15s, box-shadow .15s;
}
.farm-tile:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(35,56,42,.12); color: var(--forest); }
.farm-tile-map { position: relative; background: #DDE3D3; height: 200px; display: flex; align-items: center; justify-content: center; }
.farm-tile-map .map { height: 178px; width: auto; }
.farm-tile-state { position: absolute; top: 14px; left: 16px; font-family: var(--serif-display); font-size: .72rem; letter-spacing: .18em; color: var(--forest-soft); }
.farm-tile-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.farm-tile-body h2 { font-size: 1.5rem; line-height: 1.15; margin: 0 0 .35rem; }
.farm-tile-region { font-family: var(--serif-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-soft); margin: 0; }
.farm-tile-go {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--serif-display);
  font-size: .95rem; color: var(--ochre-text); display: flex; justify-content: space-between;
}
.farm-tile-body .farm-tile-region { margin-bottom: 22px; }
.farm-tile-ghost {
  border: 1.5px dashed #C9BFA9; border-radius: 6px; background: var(--cream-deep); min-height: 200px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--forest-soft);
}
.prose-lede { font-size: 1.35rem; color: var(--forest-soft); }

/* ---------- Farm profile pages ---------- */
.farm-hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 48px);
}
.farm-hero .eyebrow a { color: inherit; text-decoration: none; }
.farm-hero .eyebrow a:hover { text-decoration: underline; }
.farm-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); margin-bottom: .35em; }
.farm-hero-lede { font-size: 1.3rem; color: var(--forest-soft); max-width: 38ch; margin: 1.4rem 0 0; }
.farm-hero-map { background: #DDE3D3; border-radius: 6px; padding: 24px; display: flex; justify-content: center; }
.farm-hero-map .map { width: 100%; max-width: 260px; height: auto; }
.farm-photo { margin: 0 auto 32px; }
.farm-photo img { width: 100%; border-radius: 6px; }
.glance { margin: 0; border-top: 1px solid var(--line); }
.glance div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.glance dt { font-family: var(--serif-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-soft); padding-top: 4px; }
.glance dd { margin: 0; }
.prose h3 { font-size: 1.3rem; margin: 1.6rem 0 .4rem; }
.farm-note { font-size: .95rem; font-style: italic; color: var(--forest-soft); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }
@media (max-width: 760px) {
  .farm-hero { grid-template-columns: 1fr; }
  .farm-hero-map { max-width: 320px; }
  .glance div { grid-template-columns: 1fr; gap: 2px; }
}

/* Resource entries with a square thumbnail */
.resource.with-thumb { display: flex; gap: 16px; align-items: flex-start; }
.resource-thumb {
  flex: 0 0 80px; width: 80px; height: 80px; object-fit: cover;
  border-radius: 4px; box-shadow: 0 1px 3px rgba(35,56,42,.2); background: #fff;
}

/* Farm profile header without the map */
.farm-hero.farm-hero-solo { grid-template-columns: 1fr; }
.farm-hero-solo .farm-hero-lede { max-width: 46ch; }

/* Farm social link under the farm name */
.farm-social { margin: .6rem 0 0; font-family: var(--serif-display); font-size: 1rem; }
.farm-social a { color: var(--sage); }
.farm-social a::after { content: " \2197"; font-size: .8em; color: var(--ochre-text); }

/* Research page photo */
.research-photo { margin: 0 0 1.4rem; }
.research-photo img { width: 100%; max-width: 420px; border-radius: 6px; }
.research-photo figcaption { font-size: .9rem; font-style: italic; color: var(--forest-soft); margin-top: .5rem; }

/* Research page paper lists */
.research-papers { padding-top: 0; }
.research-papers .dir-cat:first-child { border-top: 0; padding-top: 8px; }

/* Research page: pilot study text with photo on the right */
.pilot {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 24px;
}
.pilot h2 { margin-top: 0; font-size: 1.9rem; }
.pilot-text p { max-width: 62ch; }
.pilot-photo { margin: 0; }
.pilot-photo img { width: 100%; border-radius: 6px; }
@media (max-width: 760px) {
  .pilot { grid-template-columns: 1fr; }
  .pilot-photo { max-width: 420px; }
}

/* Consulting page */
.prose.consulting { padding-bottom: clamp(48px, 7vw, 72px); }
.prose.consulting h2:first-child { margin-top: 0; }
#get-in-touch .contact-email { margin: 0; }
#get-in-touch .newsletter-card > p:first-of-type { margin-bottom: .6rem; }
#get-in-touch .contact-email { font-size: clamp(1.05rem, 4.6vw, 2rem); }

/* ---------- New branding (Nov 2026): rising sun ---------- */
/* footer logo (cream version) */
.footer-logo { width: 220px; height: auto; margin: 0 0 1rem; }
.site-footer { background: #17261B; }
/* homepage hero logo */
.hero-logo { width: min(820px, 100%); margin: 0 0 2.5rem; }
