/* HURIC-Uganda: edit the colours and fonts here first */
:root {
  --purple: #7030A0;
  --plum: #3E1F5C;
  --peach: #F4CC98;
  --butter: #F7E8C2;
  --ink: #2B2233;
  --tint: #F7F2FA;
  --line: #E4D9EC;
  --head: "Bitter", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); color: var(--plum); line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.625rem; font-weight: 700; }
h3 { font-size: 1.3125rem; font-weight: 600; }
p { margin: 0 0 1rem; max-width: 68ch; }
a { color: var(--purple); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
.hidden { display: none; }
.skip { position: absolute; left: -999px; background: #fff; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* buttons */
.btn { display: inline-block; background: var(--purple); color: #fff; font: 600 1rem var(--body); text-decoration: none; padding: .75rem 1.25rem; border: 2px solid var(--purple); border-radius: 6px; cursor: pointer; }
.btn:hover { background: var(--plum); border-color: var(--plum); }
.btn-outline { background: transparent; color: var(--purple); }
.btn-outline:hover { color: #fff; }
.btn-small { padding: .45rem .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .6rem; font: 700 1.25rem var(--head); color: var(--plum); text-decoration: none; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 1rem; padding: 1rem 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); }
.nav.open { display: flex; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--purple); text-decoration: underline; }
.menu-btn { font: 600 1rem var(--body); background: none; border: 2px solid var(--purple); color: var(--purple); border-radius: 6px; padding: .4rem .8rem; cursor: pointer; }

/* hero: the logo is the one bold element */
.hero { background: linear-gradient(135deg, var(--peach), var(--butter) 70%); padding-block: 3rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero .lead { font-size: 1.25rem; }
.hero-logo { width: min(18rem, 70%); justify-self: center; }

/* sections */
.section { padding-block: 3.5rem; }
.tint { background: var(--tint); }
.tiles { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.tile { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--purple); border-radius: 6px; padding: 1.5rem; }
.tile p { margin: 0; }

.stats { display: grid; gap: 1.5rem; margin: 1.5rem 0 0; }
.stats div { display: flex; flex-direction: column-reverse; border-left: 5px solid var(--peach); padding-left: 1rem; }
.stats dd { margin: 0; font: 700 2.5rem/1.1 var(--head); color: var(--purple); }
.stats dt { max-width: 20rem; }

.row-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.row-head h2 { margin: 0; }
.arrows { display: none; gap: .5rem; }
.arrows button { font: 600 .9375rem var(--body); background: #fff; color: var(--purple); border: 2px solid var(--purple); border-radius: 6px; padding: .35rem .8rem; cursor: pointer; }
.arrows button:hover { background: var(--purple); color: #fff; }
.projects { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.project { flex: 0 0 min(21rem, 85%); scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; }
.meta { font-weight: 600; color: var(--purple); margin-bottom: .5rem; }

.reports { list-style: none; padding: 0; margin: 1rem 0 0; }
.reports li { padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.reports span { color: #5d5366; font-size: .9375rem; margin-left: .5rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; margin: 1.25rem 0 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .5rem .9rem; font-weight: 600; }

.contact { background: var(--butter); }
.contact-grid { display: grid; gap: 2rem; }
.details { font-weight: 600; }
form label { display: block; font-weight: 600; margin: 1rem 0 .25rem; }
form input, form select, form textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 6px; padding: .6rem .75rem; }
form .btn { margin-top: 1.25rem; }

.site-footer { background: var(--plum); color: #fff; padding-block: 2rem; }
.site-footer p { margin: 0 0 .25rem; }

@media (min-width: 48rem) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  .hero { padding-block: 4.5rem; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .arrows { display: flex; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .menu-btn { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; border: 0; gap: 1.5rem; }
}

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