/* invisionafrica.org + web.invisionafrica.org — one small stylesheet, no external fonts or scripts (CSP: self only). */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1d2321;
  --muted: #5b6460;
  --line: #e2ddd2;
  --accent: #0e6b4f;
  --accent-ink: #ffffff;
  --warn: #a5381c;
  --ok: #0e6b4f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --surface: #1a201d;
    --text: #e8ece9;
    --muted: #a2aca7;
    --line: #2c3531;
    --accent: #4fc39a;
    --accent-ink: #0b1210;
    --warn: #f08a6c;
    --ok: #4fc39a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
header.top, footer.bottom, main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}
.brand { font-weight: 700; letter-spacing: .01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--muted); font-weight: 500; }
.langs { display: flex; gap: .75rem; font-size: .95rem; }
.langs [aria-current="true"] { color: var(--text); font-weight: 600; text-decoration: none; }
main { padding-top: 1.5rem; padding-bottom: 3rem; }
main.narrow { max-width: 32rem; padding-top: 4rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 .5rem; }
p.lead { font-size: 1.15rem; color: var(--text); margin: 0 0 1.75rem; }
.small, p.small { font-size: .9rem; color: var(--muted); }
ul { padding-left: 1.2rem; }
li { margin: .35rem 0; }
code { font-size: .92em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3em; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
form label { display: block; font-weight: 600; margin: 0 0 .35rem; }
form .field { margin: 0 0 1rem; }
input[type="email"], select {
  width: 100%;
  font: inherit;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}
input[type="email"]:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; flex: none; }
button {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 8px;
  padding: .7rem 1.4rem;
  cursor: pointer;
}
button[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 1rem 0 0; font-weight: 600; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--warn); }
.msg:empty { display: none; }
.link-card { display: block; text-decoration: none; color: inherit; }
.link-card strong { color: var(--accent); }
footer.bottom { padding-bottom: 2rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
