/*
Theme Name: Under The Tree
Theme URI: https://underthetreefoundation.in
Author: Under The Tree
Description: Custom theme for underthetreefoundation.in. Plain HTML, CSS and JavaScript; no page builder.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: utt-theme
*/

/* ==================================================================
   Tokens
   Under The Tree's own look: the leaf canopy of the logo, the yellow
   tarpaulin the children sit on, diya orange, and the dark green of a
   classroom slate. Contrast checked: white on --c-leaf 5.1:1,
   --c-orange-ink on cream 5.0:1, cream on --c-slate 12:1.
   ================================================================== */
:root {
	--c-cream: #fffaf0;
	--c-cream-2: #f7efdc;
	--c-white: #ffffff;
	--c-ink: #1f2414;
	--c-ink-soft: #4d5140;
	--c-line: #e8dcc0;

	--c-leaf: #4f7a12;
	--c-leaf-deep: #3d6410;
	--c-leaf-soft: #e6f0cf;
	--c-slate: #22311a;
	--c-chalk: #f5f1e3;
	--c-tarp: #f6c33f;
	--c-tarp-soft: #fde9b8;
	--c-orange: #f59a1b;
	--c-orange-ink: #b34f08;
	--c-orange-soft: #fde3c2;

	--c-sky: #1f6fa8;
	--c-magenta: #b80f64;
	--c-purple: #6d3592;

	--f-display: "Fraunces", Georgia, "Noto Serif Devanagari", serif;
	--f-sans: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-xs: 0.875rem;
	--fs-sm: 1rem;
	--fs-base: 1.125rem;
	--fs-lg: 1.25rem;
	--fs-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
	--fs-2xl: clamp(2rem, 1.4rem + 2.2vw, 3rem);
	--fs-3xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
	--lh: 1.6;

	--s-1: 0.25rem;
	--s-2: 0.5rem;
	--s-3: 0.75rem;
	--s-4: 1rem;
	--s-5: 1.5rem;
	--s-6: 2rem;
	--s-7: 3rem;
	--s-8: 4.5rem;
	--s-9: 6.5rem;

	--gutter: 1rem;
	--wrap: 74rem;
	--wrap-text: 44rem;
	--radius: 14px;
	--leaf: 28px 28px 28px 6px;          /* card corners: one corner pinched, like a leaf */
	--leaf-lg: 48px 48px 48px 8px;
	--shadow: 0 1px 2px rgba(31, 36, 20, .05), 0 10px 28px rgba(31, 36, 20, .08);
	--focus: 3px solid var(--c-sky);

	/* Hand-drawn underline for accent words */
	--scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none'%3E%3Cpath d='M3 12c40-7 80-9 120-7s86 6 128 2c18-2 31-4 46-6M18 15c50-4 120-5 190-3' fill='none' stroke='%23f59a1b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");

	/* Dappled shade: soft patches, like sunlight through leaves */
	--shade: radial-gradient(ellipse 120px 80px at 12% 18%, rgba(79, 122, 18, .07), transparent 70%),
		radial-gradient(ellipse 200px 120px at 78% 8%, rgba(79, 122, 18, .06), transparent 70%),
		radial-gradient(ellipse 160px 110px at 88% 62%, rgba(246, 195, 63, .12), transparent 70%),
		radial-gradient(ellipse 140px 90px at 30% 78%, rgba(79, 122, 18, .05), transparent 70%),
		radial-gradient(ellipse 90px 60px at 55% 40%, rgba(246, 195, 63, .1), transparent 70%);
}

@media (min-width: 48em) {
	:root { --gutter: 2rem; }
}

/* ==================================================================
   Base
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
	margin: 0;
	background: var(--c-cream);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	line-height: var(--lh);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 600;
	font-variation-settings: "SOFT" 100, "WONK" 0;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 var(--s-4);
	text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

/* Accent words: write *words* in a heading setting to underline them by hand. */
h1 em, h2 em, h3 em, .accent {
	font-style: normal;
	background: var(--scribble) left 100% / 100% .32em no-repeat;
	padding-bottom: .12em;
}
.on-dark em { background-image: var(--scribble); }

