/* ==========================================================================
   SELFSudan — Sudan Education for Liberty Foundation
   Modernised rebuild (2026) of the c. 2010 RapidWeaver site.
   Original palette and fonts preserved: olive & rust, Trebuchet + Georgia.
   ========================================================================== */

:root {
  --olive:       #9f9a76;   /* original page background          */
  --olive-deep:  #605a2f;   /* original nav border / footer bar  */
  --cream:       #e4debf;   /* original content boxes            */
  --paper:       #f6f3e6;   /* lightened cream for main surface  */
  --orange:      #ef9936;   /* original section title chips      */
  --rust:        #ae491b;   /* original link colour              */
  --rust-deep:   #611f0d;   /* original heading colour           */
  --ember:       #d12f00;   /* original emphasis red             */
  --ink:         #474849;   /* original body text                */
  --line:        #c0bb97;   /* original border tone              */
  --heading: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Sans", Arial, sans-serif;
  --body: Georgia, Palatino, "Palatino Linotype", Times, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 100%/1.65 var(--body);
  color: var(--ink);
  background: var(--olive);
}

img { max-width: 100%; height: auto; }

h1, h2, h3, nav, footer { font-family: var(--heading); }

a { color: var(--rust); }
a:hover { color: var(--ember); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 50;
  background: var(--rust-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* --------------------------------------------------------------------------
   Header bar
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--olive-deep);
  color: #fff;
}

.site-header .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.7rem clamp(1rem, 3.5vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  font-weight: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem; }

.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.98rem;
}

.site-nav a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.site-nav a[aria-current="page"] { background: var(--rust); }

/* --------------------------------------------------------------------------
   Hero — the surviving 900x210 feature photo, widened into a banner
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--rust-deep);
  color: #fff;
}

.hero img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg,
    rgba(97, 31, 13, 0.88) 0%,
    rgba(97, 31, 13, 0.55) 55%,
    rgba(97, 31, 13, 0.15) 100%);
}

.hero .overlay .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 2rem);
  width: 100%;
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.15;
}

.hero p {
  margin: 0 0 1.2rem;
  max-width: 34rem;
  font-size: 1.08rem;
}

.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  font-family: var(--heading);
  font-weight: bold;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary { background: var(--orange); color: var(--rust-deep); }
.btn-primary:hover { background: #fff; color: var(--rust-deep); }

.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* --------------------------------------------------------------------------
   Main surface & sections
   -------------------------------------------------------------------------- */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 2rem) 2rem;
}

main::before {
  content: "";
  display: block;
  height: 2.5rem;
  background: var(--paper);
  border-radius: 8px 8px 0 0;
  margin: 2rem 0 0;
}

.surface {
  background: var(--paper);
  padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1.5rem) 2.5rem;
  border-radius: 0 0 8px 8px;
  margin: 0 0 2rem;
}

.section-title {
  display: inline-block;
  background: var(--orange);
  color: var(--rust-deep);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  margin: 2.2rem 0 0.9rem;
}

.mission { max-width: 46rem; }

.mission strong { color: var(--rust-deep); }

/* objectives list — replaces the original cream box bullets */
.objectives { max-width: 46rem; padding-left: 0; }

.objectives li {
  list-style: none;
  position: relative;
  padding: 0.3rem 0 0.3rem 1.3rem;
  margin: 0.2rem 0;
  border-bottom: 1px dotted var(--line);
}

.objectives li:last-child { border-bottom: 0; }

.objectives li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.85em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--rust);
}

/* --------------------------------------------------------------------------
   Video — modern facade over the original 2010 Vimeo embed
   -------------------------------------------------------------------------- */

.video-shell {
  position: relative;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 0.6rem 0 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(239, 153, 54, 0.35), transparent 60%),
    linear-gradient(135deg, var(--rust-deep), var(--olive-deep));
  box-shadow: 0 10px 30px rgba(97, 31, 13, 0.35);
}

.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--heading);
}

.video-facade:hover .play-ring { transform: scale(1.08); background: var(--orange); }

.play-ring {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}

.video-facade .caption { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.video-facade .caption small { display: block; opacity: 0.85; }

/* --------------------------------------------------------------------------
   Fact cards — the three education statistics, as big numbers
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 760px;
}

.stat {
  background: var(--cream);
  border-top: 4px solid var(--ember);
  border-radius: 0 0 8px 8px;
  padding: 1.1rem 1.2rem 1.2rem;
}

.stat .number {
  font-family: var(--heading);
  font-size: 2.3rem;
  font-weight: bold;
  color: var(--ember);
  line-height: 1.1;
}

.stat p { margin: 0.35rem 0 0; }

/* --------------------------------------------------------------------------
   Subscribe — trimmed MailChimp form (no jQuery, HTTPS)
   -------------------------------------------------------------------------- */

.subscribe-box {
  background: var(--cream);
  border-radius: 8px;
  padding: 1.2rem 1.4rem 1.4rem;
  max-width: 560px;
}

.subscribe-box form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.subscribe-box label { font-weight: bold; font-family: var(--heading); }

.subscribe-box input[type="email"] {
  flex: 1 1 220px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--olive-deep);
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

.subscribe-box button {
  padding: 0.55rem 1.3rem;
  border: 0;
  border-radius: 4px;
  background: var(--rust);
  color: #fff;
  font: bold 1rem var(--heading);
  cursor: pointer;
}

.subscribe-box button:hover { background: var(--ember); }

/* --------------------------------------------------------------------------
   Donate note — the original donate page was not captured in the archive
   -------------------------------------------------------------------------- */

.donate-note {
  border: 2px dashed var(--rust);
  border-radius: 8px;
  padding: 1rem 1.4rem;
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--olive-deep);
  color: var(--cream);
}

.site-footer .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.6rem clamp(1rem, 3.5vw, 2rem) 2rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .site-footer .inner { grid-template-columns: 2fr 1fr; align-items: start; }
}

.site-footer a { color: #fff; }

.site-footer .social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.site-footer .social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-footer .social a:hover { color: var(--orange); }

.site-footer .archive-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--line);
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.9rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .site-nav, .skip-link, .video-shell { display: none; }
  body { background: #fff; }
  .surface, main::before { background: #fff; }
}
