:root {
  --ink: #1c2430;
  --muted: #5e6872;
  --paper: #f3f0ea;
  --white: #fffcf8;
  --teal: #2540a3;
  --teal-deep: #1a2d78;
  --clay: #b24a28;
  --clay-deep: #8d381c;
  --line: #e2dbd1;
  --gold: #a68456;
  --shadow: 0 16px 40px rgba(28, 36, 48, 0.08);
  --max: 1120px;
  --header: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: clip;
}

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

a { color: var(--teal); }

a:hover { color: var(--clay); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  margin-bottom: 0.6rem;
  overflow-wrap: break-word;
}

h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.7rem; }

h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  background: var(--teal-deep);
  color: #f4efe6;
  font-size: 0.92rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.45rem 0;
}

.topbar a { color: #fff; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand .name {
  display: block;
  max-width: 9.6rem;
  font-family: Palatino, Georgia, serif;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.35rem 0;
}

.nav a[aria-current="page"] {
  color: var(--teal);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.nav .donate {
  background: var(--clay);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  margin-left: 0.3rem;
}

.nav .donate:hover { background: var(--clay-deep); color: white; }

.hero {
  padding: 2.2rem 0 1rem;
}

.hero-grid,
.split,
.person,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.kicker {
  color: var(--clay);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.lead { font-size: 1.15rem; color: #31404c; max-width: 40rem; }

.offsite {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.trip .offsite { color: #d5dced; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  border: 2px solid transparent;
}

.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-deep); color: white; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: white; }

button.btn { cursor: pointer; font: inherit; }

.hero-photo {
  position: relative;
  min-height: 280px;
}

.hero-photo img,
.frame img,
.person img,
.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo img,
.frame img,
.person img {
  border-radius: 18px;
  min-height: 280px;
}

.date-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 252, 248, 0.95);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}

.date-card strong { display: block; font-size: 1.05rem; }
.date-card span { color: var(--muted); }

.section { padding: 2.4rem 0; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
}

.partner-logo {
  display: inline-block;
  margin-bottom: 0.9rem;
}

.partner-logo img {
  width: min(100%, 240px);
  height: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.stat {
  background: var(--white);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: Palatino, Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--teal);
}

.stat span { color: var(--muted); font-size: 0.95rem; }

.goals {
  display: grid;
  gap: 0.8rem;
}

.goal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  background: var(--white);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--line);
}

.num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6eaf6;
  color: var(--teal);
  font-weight: 700;
}

.trip-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 22px;
  display: block;
}

.page-intro .trip-photo { margin-top: 1.2rem; }

.trip {
  display: grid;
  gap: 1rem;
  background: var(--teal);
  color: #f7f3ec;
  border-radius: 22px;
  padding: 1.4rem;
}

