/* World Embrace components: only what the home page uses, each with its states.
   Measured from the live site's button, menu, band and footer rules; decided where noted. */

/* Button
   Use when: a single clear action (LEARN MORE, DONATE). Not when: a link inside running text.
   Measured: teal fill, 2 px teal border, 10 px corners, white Avenir Light 16 thickened to bold, 0.4 s color fade.
   Hover (measured): turns white with teal words. The donate variant turns orange instead. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 var(--space-5);
  border: 2px solid var(--color-teal);
  border-radius: var(--radius-button);
  background: var(--color-teal);
  color: var(--color-paper);
  font-family: var(--font-light);
  font-size: var(--size-body);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.button:hover { background: var(--color-paper); color: var(--color-teal); }
.button:active { background: var(--color-teal-light); border-color: var(--color-teal-light); color: var(--color-paper); }
.button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.button[disabled], .button[aria-disabled="true"] { background: var(--color-disabled); border-color: var(--color-disabled); color: var(--color-paper); cursor: default; }
.button--donate:hover { background: var(--color-orange); border-color: var(--color-orange); color: var(--color-paper); }
.button--small { min-height: 34px; }  /* header and footer DONATE, 107 by 34 */
.button--large { min-height: 40px; }  /* LEARN MORE and band DONATE, 40 high */
@media (max-width: 1000px) {
  .button { min-height: var(--target-min); }
}

/* Site header
   Use when: the top of every page. Not when: inside a band.
   Measured: white, 115 high; the color logo 161 by 78 at the left of the 980 column; the menu in Avenir Heavy 20 gray capitals,
   centered on the same line as a small DONATE button. ABOUT US opens a short list on hover and keyboard focus.
   Decided for phones: the logo and a menu button; the menu opens below as a list with 44 px rows. */
.site-header { background: var(--color-paper); position: relative; z-index: 5; }
.site-header__inner { position: relative; height: 115px; display: flex; align-items: center; }
.site-header__logo { position: absolute; left: 26px; top: 18px; width: 161px; height: 78px; }
.site-header__logo img { width: 161px; height: 78px; }
.site-nav { position: static; }
.site-nav__list { position: absolute; left: 250px; top: 57px; display: flex; gap: 33px; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: block;
  font-family: var(--font-heavy);
  font-size: var(--size-nav);
  line-height: 50px;
  color: var(--color-gray);
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--color-teal); }
.site-nav__sub {
  position: absolute;
  left: 50%;
  top: 100%;
  min-width: 220px;
  transform: translateX(-50%);
  background: var(--color-paper);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  display: none;
}
.site-nav__item:hover .site-nav__sub,
.site-nav__item:focus-within .site-nav__sub { display: block; }
.site-nav__sub a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heavy);
  font-size: var(--size-body);
  line-height: 1.4;
  color: var(--color-gray);
  text-align: center;
}
.site-nav__sub a:hover { color: var(--color-teal); }
.site-header__donate { position: absolute; left: 832px; top: 65px; width: 107px; padding: 0; }
.menu-toggle { display: none; }

@media (max-width: 1000px) {
  .site-header__inner { height: 96px; }
  .site-header__logo { left: var(--gutter); top: 14px; width: 140px; height: 68px; }
  .site-header__logo img { width: 140px; height: 68px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: var(--space-2);
    position: absolute; right: var(--gutter); top: 26px;
    min-height: var(--target-min); padding: 0 var(--space-3);
    border: 2px solid var(--color-teal); border-radius: var(--radius-button);
    background: var(--color-paper); color: var(--color-gray);
    font-family: var(--font-heavy); font-size: var(--size-body); cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: var(--color-teal); position: relative; content: "";
  }
  .menu-toggle__bars::before { position: absolute; top: -6px; }
  .menu-toggle__bars::after { position: absolute; top: 6px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 96px; padding: var(--space-2) var(--gutter) var(--space-5); background: var(--color-paper); box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); flex-direction: column; align-items: stretch; }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav__list { position: static; flex-direction: column; gap: 0; }
  .site-nav__link { line-height: var(--target-min); font-size: var(--size-intro); }
  .site-nav__sub { position: static; transform: none; display: block; box-shadow: none; min-width: 0; }
  .site-nav__sub a { text-align: left; padding: 0 0 0 var(--space-4); line-height: var(--target-min); font-size: var(--size-body); }
  .site-header__donate { position: static; width: auto; margin-top: var(--space-3); align-self: flex-start; }
}

