@layer theme.base {
/* The starter sites' theme: the page at a reading width, the logo and the menu on one line,
   a quiet footer, and room between the parts of a page. Colours and fonts are tokens. */

/* the logo on the left, the menu and the languages on the right */
.fragment-header {
  border-bottom: 1px solid var(--color-line);
  border-top: 4px solid var(--color-primary);
}
.fragment-header > .row {
  align-items: center;
  gap: 0.5rem var(--space-lg);
  padding-block: var(--space);
  /* its own width, centred when the header is a band */
  margin-inline: auto;
}
.fragment-header > .row > * { width: auto; flex: 0 1 auto; padding-inline: 0; }
.fragment-header > .row > :first-child { margin-inline-end: auto; }
.fragment-header .site-logo { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--color-fg); text-decoration: none; }
.fragment-header .nav__list { gap: 0.25rem 1.25rem; }
.fragment-header .nav__link { text-decoration: none; color: var(--color-fg); }
.fragment-header .nav__link[aria-current="page"] { color: var(--color-primary); font-weight: 600; }

.fragment-footer {
  margin-top: var(--space-lg);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.95rem;
}
.fragment-footer p { margin: 0; }

/* a heading sits close to what it introduces */
main h2 { margin-top: var(--space-lg); }
main .row > :has(> h2) + * > :first-child { margin-top: 0; }

/* a plain teaser: its picture beside its text on wide screens */
@media (min-width: 48rem) {
  .teaser:not(.teaser--hero):not(.teaser--featured):has(.teaser__media) {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-lg);
    align-items: center;
  }
  .teaser.teaser--image-right:not(.teaser--hero):not(.teaser--featured):has(.teaser__media) { grid-template-columns: 3fr 2fr; }
}
.teaser__title { font-size: 1.4rem; margin-top: 0.25em; }

/* the paragraph under a page's title opens the page: larger and wider */
main .text > h1 + p { font-size: 1.25rem; line-height: 1.55; max-width: 44rem; }

/* the menu on a phone (below the grid's md): the logo, the languages and the Menu button on one
   line; the menu opens as a panel across the screen under the header */
@media (max-width: 767.98px) {
  .fragment-header { position: relative; }
  .fragment-header > .row { flex-wrap: nowrap; gap: 0.75rem; }
  .fragment-header > .row > :has(.nav) { order: 3; }
  .fragment-header .nav--enhanced .nav__list {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: 20;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .fragment-header .nav--enhanced .nav__item { border-bottom: 1px solid var(--color-line); }
  .fragment-header .nav--enhanced .nav__link { display: block; padding: 0.9rem 0; font-size: 1.15rem; }
  .fragment-header .nav--enhanced.last-button .nav__item:last-child { border-bottom: 0; padding-top: 1rem; }
  .fragment-header .nav--enhanced.last-button .nav__item:last-child .nav__link { text-align: center; padding: 0.8rem 1rem; }
  .fragment-header .nav__toggle { border-radius: 999px; }
}

/* columns of text, each under its own heading */
.columns { gap: var(--space-lg); }
.columns strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 1.4rem; margin-bottom: 0.25rem; }

/* a gallery fills its row: its photos share the width */
.gallery { grid-template-columns: repeat(auto-fit, minmax(min(40%, 12rem), 1fr)); gap: var(--space); margin-block: var(--space) var(--space-lg); }
.gallery img { aspect-ratio: 4 / 5; }

/* a header menu is one line of sections: a page's own subpages are not shown under it */
.fragment-header .nav__sublist { display: none; }

}

