:root {
  --cream: #FAF7F0;
  --paper: #FFFDF9;
  --sand: #F3EDE1;
  --ink: #17302A;
  --muted: #4F5B55;
  --green: #1F4A3D;
  --forest: #24493E;
  --gold: #8B6119;
  --saffron: #D9A441;
  --line: #E2DACB;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a[href^="mailto:"] { overflow-wrap: anywhere; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 2.5rem 0 1rem; }
h2 { font-size: 1.45rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 0.9rem;
  background: var(--saffron);
}

p, ul, ol, dl { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--forest); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; padding: 0.5rem 0.9rem; background: var(--paper); z-index: 1; }

.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.header-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "nav nav"; align-items: center; gap: 0.75rem 1rem; padding-top: 0.9rem; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 0.7rem; max-width: 13rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand svg { width: 2.6rem; height: 2.6rem; color: var(--gold); flex: none; }
.site-nav { grid-area: nav; border-top: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; list-style: none; margin: 0 -0.7rem; padding: 0; }
.nav li { margin: 0; }
.nav a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 0.5rem; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--green); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; box-shadow: inset 0 -3px var(--gold); }
/* Phones: the menu is one row to swipe, so the giving form starts near the top. */
@media (max-width: 34rem) {
  .nav { flex-wrap: nowrap; overflow-x: auto; }
  .nav li { flex: none; }
}
@media (min-width: 76rem) {
  .header-top { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav actions"; padding-bottom: 0.9rem; }
  .site-nav { border-top: 0; }
  .nav { justify-content: flex-end; margin: 0; }
}

main { padding-bottom: 3rem; }

.lede { font-size: 1.2rem; color: var(--muted); }

/* The box-shadow carries the hero colour to both edges of the window without widening the page. */
.hero { padding: 2.5rem 0; background: var(--sand); box-shadow: 0 0 0 100vmax var(--sand); clip-path: inset(0 -100vmax); }
.hero h1 { margin-top: 0; font-size: clamp(2.1rem, 6vw, 3rem); }
.hero > :last-child { margin-bottom: 0; }
.hero-details { margin-top: 1.75rem; padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.5rem; }
.hero-details h2 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.hero-details .facts { margin: 0; }
@media (max-width: 30rem) { .hero-details .facts { grid-template-columns: minmax(0, 1fr); } .hero-details dd + dt { margin-top: 0.5rem; } }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 2rem 0; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 0.5rem; padding: 1.1rem 1.2rem; margin: 0; }
.card h2, .card h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.card p { margin: 0; color: var(--muted); }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:has(a):hover, .card:focus-within { border-color: var(--green); box-shadow: 0 0.3rem 0.8rem rgb(43 38 34 / 0.12); }

