:root {
  --orange:#c05000;
  --dark:#29291f;
  --muted:#64645a;
  --cream:#f7f5ee;
  --line:#deded2;
  --serif:Georgia,'Times New Roman',serif;
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:25px
}

body {
  margin:0;
  color:var(--dark);
  background:var(--cream);
  font:16px/1.65 var(--sans)
}

a {
  color:inherit;
  text-decoration:none
}

a:focus-visible,summary:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:5px
}

img {
  max-width:100%;
  height:auto;
  display:block
}

p {
  margin:0 0 20px
}

h1,h2,h3 {
  line-height:1.12;
  margin:0;
  font-weight:500
}

h1,h2 {
  font-family:var(--serif)
}

h1 {
  font-size:clamp(46px,5.3vw,76px);
  letter-spacing:-2px
}

h2 {
  font-size:clamp(30px,3.1vw,44px);
  letter-spacing:-1px
}

h3 {
  font-size:19px;
  line-height:1.4
}

.wrap {
  max-width:1160px;
  margin:auto;
  padding-left:32px;
  padding-right:32px
}

.header {
  max-width:1160px;
  margin:auto;
  padding:24px 32px;
  display:flex;
  align-items:center;
  gap:24px;
  border-bottom:1px solid var(--line)
}

.brand {
  display:flex;
  align-items:center;
  gap:14px;
  margin-right:auto
}

.logo {
  background:var(--orange);
  padding:5px 7px
}

.logo img {
  width:125px
}

.brand strong {
  display:block;
  font-size:25px;
  letter-spacing:2px;
  line-height:1.2
}

.brand small {
  display:block;
  font-size:11px;
  color:var(--muted);
  white-space:nowrap
}

.desktop-nav {
  display:flex;
  gap:23px;
  font-size:14px
}

.desktop-nav a:hover,.text-link:hover,.footer a:hover {
  text-decoration:underline;
  text-underline-offset:5px
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  background:var(--orange);
  color:white;
  padding:14px 22px;
  font-size:15px;
  font-weight:600;
  border:1px solid var(--orange);
  border-radius:3px
}

.button:hover {
  background:#a94500
}

.button-small {
  padding:9px 17px;
  font-size:14px
}

.mobile-nav {
  display:none
}

.eyebrow {
  color:var(--orange);
  font-size:11px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  margin-bottom:18px
}

.hero {
  padding-top:54px
}

.hero-intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
  margin-bottom:35px
}

.hero-aside {
  min-width:240px;
  padding-top:25px
}

.principles {
  font-family:var(--serif);
  font-size:25px;
  line-height:1.4
}

.hero-aside .text-link {
  display:block;
  margin-top:16px
}

.text-link {
  font-size:14px;
  font-weight:600
}

.hero-photo {
  margin:0;
  position:relative
}

.hero-photo img {
  width:100%;
  aspect-ratio:12/5;
  object-fit:cover;
  border-radius:4px
}

.hero-photo figcaption {
  position:absolute;
  left:20px;
  bottom:15px;
  color:white;
  background:#332b21bd;
  padding:6px 12px;
  font-size:11px;
  letter-spacing:.5px
}

.projects {
  padding-top:72px;
  padding-bottom:76px;
  scroll-margin-top:20px
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:30px;
  margin-bottom:30px
}

.section-heading p:not(.eyebrow) {
  color:var(--muted);
  font-size:13px;
  margin-bottom:0
}

.project-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px 24px
}

.project-card {
  background:#fff;
  border:1px solid #e5e3da;
  border-radius:4px;
  overflow:hidden;
  transition:box-shadow .2s
}

.project-card:hover {
  box-shadow:0 5px 20px #332b2115
}

.project-card img {
  width:100%;
  height:205px;
  object-fit:cover
}

.project-card>div {
  padding:19px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px
}

.project-card>div>span {
  color:var(--orange);
  font-size:23px;
  line-height:1.2
}