@layer theme.base {
/* The starters' variants, on any theme that extends clean: a cover photo hero, colour bands across
   the whole width, stats and quote cards, a dark footer, a button at the end of the menu. Their
   colours and fonts are the theme's tokens (color-dark, color-accent, color-surface, font-heading). */

/* nav (last-button): the last item of the menu as a button (book, contact) */
.nav.last-button .nav__item:last-child .nav__link { background: var(--color-dark); color: #fff; padding: 0.5em 1.1em; border-radius: 999px; }

/* bands: a colour behind a container (its layout's width a band: the colour edge to edge, its content at
   the page width) or behind one component, in its own box */
.band-dark, .band-soft, .band-accent {
  background: var(--band);
  margin-block: 0 !important;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
/* a band in a band (a component's in its container's) takes the outer one's colour and room */
:is(.band-dark, .band-soft, .band-accent) :is(.band-dark, .band-soft, .band-accent) { background: none; padding-block: 0; }
.band-dark { --band: var(--color-dark); color: #f3efe6; }
.band-soft { --band: var(--color-surface); }
.band-accent { --band: var(--color-accent); color: var(--color-dark); }
/* the page's muted gray is made for the page's background: on a band, secondary text takes the band's own text color */
:is(.band-dark, .band-accent) { --color-muted: currentColor; }
.band-dark a:not(.button) { color: inherit; }
.band-dark .button { background: #f3efe6; color: var(--color-dark); }
.band-accent .button { background: var(--color-dark); color: #fff; }
/* a title band runs into the band under it */
.title.band-soft, .title.band-dark { padding-bottom: 0; }

/* hero (cover): the photo across the whole width, darkened, the text on it */
main:has(.hero--cover) { padding-top: 0; }
.hero.hero--cover {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  min-height: min(86vh, 48rem);
  padding-block: var(--space-lg) clamp(3rem, 2rem + 4vw, 6rem);
  /* its text on the page's reading column, however wide its box (edge to edge in its container) */
  padding-inline: max(var(--space), calc((100% - var(--max-width)) / 2));
  color: #fff;
}
.hero--cover .hero__media { position: absolute; inset: 0; z-index: -1; }
.hero--cover .hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero--cover .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--color-dark) 85%, transparent) 0%, color-mix(in srgb, var(--color-dark) 55%, transparent) 45%, color-mix(in srgb, var(--color-dark) 15%, transparent) 100%); }
.hero--cover .hero__body { max-width: 38rem; }
.hero--cover .hero__body p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); }
.hero--cover .button { background: #fff; color: var(--color-dark); }

/* section titles: centered, with room */
.title.section { text-align: center; text-wrap: balance; margin-block: var(--space-lg) var(--space); }

/* facts (stats): large numbers in cards */
.facts.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space); margin-block: var(--space-lg); }
.facts.stats .facts__item { background: var(--color-surface); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem; }
.facts.stats .facts__item:first-child { background: var(--color-accent); --color-muted: currentColor; }
.facts.stats .facts__value { margin: 0; font-family: var(--font-heading); font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); line-height: 1; }
.facts.stats .facts__term { text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--color-muted); }

