:root {
  color-scheme: light;
  --paper: #fffdf8;
  --tint: #eef2ff;
  --ink: #101a31;
  --muted: #49536a;
  --accent: var(--brand-blue);
  --brand-blue: #183fff;
  --brand-blue-light: #9cb5ff;
  --border: #dee4f0;
  --footer: #161b27;
  --heading: "Young Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c2230;
  --tint: #161b27;
  --ink: #faf8ff;
  --muted: #d1cbdc;
  --accent: var(--brand-blue-light);
  --border: #364156;
  --footer: #10141e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
h1, h2, h3, .brand { font-family: var(--heading); font-weight: 800; line-height: 1.12; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.5rem, 5.55vw, 5.35rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.75rem); letter-spacing: -.02em; }
p { color: var(--muted); }
p + p { margin-top: 1rem; }
a { color: inherit; }
img { display: block; max-width: 100%; object-fit: cover; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(89%, 1260px); margin-inline: auto; }
.section { padding-block: clamp(4.25rem, 8vw, 8rem); }
.tinted, .hero, .site-header, .involvement { background: var(--tint); }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 11; padding: .5rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}
.nav-wrap { width: min(91%, 1360px); margin-inline: auto; min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; text-decoration: none; color: var(--accent); font-size: clamp(1.15rem, 2vw, 1.7rem); letter-spacing: -.05em; }
.brand-logo { width: clamp(2rem, 4vw, 3.5rem); height: auto; border-radius: 4px; }
.brand-subtitle { display: block; font: 700 .61rem/1.4 var(--body); letter-spacing: .15em; text-transform: uppercase; margin-top: .28rem; }
#site-nav, .nav-actions { display: flex; align-items: center; gap: clamp(.65rem, 2.4vw, 2.25rem); }
#site-nav a { text-decoration: none; font-size: .9rem; color: var(--muted); }
#site-nav a:hover, #site-nav a[aria-current] { color: var(--accent); }
.nav-actions { justify-self: end; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.3rem; border: 1px solid transparent; border-radius: 7px; background: var(--brand-blue); color: #fff; font-size: .9rem; font-weight: 650; text-decoration: none; text-align: center; }
.button:hover { filter: brightness(.9); }
.nav-donate { min-width: clamp(5.5rem, 11vw, 11rem); }
.outline { color: var(--accent); background: transparent; border-color: var(--accent); }
.theme-toggle, .menu-toggle { min-height: 40px; border: 1px solid var(--border); border-radius: 7px; color: var(--accent); background: var(--paper); }
.theme-toggle { width: 40px; font-size: 1.15rem; }
.menu-toggle { display: none; padding-inline: .65rem; }
.hero { text-align: center; padding-block: clamp(4rem, 7vw, 7rem); }
.eyebrow { color: var(--accent); font-size: .93rem; font-weight: 750; }
.eyebrow + h1, .eyebrow + h2 { margin-top: .85rem; }
.hero-photo, .banner { width: 100%; aspect-ratio: 2; border-radius: 20px; }
.hero-photo { margin-top: clamp(2.3rem, 5.5vw, 5rem); object-position: 50% 52%; }
.section-head { text-align: center; max-width: 46rem; margin-inline: auto; margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.section-head h1 + p, .section-head h2 + p { margin: 1rem auto 0; max-width: 36rem; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(2rem, 6.5vw, 7rem); }
h3 + p { margin-top: .55rem; }
.feature-photo { width: 100%; aspect-ratio: 1.05; border-radius: 20px; object-position: center 40%; }
.meal-photo { object-position: 50% 46%; }
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3.25vw, 3rem); margin-top: 2rem; }
.display-title { color: var(--accent); margin-bottom: clamp(2.5rem, 6vw, 5.5rem); font-size: clamp(2.65rem, 8vw, 8rem); }
.feature-heading { font-size: clamp(1.7rem, 3.5vw, 3rem); }
.split .button { margin-top: 1.5rem; }
.cards article { background: var(--paper); padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 16px; }
.gallery-section { padding-bottom: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.45rem, 1.8vw, 1.5rem); padding-bottom: clamp(.45rem, 1.8vw, 1.5rem); }
.gallery img { width: 100%; aspect-ratio: 1.25; border-radius: 8px; }
.footer { background: var(--footer); color: #f5f1ff; padding-block: clamp(2.5rem, 6vw, 5rem); }
.footer .brand { color: var(--brand-blue-light); }
.footer p { color: #d1cbdc; margin-top: 1rem; }
.footer nav { display: grid; align-content: start; gap: .6rem; }
.footer nav a { text-decoration: none; width: fit-content; }
.footer nav a:hover { text-decoration: underline; }
.action-card { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 5vw, 5rem); background: var(--paper); border-radius: 22px; margin-top: clamp(5rem, 10vw, 9rem); scroll-margin-top: 3.5rem; }
.action-card h2 { font-size: clamp(1.9rem, 3.5vw, 3.3rem); }
.action-card h2 + p { margin-top: .7rem; }
.action-card img { width: 100%; aspect-ratio: 1.28; border-radius: 14px; }
.action-card .button { margin-top: 1.2rem; }
#donate img { object-position: 50% 70%; }
.location strong { color: var(--ink); }

@media (max-width: 1000px) {
  .nav-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; min-height: 68px; padding-block: .65rem; gap: .55rem; }
  .nav-actions { margin-left: auto; }
  .nav-donate { min-width: auto; padding-inline: .75rem; }
  #site-nav { order: 4; width: 100%; flex-wrap: wrap; }
  .js .menu-toggle { display: block; order: 3; }
  .js #site-nav { display: none; }
  .js .menu-toggle[aria-expanded="true"] + #site-nav { display: grid; padding-block: .5rem; }
  #site-nav a { padding-block: .45rem; }
}