p { margin: 0 0 var(--s-4); }

a { color: var(--c-leaf); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-leaf-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text, .visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: var(--s-3); left: var(--s-3); z-index: 100;
	background: var(--c-white); padding: var(--s-3) var(--s-4);
	border-radius: var(--radius); box-shadow: var(--shadow);
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--text { width: min(100% - 2 * var(--gutter), var(--wrap-text)); margin-inline: auto; }

.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.section--white { background: var(--c-white); }
.section--cream2 { background: var(--c-cream-2); }
.section--slate { background: var(--c-slate); color: var(--c-chalk); }
.section--paper2 { background: var(--c-cream-2); } /* old name, kept for templates */

/* Small label above headings: a leaf mark and a word, no box */
.pill, .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	color: var(--c-leaf);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: var(--s-3);
}
.pill::before, .eyebrow::before {
	content: "";
	width: 14px; height: 14px;
	background: currentColor;
	border-radius: 0 70% 0 70%;
	transform: rotate(-12deg);
}
.pill--green { color: var(--c-leaf); }
.pill--ink { color: var(--c-chalk); }

.lead { font-size: var(--fs-lg); color: var(--c-ink-soft); }
.hindi { font-family: var(--f-sans); font-weight: 500; letter-spacing: 0; }

.section-head { max-width: 46rem; margin: 0 0 var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--c-ink-soft); }
.hl { color: var(--c-leaf); }
.shade { background-color: var(--c-cream); background-image: var(--shade); }

/* ==================================================================
   Buttons
   ================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	min-height: 48px;
	padding: .55rem 1.35rem .45rem;
	border-radius: 14px 14px 14px 3px;
	border: 2px solid transparent;
	font-family: var(--f-sans);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .arrow { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.btn .arrow svg { width: 18px; height: 18px; stroke: currentColor; }
.btn--primary { --btn-bg: var(--c-leaf); background: var(--c-leaf); color: var(--c-white); }
.btn--primary:hover { background: var(--c-leaf-deep); color: var(--c-white); }
.btn--orange, .btn--tarp { --btn-bg: var(--c-orange); background: var(--c-orange); color: var(--c-ink); }
.btn--orange:hover, .btn--tarp:hover { background: #e48a0c; color: var(--c-ink); }
.btn--ghost { --btn-bg: var(--c-cream); background: transparent; color: var(--c-leaf); border-color: var(--c-leaf); }
.btn--ghost:hover { background: var(--c-leaf); color: var(--c-white); }
.btn--light { --btn-bg: var(--c-white); background: var(--c-white); color: var(--c-ink); }
.btn--light:hover { background: var(--c-cream-2); color: var(--c-ink); }
.btn--outline-light { background: transparent; color: var(--c-chalk); border-color: rgba(245, 241, 227, .7); }
.btn--outline-light:hover { background: var(--c-white); color: var(--c-ink); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ==================================================================
   Header
   ================================================================== */
.topbar { display: none; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 250, 240, .95);
	backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--c-line);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	min-height: 4.25rem;
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--c-ink); flex-shrink: 0; }
.brand img { width: 44px; height: auto; }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1; color: var(--c-leaf-deep); }
.brand__sub { display: block; font-size: .6875rem; font-weight: 500; color: var(--c-ink-soft); letter-spacing: .03em; margin-top: 4px; }

.nav-toggle {
	display: inline-flex; align-items: center; gap: var(--s-2);
	min-height: 44px; padding: 0 var(--s-4);
	border: 1px solid var(--c-line); border-radius: 999px;
	background: var(--c-white); color: var(--c-ink);
	font: 600 var(--fs-sm) var(--f-sans); cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
	content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { bottom: 0; }

/* Without JavaScript the menu is a plain list; with it, a toggle. */
.no-js .nav-toggle { display: none; }
.js .primary-nav { display: none; }
@media (max-width: 67.99em) {
	.no-js .site-header .wrap { flex-wrap: wrap; }
	.no-js .primary-nav { display: block; width: 100%; }
	.no-js .primary-nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); padding: 0 0 var(--s-3); }
	.no-js .primary-nav li a { border: 0; padding: var(--s-1) 0; font-size: 1rem; }
	.no-js .primary-nav__ctas { display: none; }
}

