:root {
  --hmb-green: #6e8257;
  --hmb-green-dark: #536340;
  --hmb-cream: #e4d5b7;
  --hmb-cream-light: #f5efe0;
  --hmb-ink: #2c2a24;
  --hmb-white: #ffffff;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--hmb-ink);
  background: var(--hmb-cream-light);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---- Header ---- */
.site-header {
  background: var(--hmb-cream-light);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--hmb-green);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header img.logo { height: 44px; width: auto; }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hmb-green-dark);
}
.site-header nav a.btn { color: var(--hmb-white); }
.site-header .header-right { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--hmb-green-dark);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--hmb-green);
  color: var(--hmb-white);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--hmb-cream);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
/* Every solid/outline button pair on the public site shares this: the
   border is always whichever palette color ISN'T the current fill, on
   both the default and hover state, so it swaps in step with the
   background instead of staying fixed. Admin dashboard is untouched —
   it has its own separate stylesheet (admin.css) and .admin-btn classes,
   this file is never loaded there. */
.btn:hover { background: var(--hmb-cream); color: var(--hmb-green-dark); border-color: var(--hmb-green); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--hmb-green-dark);
  border: 2px solid var(--hmb-green);
}
.btn-outline:hover { background: var(--hmb-green); color: var(--hmb-white); border-color: var(--hmb-cream); }

/* ---- Hero ---- */
.hero { padding: 72px 0 56px; text-align: center; }
.hero .eyebrow {
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--hmb-green-dark);
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0 0 8px;
  color: var(--hmb-ink);
  line-height: 1.05;
}
.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--hmb-green-dark);
  margin-bottom: 20px;
}
.hero p.lede {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.08rem;
  color: #4a4738;
}
.hero .meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hmb-green-dark);
  margin-bottom: 28px;
}
.hero .photo-placeholder, .hero .photo-real { margin-top: 44px; }

.photo-placeholder {
  background: var(--hmb-cream);
  border: 2px dashed var(--hmb-green);
  border-radius: 16px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hmb-green-dark);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.photo-real {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* ---- Section shells ---- */
section { padding: 72px 0; }
section.alt { background: var(--hmb-cream); }
.section-eyebrow {
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--hmb-green-dark);
  text-align: center;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  text-align: center;
  margin: 0 0 18px;
}
.section-intro {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
  color: #4a4738;
  font-size: 1.02rem;
}
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  text-align: center;
  max-width: 640px;
  margin: 32px auto;
  color: var(--hmb-green-dark);
}
.pullquote-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  color: #4a4738;
  font-size: 0.96rem;
}

/* ---- Mile course timeline ---- */
.course-timeline { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto; }
.mile-step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(110,130,87,0.25);
}
.mile-step:last-child { border-bottom: none; }
.mile-badge {
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--hmb-green);
  color: var(--hmb-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1.1;
}
.mile-badge .label { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mile-badge .num { font-size: 1.3rem; }
.mile-step.finish .mile-badge { background: var(--hmb-ink); }
.mile-content h3 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mile-content p { margin: 0; font-style: italic; color: #4a4738; }

/* ---- Card grids ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.card {
  background: var(--hmb-white);
  border-radius: 14px;
  padding: 26px 22px;
  border: 1px solid rgba(110,130,87,0.2);
}
.card .card-eyebrow {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hmb-green);
  margin-bottom: 6px;
}
.card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.15rem; }
.card p { margin: 0; color: #4a4738; font-size: 0.94rem; }

/* Honest card prompts */
.prompt-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; max-width: 800px; margin: 0 auto; }
.prompt {
  background: var(--hmb-white);
  border-left: 4px solid var(--hmb-green);
  border-radius: 8px;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--hmb-ink);
}

/* Feeling word wall */
.wall { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; max-width: 760px; margin: 0 auto; }
.wall-col { text-align: center; }
.wall-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--hmb-green-dark);
  margin-bottom: 14px;
}
.wall-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wall-col li {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}
.wall-col.arrived li { color: #8a7a5c; }
.wall-col.left li { color: var(--hmb-green-dark); font-weight: 700; }

/* Medal */
.medal-block { text-align: center; }
.medal-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: var(--hmb-cream);
  border: 3px dashed var(--hmb-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hmb-green-dark);
  font-size: 0.82rem;
  font-style: italic;
  text-align: center;
  padding: 16px;
}
.medal-real {
  max-width: 360px;
  width: 100%;
  height: auto;
  margin: 0 auto 24px;
  display: block;
  border-radius: 16px;
}

/* Final CTA */
.final-cta { text-align: center; background: var(--hmb-green); color: var(--hmb-white); border-radius: 24px; padding: 56px 32px; }
.final-cta h2 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.6rem); margin: 0 0 12px; }
.final-cta p { max-width: 480px; margin: 0 auto 26px; opacity: 0.92; }
.final-cta .btn { background: var(--hmb-white); color: var(--hmb-green-dark); border-color: var(--hmb-cream); }
.final-cta .btn:hover { background: var(--hmb-cream); color: var(--hmb-green-dark); border-color: var(--hmb-green); }
.final-cta .meta { margin-top: 18px; font-size: 0.85rem; opacity: 0.85; }

.email-capture {
  margin-top: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.email-capture p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 10px; }
.email-capture form { display: flex; gap: 8px; flex-wrap: wrap; }
.email-capture input[type=email] {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
}
.email-capture .btn { padding: 13px 24px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--hmb-ink);
  color: var(--hmb-cream);
  padding: 34px 0;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.site-footer a { text-decoration: underline; }
.site-footer .tagline { font-family: var(--font-display); font-style: italic; color: var(--hmb-cream); opacity: 0.9; }
.site-footer .credit { font-size: 0.75rem; opacity: 0.65; margin-top: 4px; }
.site-footer .credit a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.site-footer .credit a:hover { opacity: 0.85; }
.site-footer .credit-logo { height: 20px; width: auto; vertical-align: middle; }

@media (max-width: 640px) {
  .site-header nav { gap: 12px; }
  .site-header nav a:not(.btn) { display: none; }
  .site-header img.logo { height: 34px; }
  .nav-toggle { display: block; }
  .site-header nav.open {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--hmb-cream-light); border-bottom: 3px solid var(--hmb-green);
    padding: 10px 24px 18px;
  }
  .site-header nav.open a:not(.btn) {
    display: block; padding: 13px 4px; border-bottom: 1px solid rgba(110,130,87,0.15);
  }
  .site-header nav.open a.btn { margin-top: 12px; text-align: center; }
  .btn { padding: 13px 22px; font-size: 0.78rem; }
  .wall { gap: 24px; }
}

#music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--hmb-ink);
  color: var(--hmb-cream);
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
#music-toggle #music-icon { font-size: 1rem; }
#music-toggle.playing #music-icon { animation: music-pulse 1s ease-in-out infinite; }
@keyframes music-pulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