.project-card h3 {
  font-size:17px
}

.report-section {
  background:#eceee3;
  border-top:1px solid #dfe2d5;
  border-bottom:1px solid #dfe2d5;
  padding:48px 0
}

.report-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center
}

.report-layout h2 {
  margin-bottom:25px
}

.report-card {
  display:flex;
  background:white;
  align-items:center;
  gap:30px;
  padding:20px;
  border-radius:4px
}

.report-card img {
  width:135px;
  height:170px;
  object-fit:contain;
  background:#f5f5f0
}

.report-card h3 {
  font:56px var(--serif);
  margin:5px 0 12px
}

.report-card span:first-child {
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--muted)
}

.contacts {
  padding-top:70px;
  padding-bottom:65px
}

.contacts h3 {
  font-size:17px;
  margin:22px 0 8px
}

.contacts a {
  color:#944000;
  text-decoration:underline;
  text-underline-offset:3px
}

.contacts>.section-heading+div {
  max-width:800px
}

.contacts .align-center {
  text-align:left
}

.additional-links {
  border-top:1px solid var(--line);
  padding-top:25px;
  margin-top:30px;
  display:flex;
  flex-wrap:wrap;
  gap:15px 30px;
  font-size:13px
}

.giving {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
  padding-top:38px;
  padding-bottom:38px;
  background:#eee5d6;
  border-top:3px solid var(--orange);
  border-radius:3px
}

.giving h2 {
  margin-bottom:20px
}

.bank {
  font-size:14px;
  overflow-wrap:anywhere
}

.bank strong {
  font-size:18px
}

.bank p {
  margin:10px 0 0;
  color:var(--muted)
}

.footer {
  max-width:1160px;
  margin:55px auto 0;
  padding:30px 32px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:25px;
  font-size:12px
}

.footer strong {
  font-size:13px
}

.footer p {
  margin:6px 0;
  color:var(--muted)
}

.footer>div:last-child {
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap
}

.footer small {
  color:var(--muted)
}

.breadcrumb {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:12px;
  color:var(--muted);
  padding:28px 0
}

.breadcrumb a {
  text-decoration:underline;
  text-underline-offset:4px
}

.project-intro {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
  padding:20px 0 55px;
  border-bottom:1px solid var(--line)
}

.project-intro h1 {
  font-size:clamp(42px,5vw,66px)
}

.intro {
  font-size:18px;
  color:var(--muted);
  line-height:1.7;
  margin-top:25px;
  max-width:400px
}

.project-intro>img {
  width:100%;
  border-radius:4px
}

.project-story {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:90px;
  padding-top:55px;
  padding-bottom:40px
}

.story-text p:not(.eyebrow) {
  font-size:18px;
  line-height:1.85
}

.support-box {
  background:#eee5d6;
  padding:28px;
  align-self:start;
  border-top:3px solid var(--orange);
  border-radius:3px
}

.support-box h2 {
  font-size:28px;
  margin-bottom:20px
}

.support-box .button {
  margin-bottom:15px
}

.support-box .text-link {
  display:block
}

.gallery-section {
  padding-top:25px;
  padding-bottom:45px
}

.photo-gallery {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px 24px
}

.photo-gallery figure {
  margin:0
}

.photo-gallery img {
  width:100%;
  height:auto;
  border-radius:3px
}

.photo-gallery figcaption {
  font-size:12px;
  color:var(--muted);
  margin-top:10px
}

.next-project {
  border-top:1px solid var(--line);
  padding-top:25px;
  padding-bottom:25px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:13px
}

.skip {
  position:absolute;
  left:15px;
  top:-100px;
  background:white;
  padding:10px;
  z-index:9
}

.skip:focus {
  top:15px
}

