/* ── Reset & base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --surface:  #141414;
  --surface2: #1e1e1e;
  --border:   #2a2a2a;
  --text:      #e8e8e8;
  --muted:    #888;
  --accent:   #d4a017;
  --accent2:  #b8860b;
  --radius:   8px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }

img {
  display: block;
  max-width: 100%;
  background: var(--surface2);
}

/* ── Header ───────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header-brand { text-decoration: none; display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.site-header-brand:hover { text-decoration: none; }
.site-logo { width: 52px; height: 52px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.site-title { font-size: 1.15rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.site-subtitle { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.site-nav { display: flex; gap: 4px; flex-shrink: 0; }
.nav-link {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); border-color: var(--border); text-decoration: none; }
.nav-link.active { color: var(--accent); border-color: var(--border); }

/* ── Main layout ──────────────────────────── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

/* ── Home tagline ─────────────────────────── */
.home-tagline {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── About page ───────────────────────────── */
.about-hero {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}
.about-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}
.about-body h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
  line-height: 1.2;
}
.about-body p {
  color: #bbb;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5em;
}
.about-body strong { color: var(--text); }
.camera-float {
  float: right;
  margin: 0 0 20px 28px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.about-body::after { content: ""; display: table; clear: both; }
.about-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 24px;
  transition: background 0.15s;
}
.about-cta:hover { background: var(--accent2); color: #000; text-decoration: none; }

/* ── Filter bar ───────────────────────────── */
.filter-bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.filter-bar input[type=search] {
  flex: 1 1 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}
.filter-bar input[type=search]:focus { border-color: var(--accent); }
.year-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.year-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.year-btn:hover, .year-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

/* ── Events grid ──────────────────────────── */
.year-section { padding: 32px 0 8px; }
.year-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
  text-decoration: none;
  display: block;
}
.event-card:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.event-card-thumb {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface2);
}
.event-card-info { padding: 10px 12px 12px; }
.event-card-title {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text); line-height: 1.3;
}
.event-card-meta { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* ── Event page ───────────────────────────── */
.event-header {
  padding: 24px 16px 20px;
  border-bottom: 1px solid var(--border);
}
.back-link { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; display: inline-block; }
.back-link:hover { color: var(--accent); }
.event-title { font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.event-meta { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px;
  padding: 16px;
}
.photo-item {
  position: relative; cursor: pointer;
  border-radius: 4px;
  background: var(--surface2);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.photo-item img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.2s;
}
.photo-item:hover img { transform: scale(1.04); }

/* ── PhotoSwipe caption ───────────────────────── */
.pswp__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  text-align: center;
  font-size: 0.9rem;
  color: #e8e8e8;
  pointer-events: none;
  line-height: 1.4;
}

/* ── No results ───────────────────────────── */
.no-results { padding: 48px 16px; text-align: center; color: var(--muted); display: none; }

/* ── Footer ───────────────────────────────── */
.site-footer {
  margin-top: 48px; border-top: 1px solid var(--border);
  padding: 24px 16px; text-align: center;
  color: var(--muted); font-size: 0.8rem;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 600px) {
  .site-header { padding: 10px 14px; gap: 10px; }
  .site-logo { width: 42px; height: 42px; }
  .site-title { font-size: 1rem; }
  .nav-link { padding: 8px 10px; font-size: 0.8rem; }
  .event-title { font-size: 1.3rem; }
  .photo-grid { padding: 8px; gap: 3px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .about-hero { max-height: 260px; }
  .about-body { padding: 28px 20px 48px; }
  .about-body h1 { font-size: 1.5rem; }
  .camera-float { float: none; margin: 0 0 20px; }
  .camera-float img { width: 100%; max-width: 240px; }
}
