/* SouthPing — southping.org
 *
 * The palette is the mission one-pager's, token for token. What is NOT carried
 * over is the A4 page frame: there are no `mm` dimensions anywhere in this
 * file. The page is one column at phone width and two (or four) at desktop,
 * switching at 48rem. No webfonts: a system stack only, so the page makes no
 * third-party request at all.
 */

:root {
  --navy: #232e3d;
  --navy-deep: #18202c;
  --yellow: #EEC000;
  --yellow-dark: #c7a000;
  --cyan: #3aa7bf;
  --coral: #e85d4a;
  --green: #3f9d6f;
  --ink: #1f2733;
  --muted: #5a6675;
  --paper: #f4f6f8;
  --rule: #e3e7ec;

  --gutter: 1rem;          /* 16px at phone width */
  --measure: 62rem;        /* the content column's own maximum */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  /* No horizontal scroll: nothing is allowed to be wider than the viewport. */
  overflow-x: hidden;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; }
.shot { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ---------- header ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter);
}

.wordmark {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
}

.lang-switch {
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--navy-deep);
  background: var(--yellow);
  border-radius: 0.25rem;
  padding: 0.3rem 0.7rem;
}

.lang-switch:hover, .lang-switch:focus { background: var(--yellow-dark); }

/* ---------- shared section frame ---------- */

main > section, main > footer {
  padding: 2rem var(--gutter);
}

main > section > h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* ---------- hero ---------- */

.hero {
  background: var(--navy);
  color: #fff;
}

.hero .kicker {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0.2rem;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.hero .descriptor {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.hero .lede {
  color: #cfd6df;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.hero .shot {
  margin-top: 1.5rem;
  border-radius: 0.5rem;
  border: 0.25rem solid var(--yellow);
  background: var(--navy-deep);
}

/* ---------- who ---------- */

.who { background: var(--paper); }

.who-item {
  background: #fff;
  border-radius: 0.375rem;
  border-top: 0.25rem solid var(--yellow);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 1rem;
}

.who-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.who-item p { font-size: 0.9375rem; color: var(--muted); }

/* ---------- device ---------- */

.device {
  background: var(--navy);
  color: #fff;
}

.device h2 { color: #fff; }

.device ul { list-style: none; }

.device li {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #cfd6df;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.device li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.125rem;
  background: var(--yellow);
}

.device .shot { margin-top: 1.5rem; border-radius: 0.5rem; }

/* ---------- probes ---------- */

.probes { background: var(--navy-deep); color: #fff; }

.probes h2 { color: var(--yellow); font-size: 1.25rem; letter-spacing: 0.04em; }

.probe {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0.375rem;
  padding: 0.85rem 1rem;
}

.probe b { display: block; color: #fff; font-size: 1rem; margin-bottom: 0.2rem; }
.probe span { font-size: 0.9375rem; color: #b6c0cd; line-height: 1.35; }

/* ---------- numbers strip ---------- */

.num-card {
  background: var(--paper);
  border-radius: 0.375rem;
  padding: 0.9rem 0.75rem;
  text-align: center;
}

.num-card .num {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  overflow-wrap: break-word;
}

.num-card span:last-child {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.25;
  margin-top: 0.3rem;
}

.num-card:last-child { background: var(--yellow); }
.num-card:last-child .num { color: var(--navy-deep); }
.num-card:last-child span:last-child { color: #5d4d00; }

/* ---------- goals ---------- */

.goals { background: var(--paper); }

.goals > .lede {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.goal {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 0.375rem solid var(--yellow);
  border-radius: 0.375rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.goal .tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  /* navy on each accent, not white: white on --yellow-dark is about 2.3:1 at
     this size and weight, under WCAG AA. Navy clears 4.5:1 on all four. */
  color: var(--navy-deep);
  background: var(--yellow-dark);
  border-radius: 0.2rem;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.6rem;
}

.goal h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.goal p { font-size: 0.9375rem; color: #3c4654; margin-bottom: 0.9rem; }

.goal figure {
  margin-top: auto;
  border: 1px solid var(--rule);
  border-radius: 0.3rem;
  overflow: hidden;
}

.goal figure svg { display: block; width: 100%; height: auto; }

/* one accent per goal, in the one-pager's order */
.goal:nth-of-type(2) { border-top-color: var(--cyan); }
.goal:nth-of-type(2) .tag { background: var(--cyan); }
.goal:nth-of-type(3) { border-top-color: var(--coral); }
.goal:nth-of-type(3) .tag { background: var(--coral); }
.goal:nth-of-type(4) { border-top-color: var(--green); }
.goal:nth-of-type(4) .tag { background: var(--green); }

/* ---------- footer ---------- */

footer {
  background: var(--navy-deep);
  color: #9fb0c3;
  font-size: 0.875rem;
}

footer p { margin-bottom: 0.75rem; }
footer p:last-child { margin-bottom: 0; }

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer .links a { color: var(--yellow); font-weight: 700; }
footer .contact a { color: #fff; }

/* ---------- grids: one column below 48rem, several above ---------- */

.who-item + .who-item, .probe + .probe, .num-card + .num-card,
.goal + .goal { margin-top: 0.75rem; }

@media (min-width: 48rem) {
  :root { --gutter: 2.5rem; }

  .hero h1 { font-size: 2.5rem; }
  .hero .lede { font-size: 1.125rem; max-width: 42rem; }

  .hero, .device {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  .hero .kicker, .hero h1, .hero .descriptor, .hero .lede { grid-column: 1; }
  .hero .kicker { justify-self: start; }
  .hero .shot { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  .device h2, .device ul { grid-column: 1; }
  .device .shot { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }

  .who-item + .who-item, .probe + .probe, .num-card + .num-card,
  .goal + .goal { margin-top: 0; }

  .who, .probes, .nums, .goals {
    display: grid;
    gap: 1rem;
  }
  .who { grid-template-columns: repeat(3, 1fr); }
  .probes { grid-template-columns: repeat(3, 1fr); }
  .nums { grid-template-columns: repeat(5, 1fr); }
  .goals { grid-template-columns: repeat(2, 1fr); }

  .who > h2, .probes > h2, .goals > h2, .goals > .lede {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}

@media (min-width: 75rem) {
  main > section, main > footer {
    padding-left: calc((100% - var(--measure)) / 2);
    padding-right: calc((100% - var(--measure)) / 2);
  }
}
