/* ============================================================
   Cub Scout Pack 67 — Twinsburg, OH
   Palette: Scout navy / gold / warm paper / pine
   Type: Bitter (display slab) + Source Sans 3 (body) + IBM Plex Mono (labels)
   ============================================================ */

:root {
  --navy: #14355f;
  --navy-deep: #0c2440;
  --gold: #f2b707;
  --gold-soft: #f8d566;
  --paper: #faf6ec;
  --paper-dark: #f1ead9;
  --ink: #22303f;
  --ink-soft: #4a5a6a;
  --pine: #3f5d45;
  --brick: #b34a2e;
  --line: #d8cfba;
  --radius: 14px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--navy); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: "Bitter", Georgia, serif; line-height: 1.15; }
h1 { font-weight: 900; font-size: clamp(2.3rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); }
h3 { font-weight: 700; font-size: 1.15rem; color: var(--navy); }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--gold);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: #fff; text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px; flex: none;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Bitter", serif; font-weight: 900; font-size: 1rem;
  border: 2px dashed rgba(12, 36, 64, 0.55);
}
.brand-name { font-family: "Bitter", serif; font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand-sub { font-family: "IBM Plex Mono", monospace; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }

.nav-links { display: flex; gap: 0.25rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
  color: #e8edf5;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-links a[aria-current="page"] { background: var(--gold); color: var(--navy-deep); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242, 183, 7, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 4.2rem 0 4.6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* rope divider */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold) 0 10px,
    var(--navy-deep) 10px 20px
  );
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 .accent { color: var(--gold); }
.hero p.lede {
  max-width: 52ch;
  margin-top: 1rem;
  font-size: 1.15rem;
  color: #d5deeb;
}
.hero-cta { margin-top: 1.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Quick-facts card in hero */
.fact-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  border: 3px solid var(--gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}
.fact-card h3 {
  font-size: 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.8rem;
}
.fact-card dl { display: grid; gap: 0.75rem; }
.fact-card dt { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.fact-card dd { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

/* ---------- Sections ---------- */
.section { padding: 3.6rem 0; }
.section-alt { background: var(--paper-dark); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------- Patch cards (signature element) ---------- */
.patch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.2rem;
}
.patch {
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.55rem;
  box-shadow: 0 4px 0 var(--paper-dark), 0 10px 22px rgba(20, 53, 95, 0.10);
}
.patch-inner {
  border: 2px dashed var(--line);
  border-radius: calc(var(--radius) - 6px);
  padding: 1.15rem 1.2rem;
  height: 100%;
}
.patch .when {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pine);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.patch .when.gold { background: var(--gold); color: var(--navy-deep); }
.patch h3 { margin-bottom: 0.4rem; }
.patch p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Rank trail ---------- */
.rank-trail { list-style: none; display: grid; gap: 0; margin-top: 1.5rem; }
.rank-trail li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
  position: relative;
  padding-bottom: 1.4rem;
}
.rank-trail li:last-child { padding-bottom: 0; }
.rank-trail li::before {
  content: "";
  position: absolute; left: 27px; top: 48px; bottom: 4px;
  width: 3px;
  background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px);
}
.rank-trail li:last-child::before { display: none; }
.rank-badge {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 2px dashed var(--gold);
  display: grid; place-items: center;
  font-family: "Bitter", serif; font-weight: 800; font-size: 0.8rem;
  text-align: center; line-height: 1;
}
.rank-trail h3 { margin-bottom: 0.15rem; }
.rank-trail p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Oath & Law panel ---------- */
.handbook {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.handbook-card {
  background: var(--navy);
  color: #e8edf5;
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.9rem;
  border-top: 6px solid var(--gold);
}
.handbook-card h3 {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.handbook-card p { font-size: 1.03rem; }
.law-words { font-weight: 700; color: #fff; }

/* ---------- Two-column info ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}

/* ---------- Lists ---------- */
.check-list { list-style: none; display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.check-list li { padding-left: 1.7rem; position: relative; }
.check-list li::before {
  content: "▸";
  position: absolute; left: 0.2rem;
  color: var(--brick);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq details {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}
.faq details[open] { border-color: var(--navy); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 0.95rem 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brick); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }

/* ---------- Roster / contact ---------- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.roster-card {
  background: #fff;
  border: 2px solid var(--line);
  border-left: 6px solid var(--navy);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.roster-card .role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.2rem;
}
.roster-card .name { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.roster-card a { font-size: 0.92rem; color: var(--ink-soft); word-break: break-all; }

/* ---------- Callout banner ---------- */
.banner {
  background: var(--gold);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border: 3px solid var(--navy);
}
.banner h2 { color: var(--navy-deep); }
.banner p { color: var(--navy-deep); max-width: 48ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b8c4d4;
  margin-top: 3.5rem;
  border-top: 4px solid var(--gold);
  padding: 2.4rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--gold-soft); }
.footer-fine { margin-top: 1.6rem; font-size: 0.82rem; color: #7f8ea1; }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.note {
  background: var(--paper-dark);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-grid, .split, .handbook { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 3.4rem; }
  .nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