.button { display: inline-block; padding: 0.7rem 1.3rem; border: 2px solid var(--green); border-radius: 0.4rem; background: var(--green); color: var(--cream); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.button-large { padding: 0.9rem 1.6rem; font-size: 1.1rem; }
.button-secondary { background: transparent; color: var(--green); }
.button-secondary:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.header-cta { padding: 0.5rem 1rem; font-size: 0.95rem; }
.header-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.give-bar { display: none; }

.verse { margin: 2rem 0; padding: 1rem 1.25rem; background: linear-gradient(var(--saffron), var(--saffron)) left / 4px 100% no-repeat var(--paper); font-family: var(--serif); font-size: 1.15rem; }
.verse p { margin: 0; }
.verse footer { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1.25rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

.toc { margin: 1.5rem 0 2rem; padding: 1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.5rem; }
.toc-title { margin: 0 0 0.4rem; font-weight: 600; }
.toc ul { margin: 0; padding-left: 1.1rem; columns: 2 14rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--muted); border-radius: 0.35rem; background: var(--paper); color: var(--ink); font: inherit; }
.field textarea { min-height: 9rem; }
.hp { position: absolute; left: -999rem; }

.small { font-size: 0.92rem; color: var(--muted); }


.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 2.5rem 0 1.5rem; font-size: 0.95rem; color: var(--muted); }
.site-footer p, .site-footer ul { margin: 0 0 0.7rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer .footer-title { margin-bottom: 0.4rem; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.footer-cols { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-links a { display: inline-block; padding: 0.3rem 0; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand svg { width: 2.5rem; height: 2.5rem; color: var(--gold); flex: none; }
.charity-badge { display: inline-flex; align-items: center; min-height: 44px; padding: 0.35rem 0.9rem; border: 2px solid var(--forest); border-radius: 999px; background: var(--cream); color: var(--forest); font-weight: 600; text-decoration: none; }
.charity-badge:hover { background: var(--forest); color: var(--cream); }
/* ACNC style guide: the tick sits on white with at least 5mm of clear space and is at least 15mm wide. */
.charity-badge:has(img) { padding: 1rem; border: 0; border-radius: 0.5rem; background: #FFFFFF; }
.charity-badge:has(img):hover { background: #FFFFFF; }
.charity-badge img { display: block; width: 6rem; height: auto; }
.site-footer .ack { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* Giving home page */
.narrow { max-width: 41.5rem; margin-inline: auto; }
.hero-giving { position: relative; display: grid; gap: 1.5rem 3rem; padding: 2.5rem 0 0; background: none; box-shadow: none; clip-path: none; }
.hero-giving h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.025em; }
.hero-giving h1::after { display: none; }
/* Later siblings must be positioned to paint above the photo. */
.hero-text > :not(picture), .hero-giving .give { position: relative; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 1.75rem 0 1.25rem; }
.text-link { color: var(--ink); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
.hero-note { margin: 0; font-size: 0.92rem; color: var(--muted); }
.hero-art { display: block; width: 100%; max-width: 20rem; height: auto; margin-bottom: 1.25rem; border-radius: 0.6rem; }
@media (min-width: 48rem) {
  .hero-giving { grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem); align-items: start; padding-top: 3.5rem; }
  .hero-text { padding-bottom: 2rem; }
  .hero-giving .give { padding: 1.75rem; box-shadow: 0 0.6rem 2rem rgb(23 48 42 / 0.18); }
}
/* Wide screens: the photo sits in the space between the 31rem text and the 26rem card, centred at 50% + 2.5rem, fading at both sides. */
@media (min-width: 72rem) {
  .hero-giving { grid-template-columns: 31rem minmax(0, 1fr) 26rem; }
  .hero-giving .give { grid-column: 3; }
  .hero-art { position: absolute; top: 0; bottom: 0; left: calc(50% - 12.5rem); width: 30rem; max-width: none; height: 100%; margin: 0; border-radius: 0; object-fit: cover; object-position: 40% 0; -webkit-mask-image: linear-gradient(to right, transparent 15%, #000 45%, #000 80%, transparent); mask-image: linear-gradient(to right, transparent 15%, #000 45%, #000 80%, transparent); }
}
.section-photo { display: block; width: 100%; height: auto; margin: 0 0 1.25rem; border-radius: 0.6rem; }
/* On phones the giving form follows the headline, so it is seen without scrolling far. */
@media (max-width: 47.99rem) {
.hero-text { display: contents; }
.hero-art { display: none; }
.hero-giving .lede { order: 1; }
.hero-giving { padding-top: 1.5rem; }
.hero-giving .eyebrow { display: none; }
.hero-giving .trust { order: 2; }
.hero-giving .hero-actions, .hero-giving .hero-note { order: 1; }
.trust { flex-direction: column; align-items: flex-start; }
}
.give { padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.6rem; box-shadow: 0 0.4rem 1.2rem rgb(43 38 34 / 0.1); }
.give h2 { margin: 0 0 0.9rem; }
.give-intro { margin: 0 0 1rem; color: var(--muted); }
/* Reserves room for Zeffy's form while it loads, so the page does not jump. */
.zeffy-embed { min-height: 32rem; }
.zeffy-fallback { position: relative; height: 40rem; }
.zeffy-fallback iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.give > p:has(> .button) .button, .give noscript .button { display: block; }
.zeffy-start { margin: 0 0 1rem; }
.give-page { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.zeffy-start .button { width: 100%; }
.trust { grid-column: 1 / -1; position: relative; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1rem 2rem; margin: 0; padding: 1.5rem 0; list-style: none; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); border-bottom: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: 1rem; margin: 0; }
.trust a { color: var(--ink); }
.icon { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-ring, .icon-disc { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: var(--gold); }
.icon-ring { width: 3.25rem; height: 3.25rem; border: 1.5px solid var(--gold); }
.icon-disc { width: 4.75rem; height: 4.75rem; background: var(--sand); }
.icon-disc .icon { width: 2.25rem; height: 2.25rem; }
.supports { margin: 3.5rem 0 1rem; text-align: center; }
.section-title { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; }
.section-title::after { content: ""; display: block; width: 3.5rem; height: 3px; margin: 0.6rem auto 0; background: var(--saffron); }
.section-sub { margin: 1rem 0 2rem; font-size: 1.1rem; color: var(--muted); }
.pillars { display: grid; gap: 1.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin: 0; padding: 0; list-style: none; text-align: left; }
.pillars li { display: flex; gap: 1.25rem; margin: 0; }
.pillars h3 { margin: 0.4rem 0 0.4rem; font-size: 1.4rem; }
.pillars p { margin: 0; color: var(--muted); }
@media (min-width: 60rem) { .pillars li + li { padding-left: 2rem; border-left: 1px solid var(--line); } }
.steps li { margin-bottom: 0.6rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 0.75rem 0; font-weight: 600; cursor: pointer; }
.faq details p { margin: 0 0 1rem; }
.charity-details { margin-top: 2.5rem; padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.5rem; }
.charity-details h2 { margin: 0 0 0.75rem; font-size: 1.2rem; }

@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 0.6rem; }
  /* Zeffy's form needs about 340px; on small phones its own rounded panel stands in for the card. */
  .give { padding: 0; border: 0; background: none; box-shadow: none; }
}

@media (max-width: 40rem) {
  body.has-give { padding-bottom: 4rem; }
  html:has(body.has-give) { scroll-padding-bottom: 4.5rem; }
  .give-bar { display: block; position: fixed; right: 0; bottom: 0; left: 0; z-index: 2; padding: 0.9rem 1.25rem; background: var(--green); color: var(--cream); font-weight: 600; text-align: center; text-decoration: none; box-shadow: 0 -0.2rem 0.8rem rgb(43 38 34 / 0.2); }
  .give-bar[hidden] { display: none; }
  .give-bar:focus-visible { outline: 3px solid var(--cream); outline-offset: -6px; }
}

/* Articles */
.post-list { list-style: none; padding: 0; }
.post-list li { margin: 0 0 1.75rem; }
.post-list li > a { font-size: 1.2rem; font-weight: 600; }
.post-list p { margin: 0.25rem 0 0; }

.topic-list { columns: 2 14rem; column-gap: 2rem; }
.topic-list li { break-inside: avoid; }
