/* ============================================
   HUME Family Reunion — Design tokens
   ============================================ */

:root {
  --pine: #3E5C4A;
  --pine-deep: #2A3D30;
  --rust: #C67B4A;
  --rust-deep: #A0603A;
  --cream: #F7F2EA;
  --cream-warm: #EFE7D4;
  --tan: #E8DFCF;
  --bark: #2E241A;
  --bark-soft: #4A3D2E;
  --moss: #6B7A4A;

  --ff-display: "Alfa Slab One", serif;
  --ff-body: "Fraunces", serif;
  --ff-meta: "JetBrains Mono", monospace;

  --measure: 62ch;
  --pad-x: clamp(1.5rem, 5vw, 4rem);
}

/* ============================================
   Base
   ============================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--bark);
  background: var(--cream);
  font-variation-settings: "opsz" 14, "SOFT" 50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }

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

/* ============================================
   Header — same across all pages
   ============================================ */

.site-header {
  padding: 1.5rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(46, 36, 26, 0.1);
}

.site-header .brand {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  color: var(--pine);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header .brand .dot { color: var(--rust); margin: 0 0.35em; }

.site-header nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--ff-meta);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav a {
  color: var(--bark-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-header nav a:hover {
  color: var(--pine);
  border-bottom-color: var(--rust);
}

.site-header .signout {
  background: none;
  border: 1px solid rgba(46, 36, 26, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: var(--ff-meta);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-header .signout:hover {
  background: var(--pine);
  color: var(--cream);
  border-color: var(--pine);
}

/* ============================================
   Gate page — password entry
   ============================================ */

body.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--pad-x);
  text-align: center;
}

.gate-wrap {
  max-width: 32rem;
  width: 100%;
}

.gate-wrap .logo {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--pine);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.gate-wrap .logo .dot { color: var(--rust); margin: 0 0.3em; }

.gate-wrap .logo-img {
  display: block;
  margin: 0 auto 0.6rem;
  max-width: min(28rem, 80vw);
  height: auto;
}

.gate-wrap .tagline {
  font-family: var(--ff-meta);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bark-soft);
  margin-bottom: 3.5rem;
}

.gate-wrap .prompt {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--bark);
  margin-bottom: 2.5rem;
  line-height: 1.4;
  font-variation-settings: "opsz" 24, "SOFT" 100;
}

.gate-wrap form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 22rem;
  margin: 0 auto;
}

.gate-wrap input[type="password"] {
  font-family: var(--ff-meta);
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(46, 36, 26, 0.25);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  color: var(--bark);
  text-align: center;
  letter-spacing: 0.15em;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gate-wrap input[type="password"]:focus {
  outline: none;
  border-color: var(--pine);
  background: white;
}

.gate-wrap button {
  font-family: var(--ff-meta);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  background: var(--pine);
  color: var(--cream);
  border: 1px solid var(--pine);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gate-wrap button:hover { background: var(--pine-deep); }

.gate-wrap .error {
  color: var(--rust-deep);
  font-family: var(--ff-meta);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1rem;
  min-height: 1em;
  visibility: hidden;
}
.gate-wrap .error.visible { visibility: visible; }

.gate-wrap .footnote {
  margin-top: 4rem;
  font-family: var(--ff-meta);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--bark-soft);
}

.gate-wrap .footnote a { color: var(--pine); }

/* ============================================
   Home page — hero + year strip + cards
   ============================================ */

main.home {
  padding: 0 var(--pad-x);
}

.hero {
  padding: clamp(3rem, 10vh, 8rem) 0 clamp(2rem, 6vh, 4rem);
  max-width: 68rem;
  margin: 0 auto;
}

.hero .eyebrow {
  font-family: var(--ff-meta);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.5rem;
}

.hero .thesis {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.1;
  color: var(--bark);
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem;
  font-variation-settings: "opsz" 96, "SOFT" 100;
}

.hero .thesis .year {
  font-style: normal;
  color: var(--pine);
  font-variation-settings: "opsz" 96, "SOFT" 0;
}

/* ============================================
   Year strip — the signature element
   ============================================ */

.year-strip {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(46, 36, 26, 0.12);
  border-bottom: 1px solid rgba(46, 36, 26, 0.12);
}

.year-strip .label {
  font-family: var(--ff-meta);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bark-soft);
  margin-bottom: 1.5rem;
}

.year-strip .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--ff-meta);
  font-size: 0.95rem;
  color: var(--bark);
}

.year-strip .year {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.year-strip .year .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
  display: inline-block;
}

.year-strip .year.skipped { color: rgba(46, 36, 26, 0.3); }
.year-strip .year.skipped .dot { background: transparent; border: 1px solid rgba(46, 36, 26, 0.2); }

.year-strip .year.upcoming { color: var(--pine); font-weight: 600; }
.year-strip .year.upcoming .dot { background: var(--pine); }

/* ============================================
   Chapter — reflective paragraphs
   ============================================ */

.chapter {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0;
  text-align: left;
}

.chapter p {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--bark-soft);
  margin: 0 0 1.2em;
}

.chapter p strong {
  color: var(--bark);
  font-weight: 500;
}

/* ============================================
   Destinations — three cards
   ============================================ */

