@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&display=swap');

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

:root {
  --bg: #0d0d0d;
  --bg-subtle: #141414;
  --text: #c8c8c8;
  --text-muted: #666;
  --accent: #5a9e6f;
  --accent-dim: #3d6b4d;
  --rule: #222;
  --font: 'IBM Plex Mono', 'Courier New', monospace;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

/* ── Header ── */

header {
  margin-bottom: 72px;
}

header h1 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

header p {
  color: var(--text-muted);
  font-size: 13px;
}

header a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Index listing ── */

.event-list {
  list-style: none;
}

.event-list li {
  border-bottom: 1px solid var(--rule);
}

.event-list a {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
}

.event-list a:hover {
  color: var(--accent);
}

.event-list a:hover .event-date {
  color: var(--accent-dim);
}

.event-topic-inline {
  font-size: 13px;
}

/* ── Event ── */

.event {
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}

.event:last-child {
  border-bottom: none;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
}

.event-edition {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.event-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Sections ── */

.label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.event-topic {
  margin-bottom: 28px;
}

.event-topic .value {
  font-size: 15px;
  color: var(--text);
}

.event-notes {
  margin-bottom: 28px;
}

.event-notes .value {
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
}

.event-links {
  margin-bottom: 28px;
}

.event-links ul {
  list-style: none;
}

.event-links li {
  margin-bottom: 4px;
}

.event-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}

.event-links a::before {
  content: '→ ';
  color: var(--accent-dim);
}

.event-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Photos ── */

.event-photos {
  margin-top: 32px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
}

.photo-thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-subtle);
  border: none;
  padding: 0;
  cursor: pointer;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.photo-thumb:hover img {
  opacity: 0.85;
}

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 18px;
  padding: 16px 20px;
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--text);
}

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ── Empty state ── */

.empty {
  color: var(--text-muted);
  font-size: 13px;
  padding-top: 32px;
}

/* ── Footer ── */

footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  color: var(--text-muted);
}