.js .primary-nav.is-open {
	display: block;
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--c-white);
	border-bottom: 1px solid var(--c-line);
	box-shadow: var(--shadow);
	max-height: calc(100vh - 4.25rem);
	overflow-y: auto;
}
.primary-nav ul { list-style: none; margin: 0; padding: var(--s-3) var(--gutter) var(--s-5); }
.primary-nav li a {
	display: block;
	padding: var(--s-3) 0;
	border-bottom: 1px solid var(--c-line);
	font-weight: 500;
	font-size: 1.0625rem;
	color: var(--c-ink);
	text-decoration: none;
}
.primary-nav li a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--c-leaf); }
.primary-nav .menu-external > a::after { content: " ↗"; font-size: .8em; color: var(--c-ink-soft); }
.primary-nav__ctas { display: flex; gap: var(--s-3); padding: 0 var(--gutter) var(--s-5); }
.primary-nav__ctas .btn { flex: 1; }
.header-ctas { display: none; }

@media (min-width: 68em) {
	.nav-toggle { display: none; }
	.primary-nav, .js .primary-nav, .js .primary-nav.is-open {
		display: block; position: static; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
	}
	.primary-nav ul { display: flex; gap: 2px; padding: 0; }
	.primary-nav li a { border: 0; padding: var(--s-2) var(--s-3); font-size: .9375rem; border-radius: 999px; }
	.primary-nav li a:hover { background: var(--c-cream-2); }
	.primary-nav__ctas { display: none; }
	.header-ctas { display: flex; gap: var(--s-2); }
	.header-ctas .btn { min-height: 40px; padding: .45rem 1.1rem; font-size: .9rem; }

}

/* ==================================================================
   Home: hero (split, leaf-framed photo)
   ================================================================== */
.hero { position: relative; overflow: hidden; padding-block: var(--s-7) var(--s-8); }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
.hero__hindi { font-family: var(--f-sans); font-weight: 600; font-size: 1.05rem; color: var(--c-orange-ink); margin-bottom: var(--s-3); }
.hero__hindi span { color: var(--c-ink-soft); font-weight: 500; }
.hero h1 { max-width: 13ch; margin-bottom: var(--s-5); }
.hero__text { max-width: 33rem; font-size: var(--fs-lg); color: var(--c-ink-soft); margin-bottom: var(--s-6); }
.hero__photo { position: relative; justify-self: center; width: min(100%, 34rem); }
.hero__photo .frame {
	aspect-ratio: 1 / 1.05;
	border-radius: 10px 62% 10px 62% / 10px 62% 10px 62%;
	overflow: hidden;
	background: var(--c-leaf-soft);
	box-shadow: 18px 18px 0 var(--c-tarp);
}
.hero__photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo .frame--empty { display: grid; place-items: center; }
.hero__photo .frame--empty img { width: 55%; height: auto; object-fit: contain; }
.hero__tag {
	position: absolute;
	left: -6px; bottom: 9%;
	background: var(--c-white);
	border-radius: 12px 12px 12px 3px;
	padding: var(--s-2) var(--s-4);
	box-shadow: var(--shadow);
	font-size: var(--fs-xs);
	max-width: 15rem;
	line-height: 1.35;
	transform: rotate(-3deg);
}
.hero__tag strong { display: block; font-family: var(--f-display); font-size: 1rem; }
.hero__since {
	position: absolute; right: 2%; top: 2%;
	width: 96px; height: 96px; border-radius: 50%;
	background: var(--c-leaf); color: var(--c-white);
	display: grid; place-items: center; text-align: center;
	font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1;
	transform: rotate(8deg);
}
.hero__since b { display: block; font-family: var(--f-display); font-size: 1.6rem; letter-spacing: 0; }
@media (min-width: 56em) {
	.hero { padding-block: var(--s-8) var(--s-9); }
	.hero__grid { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); }
}