@media (max-width: 760px) {
  .hero-photo { aspect-ratio: 1.28; }
  .banner { aspect-ratio: 1.5; }
  .split, .columns, .action-card { grid-template-columns: 1fr; }
  .action-card { padding: 2.9rem 1.25rem 1.25rem; border-radius: 16px; }
  .feature-photo { aspect-ratio: 1.25; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


.contact-details { margin-top: .8rem; font-style: normal; color: var(--muted); overflow-wrap: anywhere; }
.contact-link {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .5rem;
  max-width: 100%;
  margin-top: .35rem;
  font-weight: 700;
  text-decoration: none;
}
.contact-icon { margin-top: .18em; color: var(--accent); }
.contact-link:hover { color: var(--accent); }
.footer .contact-details { color: #d1cbdc; }
.contact-source { margin-top: .65rem; font-size: .85rem; }
.action-form { grid-column: 1 / -1; display: grid; gap: .9rem; border-top: 1px solid var(--border); padding-top: 1.5rem; scroll-margin-top: 2rem; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.action-form label { display: grid; gap: .3rem; font-weight: 600; }
.action-form input, .action-form select, .action-form textarea { width: 100%; padding: .65rem; background: var(--tint); color: var(--ink); border: 1px solid var(--muted); border-radius: 7px; font: inherit; font-weight: 400; }
.action-form textarea { resize: vertical; }
.action-form .button { justify-self: start; margin-top: 0; }
.form-result { max-width: 42rem; }
.form-result p { margin-block: 1.2rem; }
@media (max-width: 520px) {
  .form-fields { grid-template-columns: 1fr; }
}

.site-header { background: var(--paper); }
#site-nav a { font-weight: 650; }
.button { gap: .65rem; padding-inline: 1.15rem; border-radius: 8px; }
.button span, .text-link span { font-family: var(--body); }

.hero, .involvement-hero {
  padding-block: clamp(3rem, 7vw, 7rem);
  background: linear-gradient(130deg, var(--paper) 5%, var(--tint) 95%);
  text-align: left;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.hero h1, .involvement-hero h1 {
  font-size: clamp(2.65rem, 5.15vw, 5rem);
  line-height: .97;
  letter-spacing: -.055em;
}
.hero-copy h1 + p {
  max-width: 32rem;
  margin-top: 1.35rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-actions, .action-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.2rem;
  align-items: center;
  margin-top: 1.7rem;
}
.text-link { text-decoration: none; color: var(--accent); font-size: .9rem; font-weight: 750; }
.text-link:hover { text-decoration: underline; }
.hero-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 50px #101a311c;
  background: #101a31;
}
.hero-frame .hero-photo {
  aspect-ratio: 1.13;
  margin: 0;
  border-radius: 0;
  object-position: 50% 58%;
}
.hero-frame figcaption {
  padding: .8rem 1rem;
  color: #edf2ff;
  font-size: .8rem;
}
.hero-frame figcaption::before {
  content: "";
  display: inline-block;
  margin-right: .6rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #2ad7ff;
}

#programmes .section-head, #about .section-head {
  text-align: left;
  margin-inline: 0;
}
#programmes .section-head p, #about .section-head p { margin-inline: 0; }
.programme-layout { grid-template-columns: 1.15fr .85fr; align-items: stretch; gap: clamp(1.25rem, 4vw, 3.5rem); }
.programme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.programme-grid article, .cards article {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1rem, 2.4vw, 1.8rem);
  background: var(--paper);
}
.programme-grid article::before {
  content: "";
  display: block;
  width: 1.6rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--accent);
}
.programme-layout .meal-photo { height: 100%; min-height: 21rem; aspect-ratio: 1; }
#about .columns article { border-top: 1px solid var(--border); padding-top: 1rem; }

.next-panel {
  padding: clamp(1.5rem, 5vw, 4.25rem);
  border-radius: 18px;
  background: #101a31;
  color: #fff;
}
.next-panel .display-title { color: #fff; font-size: clamp(2.5rem, 6vw, 5.5rem); margin-bottom: 2rem; }
.next-panel p { color: #d7e0f3; }
.next-panel .eyebrow { color: var(--brand-blue-light); margin-bottom: .7rem; }
.next-panel .feature-photo { aspect-ratio: 1.55; }
.next-panel .split { gap: 2rem; }

.gallery-section .section-head { width: min(89%, 1260px); max-width: none; text-align: left; }
.gallery { width: min(89%, 1260px); margin: 0 auto; padding-bottom: clamp(3rem, 7vw, 6rem); }
.gallery img { aspect-ratio: 1.35; }

.involvement-hero {
  background: #101a31;
  color: #fff;
}
.involvement-hero .eyebrow { color: #9cb5ff; }
.involvement-hero p { color: #d7e0f3; }
.involvement-hero img { width: 100%; aspect-ratio: 1.65; object-position: 50% 62%; border-radius: 16px; }
.action-jumps { gap: .55rem; }
.action-jumps a {
  color: #fff;
  border: 1px solid #7383a8;
  padding: .35rem .75rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: .9rem;
}
.action-jumps a:hover { background: #253655; }
.action-jumps a:focus-visible { outline-color: #9cb5ff; }
.action-list { padding-top: clamp(2rem, 6vw, 5rem); }
.action-card {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "intro photo";
  align-items: start;
  gap: 1.25rem clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.25rem, 4vw, 3.5rem);
  margin-top: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
}
#contact.action-card { grid-template-areas: "intro form" "photo form"; }
.action-card:first-child { margin-top: 0; }
.action-card > div { grid-area: intro; }
.action-card > img { grid-area: photo; aspect-ratio: 2; }
.action-card .action-form {
  grid-area: form;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--tint);
}
.action-form input, .action-form select, .action-form textarea { background: var(--paper); }
.action-form h3 { font-size: 1.35rem; }
.action-form label { font-size: .9rem; }

@media (max-width: 850px) {
  .form-fields { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-layout, .programme-layout { grid-template-columns: 1fr; }
  .hero h1, .involvement-hero h1 { font-size: clamp(2.1rem, 8.6vw, 4.25rem); }
  .hero-frame .hero-photo { aspect-ratio: 1.25; }
  .programme-layout .meal-photo { height: auto; min-height: 0; aspect-ratio: 1.4; }
  .action-card { grid-template-columns: 1fr; grid-template-areas: "intro" "photo"; }
  #contact.action-card { grid-template-areas: "intro" "form" "photo"; }
}
@media (max-width: 385px) {
  .programme-grid { grid-template-columns: 1fr; }
  .nav-wrap .brand { font-size: 1rem; gap: .3rem; }
  .nav-wrap .brand-logo { width: 1.75rem; }
  .nav-actions { gap: .35rem; }
}

.footer {
  padding-block: clamp(1.5rem, 4vw, 3.5rem) 1.25rem;
  color: #f5f8ff;
  background: radial-gradient(ellipse at top right, #1b2d52, transparent 60%), var(--footer);
}
.footer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: #183fff;
  border-radius: 16px;
}
.footer-banner h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.footer-banner p { color: #fff; margin-top: .4rem; }
.footer-cta { background: #fff; color: #132eb8; }
.footer a:focus-visible { outline-color: #abc0ff; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 1fr 1fr minmax(0, 1.5fr);
  gap: 2rem clamp(1.25rem, 3vw, 3rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.footer-grid h3 {
  font: 750 .92rem/1.25 var(--body);
  margin-bottom: .35rem;
}
.footer-grid .brand { color: #f5f8ff; }
.footer-identity p, .footer .contact-details, .footer-grid nav > a { color: #ced8ed; font-size: .9rem; }
.footer-identity p { max-width: 17rem; }
.footer-contact h3 a { text-decoration: none; }
.footer-contact h3 a:hover { text-decoration: underline; }
.footer-contact .contact-icon, .footer-contact .contact-link:hover { color: var(--brand-blue-light); }
.footer-platforms { margin-top: .35rem; min-width: 0; }
.footer-platform-icons { display: flex; flex-wrap: wrap; gap: .35rem; color: #e4ecff; }
.footer-platform-icons svg {
  box-sizing: content-box;
  width: .95rem;
  height: .95rem;
  padding: .4rem;
  border: 1px solid #637397;
  background: #26395f;
  border-radius: 50%;
}

@media (min-width: 931px) {
  .footer-platform-icons { gap: .5rem; }
  .footer-platform-icons svg {
    width: 1.2rem;
    height: 1.2rem;
    padding: .55rem;
    color: #fff;
    background: #304975;
  }
}
.footer-end {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  border-top: 1px solid #465678;
  padding-top: 1rem;
  color: #ced8ed;
  font-size: .88rem;
}
.footer-end a { font-weight: 650; text-underline-offset: .2em; }

@media (max-width: 930px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-identity { grid-column: 1 / -1; }
}

.hero-carousel { min-width: 0; }
.hero-carousel .hero-frame:not([hidden]) .hero-photo { animation: hero-photo-in .65s ease-out; }
.carousel-controls:not([hidden]) {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .75rem;
}
.carousel-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: .25rem .7rem;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
}
.carousel-controls button:hover { border-color: var(--accent); }
.carousel-count { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.carousel-controls [data-carousel-toggle] { margin-left: auto; }

@keyframes hero-photo-in {
  from { opacity: .25; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel .hero-frame:not([hidden]) .hero-photo { animation: none; }
}

#site-nav a[aria-current] { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 2px; }
.enquiry-link { display: inline-block; margin-top: .9rem; }

.team-hero img { aspect-ratio: 1.35; object-position: center 55%; }
.team-roster { margin-top: 0; }
.team-member-card {
  padding: 1rem 1rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.team-member-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--tint);
}
.team-member-photo img {
  position: absolute;
  inset: 0 auto auto 0;
  /* Each portrait shows a 225 × 225 crop from the same 1600 × 1200 photo. */
  width: 711.111%;
  max-width: none;
  height: auto;
  transform: translate(var(--crop-x), var(--crop-y));
}
.team-home-link { margin-top: 1.5rem; text-align: center; }

.brand-logo {
  width: clamp(3.25rem, 5vw, 4.5rem);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}
.profile-purpose { margin-top: 2.5rem; }
@media (max-width: 385px) {
  .nav-wrap .brand-logo { width: 2.6rem; }
}

:root { --brand-gold: #e8b923; }
#site-nav a[aria-current] { text-decoration-color: currentColor; }
.hero-copy > .eyebrow::before,
#programmes .eyebrow::before,
#about .eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.8rem;
  height: 3px;
  margin-right: .65rem;
  vertical-align: middle;
  background: var(--brand-gold);
}
.hero-frame figcaption::before { background: var(--brand-gold); }
.programme-grid article::before { background: var(--brand-gold); }
.carousel-controls button:hover {
  color: var(--accent);
  background: var(--paper);
  border-color: var(--accent);
}
.footer-banner { border-top: 3px solid var(--brand-gold); }
.footer-cta:hover { background: #eef2ff; color: #101a31; filter: none; }
.team-member-card { border-bottom: 3px solid var(--brand-gold); }
