/* keepgoing.wfw.co.ke — wfw forest palette (see wfw static/css/tokens.css). */
:root {
  --accent: #0B7A4B;
  --deep: #04331F;
  --tint: #EEF6F1;
  --ink: #14171C;
  --body: #5B6270;
  --muted: #8A909C;
  --line: #E8E9ED;
  --soft: #F5F6F6;
  --bg: #FBFCFB;
  --card: #fff;
  --r: 14px;
  --r-xl: 28px;
  --pill: 999px;
  --shadow: 0 6px 24px rgba(16, 20, 28, .08);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  font-size: 14px; color: var(--body);
}
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb b { color: var(--ink); font-weight: 600; }

.hero {
  background: var(--tint);
  border-radius: var(--r-xl);
  padding: 56px 48px 52px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font: 800 clamp(44px, 8vw, 92px)/.95 var(--font-display);
  letter-spacing: -.04em;
  color: var(--deep);
  margin: 0 0 18px;
}
.hero h1 span { color: var(--accent); }
.hero p { max-width: 560px; margin: 0; color: var(--body); font-size: 17px; }
.hero .count {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  background: #fff; border-radius: var(--pill);
  padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--deep);
}
.hero .count i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 122, 75, .15);
}

/* ---- masonry wall ---- */
.wall { columns: 4 280px; column-gap: 18px; padding-bottom: 32px; }
.tile {
  break-inside: avoid;
  margin: 0 0 18px;
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--soft);
  box-shadow: 0 1px 2px rgba(16, 20, 28, .06);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile img { width: 100%; height: auto; }
.tile figcaption { padding: 12px 14px 14px; background: var(--card); font-size: 14px; color: var(--body); }
.tile figcaption small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.empty { text-align: center; color: var(--muted); padding: 80px 0; }

/* ---- footer ---- */
.foot {
  background: var(--deep); color: #CFE3D8;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 40px 0 44px; margin-top: 24px; font-size: 14px;
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot strong { color: #fff; font: 700 20px/1.2 var(--font-display); }
.foot a { color: #fff; }

/* ---- lightbox ---- */
.lb {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4, 18, 11, .92);
  display: none; align-items: center; justify-content: center;
  padding: 64px 72px 92px;
}
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb .cap {
  position: absolute; left: 0; right: 0; bottom: 22px;
  text-align: center; color: #E4EFE9; font-size: 14px; padding: 0 80px;
}
.lb button, .lb a.btn {
  position: absolute;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  font-size: 20px; text-decoration: none;
}
.lb button:hover, .lb a.btn:hover { background: rgba(255, 255, 255, .22); }
.lb .x { top: 14px; right: 14px; }
.lb .share { top: 14px; right: 70px; }
.lb .prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb .next { right: 14px; top: 50%; translate: 0 -50%; }
.toast {
  position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 60;
  background: var(--deep); color: #fff; border-radius: var(--pill);
  padding: 10px 18px; font-size: 14px; opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---- single post page ---- */
.single { display: grid; place-items: center; padding: 8px 0 40px; }
.single img { max-height: 80vh; width: auto; border-radius: var(--r); box-shadow: var(--shadow); }
.single .cap { margin-top: 16px; color: var(--body); text-align: center; max-width: 640px; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

/* ---- buttons ---- */
.btn-p, .btn-g {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--pill); padding: 10px 18px;
  font: 600 14px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-p { background: var(--accent); color: #fff; }
.btn-p:hover { background: var(--deep); }
.btn-g { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-g:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 22px 32px; border-radius: 22px; }
  .hero p { font-size: 16px; }
  .wall { columns: 2 150px; column-gap: 10px; }
  .tile { margin-bottom: 10px; border-radius: 10px; }
  .tile figcaption { padding: 8px 10px 10px; font-size: 13px; }
  .lb { padding: 64px 10px 92px; }
  .lb .prev, .lb .next { top: auto; bottom: 18px; translate: none; }
  .lb .cap { padding: 0 70px; bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .toast { transition: none; }
}
