@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Inter:wght@300;400;600&display=swap');

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

:root {
  --accent: #2e7d32;
  --accent-light: #66bb6a;
  --dark: #0d1b0e;
  --text: #f5f0ea;
}

body.is-story {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── Topbar ── */
.st-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(13,27,14,0);
  transition: background 0.4s;
}
.st-topbar.scrolled { background: rgba(13,27,14,0.95); backdrop-filter: blur(10px); }
.st-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-light);
  text-decoration: none;
}
.st-topbar__title { font-size: 0.85rem; color: rgba(245,240,234,0.6); opacity: 0; transition: opacity 0.3s; }
.st-topbar.scrolled .st-topbar__title { opacity: 1; }

/* ── Panels ── */
.panel { min-height: 100svh; display: flex; align-items: center; position: relative; }

/* ── Hero panel ── */
.panel-hero {
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
}
.panel-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.45);
}
.panel-hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}
.st-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.8rem;
}
.st-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.st-location { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 1.2rem; }
.panel-hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-arrow {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-light);
  animation: bob 1.5s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ── Text panel ── */
.panel-text { background: #f5f0ea; color: #1a2b1c; }
.panel-text__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem;
  line-height: 1.85;
}

/* ── Split panel ── */
.panel-split {
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70svh;
}
@media (max-width: 700px) {
  .panel-split { grid-template-columns: 1fr; }
}
.panel-split__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  gap: 1.2rem;
}
.panel-split__text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--accent-light);
}
.panel-split__text p { color: rgba(245,240,234,0.75); line-height: 1.75; }

/* ── Labels ── */
.st-labels { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.label-tag {
  background: rgba(102,187,106,0.15);
  border: 1px solid rgba(102,187,106,0.4);
  color: var(--accent-light);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.2s;
}
.label-tag:hover { background: rgba(102,187,106,0.3); }

/* ── Body text on light bg ── */
.panel-text__inner h3,.panel-text__inner h4 {
  font-family: 'Playfair Display', serif;
  color: #2e7d32;
  margin: 1.5rem 0 0.5rem;
}
.panel-text__inner blockquote {
  border-left: 3px solid #66bb6a;
  padding: 0.6rem 1.2rem;
  margin: 1rem 0;
  background: rgba(46,125,50,0.06);
  font-style: italic;
  color: #2e4030;
}
.panel-text__inner em { color: #2e7d32; }
.panel-text__inner img { max-width: 100%; border-radius: 4px; margin: 1rem 0; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Lightbox ── */
#lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);
  z-index:9999;align-items:center;justify-content:center;
  flex-direction:column;gap:.5rem}
#lightbox img{max-width:90vw;max-height:80vh;object-fit:contain}
.lb-close{position:fixed;top:1rem;right:1.5rem;font-size:2.5rem;
  color:#fff;cursor:pointer;line-height:1;opacity:.8}
.lb-close:hover{opacity:1}
.lb-nav{position:fixed;top:50%;transform:translateY(-50%);font-size:3rem;
  color:#fff;cursor:pointer;padding:.5rem;user-select:none;opacity:.7}
.lb-nav:hover{opacity:1}
.lb-prev{left:1rem}.lb-next{right:1rem}
.lb-caption{color:#ccc;font-size:.9rem;text-align:center;max-width:80vw}

/* ── Collection links ── */
nav.event-collections{display:flex;flex-wrap:wrap;gap:.5rem 1rem;padding:1rem 1.5rem;border-top:1px solid rgba(128,128,128,.2);font-family:var(--font-head,sans-serif);font-size:.82rem}
nav.event-collections .ec-link{color:var(--accent,#888);text-decoration:none;opacity:.8;transition:opacity .2s}
nav.event-collections .ec-link:hover{opacity:1}
