:root {
  --pine: #1a2e22;
  --moss: #3d5c48;
  --cream: #f4efe4;
  --paper: #fffdf8;
  --fog: #d9d0c0;
  --line: #cfc4b0;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --shadow: 0 8px 24px rgb(26 46 34 / 0.1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--pine);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; text-wrap: balance; line-height: 1.15; }
p { text-wrap: pretty; }
.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.7rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.96); }
.btn-solid { background: var(--cream); color: var(--pine); }
.btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 1px rgb(244 239 228 / 0.4); }
.btn-pine { background: var(--pine); color: var(--cream); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(244 239 228 / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(207 196 176 / 0.7);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.5rem 0;
}
.brand-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  min-width: 0; font-weight: 600; font-size: 0.9rem; color: var(--moss);
}
.brand-row a, .family-nav a, .page-nav a { text-decoration: none; }
.brand-row a:hover, .family-nav a:hover, .page-nav a:hover { color: var(--pine); }
.brand-logo img { height: 2.25rem; width: auto; }
.family-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.btn-join { min-height: 40px; padding: 0.4rem 1.1rem; flex-shrink: 0; }
.page-nav-wrap {
  border-top: 1px solid rgb(207 196 176 / 0.6);
  background: rgb(255 253 248 / 0.85);
}
.page-nav {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.35rem 1.15rem; padding: 0.4rem 0;
  font-weight: 600; font-size: 0.9rem; color: var(--moss);
}

.hero {
  position: relative; background: var(--pine); color: var(--cream);
  min-height: 100svh; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-shade { position: absolute; inset: 0; background: rgb(26 46 34 / 0.3); }
.hero-copy {
  position: relative; z-index: 1;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3rem 0;
}
.kicker { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; color: var(--fog); margin: 0; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); margin: 1rem 0 0; }
.hero .lead { max-width: 36rem; font-size: 1.125rem; color: rgb(244 239 228 / 0.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 640px) {
  .hero { min-height: 0; aspect-ratio: 13 / 8; }
  .hero-copy { min-height: 0; height: 100%; justify-content: center; padding: 4rem 0; }
}

.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 2.5rem 0; text-align: center; }
.stats-grid strong { display: block; font-family: var(--font-display); font-size: 1.85rem; font-variant-numeric: tabular-nums; }
.stats-grid span { color: var(--moss); font-size: 0.9rem; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.photo-section { position: relative; overflow: hidden; color: var(--cream); padding: 5rem 0; }
.photo-section .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.photo-section .bg::after { content: ""; position: absolute; inset: 0; background: rgb(26 46 34 / 0.45); }
.photo-section .wrap { position: relative; z-index: 1; }
.pillars { display: grid; gap: 1.5rem; margin-top: 3rem; }
.card { background: rgb(255 253 248 / 0.95); color: var(--pine); border-radius: 1rem; padding: 1.5rem; }
.card-icon { color: var(--pine); display: block; }
.card h3 { margin: 0.75rem 0 0.5rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--moss); }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.ribbon { display: grid; grid-template-columns: 1fr 1fr; }
.ribbon img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 640px) { .ribbon { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .ribbon { grid-template-columns: repeat(8, 1fr); } }

.calendar-frame { overflow: hidden; border-radius: 1rem; background: var(--paper); box-shadow: var(--shadow); }
.calendar-frame iframe { width: 100%; height: 600px; border: 0; display: block; }

.headband {
  position: relative;
  background: var(--pine);
  color: var(--cream);
  overflow: hidden;
  line-height: 0;
}
.headband img.full {
  display: block;
  width: 100%;
  height: 65rem;
  object-fit: cover;
  object-position: center 30%;
}
.headband .shade {
  position: absolute;
  inset: 0;
  background: rgb(26 46 34 / 0.3);
}
.headband .inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-align: center;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.75rem; }
.filters button {
  min-height: 44px; padding: 0.45rem 1.15rem; border: 0; border-radius: 999px;
  background: var(--paper); color: var(--pine); font-weight: 600; cursor: pointer;
}
.filters button.is-on { background: var(--pine); color: var(--paper); box-shadow: inset 0 0 0 1px #fff; }

.cards-band { position: relative; padding: 4rem 0; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.adventure {
  background: var(--paper); color: var(--pine); border-radius: 1.1rem; overflow: hidden;
  box-shadow: var(--shadow);
  animation: card-in 0.5s cubic-bezier(0.2, 0, 0, 1) both;
}
.adventure .pic { position: relative; aspect-ratio: 4 / 3; background: var(--fog); overflow: hidden; }
.adventure .pic img { width: 100%; height: 100%; object-fit: cover; }
.adventure time {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.28rem 0.7rem; border-radius: 999px;
  background: rgb(26 46 34 / 0.78); color: #fff; font-size: 0.7rem; font-weight: 700;
}
.adventure .body { padding: 1rem 1.15rem 1.25rem; }
.adventure h3 { margin: 0; font-size: 1.15rem; }
.adventure p {
  margin: 0.45rem 0 0; color: var(--moss); font-size: 0.92rem;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.empty { text-align: center; color: var(--cream); padding: 2rem; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .adventure { animation: none; } }

.leaders-grid { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 640px) { .leaders-grid { grid-template-columns: repeat(3, 1fr); } }
.leader { text-align: center; }
.leader .portrait {
  aspect-ratio: 3 / 4; max-width: 20rem; margin: 0 auto; overflow: hidden;
  border-radius: 1rem; background: var(--fog); box-shadow: inset 0 0 0 2px rgb(244 239 228 / 0.4);
}
.leader .portrait img { width: 100%; height: 100%; object-fit: cover; }
.leader h3 { margin: 1rem 0 0; }
.leader .role { font-weight: 600; color: var(--fog); font-size: 0.9rem; }
.leader .bits { color: rgb(244 239 228 / 0.8); font-size: 0.9rem; }

.faq-list { background: var(--paper); color: var(--pine); border-radius: 1rem; padding: 0 1.5rem; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  display: flex; justify-content: space-between; gap: 1rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 0.75rem 0 0; color: var(--moss); max-width: 60ch; }

.join-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .join-grid { grid-template-columns: 1fr 1fr; } }

.site-footer {
  background: var(--pine); color: rgb(244 239 228 / 0.7);
  text-align: center; padding: 2rem 1rem; font-size: 0.875rem;
}

.troop-mark { display: inline-flex; align-items: center; gap: 0.4rem; }
.troop-mark img { height: 2.5rem; width: auto; }
.footer-crest {
  display: block;
  height: 8.5rem;
  width: auto;
  margin: 0 auto 0.75rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.3rem;
}
