:root {
  --paper: #F3EEE1;
  --forest: #1E3A2B;
  --leaf: #6FA35F;
  --leaf-ink: #3F6E33;
  --ember: #D9822B;
  --ember-ink: #9A5414;
  --ink: #1A1A1A;
  --muted: #5A5A52;
  --font-display: 'Changa', 'Cairo', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; letter-spacing: 0; }

.bidi {
  display: inline-block;
  unicode-bidi: isolate;
}

.rl-container {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

/* Fixed 66px Forest Woodblock Navbar */
.rl-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 66px;
  z-index: 80;
  background: var(--forest);
  color: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.rl-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.rl-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.rl-links a:hover { color: var(--ember); }

.rl-counter-pill {
  padding: 5px 12px;
  border: 1.5px solid rgba(243, 238, 225, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.14s, box-shadow 0.14s;
  white-space: nowrap;
}

.rl-btn:hover { transform: translate(-2px, -2px); }
.rl-btn-ember { background: var(--ember); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.rl-btn-forest { background: var(--forest); color: var(--paper); box-shadow: 5px 5px 0 var(--ember); }
.rl-btn-paper { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.rl-btn-sm { padding: 7px 14px; font-size: 12.5px; box-shadow: 3px 3px 0 var(--ink); }

/* 1. Interactive Click-to-Plant Linocut Hillside Hero */
.rl-hero {
  position: relative;
  min-height: 100svh;
  padding: 96px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}

.rl-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.rl-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(to top, rgba(16, 22, 17, 0.94) 0%, rgba(16, 22, 17, 0.68) 48%, rgba(16, 22, 17, 0.28) 100%);
  pointer-events: none;
}

.rl-saplings-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.rl-sapling {
  position: absolute;
  transform: translate(-50%, -90%);
  font-size: 30px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.45));
  animation: rlPop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

@keyframes rlPop {
  from { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  to { transform: translate(-50%, -90%) scale(1); opacity: 1; }
}

.rl-hero-bot {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
}

.rl-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.32;
  color: var(--paper);
  margin: 12px 0 16px;
}

.rl-h1 em,
.rl-h2 em {
  font-style: normal;
  color: var(--ember);
}

/* Floating Quick Pledge Card */
.rl-quick {
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--forest);
  cursor: default;
}

.rl-amt-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.rl-amt-btn {
  padding: 9px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
}

.rl-amt-btn.active {
  background: var(--forest);
  color: var(--paper);
}

/* Sections */
.rl-sec {
  padding: 92px 0;
  border-top: 2px solid var(--ink);
}

.rl-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--leaf-ink);
  margin-bottom: 14px;
}

.rl-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 14px;
}

/* 2. Impact Split + Zero-Gap 2x2 Bordered Matrix */
.rl-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.rl-counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--forest);
}

.rl-cnt-cell {
  padding: 26px;
  background: var(--paper);
  border-inline-end: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.rl-cnt-cell:nth-child(2n) { border-inline-end: 0; }
.rl-cnt-cell:nth-child(n+3) { border-bottom: 0; }

/* 3. Forest Band Projects */
.rl-forest-band {
  background: var(--forest);
  color: var(--paper);
  padding: 92px 0;
  border-top: 2px solid var(--ink);
}

.rl-proj-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.rl-pcard {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 24px;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.rl-pcard:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ember);
}

.rl-pbar {
  height: 12px;
  border: 2px solid var(--ink);
  background: #E2DAC7;
}

.rl-pbar i {
  display: block;
  height: 100%;
  background: var(--leaf);
}

/* 4. Watershed Impact Calculator */
.rl-give-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--forest);
}

/* Dark Ink Footer */
.rl-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 54px 0 38px;
}

.rl-giant-word {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 13vw, 11rem);
  font-weight: 800;
  text-align: center;
  color: var(--forest);
  line-height: 1;
  margin: 16px 0 24px;
}

.rl-showcase-rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 238, 225, 0.2);
}

@media (max-width: 720px) {
  .rl-links, .rl-counter-pill { display: none; }
  .rl-hero-bot,
  .rl-impact-grid,
  .rl-proj-3 { grid-template-columns: 1fr; }
}