@media(max-width:1000px) {
  .desktop-nav {
    gap:14px
  }

  .brand small {
    display:none
  }

  .brand strong {
    font-size:21px
  }

  .logo img {
    width:100px
  }

  .header {
    gap:15px
  }

  .project-card img {
    height:170px
  }

  .project-story {
    gap:40px
  }

}

@media(max-width:760px) {
  .wrap {
    padding-left:20px;
    padding-right:20px
  }

  .header {
    padding:16px 20px;
    flex-wrap:wrap;
    gap:12px
  }

  .brand {
    gap:10px
  }

  .logo img {
    width:90px
  }

  .desktop-nav {
    display:none
  }

  .mobile-nav {
    display:block;
    position:relative;
    flex-basis:100%
  }

  .mobile-nav summary {
    cursor:pointer;
    padding:8px;
    font-size:14px
  }

  .mobile-nav nav {
    position:absolute;
    left:0;
    top:40px;
    background:white;
    box-shadow:0 8px 30px #0002;
    z-index:10;
    width:210px;
    padding:15px
  }

  .mobile-nav nav a {
    display:block;
    padding:8px
  }

  .hero {
    padding-top:35px
  }

  .hero-intro {
    display:block;
    margin-bottom:25px
  }

  .hero-aside {
    padding-top:22px;
    display:flex;
    flex-wrap:wrap;
    gap:12px 18px;
    align-items:center
  }

  .principles {
    font-size:20px;
    margin:0;
    width:100%
  }

  .principles br {
    display:none
  }

  .hero-aside .text-link {
    margin:0
  }

  .hero-photo figcaption {
    left:10px;
    bottom:10px;
    font-size:10px
  }

  .hero-photo img {
    aspect-ratio:12/5
  }

  .projects {
    padding-top:45px;
    padding-bottom:45px
  }

  .section-heading {
    display:block
  }

  .section-heading p:not(.eyebrow) {
    margin-top:15px
  }

  .project-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px
  }

  .project-card img {
    height:145px
  }

  .project-card>div {
    padding:14px;
    gap:8px
  }

  .project-card h3 {
    font-size:14px
  }

  .report-layout {
    grid-template-columns:1fr;
    gap:25px
  }

  .report-section {
    padding:35px 0
  }

  .contacts {
    padding-top:45px;
    padding-bottom:40px
  }

  .giving {
    margin:0 20px;
    grid-template-columns:1fr;
    gap:15px;
    padding-top:25px;
    padding-bottom:25px
  }

  .bank strong {
    font-size:16px
  }

  .footer {
    margin-top:35px;
    padding:25px 20px;
    display:block
  }

  .footer>div:last-child {
    margin-top:20px;
    gap:15px
  }

  .project-intro {
    grid-template-columns:1fr;
    gap:20px;
    padding:0 0 30px
  }

  .project-intro .intro {
    max-width:none
  }

  .project-story {
    grid-template-columns:1fr;
    gap:25px;
    padding-top:30px
  }

  .photo-gallery {
    gap:20px 14px
  }

  .next-project {
    font-size:12px
  }

  .breadcrumb {
    font-size:11px;
    padding:22px 0
  }

  .story-text p:not(.eyebrow) {
    font-size:17px
  }

}

@media(max-width:380px) {
  .project-grid,.photo-gallery {
    grid-template-columns:1fr
  }

  .brand strong {
    font-size:18px
  }

  .header>.button-small {
    padding:7px 12px
  }

  .logo img {
    width:76px
  }

}

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

  .project-card {
    transition:none
  }

}

/* Shared adaptations for the complete site. */
.page-hero {
  padding-bottom:36px;
  border-bottom:1px solid var(--line)
}

.page-hero h1 {
  font-size:clamp(36px,4.6vw,62px);
  max-width:1000px;
  overflow-wrap:anywhere
}

.article-content {
  padding-top:40px;
  padding-bottom:45px;
  overflow-wrap:anywhere
}

.article-content:not(.report-index) {
  max-width:960px
}

