/* ============================================
   HOTM — Headquarters Of The Movement
   Earthy, editorial redesign
   ============================================ */

:root {
  --sand:        #f6ecdc;
  --sand-deep:   #e9d9bc;
  --paper:       #fffbf3;
  --umber:       #261d13;
  --umber-soft:  #4a3f2e;
  --rust:        #b8451f;
  --rust-deep:   #8f3517;
  --olive:       #4d6a3a;
  --olive-deep:  #384e2a;
  --ochre:       #bd8b23;
  --teal:        #1f5c58;
  --teal-deep:   #163f3c;
  --line:        rgba(38, 29, 19, 0.14);

  --serif: Arial, Helvetica, "Segoe UI", sans-serif;
  --sans: Arial, Helvetica, "Segoe UI", sans-serif;

  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle, rgba(36, 26, 16, 0.06) 1.2px, transparent 1.2px) 0 0/18px 18px,
    var(--sand);
  color: var(--umber);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1.1em; }

.lede {
  font-size: 1.2rem;
  color: var(--umber-soft);
  max-width: 46em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  box-shadow: 0 3px 10px rgba(38, 29, 19, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(38, 29, 19, 0.18); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(38, 29, 19, 0.14); }
.btn-primary { background: var(--rust); color: var(--paper); }
.btn-primary:hover { background: var(--rust-deep); }
.btn-outline { background: transparent; color: var(--umber); border-color: var(--umber); box-shadow: none; }
.btn-outline:hover { background: var(--umber); color: var(--sand); box-shadow: 0 6px 16px rgba(38, 29, 19, 0.16); }
.btn-light { background: var(--paper); color: var(--umber); }
.btn-light:hover { background: #fff; }
.btn-outline-light {
  background: transparent;
  color: #f3e6d2;
  border-color: rgba(243, 230, 210, 0.55);
  box-shadow: none;
}
.btn-outline-light:hover { background: rgba(243, 230, 210, 0.1); color: #fff; border-color: #fff; box-shadow: none; }

/* ---------- Notice bar ---------- */
.notice-bar {
  background: var(--umber);
  color: var(--sand-deep);
  text-align: center;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--rust), var(--ochre), var(--teal), var(--olive)) 1;
}
.notice-bar a { color: var(--ochre); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 236, 221, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  max-width: 900px;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: block;
  text-decoration: none;
}
.logo img {
  display: block;
  height: 38px;
  width: auto;
}

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--umber-soft);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a:not(.btn):hover { color: var(--rust); }
nav.main-nav a.active:not(.btn) { color: var(--rust); }
nav.main-nav a.active:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--rust);
  border-radius: 2px;
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--umber); border-radius: 2px; }

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 24px;
    border-bottom: 1px solid var(--line);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 14px 0 0; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px; right: -140px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--ochre), transparent 72%);
  opacity: 0.32;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px; left: -140px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, var(--teal), transparent 72%);
  opacity: 0.16;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.5em 0 0; }
.hero-tags .tag { margin-bottom: 0; }

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--ochre), transparent 72%);
  opacity: 0.28;
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt {
  background:
    radial-gradient(circle, rgba(36, 26, 16, 0.07) 1.2px, transparent 1.2px) 0 0/18px 18px,
    var(--sand-deep);
}
section.dark {
  background-color: var(--umber);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 16px);
  color: var(--sand);
}
section.dark .eyebrow { color: var(--ochre); }
section.dark h2, section.dark h3 { color: var(--paper); }

.section-head { max-width: 42em; margin-bottom: 2.4em; }

hr.rule {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rust);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(38, 29, 19, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(38, 29, 19, 0.12); }
.grid-3 > .card:nth-child(2) { border-top-color: var(--teal); }
.grid-3 > .card:nth-child(3) { border-top-color: var(--ochre); }
.card .eyebrow { margin-bottom: 0.6em; }
.card a:not(.btn), section p a:not(.btn), .lede a:not(.btn) { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.news-list li:first-child { padding-top: 0; }
.news-list li:last-child { border-bottom: none; }
.news-list a {
  color: var(--umber);
  text-decoration: none;
  font-weight: 600;
}
.news-list a:hover { color: var(--rust); }
.news-list span {
  display: block;
  font-size: 0.82rem;
  color: var(--umber-soft);
  margin-top: 0.2em;
}

.project-block + .project-block { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 56px; }
.project-block { scroll-margin-top: 120px; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card-link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(38, 29, 19, 0.14); }
.card-link p { color: var(--umber-soft); font-size: 0.95rem; margin-bottom: 0; }
.card-link .tag { margin-bottom: 0.9em; }

.stat {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 0.2em;
}

/* ---------- Timeline (Our History) ---------- */
.timeline {
  position: relative;
  margin-top: 2em;
  padding-left: 40px;
  border-left: 2px solid var(--line);
}
.timeline-item {
  position: relative;
  padding-bottom: 52px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 4px var(--sand);
}
.timeline-item.alt::before { background: var(--olive); }
.timeline-year {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--rust);
  margin-bottom: 0.15em;
}
.timeline-item.alt .timeline-year { color: var(--olive-deep); }
.timeline-item h3 { margin-bottom: 0.35em; }
.timeline-item p { color: var(--umber-soft); max-width: 46em; }
.timeline-item a { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }
.timeline-item.alt a { color: var(--olive-deep); }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--rust);
  color: var(--paper);
  padding: 0.32em 0.85em;
  border-radius: 999px;
  margin-bottom: 0.8em;
}
.timeline-item.alt .tag { background: var(--olive); }
.card-link:nth-child(3n+2) .tag { background: var(--teal); }
.card-link:nth-child(3n) .tag { background: var(--ochre); color: var(--umber); }

/* ---------- Quote ---------- */
.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--umber);
  max-width: 38em;
  margin: 0 auto 0.6em;
  position: relative;
}
.pull-quote::before {
  content: "\201C";
  display: block;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--rust);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 0.1em;
}
.pull-quote-cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rust);
  margin-top: 0.8em;
}

/* ---------- Donate ---------- */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 1.4em 0;
}
@media (max-width: 600px) { .amount-grid { grid-template-columns: repeat(2, 1fr); } }
.amount-btn {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 16px 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.amount-btn.selected, .amount-btn:hover { border-color: var(--rust); color: var(--rust); box-shadow: 0 4px 12px rgba(184, 69, 31, 0.18); }

.freq-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0 1.6em; }
.freq-pill {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.55em 1.2em;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--paper);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.freq-pill.selected { border-color: var(--olive); background: var(--olive); color: var(--sand); }

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--sand-deep);
  overflow: hidden;
  margin: 0.6em 0 0.4em;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ochre), var(--rust));
  border-radius: 999px;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--umber);
  color: var(--sand-deep);
  padding: 56px 0 28px;
  margin-top: 40px;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--rust), var(--ochre), var(--teal), var(--olive)) 1;
}
footer.site a { text-decoration: none; color: var(--sand-deep); }
footer.site a:hover { color: var(--ochre); }
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(243,236,221,0.15);
}
.footer-logo { margin-bottom: 1em; }
.footer-logo img { height: 34px; width: auto; display: block; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.9em;
}
.footer-col a, .footer-col p { display: block; margin-bottom: 0.55em; font-size: 0.95rem; color: var(--sand-deep); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(243,236,221,0.55);
}

/* ---------- Misc ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 2.4em; }
.divider-mark {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--rust), var(--ochre), var(--teal));
  border-radius: 2px; margin: 0 auto 1.6em;
}