.trip h2, .trip p { color: inherit; }
.trip .muted { color: #d5dced; }

.facts {
  display: grid;
  gap: 0.7rem;
}

.facts div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.facts b { display: block; }

.person img { width: 100%; max-height: 420px; }

blockquote {
  margin: 0;
  font-family: Palatino, Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.45;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.gallery a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 4 / 3;
}

.gallery a img { transition: transform 0.35s ease; }
.gallery a:hover img { transform: scale(1.03); }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p:last-child { margin-bottom: 0; }

form {
  display: grid;
  gap: 0.8rem;
}

label { font-weight: 650; display: grid; gap: 0.3rem; }

input, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d3cbc0;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

textarea { min-height: 140px; resize: vertical; }

input:focus, textarea:focus {
  outline: 3px solid rgba(37, 64, 163, 0.28);
  border-color: var(--teal);
}

.hp { position: absolute; left: -9999px; }

.note {
  background: #e6eaf6;
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.site-footer {
  background: var(--ink);
  color: #e7e2da;
  padding: 2.2rem 0 1.2rem;
  margin-top: 1rem;
}

.foot {
  display: grid;
  gap: 1.3rem;
}

.site-footer a { color: white; }
.site-footer h2 { font-size: 1.05rem; color: white; }


.prose { max-width: 44rem; }
.prose p { margin-bottom: 1rem; }

@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .goals { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .foot { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero-grid, .split, .person, .contact-grid, .trip {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
  .trip { align-items: stretch; }
}

@media (min-width: 980px) {
  .gallery.wide { grid-template-columns: 1fr 1fr 1fr; }
  .hero { padding-top: 3rem; }
}

.video-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-intro { padding: 2.2rem 0 0.2rem; }

.page-intro p { max-width: 40rem; color: #31404c; }

@media (max-width: 640px) {
  .trip-label { display: none; }
}

@media (min-width: 980px) {
  .brand .name { max-width: 14rem; font-size: 1.08rem; }
}

@media (max-width: 979px) {
  .nav-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    gap: 0.2rem;
  }
  .nav a, .nav .donate {
    padding: 0.75rem 0.2rem;
    margin: 0;
    border-radius: 10px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a[aria-current="page"] { box-shadow: none; font-weight: 700; }
  .nav-btn .close { display: none; }
  .nav-toggle:checked ~ .nav-btn .open { display: none; }
  .nav-toggle:checked ~ .nav-btn .close { display: inline; }
}

.leader-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.leader {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.leader img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e6eaf6;
}

.leader-body { padding: 1rem 1.1rem 1.15rem; }

.leader-body h3 { margin-bottom: 0.55rem; }

.leader-message {
  margin: 0;
  font-family: Palatino, Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.45;
}

.leader-message p:last-child { margin-bottom: 0; }

.leader-message.is-pending {
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.98rem;
  font-style: italic;
}

@media (min-width: 700px) {
  .leader-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .leader-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.story {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.story img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
  background: #e6eaf6;
}

@media (min-width: 700px) {
  .story { grid-template-columns: 0.72fr 1.28fr; }
}

.story-more {
  margin-top: 0.15rem;
}

.story-more summary {
  cursor: pointer;
  color: #2540a3;
  font-weight: 700;
  width: fit-content;
}

.story-more summary:hover {
  color: var(--clay);
}

.story-more[open] summary {
  margin-bottom: 0.85rem;
}

.story-more p:last-child {
  margin-bottom: 0;
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery a img { transition: none; }
}

body.photo-open { overflow: hidden; }

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.25rem 4.6rem 1.25rem;
  background: rgba(16, 20, 32, 0.9);
}

.photo-viewer[hidden] { display: none; }

.photo-viewer-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.photo-viewer-photo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1080px, 100%);
  max-height: calc(100vh - 4.6rem);
  margin: 0 auto;
  border-radius: 12px;
  background: #141820;
}

.photo-viewer-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(36%, 220px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.24;
  pointer-events: none;
  user-select: none;
}

.photo-viewer-prev,
.photo-viewer-next,
.photo-viewer-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--teal-deep);
  background: #fffcf8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.photo-viewer-prev svg,
.photo-viewer-next svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.photo-viewer-prev,
.photo-viewer-next {
  top: 50%;
  width: 3.15rem;
  height: 3.15rem;
  margin-top: -1.58rem;
  border-radius: 999px;
  font-size: 2.5rem;
  line-height: 1;
}

.photo-viewer-prev { left: 0.85rem; }
.photo-viewer-next { right: 0.85rem; }

.photo-viewer-close {
  top: 0.85rem;
  right: 0.85rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.photo-viewer-prev:hover,
.photo-viewer-next:hover,
.photo-viewer-close:hover {
  background: var(--teal);
  color: white;
}

@media (max-width: 700px) {
  .photo-viewer { padding: 3.4rem 0.55rem 4.6rem; }
  .photo-viewer-photo {
    max-height: calc(100vh - 8.2rem);
    border-radius: 8px;
  }
  .photo-viewer-prev,
  .photo-viewer-next {
    top: auto;
    bottom: 0.75rem;
    margin-top: 0;
    width: 2.9rem;
    height: 2.9rem;
  }
  .photo-viewer-prev { left: 0.7rem; }
  .photo-viewer-next { right: 0.7rem; }
  .photo-viewer-mark { width: min(46%, 170px); }
}

/* Gallery page: smaller, denser thumbs (scoped to .gallery.wide) */
.gallery.wide { gap: 0.4rem; }
.gallery.wide a { border-radius: 10px; }
@media (max-width: 699px) {
  .gallery.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .gallery.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
}
@media (min-width: 980px) {
  .gallery.wide { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.35rem; }
}