.article-content p,.article-content li {
  font-size:17px;
  line-height:1.85
}

.article-content h2 {
  font-size:30px;
  margin:25px 0 18px
}

.article-content h3 {
  font-size:20px;
  margin:28px 0 14px
}

.article-content a {
  color:#914000;
  text-decoration:underline;
  text-underline-offset:3px
}

.article-content img {
  height:auto;
  max-width:100%;
  margin:20px auto;
  float:none;
  border-radius:3px
}

.article-content .image-wide {
  width:100%
}

.article-content .align-center {
  text-align:left
}

.article-content .article-body {
  display:flow-root
}

.article-content .mosimage_caption {
  text-align:center;
  font-size:13px;
  color:var(--muted)
}

.article-content table {
  max-width:100%;
  border-collapse:collapse
}

.article-content td,.article-content th {
  padding:6px
}

.article-pagination {
  display:flex;
  justify-content:space-between;
  gap:25px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:35px;
  font-size:14px
}

.report-list {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:25px;
  align-items:start
}

.report-entry {
  padding:20px;
  background:white;
  border:1px solid var(--line);
  border-radius:4px;
  min-width:0
}

.report-entry h2 {
  font:26px var(--serif);
  margin:0 0 18px
}

.report-entry img {
  width:100%;
  height:220px;
  object-fit:contain;
  background:#f6f6f0;
  margin:0 0 20px
}

.report-entry p {
  font-size:14px
}

.report-entry .article-body {
  margin-bottom:15px
}

.report-body img {
  display:block;
  width:auto;
  max-width:100%;
  margin:28px auto;
  border:1px solid var(--line)
}

.partner-mark {
  width:150px;
  margin-top:25px
}

.footer {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:25px 50px
}

.footer-africa {
  width:55px;
  float:left;
  margin-right:18px
}

.footer-links {
  display:flex;
  flex-wrap:wrap;
  gap:12px 20px;
  font-size:12px
}

.footer-legal {
  grid-column:1/-1;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  padding-top:20px;
  border-top:1px solid var(--line)
}

.footer-legal small {
  margin-left:auto
}

