/* ==========================================================================
   Non-profit website — shared styles
   Design tokens first, then base, layout, components, page sections.
   ========================================================================== */

/* Fonts --------------------------------------------------------------------
   Self-hosted (no third-party requests). From Fontsource:
   @fontsource/bricolage-grotesque@5.3.0 and @fontsource/source-sans-3@5.3.1,
   SIL Open Font License 1.1 (see assets/fonts/OFL-*.txt). Latin and
   latin-ext subsets so accented and extended Latin names render. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* Colour */
  --ink: #1B2420;          /* body text */
  --muted: #4A5752;        /* secondary text (passes 4.5:1 on white, mist, sand) */
  --green: #1F5C45;        /* primary accent: buttons, links, feature bands */
  --green-dark: #123B2C;   /* link hover */
  --ochre: #8A4A12;        /* eyebrows, small labels */
  --ochre-light: #F2C894;  /* eyebrows on dark green */
  --tag-ochre-bg: #F3E6D8;
  --tag-ochre-fg: #7A3F0E;
  --tag-green-bg: #E7EDE8;
  --tag-green-fg: #1F4A38;
  --sand: #F3F1EA;         /* warm section ground */
  --mist: #F3F5F1;         /* cool section ground */
  --line: #DDE3DD;         /* dividers */
  --field: #B9C4BC;        /* input borders */
  --night: #1B2420;        /* footer */
  --white: #FFFFFF;

  /* Type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  /* Shape and space */
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 20px;
  --pill: 999px;
  --container: 1280px;
  --gutter: 24px;
  --section-y: 96px;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 10;
}
.skip-link:focus { left: 8px; }

/* Layout ----------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--sand { background: var(--sand); }
.section--mist { background: var(--mist); }
.section--green { background: var(--green); color: var(--white); }
.section--flush-top { padding-top: 36px; }
.section--tight-bottom { padding-bottom: 88px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--tight { gap: 6px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 40px;
}
.section-head .stack { max-width: 680px; gap: 10px; }
.section-head--full .stack { max-width: none; flex: 1 1 100%; }

/* Typography ------------------------------------------------------------- */
.display { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.03; letter-spacing: -0.02em; }
.h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.h2 { font-size: 44px; line-height: 1.1; letter-spacing: -0.01em; }
.h3 { font-size: 28px; line-height: 1.2; }
.lead { font-size: 20px; color: var(--muted); max-width: 32em; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre);
}
.section--green .eyebrow { color: var(--ochre-light); }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }

@media (max-width: 640px) {
  :root { --section-y: 64px; }
  .h2 { font-size: 34px; }
}
.h2--sm { font-size: 40px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--pill); border: 1.5px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.btn--outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 10px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--offset { padding-top: 8px; }