/* cards: soft, with the picture at the top edge */
.cards__item { background: #fff; border: 0; border-radius: var(--radius); padding: 0 0 1.4rem; overflow: hidden; box-shadow: 0 1px 2px rgba(19, 32, 27, 0.06); }
.cards__item img { border-radius: 0; aspect-ratio: 4 / 3; }
.cards__item > :not(img):not(picture) { margin-inline: 1.4rem; }
.cards__item .button { margin-left: 1.4rem; background: transparent; color: var(--color-primary); padding: 0; border-radius: 0; }
.cards__item .button::after { content: " →"; }

/* cards (quotes): what clients say, with their photo */
.cards.quotes .cards__item { padding: 1.6rem; display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.25rem 1rem; align-items: center; }
.cards.quotes .cards__item img { width: 3.5rem; height: 3.5rem; aspect-ratio: 1; border-radius: 50%; grid-row: 2; }
.cards.quotes .cards__item > * { margin: 0; }
.cards.quotes .cards__body { display: contents; }
.cards.quotes .cards__body > p:first-child { grid-column: 2; grid-row: 2; }
.cards.quotes .cards__body > p:first-child strong { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.cards.quotes .cards__body > p:last-child { grid-column: 1 / -1; grid-row: 1; font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.4; margin-bottom: 1.2rem; }

/* teaser in a dark band: the text and its picture side by side */
.teaser.band-dark .teaser__media img { border-radius: var(--radius); }
.teaser.band-dark .teaser__pretitle { color: var(--color-accent); }
.teaser__title { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.12; }

/* the call to action: the title, a line and the button, centered */
.cta { border-radius: var(--radius); }
.cta.band-accent, .cta.band-dark { border-radius: 0; flex-direction: column; justify-content: center; text-align: center; gap: 0.5rem; }
.cta.band-accent > *, .cta.band-dark > * { margin: 0; }
.cta.band-accent p, .cta.band-dark p { max-width: 36rem; font-size: 1.1rem; }
.cta.band-accent .button, .cta.band-dark .button { margin-top: 1rem; }
/* a band at the end of the page runs into the footer */
main:has(> .row > :last-child > .band-accent, > .row > :last-child > .band-dark) { padding-bottom: 0; }
.cta.band-accent strong, .cta.band-dark strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.12; margin-bottom: 0.5rem; }

/* accordion: questions as rows */
.accordion summary { font-family: var(--font-heading); font-size: 1.3rem; padding-block: 1rem; }

/* footer (dark) */
.fragment-footer.fragment--dark { margin-top: 0; border-top: 0; color: rgba(243, 239, 230, 0.75); background: var(--color-dark); }
.fragment--dark a { color: #f3efe6; }
.fragment--dark .columns { margin-block: 0 var(--space-lg); }
.fragment--dark .columns strong { color: #fff; font-family: var(--font-heading); font-weight: 400; font-size: 1.3rem; }

/* the team, centered under its title */
.profiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 14rem)); justify-content: center; }
.profile__name, .profile .name { font-family: var(--font-heading); }

/* image (wide): a photo as wide as its box (a container edge to edge makes it the screen's), not too tall */
.image.wide img { width: 100%; height: clamp(16rem, 42vw, 34rem); object-fit: cover; border-radius: 0; }
.image.wide figcaption { text-align: center; }

}

@layer theme.base {
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: optional; src: url("../current/fonts/nunito-sans-latin-variable-normal-ba40dacf91.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 400 800; font-display: optional; src: url("../current/fonts/nunito-sans-latin-variable-italic-ae6a0302ea.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 800; font-display: optional; src: url("../current/fonts/outfit-latin-variable-92684e4acd.woff2") format("woff2"); }

}

@layer theme.base {
/* Current: a cause that asks you to join. River teal and sun yellow, a friendly geometric sans,
   waves where the colour changes, photos in rounded river-stone shapes, big numbers for the impact. */

:root {
  --wave-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46C180 80 360 80 540 52S900 0 1080 18s300 50 360 44V80H0z'/%3E%3C/svg%3E");
  --wave-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 34C180 0 360 0 540 28s360 52 540 34 300-50 360-44V0H0z'/%3E%3C/svg%3E");
  --wave: clamp(28px, 4vw, 64px);
  --stone: 58% 42% 48% 52% / 46% 52% 48% 54%;
}
body { font-size: 1.0625rem; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.7vw, 2.7rem); }
h3 { font-family: var(--font-heading); }
.button { border-radius: 999px; font-weight: 800; padding: 0.8em 1.5em; }

/* header: the menu, and Donate in yellow as its last item */
.fragment-header { border-top: 0; border-bottom: 0; }
.fragment-header .site-logo { font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; color: var(--color-dark); }
.fragment-header .site-logo::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.35em; vertical-align: -0.05em; background: var(--color-accent); border-radius: var(--stone); }
.fragment-header .nav__link { font-weight: 700; }
.nav.last-button .nav__item:last-child .nav__link { background: var(--color-accent); color: var(--color-fg); }