@media(max-width:1000px) {
  .report-list {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

}

@media(max-width:760px) {
  .article-content {
    padding-top:28px
  }

  .article-content p,.article-content li {
    font-size:16px
  }

  .article-content table,.article-content tbody,.article-content tr,.article-content td {
    display:block;
    width:auto
  }

  .page-hero {
    padding-bottom:28px
  }

  .footer {
    display:block
  }

  .footer-links {
    margin:25px 0
  }

  .footer-legal small {
    margin-left:0
  }

  .report-entry {
    padding:16px
  }

}

@media(max-width:500px) {
  .report-list {
    grid-template-columns:1fr
  }

  .report-entry img {
    height:260px
  }

}

@media print {
  body {
    background:white
  }

  .header,.footer,.skip,.breadcrumb,.article-pagination,.next-project,.support-box {
    display:none
  }

  .wrap {
    max-width:none;
    padding:0
  }

  h1 {
    font-size:32px
  }

  .hero-photo img {
    max-height:250px;
    object-fit:contain
  }

  .project-grid {
    grid-template-columns:repeat(3,1fr)
  }

  .project-card img {
    height:120px
  }

  .project-story,.project-intro,.report-layout {
    display:block
  }

  .giving {
    background:white;
    margin:0
  }

  .report-list {
    display:block
  }

  .report-entry {
    break-inside:avoid
  }

  .photo-gallery img {
    break-inside:avoid
  }

  .article-content {
    padding-top:20px
  }

}

/* Project lead photographs retain their complete original aspect ratio. */
.page-title-layout {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:45px;
  align-items:center;
  padding:15px 0
}

.page-title-layout h1 {
  font-size:clamp(36px,4.6vw,62px)
}

.page-lead-image {
  margin:0;
  min-width:0
}

.page-lead-image img {
  width:auto;
  height:auto;
  max-width:100%;
  max-height:350px;
  margin:0 auto;
  border-radius:4px
}

@media(max-width:760px) {
  .page-title-layout {
    grid-template-columns:1fr;
    gap:25px;
    padding:0
  }

  .page-lead-image img {
    max-height:350px
  }

}

@media print {
  .page-title-layout {
    display:block
  }

  .page-lead-image img {
    max-height:180px
  }

}

/* Primary contact address: text rather than the former email image. */
.contact-email-line { margin-top: 4px; }
.contact-email { color: #914000; text-decoration: underline; text-underline-offset: 3px; }
.footer-email a { color: #914000; text-decoration: underline; text-underline-offset: 3px; }

/* Volunteer page: normal body text with semantic section headings and lists. */
.volunteer-content section { margin-top: 30px; }
.volunteer-list { padding-left: 22px; margin: 0 0 24px; }
.volunteer-list li { padding-left: 4px; margin-bottom: 8px; font-weight: 400; }
.volunteer-contact { border-top: 1px solid var(--line); padding-top: 12px; }

/* Text and extracted photographs from the school-project presentation. */
.school-project-content section + section {
  margin-top: 42px;
}
.school-subtitle {
  color: var(--muted);
}
.school-gallery {
  margin-top: 24px;
  align-items: start;
}
.school-gallery img {
  max-width: 100%;
  width: auto;
  display: block;
}

.article-content a.button {
  color: #fff;
  text-decoration: none;
}

.thank-you-letter {
  margin: 24px 0;
}
.thank-you-letter img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared current topics below the main navigation. */
.current-topics {
  max-width: 1160px;
  margin: 0 auto;
  background: #eee9dc;
  border-bottom: 1px solid var(--line);
}
.current-topics-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 13px 32px;
}
.current-topics-label {
  color: #914000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.current-topics-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}
.current-topics-links a {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
}
.current-topics-links a span {
  color: #914000;
  margin-left: 5px;
}
.current-topics-links a:hover {
  color: #914000;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  .current-topics-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 12px 22px;
  }
  .current-topics-links {
    gap: 4px 22px;
  }
}

/* Donation page: readable introduction, account details and project keywords. */
.donation-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.donation-content h2 { margin-bottom: 22px; }
.donation-bank dl { margin: 0; }
.donation-bank dt { font-size: 12px; color: var(--muted); margin-top: 16px; }
.donation-bank dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.donation-iban { font-weight: 700; font-size: 19px; }
.donation-bank-legacy { margin-top: 22px; font-size: 12px; color: var(--muted); }
.donation-projects, .donation-thanks { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.donation-keywords { list-style: none; margin: 24px 0 0; padding: 0; }
.donation-keywords li { display: grid; grid-template-columns: 1fr 1.35fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.donation-keywords span { color: var(--muted); }
@media (max-width: 900px) {
  .header { flex-wrap: wrap; gap: 12px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; flex-basis: 100%; }
  .mobile-nav summary { cursor: pointer; padding: 8px; font-size: 14px; }
  .mobile-nav nav { position: absolute; left: 0; top: 40px; background: white; box-shadow: 0 8px 30px #0002; z-index: 10; width: 210px; padding: 15px; }
  .mobile-nav nav a { display: block; padding: 8px; }
}
@media (max-width: 760px) {
  .donation-layout { grid-template-columns: 1fr; gap: 28px; }
  .donation-keywords li { grid-template-columns: 1fr; gap: 4px; }
}
@media print { .current-topics { display: none; } }

/* Keep the school project team beside the introductory text. */
.school-intro { display: flow-root; }
.school-intro-image { float: right; width: 278px; max-width: 40%; margin: 0 0 20px 28px; }
.school-intro-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 600px) {
  .school-intro-image { float: none; max-width: 100%; margin: 0 0 24px; }
}