/* Video hero
   Use when: the opening picture of the home page, a silent looping film of the park. Not when: the film carries words or sound.
   Measured: full width, 585 high, the film filling the box, no words over it.
   Added (accessibility): a visible pause button, because the film plays by itself; it stays still for visitors who ask for less motion. */
.video-hero { position: relative; height: 585px; overflow: hidden; background: var(--color-ink); }
.video-hero video, .video-hero img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.video-hero__toggle {
  position: absolute; right: var(--space-4); bottom: var(--space-4);
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--target-min); height: var(--target-min);
  border: 2px solid var(--color-paper); border-radius: var(--radius-round);
  background: rgba(0, 0, 0, 0.45); color: var(--color-paper);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease);
}
.video-hero__toggle:hover { background: rgba(0, 0, 0, 0.7); }
.video-hero__toggle:focus-visible { outline: 2px solid var(--color-paper); outline-offset: 3px; }
.video-hero__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.video-hero__toggle .icon-play { display: none; }
.video-hero.is-paused .icon-play { display: block; }
.video-hero.is-paused .icon-pause { display: none; }
@media (max-width: 1000px) {
  .video-hero { height: 260px; }
}

/* Intro strip
   Use when: the one statement of who the organization is, right under the hero. Not when: a second time on the same page.
   Measured: a full-width teal strip 162 high; the headline in Avenir Heavy 48 white capitals, widely tracked and centered;
   under it a short paragraph in Avenir Light 18, near white, tracked 0.9. */
