/* Promise of Africa holding page. Colours are the brand book palette. */
:root {
  --orange: #F47C0B;
  --red: #D62D2D;
  --gold: #F5B400;
  --black: #111111;
  --cream: #F8F5EF;
  --muted: #57504A;
  color-scheme: light;
}

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

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--black);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Four-colour brand stripe across the top. */
body::before {
  content: "";
  flex: none;
  height: 8px;
  background: linear-gradient(90deg,
    var(--black) 0 25%,
    var(--orange) 25% 50%,
    var(--red) 50% 75%,
    var(--gold) 75% 100%);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 51px 16px 40px;
}

/* Master artwork: scaled proportionally only, never cropped, filtered or recoloured. */
.logo {
  display: block;
  width: min(336px, 78vw);
  height: auto;
}

/* Short landscape screens (laptops once the browser toolbars take their share, phones held
   sideways): shrink the logo with the viewport height so the notice and countdown stay on the
   first screen; the contact line and footer may need a scroll. 440px is the height from the top
   of the page to the bottom of the countdown, minus the logo, plus a little breathing room;
   0.7327 is the logo's width / height. Only the width is set, so the artwork keeps its exact
   proportions. */
@media (orientation: landscape) {
  .logo {
    width: clamp(160px, (100svh - 440px) * 0.7327, min(336px, 78vw));
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding-top: 24px;
  }
}

h1 {
  max-width: 11em;
  margin: 26px 0 0;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  max-width: 33.5rem;
  margin: 16px 0 0;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* Launch countdown: one tile per unit, in the brand stripe's order (black, orange, red, gold).
   Text colour on each tile is whichever of white/black passes 4.5:1 contrast. */
.countdown {
  width: 100%;
  max-width: 26rem;
  margin: 28px 0 0;
}

.countdown-label {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--muted);
  text-wrap: balance;
}

.countdown-label time {
  color: var(--black);
  font-weight: 700;
}

.nowrap {
  white-space: nowrap;
}

.countdown-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 4px 12px;
  border-radius: 12px;
}

.countdown-value {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-name {
  margin-top: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown-unit--days {
  background: var(--black);
  color: #fff;
}

.countdown-unit--hours {
  background: var(--orange);
  color: var(--black);
}

.countdown-unit--minutes {
  background: var(--red);
  color: #fff;
}

.countdown-unit--seconds {
  background: var(--gold);
  color: var(--black);
}

.countdown-done {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.contact {
  margin: 24px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.contact a:hover {
  color: var(--orange);
}

.contact a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer {
  padding: 0 16px 25px;
  text-align: center;
  font-size: 0.8125rem;
}

.journey {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

/* The arrow trails each step, so a row that wraps on a phone ends with an arrow rather than
   the next row starting with one. */
.journey li:not(:last-child)::after {
  content: "\2192";
  content: "\2192" / "";
  margin: 0 0.5em;
  color: var(--orange);
  font-weight: 400;
}

.copyright {
  margin: 4px 0 0;
  color: var(--muted);
}