/* Header ----------------------------------------------------------------- */
.site-header { background: var(--white); position: relative; z-index: 2; }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 600; font-size: 16px; }
.nav a:not(.btn) { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { min-height: 44px; padding: 10px 22px; }

/* Photo placeholders ------------------------------------------------------
   Every .photo is a stand-in for a real image. Replace the element with an
   <img src="…" alt="…"> using the same class to keep sizing and rounding. */
.photo {
  border-radius: var(--radius-lg);
  background: #6E8576;
  color: #EEF2EE;
  font-size: 15px;
  padding: 20px;
  overflow: hidden;
}
img.photo { padding: 0; object-fit: cover; width: 100%; }
img.photo--top { object-position: center top; }
.photo--sage { background: #5E7A68; }
.photo--clay { background: #8E6E52; }
.photo--slate { background: #556B7A; }
.photo--forest { background: #3E5A4B; }
.photo--olive { background: #7C8C6A; }
.photo--sand { background: #A08A68; }
.photo--pine { background: #46645A; }
.photo--earth { background: #8A7A62; color: #F3EEE4; }
.photo--light { background: #DCE4DB; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.photo--team { height: 420px; }
.photo-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.photo-figure figcaption { font-size: 15px; color: var(--muted); text-align: center; }

/* Photo hero (home, about) ----------------------------------------------- */
.hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: 680px; background: #3E5A4B; color: var(--white);
}
.hero--short { min-height: 460px; background: #46645A; }
.hero__media {
  position: absolute; inset: 0; border-radius: 0;
  display: flex; justify-content: flex-end; align-items: flex-start; padding: 24px;
  background: transparent; color: #D5E0D8;
}
img.hero__media { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: linear-gradient(to top, rgba(14, 22, 18, 0.82), rgba(14, 22, 18, 0));
  pointer-events: none;
}
.hero__content {
  position: relative; width: 100%; padding-top: 64px; padding-bottom: 64px;
  display: flex; flex-direction: column; gap: 20px;
}
.hero__content h1 { max-width: 15em; }
.hero__content p { font-size: 21px; color: #E8EFEA; max-width: 32em; }
.hero .eyebrow { color: var(--ochre-light); }
.hero--short .scrim { height: 75%; }
.hero--short .hero__content { padding-top: 56px; padding-bottom: 56px; gap: 14px; }
/* Over a real photo the text needs a darker, wider scrim to keep 4.5:1 contrast. */
.hero > .scrim {
  height: 100%;
  background: linear-gradient(to right, rgba(14, 22, 18, 0.82), rgba(14, 22, 18, 0.62) 55%, rgba(14, 22, 18, 0.15) 90%);
}
@media (max-width: 767px) {
  .hero > .scrim { background: linear-gradient(to top, rgba(14, 22, 18, 0.9), rgba(14, 22, 18, 0.65) 70%, rgba(14, 22, 18, 0.4)); }
}

/* Programme tiles (home) ------------------------------------------------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tile {
  position: relative; height: 480px; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: flex-end; text-decoration: none; color: var(--white);
}
.tile:hover { color: var(--white); }
.tile .photo { position: absolute; inset: 0; border-radius: 0; }
.tile img.photo { height: 100%; }
.tile .scrim { height: 60%; }
.tile__body { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.tile__body p { color: #E8EFEA; }

/* Story (home) ----------------------------------------------------------- */
.story__photo { height: 560px; }
.story blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.story figure { display: flex; flex-direction: column; gap: 24px; }
.story figcaption { color: var(--muted); }

/* Contact snippet (home) ------------------------------------------------- */
.contact-mini { gap: 6px; padding-top: 8px; }

/* Gallery mosaic (home) -------------------------------------------------- */
.mosaic {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 240px; grid-auto-flow: dense; gap: 14px;
}
.mosaic .photo { border-radius: var(--radius); padding: 14px; font-size: 14px; }
.mosaic img.photo { padding: 0; height: 100%; }
.mosaic .wide { grid-column: span 2; }
.mosaic .tall { grid-row: span 2; }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 600px) {
  .mosaic .wide, .mosaic .big { grid-column: span 1; }
}


/* Library (reports & media) ---------------------------------------------- */
.page-head { background: var(--mist); padding: 64px 0 48px; }
.page-head .stack { gap: 14px; }
.page-head p { color: var(--muted); max-width: 38em; }

.library-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--grow { flex: 1 1 280px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; }
.library-controls .field label { font-size: 14px; color: var(--muted); }
.input, .select {
  font: inherit; font-size: 16px; padding: 12px 16px;
  border: 1.5px solid var(--field); border-radius: 10px; min-height: 48px;
  background: var(--white); color: var(--ink); width: 100%;
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filter {
  font: inherit; font-size: 16px; font-weight: 600; min-height: 44px; padding: 10px 18px;
  border-radius: var(--pill); cursor: pointer;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--field);
}
.filter[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.filter .count { opacity: 0.75; }
.result-count { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

.media-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px;
}
.media-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.media-card[hidden] { display: none; }
.thumb {
  aspect-ratio: 4 / 3; border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #EEF2EE; font-size: 14px;
}
.thumb--report { background: #5E7A68; }
.thumb--brief { background: #556B7A; }
.thumb--video { background: #3E5A4B; }
.thumb--photo { background: #8E6E52; }
.thumb--audio { background: #7C8C6A; }
.thumb__icon {
  width: 40px; height: 40px; border-radius: var(--pill); background: var(--white); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.thumb__icon svg { width: 24px; height: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: var(--pill); }
.tag--type { background: var(--tag-ochre-bg); color: var(--tag-ochre-fg); }
.tag--year { background: var(--tag-green-bg); color: var(--tag-green-fg); }
.media-card__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.media-card__meta { font-size: 15px; color: var(--muted); }
.media-card .btn-row { margin-top: auto; gap: 10px; }
.empty-state { padding: 40px; background: var(--mist); border-radius: var(--radius); text-align: center; }

.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--mist); border-radius: 16px; padding: 24px 28px; margin-top: 40px;
}

/* About ------------------------------------------------------------------ */
.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.vm-card { border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 16px; background: var(--sand); }
.vm-card--green { background: var(--green); color: var(--white); }
/* Three cards: when the grid has two columns, let the third span the row instead of sitting alone. */
@media (min-width: 712px) and (max-width: 1055px) {
  .vm-grid > .vm-card:nth-child(3) { grid-column: 1 / -1; }
}
.vm-card__icon {
  width: 52px; height: 52px; border-radius: var(--pill); background: var(--white); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.vm-card__icon svg { width: 26px; height: 26px; }
.vm-card h2 { font-size: 36px; }
.vm-card p { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.3; }
.vm-card p.vm-card__more { font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: 1.55; }
.vm-card--green p.vm-card__more { color: #E3ECE6; }

.toc-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.toc-step { background: var(--white); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.toc-step__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toc-step__num {
  width: 36px; height: 36px; border-radius: var(--pill); background: var(--green); color: var(--white);
  font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.toc-step:first-child .toc-step__num { background: var(--ochre); }
.toc-step:last-child .toc-step__num { background: var(--green-dark); }
.toc-step:last-child .toc-step__arrow { display: none; }
.toc-steps--pathways { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.toc-steps--pathways .toc-step .toc-step__num { background: var(--green); }
@media (min-width: 624px) and (max-width: 919px) {
  .toc-steps--pathways > .toc-step:nth-child(3) { grid-column: 1 / -1; }
}
.toc-step__arrow { width: 22px; height: 22px; color: var(--ochre); }
.toc-step .eyebrow { font-size: 13px; letter-spacing: 0.06em; }
.toc-step h3 { font-size: 22px; line-height: 1.2; }
.toc-step p { font-size: 16px; color: var(--muted); }

/* Contact ---------------------------------------------------------------- */
.page-intro { padding: 64px 0; }
.page-intro .split { gap: 48px; }
.photo--intro { height: 320px; }
.section--contact { padding-top: 72px; padding-bottom: 88px; }
.contact-layout { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-layout__main { flex: 999 1 520px; min-width: 0; }
.details { background: var(--mist); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 18px 32px; }
@media (min-width: 640px) { .details { grid-template-columns: 1fr 1fr; } }
.details h2 { grid-column: 1 / -1; font-size: 24px; }
.detail { display: flex; flex-direction: column; gap: 2px; }
.detail__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.detail a { min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }

/* Prose (privacy) ------------------------------------------------------- */
.prose { max-width: 44em; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 26px; line-height: 1.2; margin-top: 18px; }
.prose h2:first-child { margin-top: 0; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--night); color: #D5DDD7; font-size: 15px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a { color: #D5DDD7; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--white); }
