/* ===== Design tokens ===== */
:root {
  --sage: #7c9473;
  --sage-dark: #5f7658;
  --sage-pale: #cdd9c6;
  --cream: #faf8f2;
  --cream-deep: #f1ede2;
  --ink: #33352f;
  --ink-soft: #6b6b62;
  --line: #dcd6c6;
  --overlay-dark: rgba(30, 34, 24, 0.55);
  --overlay-sage: rgba(124, 148, 115, 0.72);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
p { line-height: 1.75; color: var(--ink-soft); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--sage-dark);
  font-weight: 600;
}
.logo-title em { font-style: normal; color: var(--ink); font-weight: 500; }
.logo-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--sage-dark); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--sage-dark);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 88vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 8s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin: 0 0 90px 5vw;
  max-width: 720px;
}
.hero-title span {
  display: inline-block;
  background: var(--overlay-dark);
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.9rem);
  font-weight: 600;
  padding: 18px 28px;
  line-height: 1.25;
}
.hero-subtitle {
  margin-top: 10px;
  margin-left: 14%;
}
.hero-subtitle span {
  display: inline-block;
  background: var(--overlay-sage);
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  padding: 8px 20px;
}
.hero-tagline {
  margin-top: 14px;
  margin-left: 14%;
}
.hero-tagline span {
  display: inline-block;
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  opacity: 0.75;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: #fff; opacity: 1; }

.btn-pill {
  display: inline-block;
  background: var(--sage-pale);
  color: var(--sage-dark);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 46px;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-pill:hover { background: var(--sage); color: #fff; }

/* ===== Section titles ===== */
.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), var(--sage));
}
.section-title::after { background: linear-gradient(90deg, var(--sage), var(--sage), transparent); }
.section-title.light { color: #fff; }
.section-title.light::before,
.section-title.light::after { background: rgba(255,255,255,0.5); }
.section-kicker {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 12px 0 0;
  font-size: 1.05rem;
}
.section-kicker.light { color: rgba(255,255,255,0.85); }
.section-kicker a { color: var(--sage-dark); text-decoration: underline; font-style: normal; }
.section-kicker.light a { color: #fff; }

/* ===== About ===== */
.about { padding: 64px 32px 28px; max-width: 780px; margin: 0 auto; text-align: center; }
.lede-center {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--sage-dark);
  line-height: 1.5;
  margin: 22px 0;
}
.about-text { max-width: 680px; margin: 22px auto; }
.about-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sage-dark);
  margin-top: 32px;
}

/* ===== What Happens Here ===== */
.happens { padding: 56px 32px; max-width: 680px; margin: 0 auto; text-align: center; }

/* ===== Event Flyers ===== */
.flyers { padding: 36px 32px 64px; max-width: 1180px; margin: 0 auto; }
.flyers-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(507px, 741px));
  justify-content: center;
  gap: 60px;
}
.flyer-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(30, 34, 24, 0.06);
}
.flyer-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.flyer-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 30px 36px 39px;
}
.flyer-title {
  font-family: var(--serif);
  font-size: 2.25rem;
  color: var(--ink);
}
.flyer-date {
  font-size: 1.53rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.flyers-empty {
  text-align: center;
  margin-top: 40px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.flyers-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 46px;
}
.flyers-more-wrap .btn-pill[hidden] { display: none; }
.flyers-more-wrap .btn-pill {
  background: transparent;
  border: 1px solid var(--sage);
  color: var(--sage-dark);
}
.flyers-more-wrap .btn-pill:hover { background: var(--sage); color: #fff; }

/* ===== Gallery ===== */
.gallery { padding: 64px 32px; max-width: 1240px; margin: 0 auto; }
.gallery-grid {
  margin-top: 40px;
  columns: 4 260px;
  column-gap: 18px;
}
.gallery-grid figure {
  margin: 0 0 18px;
  break-inside: avoid;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-grid img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figure::after {
  content: "\2295";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  background: rgba(51,53,47,0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.gallery-grid figure:hover::after {
  opacity: 1;
  background: rgba(51,53,47,0.28);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 22, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  padding: 10px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 20px; right: 26px; font-size: 2.4rem; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-count {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ===== Events ===== */
.events {
  background: var(--sage-dark);
  padding: 64px 32px;
  text-align: center;
}
.calendar-card {
  max-width: 900px;
  margin: 36px auto 0;
  background: var(--cream);
  line-height: 0;
  box-shadow: 0 24px 50px rgba(0,0,0,0.25);
}
.calendar-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ===== Footer ===== */
.site-footer {
  background: #2c3327;
  color: rgba(255,255,255,0.75);
  padding: 56px 32px 30px;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { color: var(--sage-pale) !important; font-size: 1.5rem; }
.footer-logo em { color: #fff; }
.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage-pale);
  margin-top: 14px;
}
.footer-note {
  font-style: italic;
  color: var(--sage-pale);
}
.footer-map {
  max-width: 1180px;
  margin: 36px auto 0;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.footer-map iframe { width: 100%; display: block; }
.footer-bottom {
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 12px 32px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-copy { margin-left: 4vw; max-width: 90vw; }
  .hero-subtitle { margin-left: 6%; }
  .hero-tagline { margin-left: 6%; }
  .gallery-grid { columns: 2 200px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