/* ==================================================================
   Home: the slate (numbers written on a classroom board)
   ================================================================== */
.slate {
	position: relative;
	background: var(--c-slate);
	color: var(--c-chalk);
	border-radius: var(--leaf-lg);
	padding: var(--s-7) var(--s-5);
	border: 10px solid #7a5a32;               /* wooden frame */
	box-shadow: inset 0 0 60px rgba(0, 0, 0, .35);
}
.slate .pill { color: var(--c-tarp); }
.slate h2 { color: var(--c-chalk); font-weight: 500; max-width: 24ch; }
.slate__list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slate__list li { border-left: 2px dashed rgba(245, 241, 227, .35); padding-left: var(--s-4); }
.slate__num { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); line-height: 1; color: var(--c-white); }
.slate__label { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); color: rgba(245, 241, 227, .82); max-width: 15rem; }
@media (min-width: 56em) {
	.slate { padding: var(--s-8) var(--s-7); }
	.slate__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==================================================================
   Home: a day under the tree (timeline)
   ================================================================== */
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); position: relative; }
.day::before {
	content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px;
	border-left: 3px dotted var(--c-leaf);
}
.day li { position: relative; padding-left: 68px; }
.day__dot {
	position: absolute; left: 0; top: 0;
	width: 48px; height: 48px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--c-white); color: var(--c-leaf);
	border: 3px solid var(--c-leaf);
}
.day__dot svg { width: 24px; height: 24px; }
.day li:nth-child(2) .day__dot { color: var(--c-sky); border-color: var(--c-sky); }
.day li:nth-child(3) .day__dot { color: var(--c-orange-ink); border-color: var(--c-orange); }
.day li:nth-child(4) .day__dot { color: var(--c-purple); border-color: var(--c-purple); }
.day li:nth-child(5) .day__dot { color: var(--c-magenta); border-color: var(--c-magenta); }
.day__when { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-soft); padding-top: 2px; }
.day h3 { font-size: 1.4rem; margin: 0 0 var(--s-1); }
.day p { margin: 0; color: var(--c-ink-soft); max-width: 30rem; }
@media (min-width: 60em) {
	.day { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
	.day::before { left: 24px; right: 24px; top: 23px; bottom: auto; border-left: 0; border-top: 3px dotted var(--c-leaf); }
	.day li { padding-left: 0; padding-top: 68px; }
}
.day-photo { margin-top: var(--s-7); border-radius: var(--leaf-lg); overflow: hidden; aspect-ratio: 21 / 8; background: var(--c-leaf-soft); }
.day-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==================================================================
   Home: from seed to shoot (levels)
   ================================================================== */
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.level { text-align: center; }
.level__plant { display: grid; place-items: end center; height: 120px; margin-bottom: 0; }
.level__plant svg { height: 100%; width: auto; color: var(--c-leaf); }
@media (min-width: 48em) { .level__plant { height: 160px; } }
.level__ground { height: 14px; border-radius: 0 0 14px 14px; background: #a77b45; margin-bottom: var(--s-4); }
.level h3 { font-size: 1.5rem; margin: 0 0 var(--s-1); }
.level p { margin: 0 auto; color: var(--c-ink-soft); font-size: var(--fs-sm); max-width: 14rem; }
@media (min-width: 48em) { .levels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }

/* ==================================================================
   Home: quote (a note pinned on the tarp)
   ================================================================== */
.note {
	position: relative;
	max-width: 46rem;
	margin: 0 auto;
	background: var(--c-tarp-soft);
	border-radius: 6px;
	padding: var(--s-7) var(--s-6) var(--s-6);
	box-shadow: 0 14px 30px rgba(31, 36, 20, .1);
	transform: rotate(-1.2deg);
}
.note::before, .note::after {
	content: ""; position: absolute; top: -12px; width: 90px; height: 26px;
	background: rgba(255, 255, 255, .7);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.note::before { left: 12%; transform: rotate(-6deg); }
.note::after { right: 12%; transform: rotate(5deg); }
.note blockquote { margin: 0; font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.3; }
.note blockquote p { margin: 0; }
.note blockquote em { font-style: italic; background: var(--scribble) left 100% / 100% .32em no-repeat; padding-bottom: .1em; }
.note figcaption { margin-top: var(--s-4); font-weight: 600; color: var(--c-ink-soft); }

/* ==================================================================
   Home: articles as a list
   ================================================================== */
.article-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.article-list li { border-bottom: 1px solid var(--c-line); }
.article-list a { display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-5) 0; text-decoration: none; color: var(--c-ink); }
.article-list .n { font-family: var(--f-display); font-size: 1.1rem; color: var(--c-orange-ink); }
.article-list .t { font-family: var(--f-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 600; line-height: 1.2; }
.article-list .m { font-size: var(--fs-xs); color: var(--c-ink-soft); }
.article-list a:hover .t { color: var(--c-leaf); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
@media (min-width: 48em) {
	.article-list a { grid-template-columns: 3rem 1fr auto; align-items: baseline; }
}

/* ==================================================================
   Home: give shade (ways to help) and the wider family
   ================================================================== */
.ways { display: grid; gap: var(--s-4); }
@media (min-width: 48em) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.way {
	border-radius: var(--leaf);
	padding: var(--s-6) var(--s-5) var(--s-5);
	display: flex; flex-direction: column; gap: var(--s-2);
	min-height: 15rem;
	text-decoration: none;
	color: var(--c-ink);
	transition: transform .2s ease;
}
.way:hover { transform: translateY(-3px); color: var(--c-ink); }
.way h3 { font-size: 1.75rem; margin: 0; }
.way p { margin: 0; }
.way .go { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: var(--s-2); }
.way--donate { background: var(--c-orange); }
.way--volunteer { background: var(--c-tarp-soft); }
.way--partner { background: var(--c-leaf); color: var(--c-white); }
.way--partner:hover { color: var(--c-white); }
.kin { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 48em) { .kin { grid-template-columns: 1fr 1fr; } }
.kin a {
	display: flex; align-items: center; gap: var(--s-4);
	padding: var(--s-4) var(--s-5);
	border: 1.5px solid var(--c-line); border-radius: var(--leaf);
	background: var(--c-white); text-decoration: none; color: var(--c-ink);
}
.kin a:hover { border-color: var(--c-leaf); color: var(--c-ink); }
.kin strong { font-family: var(--f-display); font-size: 1.3rem; display: block; }
.kin span { color: var(--c-ink-soft); font-size: var(--fs-sm); }
.kin .arr { margin-left: auto; font-size: 1.4rem; color: var(--c-leaf); }

/* ==================================================================
   Inner page heading
   ================================================================== */
.page-hero {
	padding-block: var(--s-8) var(--s-7);
	background-color: var(--c-cream);
	background-image: var(--shade);
	border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { margin-bottom: var(--s-3); max-width: 20ch; }
.page-hero .lead { max-width: 42rem; margin: 0; }
.breadcrumb { font-size: var(--fs-xs); color: var(--c-ink-soft); margin-bottom: var(--s-3); }
.breadcrumb a { color: inherit; }

/* ==================================================================
   Impact strip (inner pages): numbers on the slate
   ================================================================== */
.impact { padding-block: var(--s-7); }
.impact .wrap { background: var(--c-slate); color: var(--c-chalk); border-radius: var(--leaf-lg); border: 8px solid #7a5a32; padding: var(--s-6) var(--s-5); }
.impact__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.impact__list li { border-left: 2px dashed rgba(245, 241, 227, .35); padding-left: var(--s-4); }
.impact__num { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1; color: var(--c-white); }
.impact__label { display: block; font-size: var(--fs-xs); color: rgba(245, 241, 227, .82); margin-top: var(--s-2); }
@media (min-width: 48em) { .impact__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==================================================================
   Cards and grids
   ================================================================== */
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 48em) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 40em) and (max-width: 47.99em) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
	position: relative;
	background: var(--c-white);
	border-radius: var(--leaf);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform .2s ease;
}
.card:hover { transform: translateY(-3px); }
.card__media { aspect-ratio: 16 / 11; background: var(--c-cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--empty { display: grid; place-items: center; background: var(--accent-bg); }
.card__media--empty img { width: 30%; height: auto; opacity: .6; }
.card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__tag {
	align-self: flex-start;
	font-size: .75rem; font-weight: 600; letter-spacing: .04em;
	color: var(--accent); background: var(--accent-bg);
	padding: 2px 10px; border-radius: 999px;
}
.card h3 { font-size: 1.4rem; margin: 0; }
.card h3 a { color: var(--c-ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--c-ink-soft); margin: 0; font-size: var(--fs-sm); }
.card__meta { font-size: var(--fs-xs); color: var(--c-ink-soft); margin-top: auto; padding-top: var(--s-2); }
.card a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: var(--focus); outline-offset: 3px; }

/* Colour-block cards for lists of options (Get Involved, Home pillars fallback) */
.pillar {
	background: var(--accent-bg);
	border-radius: var(--leaf);
	padding: var(--s-6) var(--s-5) var(--s-5);
	display: flex;
	flex-direction: column;
}
.pillar__icon {
	width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--c-white); color: var(--accent);
	margin-bottom: var(--s-4);
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.6rem; }
.pillar p { color: var(--c-ink-soft); }
.pillar .more { margin-top: auto; font-weight: 600; color: var(--accent); }

.card, .pillar { --accent: var(--c-leaf); --accent-bg: var(--c-leaf-soft); }
.accent-sky { --accent: var(--c-sky); --accent-bg: #dcebf6; }
.accent-orange { --accent: var(--c-orange-ink); --accent-bg: var(--c-orange-soft); }
.accent-magenta { --accent: var(--c-magenta); --accent-bg: #f8dceb; }
.accent-purple { --accent: var(--c-purple); --accent-bg: #ebdff3; }
.accent-leaf { --accent: var(--c-leaf); --accent-bg: var(--c-leaf-soft); }


/* ==================================================================
   Donate band (inner pages)
   ================================================================== */
.donate-band {
	background: var(--c-orange);
	color: var(--c-ink);
	border-radius: var(--leaf-lg);
	padding: var(--s-7) var(--s-5);
	display: grid; gap: var(--s-5); align-items: center;
}
.donate-band h2 { margin-bottom: var(--s-3); }
.donate-band h2 em { background-image: none; text-decoration: underline wavy var(--c-white) 3px; text-underline-offset: .2em; }
.donate-band p { margin: 0; max-width: 36rem; }
@media (min-width: 56em) { .donate-band { grid-template-columns: 1fr auto; padding: var(--s-7); } }

/* ==================================================================
   Prose (editor content)
   ================================================================== */
.prose { font-size: var(--fs-base); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: var(--fs-xl); }
.prose h3 { margin-top: var(--s-6); font-size: var(--fs-lg); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s-2); }
.prose blockquote {
	margin: var(--s-6) 0; padding: var(--s-5);
	background: var(--c-tarp-soft); border-radius: 6px;
	font-family: var(--f-display); font-style: italic; font-size: 1.5rem; line-height: 1.3;
}
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: var(--s-6) 0; }
.prose figcaption { font-size: var(--fs-xs); color: var(--c-ink-soft); margin-top: var(--s-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--c-line); padding: var(--s-2) var(--s-3); text-align: left; }
.prose strong { font-weight: 600; }
.prose .wp-block-gallery { gap: var(--s-3); }
.alignwide { width: min(100vw - 2 * var(--gutter), var(--wrap)); margin-left: 50%; transform: translateX(-50%); }

/* ==================================================================
   Layout with aside
   ================================================================== */
.with-aside { display: grid; gap: var(--s-7); }
@media (min-width: 60em) { .with-aside { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; } }
.aside-box { background: var(--c-white); border-radius: var(--leaf); padding: var(--s-5); box-shadow: var(--shadow); }
.aside-box + .aside-box { margin-top: var(--s-5); }
.aside-box h2, .aside-box h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.aside-box address { font-style: normal; }
.aside-sticky { position: sticky; top: 6rem; }

/* ==================================================================
   Donate page
   ================================================================== */
.give {
	background: var(--c-white);
	border-radius: var(--leaf);
	padding: var(--s-5);
	box-shadow: var(--shadow);
	border-top: 6px solid var(--c-orange);
}
.give h2 { font-size: var(--fs-xl); }
.give__freq { display: flex; gap: var(--s-2); margin: 0 0 var(--s-4); border: 0; padding: 0; }
.give__freq .chip { flex: 1; }
.give__freq .chip span { min-height: 44px; font-size: 1rem; text-align: center; }
.give__amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); border: 0; padding: 0; }
.give__amounts legend, .give__freq legend { font-weight: 600; margin-bottom: var(--s-2); }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
	display: flex; flex-direction: column; justify-content: center;
	min-height: 56px; padding: var(--s-2) var(--s-3);
	border: 2px solid var(--c-line); border-radius: 12px; background: var(--c-cream);
	font-weight: 600; font-size: 1.15rem; line-height: 1.2;
}
.chip small { font-weight: 400; font-size: var(--fs-xs); color: var(--c-ink-soft); }
.chip input:checked + span { border-color: var(--c-leaf); background: var(--c-leaf-soft); }
.chip input:focus-visible + span { outline: var(--focus); outline-offset: 2px; }
.give__note { font-size: var(--fs-xs); color: var(--c-ink-soft); margin-top: var(--s-3); }
@media (max-width: 59.99em) {
	.donate-layout aside { order: -1; }
	.aside-sticky { position: static; }
}
.pay-list { display: grid; gap: var(--s-4); }
.pay-list dt { font-weight: 600; }
.pay-list dd { margin: 0; color: var(--c-ink-soft); white-space: pre-line; }
.copy-btn { margin-left: var(--s-2); font-size: var(--fs-xs); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-cream); cursor: pointer; }

.notice { padding: var(--s-4); border-radius: var(--radius); background: var(--c-tarp-soft); border: 1px dashed #d6a42a; font-size: var(--fs-sm); }

.faq details { background: var(--c-white); border-radius: var(--radius); padding: var(--s-4) var(--s-5); box-shadow: var(--shadow); }
.faq details + details { margin-top: var(--s-3); }
.faq summary { font-weight: 600; font-size: 1.1rem; cursor: pointer; }
.faq details p { margin: var(--s-3) 0 0; color: var(--c-ink-soft); }

/* ==================================================================
   Forms
   ================================================================== */
.form { display: grid; gap: var(--s-4); }
.field label { display: block; font-weight: 600; margin-bottom: var(--s-1); font-size: var(--fs-sm); }
.field .hint { font-weight: 400; color: var(--c-ink-soft); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: .65rem .85rem;
	border: 1.5px solid var(--c-line); border-radius: 12px;
	background: var(--c-white); font: inherit; color: var(--c-ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-sky); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 168, .2); }
.field--check { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex-shrink: 0; }
.field--check label { font-weight: 400; margin: 0; }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 40em) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp-field { position: absolute; left: -9999px; }
.form-msg { padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-weight: 600; }
.form-msg--ok { background: var(--c-leaf-soft); color: var(--c-leaf-deep); }
.form-msg--err { background: #fbe3ee; color: #8a0b4b; }

/* ==================================================================
   Filters, pagination, articles
   ================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filters a {
	padding: var(--s-1) var(--s-4); border-radius: 999px; border: 1.5px solid var(--c-line);
	background: var(--c-white); color: var(--c-ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm);
	min-height: 40px; display: inline-flex; align-items: center;
}
.filters a[aria-current="page"] { background: var(--c-leaf); border-color: var(--c-leaf); color: var(--c-white); }
.pagination { margin-top: var(--s-7); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
.pagination .page-numbers {
	min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 var(--s-3);
	border-radius: 999px; background: var(--c-white); border: 1.5px solid var(--c-line); color: var(--c-ink); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--c-leaf); border-color: var(--c-leaf); color: var(--c-white); }
.article-meta { color: var(--c-ink-soft); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.article-hero-img { margin-top: var(--s-6); }
.article-hero-img img { width: 100%; border-radius: var(--radius-lg); }
.post-nav { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 40em) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: var(--s-4); background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.post-nav small { display: block; color: var(--c-ink-soft); }

/* ==================================================================
   Footer: the canopy (dark green)
   ================================================================== */
.site-footer {
	position: relative;
	background: var(--c-slate);
	color: var(--c-chalk);
	padding-block: var(--s-9) var(--s-5);
	margin-top: var(--s-8);
	font-size: var(--fs-sm);
}
.site-footer::before {
	/* a row of leaves along the top edge */
	content: "";
	position: absolute; left: 0; right: 0; top: -22px; height: 44px;
	background: radial-gradient(circle at 22px 22px, var(--c-slate) 21px, transparent 22px) 0 0 / 44px 44px repeat-x;
}
.site-footer a { color: var(--c-chalk); text-decoration: none; }
.site-footer a:hover { color: var(--c-tarp); text-decoration: underline; }
.site-footer h2 { font-family: var(--f-sans); font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-tarp); margin-bottom: var(--s-3); }
.footer-top { display: grid; gap: var(--s-5); padding-bottom: var(--s-6); margin-bottom: var(--s-6); border-bottom: 1px solid rgba(245, 241, 227, .15); align-items: end; }
@media (min-width: 48em) { .footer-top { grid-template-columns: 1fr auto; } }
.footer-top h2 { font-family: var(--f-display); text-transform: none; letter-spacing: 0; font-size: 1.75rem; color: var(--c-chalk); }
.footer-top p { margin: 0; color: rgba(245, 241, 227, .8); max-width: 26rem; }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 48em) { .footer-brand { grid-column: auto; } }
.footer-brand img { width: 64px; margin-bottom: var(--s-3); background: var(--c-cream); border-radius: 50%; padding: 6px; }
.footer-brand p { color: rgba(245, 241, 227, .8); max-width: 22rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-list address { font-style: normal; color: rgba(245, 241, 227, .75); }
.social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(245, 241, 227, .1); color: var(--c-chalk); }
.social a:hover { background: var(--c-tarp); color: var(--c-ink); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom {
	margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid rgba(245, 241, 227, .15);
	display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
	color: rgba(245, 241, 227, .65); font-size: var(--fs-xs);
}
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer-reg { color: rgba(245, 241, 227, .65); font-size: var(--fs-xs); margin-top: var(--s-3); white-space: pre-line; }

.wa-float {
	position: fixed; right: 16px; bottom: 16px; z-index: 40;
	width: 52px; height: 52px; border-radius: 50%;
	background: #1f8f4e; color: #fff; display: grid; place-items: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { background: #18773f; color: #fff; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(20, 22, 14, .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 1rem; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 8px; }
.lightbox figcaption { color: #f4f1e4; margin-top: var(--s-3); font-size: var(--fs-sm); text-align: center; }
.lightbox button { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Utilities */
.more-row { margin: var(--s-6) 0 0; text-align: center; }
.contact-intro { margin-bottom: var(--s-6); }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-4); }

/* WordPress core classes */
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 var(--s-4) var(--s-4) 0; }
.alignright { float: right; margin: 0 0 var(--s-4) var(--s-4); }
.wp-caption-text { font-size: var(--fs-xs); color: var(--c-ink-soft); }

@media print {
	.site-header, .site-footer, .wa-float, .donate-band { display: none; }
	body { background: #fff; }
}