.destinations {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) 0 clamp(4rem, 10vh, 6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.destinations .card {
  background: var(--tan);
  border: 1px solid rgba(46, 36, 26, 0.08);
  border-radius: 6px;
  padding: 2rem 1.8rem 1.8rem;
  text-decoration: none;
  color: var(--bark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 12rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.destinations .card:hover {
  transform: translateY(-2px);
  border-color: var(--rust);
  background: var(--cream);
}

.destinations .card .kicker {
  font-family: var(--ff-meta);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.6rem;
}

.destinations .card h3 {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--pine);
  margin: 0 0 0.7rem;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}

.destinations .card p {
  font-size: 0.95rem;
  color: var(--bark-soft);
  margin: 0;
  line-height: 1.5;
}

.destinations .card .go {
  align-self: flex-start;
  margin-top: 1.5rem;
  font-family: var(--ff-meta);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pine);
}

.destinations .card .go::after {
  content: " →";
  color: var(--rust);
  transition: transform 0.15s ease;
  display: inline-block;
}

.destinations .card:hover .go::after {
  transform: translateX(4px);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid rgba(46, 36, 26, 0.12);
  padding: 2rem var(--pad-x);
  font-family: var(--ff-meta);
  font-size: 0.75rem;
  color: var(--bark-soft);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a { color: var(--pine); }

/* ============================================
   Map page
   ============================================ */

.map-page {
  padding: 0 var(--pad-x);
}

.map-intro {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(2rem, 4vh, 3rem);
}

.map-intro .eyebrow {
  font-family: var(--ff-meta);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
}

.map-intro h1 {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--bark);
  margin: 0 0 1.5rem;
  font-variation-settings: "opsz" 96, "SOFT" 100;
}

.map-intro p {
  font-size: 1.1rem;
  color: var(--bark-soft);
  max-width: 44rem;
  margin: 0;
}

#reunion-map {
  max-width: 68rem;
  margin: 0 auto clamp(3rem, 8vh, 5rem);
  height: 60vh;
  min-height: 480px;
  border-radius: 6px;
  border: 1px solid rgba(46, 36, 26, 0.15);
  background: var(--tan);
  overflow: hidden;
}

/* Leaflet popup styling override to match brand */
.leaflet-popup-content-wrapper {
  border-radius: 4px !important;
  background: var(--cream) !important;
  color: var(--bark) !important;
  font-family: var(--ff-body) !important;
  padding: 4px;
}
.leaflet-popup-tip { background: var(--cream) !important; }
.leaflet-popup-content { font-family: var(--ff-body); margin: 12px 14px; }
.leaflet-popup-content .p-year {
  font-family: var(--ff-meta);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.3rem;
}
.leaflet-popup-content .p-loc {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--pine);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.leaflet-popup-content .p-note {
  font-size: 0.9rem;
  color: var(--bark-soft);
  margin: 0;
  line-height: 1.4;
}

/* Reunion pin — custom style */
.reunion-pin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rust);
  border: 3px solid var(--cream);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.reunion-pin.upcoming {
  background: var(--pine);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 0 0 0 rgba(62, 92, 74, 0.5); }
  50% { box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 0 0 10px rgba(62, 92, 74, 0); }
}

/* ============================================
   Next Reunion page — the 5 Ws
   ============================================ */

.next-page {
  padding: 0 var(--pad-x);
}

.next-hero {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(2rem, 5vh, 3rem);
}

.next-hero .eyebrow {
  font-family: var(--ff-meta);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
}

.next-hero h1 {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  color: var(--bark);
  margin: 0 0 1.5rem;
  font-variation-settings: "opsz" 96, "SOFT" 100;
}

.next-hero .lede {
  font-size: 1.2rem;
  color: var(--bark-soft);
  max-width: 44rem;
  margin: 0;
  line-height: 1.5;
}

/* Five Ws — a spare, editorial two-column layout on desktop */

.five-ws {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3rem) 0 clamp(3rem, 6vh, 4rem);
  border-top: 1px solid rgba(46, 36, 26, 0.12);
}

.five-ws .w {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(46, 36, 26, 0.08);
  align-items: baseline;
}

.five-ws .w:last-child { border-bottom: none; }

.five-ws .w-label {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--pine);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.five-ws .w-content p {
  font-family: var(--ff-body);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--bark-soft);
  margin: 0;
}

.five-ws .w-content p strong {
  color: var(--bark);
  font-weight: 500;
}

.five-ws .w-content .tbd {
  font-family: var(--ff-meta);
  font-size: 0.85em;
  font-weight: 500;
  padding: 0.15em 0.5em;
  background: var(--tan);
  color: var(--bark);
  border-radius: 3px;
  letter-spacing: 0.1em;
  margin-right: 0.4em;
  vertical-align: 0.05em;
}

/* Call-to-action strip at the bottom */

.next-cta {
  max-width: 62rem;
  margin: 0 auto clamp(4rem, 10vh, 6rem);
}

.next-cta .cta-inner {
  background: var(--pine);
  color: var(--cream);
  padding: clamp(2.5rem, 6vh, 4rem) clamp(2rem, 5vw, 4rem);
  border-radius: 8px;
  text-align: center;
}

.next-cta h2 {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 1rem;
  font-variation-settings: "opsz" 48, "SOFT" 100;
}

.next-cta p {
  font-size: 1.1rem;
  color: rgba(247, 242, 234, 0.85);
  max-width: 38rem;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.next-cta .btn-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--rust);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--ff-meta);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid var(--rust);
  transition: background 0.15s ease, color 0.15s ease;
}

.next-cta .btn-primary:hover {
  background: var(--cream);
  color: var(--rust-deep);
}

@media (max-width: 640px) {
  .five-ws .w {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0;
  }
  .five-ws .w-label {
    font-size: 2rem;
  }
}

/* ============================================
   Mobile tweaks
   ============================================ */

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .site-header nav { gap: 1rem; }
  .destinations { grid-template-columns: 1fr; }
  .year-strip .row { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* ============================================
