/* ============================================================
   Mighty Mac People Helping People Inc
   A warm, credible, editorial nonprofit site.

   No JavaScript. No external requests (fonts are self-hosted).
   Motion is limited to gentle hover feedback and disabled
   entirely for anyone who prefers reduced motion.
   Built to load fast and read clearly for an older audience.
   ============================================================ */

/* ---------- Self-hosted variable fonts ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  /* Warm, grounded palette — cream + tan neutrals with lawn greens.
     Body text pairs a warm near-black on cream for strong contrast. */
  --paper:        #fcf9f2;   /* lightest surface */
  --cream:        #f5efe1;   /* page background */
  --cream-deep:   #ece2ce;   /* alternating band / recessed surface */
  --tan:          #e0d4ba;   /* hairlines, borders */
  --tan-soft:     #eaddc4;

  --ink:          #221f18;   /* primary text — ~14:1 on cream */
  --ink-soft:     #514a3c;   /* secondary text — ~7:1 on cream */

  --green:        #2e5a34;   /* primary lawn green */
  --green-deep:   #1c3a22;   /* darkest green — hero / footer */
  --green-mid:    #3f7043;
  --green-bright: #5f9a4e;   /* accent (large text / decoration only) */
  --wheat:        #c9a35b;   /* warm gold accent, used sparingly */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1160px;
  --maxw-text: 720px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(28, 22, 12, 0.05);
  --shadow-md: 0 14px 30px -18px rgba(28, 34, 20, 0.35);
  --shadow-lg: 0 34px 60px -30px rgba(20, 30, 16, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem;      /* 19px */
  line-height: 1.7;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

em { font-style: italic; }

/* Emphasis words set in Fraunces italic — the signature accent */
.accent {
  font-style: italic;
  font-weight: 500;
  color: var(--green-mid);
}

a { color: var(--green); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.measure { max-width: var(--maxw-text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-mid);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--wheat);
  border-radius: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--green-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  z-index: 200;
  font-weight: 600;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 16px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 249, 242, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--tan);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
/* Wordmark monogram — the organization's initials, set in the display serif */
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: var(--green-deep);
  color: #f3ecd9;
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  flex: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-mark span { transform: translateY(1px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.site-nav a:hover { color: var(--green-deep); background: var(--cream-deep); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(95, 154, 78, 0.16), transparent 60%),
    radial-gradient(90% 80% at 0% 110%, rgba(201, 163, 91, 0.12), transparent 55%),
    var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(2.7rem, 1.4rem + 5.2vw, 4.6rem);
  line-height: 1.03;
  margin: 0 0 24px;
}
.hero .lede {
  font-size: clamp(1.14rem, 1rem + 0.6vw, 1.36rem);
  line-height: 1.62;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 52ch;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--green-deep);
  background: var(--paper);
  border: 1px solid var(--tan);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  box-shadow: var(--shadow-sm);
}
.hero-meta svg { width: 16px; height: 16px; color: var(--green-mid); flex: none; }

/* Hero image */
.hero-figure {
  position: relative;
  margin: 0;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero-figure figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(252, 249, 242, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--tan);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero-figure figcaption::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green-bright);
  flex: none;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: var(--maxw-text); margin: 0 0 clamp(32px, 4vw, 52px); }
.section h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 20px;
}
.section-intro {
  font-size: 1.16rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}
.section p { max-width: 66ch; }

.band-paper { background: var(--paper); }
.band-cream { background: var(--cream); }
.band-deep  { background: var(--cream-deep); }

/* ---------- Mission ---------- */
.mission-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  margin: 0 0 clamp(28px, 4vw, 44px);
  max-width: 20ch;
}
.mission-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.mission-body p { margin: 0; max-width: 46ch; font-size: 1.08rem; color: var(--ink-soft); }
.mission-body p strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Our Work — gallery
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.gallery-item {
  margin: 0;
  grid-column: span 6;
  background: var(--paper);
  border: 1px solid var(--tan);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.gallery-item.feature { grid-column: span 12; }
.gallery-item.feature img { height: clamp(320px, 46vw, 520px); }
.gallery-item figcaption {
  padding: 18px 22px 20px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.gallery-item figcaption b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--green-deep);
  margin-bottom: 2px;
}

/* Before & after — pending drop-in slot */
.gallery-pending {
  grid-column: span 6;
  display: flex;
}
.pending-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 300px;
  padding: 32px;
  border: 2px dashed var(--tan);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, transparent, transparent 16px, rgba(201,163,91,0.05) 16px, rgba(201,163,91,0.05) 32px),
    var(--cream);
}
.pending-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat);
}
.pending-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--green-deep);
}
.pending-note { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.about-copy h2 { margin-top: 0; }
.about-copy p { font-size: 1.1rem; color: var(--ink-soft); }
.about-copy p:last-child { margin-bottom: 0; }
.pull {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--green-deep);
  border-left: 3px solid var(--wheat);
  padding-left: 22px;
  margin: 28px 0 0;
  max-width: none;
}

/* ============================================================
   Who we help
   ============================================================ */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  counter-reset: help;
}
.help-card {
  background: var(--paper);
  border: 1px solid var(--tan);
  border-radius: var(--r-lg);
  padding: 30px 30px 32px;
  box-shadow: var(--shadow-sm);
}
.help-card .num {
  counter-increment: help;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.help-card .num::before { content: counter(help); }
.help-card h3 { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.2; }
.help-card p { margin: 0; font-size: 1.04rem; color: var(--ink-soft); max-width: none; }

/* ============================================================
   Nonprofit status — credibility
   ============================================================ */
.status-lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin: 0;
}
.fact {
  background: var(--paper);
  border: 1px solid var(--tan);
  border-radius: var(--r-md);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
}
.fact dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin: 0 0 8px;
}
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  line-height: 1.25;
  color: var(--green-deep);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.contact-card {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--green-deep);
  color: #eef3e8;
  border-radius: var(--r-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-md);
}
.contact-card .contact-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9c79a;
  margin-bottom: 12px;
}
.contact-card .contact-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
}
.contact-card .contact-org { font-weight: 500; margin-bottom: 12px; color: #d6e3cd; }
.contact-card address span { display: block; }
.contact-note { color: var(--ink-soft); font-size: 1.08rem; }
.contact-note h2 { margin-top: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--green-deep);
  color: #cdddc3;
  padding: clamp(40px, 6vw, 64px) 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}
.footer-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(243, 236, 217, 0.1);
  border: 1px solid rgba(243, 236, 217, 0.28);
  color: #f3ecd9;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  flex: none;
}
.footer-inner p { margin: 0; font-size: 0.92rem; max-width: 46ch; }
.footer-note { color: #90a985; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 11; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 440px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-pending { grid-column: span 12 !important; }
}

@media (max-width: 560px) {
  body { font-size: 1.125rem; }
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav { gap: 2px; margin-left: -10px; }
  .site-nav a { padding: 7px 10px; }
  .gallery-item img { height: 240px; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .gallery-item:hover { transform: none; }
}