/* a container (wave-foot): a river-teal band with a wave at its foot, the hero's ground */
.container.wave-foot { position: relative; background: var(--color-dark); }
.container.wave-foot::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: var(--wave); background: var(--color-bg); -webkit-mask: var(--wave-up) bottom / 100% 100% no-repeat; mask: var(--wave-up) bottom / 100% 100% no-repeat; }

/* hero (current): on a river-teal band, the photo in a river-stone shape, a wave at its foot */
main:has(> .row:first-child .hero.current) { padding-top: 0; }
.hero.current { position: relative; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) calc(var(--wave) + clamp(2rem, 1rem + 3vw, 4rem)); color: #fff; }
.hero.current h1 { color: #fff; }
.hero.current p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.86); max-width: 32rem; }
.hero.current .button { background: var(--color-accent); color: var(--color-fg); }
.hero.current .hero__media img { aspect-ratio: 1; object-fit: cover; border-radius: var(--stone); }

/* title (lead): a sentence that says what the organisation is for, large and centred */
.title.lead, .lead { margin-block: var(--space-lg); text-align: center; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 600; line-height: 1.25; }

/* facts (impact): the numbers that count, huge, in yellow circles */
.facts.impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--space-lg) var(--space); margin-block: var(--space-lg); text-align: center; }
.facts.impact .facts__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; gap: 0.75rem; }
.facts.impact .facts__value { display: grid; place-items: center; width: 9.5rem; height: 9.5rem; margin: 0; border-radius: var(--stone); background: var(--color-accent); color: var(--color-fg); font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.facts.impact .facts__item:nth-child(2) .facts__value { border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; }
.facts.impact .facts__item:nth-child(3) .facts__value { border-radius: 52% 48% 60% 40% / 42% 58% 44% 56%; }
.facts.impact .facts__term { max-width: 15rem; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--color-fg); }

/* river bands: a teal band with a wave above and below; facts and calls to action ride on it */
.river { position: relative; color: #f2f7f3; background: var(--color-dark); margin-block: calc(var(--wave) + var(--space)) !important; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.river::before, .river::after { content: ""; position: absolute; left: 0; width: 100%; height: var(--wave); background: var(--color-dark); }
.river::before { bottom: calc(100% - 1px); -webkit-mask: var(--wave-up) bottom / 100% 100% no-repeat; mask: var(--wave-up) bottom / 100% 100% no-repeat; }
.river::after { top: calc(100% - 1px); -webkit-mask: var(--wave-down) top / 100% 100% no-repeat; mask: var(--wave-down) top / 100% 100% no-repeat; }
/* a river in a river (a component's in its container's) takes the outer one's band and waves */
.river .river { background: none; margin-block: 0 !important; padding-block: 0; }
.river .river::before, .river .river::after { content: none; }
.river h2, .river h3, .river strong { color: #fff; }
.river a:not(.button) { color: inherit; }
.river .button { background: var(--color-accent); color: var(--color-fg); }
.facts.river .facts__term { color: #f2f7f3; }
.cta.river { display: grid; gap: 0.5rem var(--space-lg); justify-items: start; }
.cta.river > p { margin: 0; max-width: 42rem; font-size: 1.15rem; color: rgba(242, 247, 243, 0.85); }
.cta.river > p:has(> strong:only-child) strong { font-family: var(--font-heading); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.cta.river > .button { margin-top: 0.75rem; }
@media (min-width: 48rem) { .cta.river { grid-template-columns: 1fr auto; align-items: center; } .cta.river > p { grid-column: 1; } .cta.river > .button { grid-column: 2; grid-row: 1 / span 2; margin: 0; } }

/* cards (programs): what the organisation does, the photo in a stone shape, a yellow tag */
.cards.programs { gap: var(--space-lg) var(--space); }
.cards.programs .cards__item { border: 0; padding: 0; background: none; box-shadow: none; gap: 0.6rem; }
.cards.programs .cards__item img { aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--stone); }
.cards.programs .cards__item:nth-child(2) img { border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; }
.cards.programs .cards__item:nth-child(3) img { border-radius: 52% 48% 60% 40% / 42% 58% 44% 56%; }
.cards.programs .cards__body { padding: 0; }
.cards.programs .cards__body strong { display: block; color: var(--color-fg); font-family: var(--font-heading); font-size: 1.45rem; margin-top: 0.5rem; }
.cards.programs .cards__body p { margin: 0.3rem 0 0; color: var(--color-muted); }
.cards.programs .button { align-self: flex-start; background: none; color: var(--color-dark); padding: 0; border-bottom: 3px solid var(--color-accent); border-radius: 0; }

/* cards (actions): the ways to help, each a soft card with its button */
.cards.actions .cards__item { border: 0; box-shadow: none; background: var(--color-surface); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border-radius: var(--radius); }
.cards.actions .cards__item:first-child { background: var(--color-accent); }
.cards.actions .cards__body strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 0.4rem; }
.cards.actions .button { align-self: flex-start; margin-top: auto; }

/* quote (story): a person's words, large, beside their photo in a stone shape */
.quote.story { display: grid; gap: var(--space) var(--space-lg); align-items: center; margin-block: var(--space-lg); }
@media (min-width: 48rem) { .quote.story { grid-template-columns: 1fr 1.4fr; } .quote.story .quote__text { grid-column: 2; grid-row: 1; } .quote.story .quote__by { grid-column: 1; grid-row: 1; } }
.quote.story .quote__text { margin: 0; font-family: var(--font-heading); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.quote.story .quote__by { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.quote.story .quote__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--stone); }
.quote.story .quote__name { font-weight: 800; display: block; }
.quote.story .quote__roles { color: var(--color-muted); display: block; }

/* teaser (side): a program told in full, photo and text side by side */
.teaser.side { margin-block: var(--space-lg); }
.teaser.side img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--stone); }
.teaser.side .teaser__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }

