@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

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

/* ── Tokens ── */
:root {
  --glass-bg:      rgba(255, 255, 255, 0.08);
  --glass-border:  rgba(255, 255, 255, 0.15);
  --glass-blur:    20px;
  --fg:            #f0f0f0;
  --fg-dim:        rgba(255, 255, 255, 0.55);
  --accent:        #7eb8d0;
  --accent-glow:   rgba(126, 184, 208, 0.35);
}

/* ── Base ── */
html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

/* Global link styles — sky-blue accent on dark backgrounds */
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
a:visited { color: #5a8fa3; }  /* solid muted sky-blue — readable on dark, distinct from #7eb8d0 */
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

body.is-aerial {
  background: #050510;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Full-screen blurred background ── */
#bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.55) saturate(1.1);
  z-index: -1;
  transform: scale(1.08); /* hide blurred edges */
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* ── Shooting-star canvas ── */
#star-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Centred wrapper ── */
#wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* ── Glass card ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  padding: 3rem 3.5rem;
  max-width: 62ch;
  width: 100%;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: card-enter 0.8s ease-out both;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Header ── */
.glass-card header {
  text-align: center;
}

.site-title {
  margin-bottom: 1.5rem;
}

.site-title a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.site-title a:hover {
  color: var(--accent);
}
.site-title a:visited { color: var(--fg-dim); }

.glass-card h1 {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.meta {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--fg-dim);
  letter-spacing: 0.03em;
}

.meta-labels {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Meta links (date, location) — slightly brighter than dim text */
.meta a { color: rgba(255,255,255,0.78); text-decoration: none; }
.meta a:hover { color: #fff; text-decoration: underline; }
.meta a:visited { color: rgba(255,255,255,0.72); }

.label-tag {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.label-tag:hover {
  background: var(--accent);
  color: #111;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Label pill link states */
a.label-tag { text-decoration: none; }
a.label-tag:visited { color: #5a8fa3; border-color: #5a8fa3; }  /* solid, no opacity trick */
a.label-tag:visited:hover { color: #111; border-color: var(--accent); }
a.label-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }

/* ── Divider ── */
.glass-card hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--glass-border) 30%,
    var(--glass-border) 70%,
    transparent
  );
  margin: 2rem 0;
}

/* ── Event body ── */
.event-body {
  font-size: 1.05rem;
  font-weight: 300;
  text-align: center;
}

.event-body p {
  margin-bottom: 1rem;
  color: var(--fg-dim);
}

.event-body p:first-child {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}

.event-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.event-body img:hover {
  opacity: 0.9;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.event-body a {
  color: var(--accent);
  text-decoration: none;
}
.event-body a:hover { color: #fff; text-decoration: underline; }
.event-body a:visited { color: #5a8fa3; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--fg-dim);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 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}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
  #wrapper {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 3rem;
  }

  .glass-card {
    padding: 2rem 1.5rem;
    border-radius: 0.8rem;
  }

  .glass-card h1 {
    font-size: 1.6rem;
  }

  .meta {
    font-size: 0.8rem;
  }
}