.intro-strip { background: var(--color-teal); color: var(--color-paper); }
.intro-strip__inner { height: 162px; padding-top: 9px; }
.intro-strip__title { text-align: center; color: var(--color-paper); }
.intro-strip__text { width: 892px; margin: -1px 0 0 45px; color: var(--color-paper-soft); }
@media (max-width: 1000px) {
  .intro-strip__inner { height: auto; padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .intro-strip__title { font-size: var(--size-display-phone); letter-spacing: 0.12em; }
  .intro-strip__text { width: auto; margin: var(--space-3) 0 0; }
}

/* Band label
   Use when: naming a story band with a short question (WHO ARE WE?). Not when: a sentence or more.
   Measured: a solid teal box 444 by 62 to 63, square corners, the words in Avenir Heavy 34 white capitals tracked 3.4, centered.
   The callout variant carries the two-line lead (Giving youth a place to / PLAY, LEARN AND GROW) in Avenir Heavy 22, left aligned. */
.band-label {
  display: flex; align-items: center; justify-content: center;
  width: 444px; height: 62px; margin: 0;
  background: var(--color-teal); color: var(--color-paper);
  text-align: center;
}
.band-label--callout {
  display: block; width: 414px; height: 82px;
  padding: 9px 0 0 24px; text-align: left;
}
@media (max-width: 1000px) {
  .band-label { width: 100%; height: auto; min-height: 56px; padding: var(--space-2) var(--space-4); }
  .band-label.t-title { font-size: var(--size-title-phone); }
  .band-label--callout { width: 100%; height: auto; padding: var(--space-3) var(--space-4); }
}

/* Stat circle
   Use when: one striking figure laid over a photograph (50% of Gulu is under the age of 15.). Not when: several figures in a row.
   Measured: an orange disc 169 across, near-white Avenir Heavy 18 tracked 0.9, three centered lines. */
.stat-circle {
  display: flex; align-items: center; justify-content: center;
  width: 169px; height: 169px; padding-top: 2px;
  border-radius: var(--radius-round);
  background: var(--color-orange); color: var(--color-paper-soft);
  font-family: var(--font-heavy); font-weight: var(--weight-regular);
  font-size: var(--size-intro); line-height: var(--leading-stat); letter-spacing: var(--tracking-body);
  text-align: center;
}
@media (max-width: 1000px) {
  .stat-circle { width: 130px; height: 130px; font-size: var(--size-body); line-height: 20px; }
}

/* Site footer
   Use when: the foot of every page. Not when: anywhere else.
   Measured: a 14 px yellow rule along the top with a soft shadow; two link columns headed in Avenir Heavy 24 teal lowercase
   (connect, get to know us) over black Avenir Light 17 links thickened to bold; a small DONATE button; two of the logo's
   playful shapes, one top right and one bottom left; the copyright in light gray 14. 268 high at the desktop width.
   The live site sets the second link of each column 13 px under the first, so they overlap; that is kept as live and offered as a fix. */
.site-footer { position: relative; overflow: hidden; background: var(--color-paper); }
.site-footer__rule { position: relative; z-index: 2; height: 14px; background: var(--color-yellow); box-shadow: var(--shadow-footer); }
.site-footer__inner { position: relative; height: 254px; }
.site-footer__col { position: absolute; top: 14px; }
.site-footer__col--connect { left: 53px; }
.site-footer__col--about { left: 248px; }
.site-footer__head {
  font-family: var(--font-heavy); font-size: var(--size-footer-head); font-weight: var(--weight-bold);
  line-height: 29px; color: var(--color-teal); white-space: nowrap;
}
.site-footer__links { position: relative; height: 70px; margin-top: 3px; }
.site-footer__links li { position: absolute; left: 0; white-space: nowrap; }
.site-footer__links li:nth-child(1) { top: 0; }
.site-footer__links li:nth-child(2) { top: 13px; }
.site-footer__links li:nth-child(3) { top: 39px; }
.site-footer__col--connect .site-footer__links li:nth-child(3) { left: -2px; }
.site-footer__link {
  font-family: var(--font-light); font-size: var(--size-link); font-weight: var(--weight-bold);
  line-height: 20px; color: var(--color-ink);
  transition: color var(--duration) var(--ease);
}
.site-footer__link:hover { color: var(--color-teal); }
.site-footer__donate { position: absolute; left: 655px; top: 74px; width: 107px; padding: 0; }
.site-footer__shape-right { position: absolute; left: 859px; top: -6px; width: 128px; height: 120px; }
.site-footer__shape-left { position: absolute; left: -63px; top: 132px; width: 298px; height: 101px; }
.site-footer__copy { position: absolute; left: 291px; top: 196px; white-space: nowrap; }

@media (max-width: 1000px) {
  .site-footer__inner { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); padding-top: var(--space-6); padding-bottom: 130px; }
  .site-footer__col, .site-footer__donate, .site-footer__copy, .site-footer__shape-right, .site-footer__shape-left { position: static; }
  .site-footer__head { font-size: var(--size-lead); }
  .site-footer__links { height: auto; margin-top: var(--space-1); }
  .site-footer__links li { position: static; }
  .site-footer__link { display: inline-block; line-height: var(--target-min); }
  .site-footer__donate { grid-column: 1 / -1; justify-self: start; width: 140px; }
  .site-footer__copy { grid-column: 1 / -1; white-space: normal; line-height: 20px; }
  .site-footer__shape-right { position: absolute; right: var(--gutter); bottom: 8px; top: auto; left: auto; width: 86px; height: auto; }
  .site-footer__shape-left { position: absolute; left: -40px; bottom: 0; top: auto; width: 220px; height: auto; }
  .site-footer__col--connect { padding-right: 0; }
}

/* Inner pages (Why Unity?, About Us, Gulu Community Park, Donate, Volunteer)
   Use when: a page below the home. Built from the live site's inner pages. */