/* products (tiers): donation amounts, each with what it pays for */
.products.tiers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.products.tiers .products__item { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); background: var(--color-surface); border-radius: var(--radius); }
.products.tiers .products__item:nth-child(2) { background: var(--color-dark); color: #f2f7f3; }
.products.tiers .products__item:nth-child(2) .products__name, .products.tiers .products__item:nth-child(2) .products__description { color: #f2f7f3; }
.products.tiers .products__price { order: -1; font-family: var(--font-heading); font-size: clamp(2.2rem, 1.9rem + 1vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.products.tiers .products__name { font-size: 1.1rem; }
.products.tiers .products__buy { background: var(--color-accent); color: var(--color-fg); }

/* footer: deep teal */
.fragment-footer.fragment--dark { color: rgba(242, 247, 243, 0.75); }
.fragment--dark .columns strong { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }

/* the footer rises from the page on a wave */
.fragment-footer.fragment--dark { position: relative; margin-top: calc(var(--wave) + var(--space-lg)); background: var(--color-dark); box-shadow: none; clip-path: none; }
.fragment-footer.fragment--dark::before { content: ""; position: absolute; bottom: calc(100% - 1px); left: 0; width: 100%; height: var(--wave); background: var(--color-dark); -webkit-mask: var(--wave-up) bottom / 100% 100% no-repeat; mask: var(--wave-up) bottom / 100% 100% no-repeat; }
@media (max-width: 47.99rem) { .facts.impact .facts__value { width: 7.5rem; height: 7.5rem; font-size: 2.1rem; } }
/* a page that ends on a river band flows straight into the footer, one wave instead of two */
main:has(> .row:last-child > :last-child > .river:last-child) { padding-bottom: 0; margin-bottom: 0; }
main > .row:last-child > :last-child > .river:last-child { margin-bottom: 0 !important; }
main > .row:last-child > :last-child > .river:last-child::after { display: none; }
.page-root:has(main > .row:last-child > :last-child > .river:last-child) .fragment-footer { margin-top: 0; }
.page-root:has(main > .row:last-child > :last-child > .river:last-child) .fragment-footer::before { display: none; }
.columns strong { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; }

}
