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

/* ── Design tokens ── */
:root {
  --ivory:       #faf8f3;
  --ivory-dark:  #f0ece2;
  --charcoal:    #2a2118;
  --ink:         #3d3027;
  --gold:        #c9973a;
  --gold-light:  #e8bf6a;
  --rose:        #c95c54;
  --sage:        #5d8a6a;
  --mist:        #e8e2d6;
  --hero-h:      100svh;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --max-w:       1100px;
  --section-pad: clamp(3rem, 8vw, 6rem);
  --radius:      6px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.is-photon {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  height: var(--hero-h);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,12,5,0.72) 0%,
    rgba(40,24,10,0.55) 50%,
    rgba(20,12,5,0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.site-back {
  position: absolute;
  top: -6rem;
  left: 0;
  right: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-back a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.site-back a:hover { color: var(--gold-light); }

/* Big counter number */
.counter-wrap {
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.counter-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(5rem, 20vw, 13rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold-light);
  letter-spacing: -0.04em;
  text-shadow: 0 4px 40px rgba(201,151,58,0.4);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.6rem;
}

.hero-sub {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
  margin-bottom: 1.8rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.88rem;
}

.hero-date, .ec-location {
  color: var(--gold-light);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.hero-date:hover, .ec-location:hover { opacity: 1; }

.hero-sep { color: rgba(255,255,255,0.35); }

.hero-loc {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.4);
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════
   INTRO SECTION
══════════════════════════════════════════ */
.intro-section {
  background: var(--ivory);
  padding: var(--section-pad) 1.5rem;
}

.intro-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title .accent { color: var(--gold); }

.intro-lead {
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 42ch;
  opacity: 0.85;
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.label-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--gold);
  color: #fff;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.label-tag:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
}

.intro-image { flex-shrink: 0; }

.storch-float {
  width: clamp(120px, 20vw, 220px);
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(42,33,24,0.18);
  display: block;
  transition: transform 0.4s;
}

.storch-float:hover { transform: scale(1.03) rotate(-1deg); }

/* ══════════════════════════════════════════
   NAMES SECTION
══════════════════════════════════════════ */
.names-section {
  background: var(--ivory-dark);
  padding: var(--section-pad) 1.5rem;
  border-top: 2px solid var(--mist);
}

.names-header {
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--mist);
  padding-bottom: 1rem;
}

.names-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--charcoal);
}

.names-total {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 2rem;
  flex-shrink: 0;
}

.names-body {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Multi-column names list */
.names-body ol {
  column-count: 6;
  column-gap: 1.5rem;
  column-rule: 1px solid var(--mist);
  list-style-position: inside;
  padding: 0;
}

.names-body ol li {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--ink);
  break-inside: avoid;
  opacity: 0.82;
  transition: opacity 0.15s, color 0.15s;
  padding-left: 0.2rem;
}

.names-body ol li:hover {
  opacity: 1;
  color: var(--gold);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--charcoal);
  padding: 2.5rem 1.5rem;
}

nav.event-collections {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
}

.ec-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.03em;
}

.ec-link:hover { color: var(--gold-light); }

.ec-home {
  color: var(--gold-light);
  font-weight: 600;
  margin-right: 0.5rem;
}

.ec-date { color: rgba(255,255,255,0.7); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .names-body ol { column-count: 4; }
  .intro-inner { grid-template-columns: 1fr; }
  .intro-image { display: none; }
}

@media (max-width: 600px) {
  .names-body ol { column-count: 3; }
  .counter-num { font-size: clamp(4rem, 22vw, 7rem); }
}

@media (max-width: 400px) {
  .names-body ol { column-count: 2; }
}

@media (max-width: 320px) {
  .names-body ol { column-count: 1; }
}

/* ── 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}