.page { padding-bottom: var(--space-8); }
.page-banner {
  display: flex; align-items: center; justify-content: center;
  min-height: 85px; margin: 0; padding: var(--space-2) var(--gutter);
  background: var(--color-teal); color: var(--color-paper);
  font-family: var(--font-heavy); font-weight: var(--weight-regular);
  font-size: 49px; line-height: 1.2; letter-spacing: 0.1em; text-align: center;
}
.page-banner--red { background: var(--color-red); }
.page-banner--orange { background: var(--color-orange); min-height: 72px; font-size: 42px; }
.page-banner--slim { min-height: 67px; font-size: 30px; letter-spacing: 0.2em; }
.page-heading { font-family: var(--font-heavy); font-size: 25px; line-height: 1.3; color: var(--color-deep-red); text-align: center; }
.page-heading--blue { font-family: var(--font-light); color: var(--color-blue); }
.page-heading--wide { font-size: var(--size-title-sm); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.prose { font-family: var(--font-light); font-size: var(--size-body); line-height: var(--leading-body); color: var(--color-gray); }
.prose--large { font-size: var(--size-intro); line-height: 1.4; }
.prose p + p { margin-top: var(--space-5); }
.prose-center { text-align: center; }
.address { display: grid; grid-template-columns: 180px 1fr; gap: var(--space-5) var(--space-4); }
.address__place { font-family: var(--font-light); font-size: 25px; line-height: 1.2; color: var(--color-teal); }
.address__lines { font-family: var(--font-light); font-size: var(--size-body); line-height: 25px; color: var(--color-gray-mid); text-transform: none; }
.equation-box { padding: var(--space-5); background: var(--color-orange); color: var(--color-paper); font-family: var(--font-light); font-size: 22px; line-height: 1.4; text-align: center; }
.equation-box p + p { margin-top: var(--space-5); }
.button--orange { background: var(--color-orange); border-color: var(--color-orange); }
.button--orange:hover { color: var(--color-orange); }
.button--outline { background: var(--color-paper); color: var(--color-teal); min-width: 303px; border-radius: 20px; }
.button--outline:hover { background: var(--color-teal); color: var(--color-paper); }
@media (max-width: 1000px) {
  .page-banner { font-size: 30px; min-height: 64px; }
  .page-banner--slim { font-size: 22px; letter-spacing: 0.12em; }
  .address { grid-template-columns: 1fr; gap: var(--space-2); }
  .address__lines { margin-bottom: var(--space-4); }
  .button--outline { min-width: 0; width: 100%; }
}

/* People: the About Us team and board grids */
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.people__lead { background: var(--color-teal); color: var(--color-paper); }
.people__lead img { width: 100%; aspect-ratio: 255 / 330; object-fit: cover; }
.people__lead p { padding: var(--space-3); font-family: var(--font-light); font-size: var(--size-body); line-height: var(--leading-body); }
.person img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; }
.person--tall img { aspect-ratio: 1 / 1; object-position: 50% 20%; }
.person__name { margin-top: var(--space-2); font-family: var(--font-heavy); font-size: var(--size-body); line-height: 1.3; color: var(--color-deep-red); }
.person__role { font-family: var(--font-light); font-size: var(--size-small); line-height: 1.4; color: var(--color-gray); }
.person details { margin-top: var(--space-2); font-family: var(--font-light); font-size: var(--size-small); line-height: 1.5; color: var(--color-gray); }
.person summary { cursor: pointer; color: var(--color-teal); font-family: var(--font-heavy); min-height: 24px; }
.person details p { margin-top: var(--space-2); white-space: pre-line; }
.people-rule { height: 9px; margin: var(--space-6) auto; max-width: 860px; border-radius: 5px; background: var(--color-orange); border: 0; }
@media (max-width: 1000px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
  .people__lead { grid-column: 1 / -1; display: grid; grid-template-columns: 120px 1fr; align-items: center; }
}

/* Feature: one part of Gulu Community Park, a wide picture with its name, words and a strip of renderings */
.feature { scroll-margin-top: var(--space-4); }
.feature__banner { position: relative; display: flex; align-items: center; justify-content: center; height: 416px; overflow: hidden; }
.feature__banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__title {
  position: relative; margin: 0; padding: 0 var(--gutter);
  font-family: var(--font-heavy); font-weight: var(--weight-regular); font-size: 80px; line-height: 1.1;
  letter-spacing: 0.3em; text-align: center; text-transform: uppercase; color: var(--color-paper);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.feature__title span { display: block; }
.feature__title .t-accent { color: var(--color-teal); }
.feature__body { padding-top: var(--space-5); }
.feature__body .button { margin: var(--space-5) auto 0; display: flex; width: 242px; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--space-5) 0; }
.strip img { flex: 0 0 468px; width: 468px; height: 263px; object-fit: cover; scroll-snap-align: start; }
.strip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 1000px) {
  .feature__banner { height: 220px; }
  .feature__title { font-size: 38px; letter-spacing: 0.18em; }
  .strip img { flex-basis: 82%; width: 82%; height: auto; aspect-ratio: 16 / 9; }
}
