:root {
  --ink: #16302b;
  --paper: #f1f2ea;
  --paper-alt: #ffffff;
  --accent: #d99a2b;
  --accent-deep: #a8761f;
  --muted: #57685f;
  --line: #d7dccf;
  --radius: 8px;
  --font-display: "Avenir Next", "Century Gothic", Futura, -apple-system, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  border: 1px solid transparent;
}
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: var(--paper-alt); }
.btn-solid {
  background: var(--ink);
  color: var(--paper) !important;
}
.btn-solid:hover { background: #0e211d; }
.btn-accent {
  background: var(--accent);
  color: var(--ink) !important;
}
.btn-accent:hover { background: #c78c26; }

/* Header */
header.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.brand img { height: 34px; width: 34px; border-radius: 50%; object-fit: cover; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover { text-decoration: none; border-bottom-color: var(--line); }
nav.main-nav a.current { border-bottom-color: var(--accent); }

.btn-donate {
  background: var(--ink);
  color: var(--accent) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  white-space: nowrap;
  border-bottom: none !important;
}
.btn-donate:hover { background: #0e211d; }

@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; }
  nav.main-nav { gap: 12px 16px; font-size: 0.9rem; }
}

/* Hero */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-ring {
  position: absolute;
  top: 50%;
  right: -180px;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  pointer-events: none;
}
.hero-ring circle {
  fill: none;
  stroke: var(--accent);
}
@media (max-width: 900px) {
  .hero-ring { right: -260px; opacity: 0.6; }
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Pillars intro band */
.pillars-intro-band {
  background: var(--paper-alt);
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars-intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}
.pillars-intro .ring-mark {
  flex: none;
  width: 96px;
  height: 96px;
}
.pillars-intro .ring-mark circle { fill: none; stroke: var(--ink); }
.pillars-intro .ring-mark circle.accent { stroke: var(--accent); }
.pillars-intro-text h2 {
  font-size: 1.5rem;
  margin: 0 0 14px;
  line-height: 1.4;
  max-width: 34ch;
}
.pillars-intro-text p { color: var(--muted); margin: 0; max-width: 56ch; }
@media (max-width: 700px) {
  .pillars-intro { flex-direction: column; gap: 20px; }
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 800px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--paper-alt);
  padding: 0;
}
.pillar-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}
/* Connect / Support photos are full-length portrait shots; bias the crop
   toward the top so faces survive the wide, short card aspect ratio. */
.pillar-card:nth-child(2) img { object-position: center 12%; }
.pillar-card:nth-child(3) img { object-position: center 30%; }
.pillar-card .pillar-body { padding: 22px 24px 26px; }
.pillar-card .icon {
  width: 22px;
  height: 22px;
  stroke: var(--accent-deep);
  fill: none;
  stroke-width: 1.6;
  margin-bottom: 10px;
}
.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pillar-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Gallery + Discover */
.gallery {
  padding: 56px 0 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.discover {
  text-align: center;
  padding: 48px 0 72px;
}

/* Generic page content */
.page-content {
  padding: 56px 0 72px;
}
.page-content h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  margin-bottom: 28px;
}
.page-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
}
.page-content p { margin: 0 0 16px; color: var(--ink); max-width: 68ch; }
.page-content img.inline-image {
  border-radius: var(--radius);
  margin: 24px 0;
  border: 1px solid var(--line);
}

.intro-pillars {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}
.intro-pillars li {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 24px;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper-alt);
}
.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--paper);
}
/* Several headshots are framed close to the hairline; the default
   center crop cuts the top of the head off. Bias those toward the top,
   tuned per photo since the source framing varies. */
.team-card img.crop-top-0 { object-position: center 0%; }
.team-card img.crop-top-10 { object-position: center 10%; }
.team-card img.crop-top-20 { object-position: center 20%; }
.team-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.team-card .role {
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.team-card details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 640px;
}
form.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
form.contact-form label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--paper-alt);
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form button {
  justify-self: start;
  background: var(--ink);
  color: var(--accent);
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
form.contact-form button:hover { background: #0e211d; }
.form-note { display: none; }

.empty-page {
  color: var(--muted);
  padding: 40px 0;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 40px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site-footer a { color: var(--muted); }
footer.site-footer .social { margin-bottom: 12px; }
.social-icon { display: inline-flex; }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
