@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700;900&family=Source+Sans+3:ital,wght@0,300;0,400;1,300;1,400&display=swap');

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

:root {
  --navy:       #1e1b2e;
  --navy-light: #2a2540;
  --rose:       #c0392b;
  --rose-light: #e05c4e;
  --cream:      #f4f0ea;
  --ink:        #1a1a1a;
  --link:       #8b2020;
  --link-hover: #4a0f0f;
  --link-visited: #6b3030;
}

html { font-size: 16px; scroll-behavior: smooth; }

body.is-forty {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

/* Global links */
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:visited { color: var(--link-visited); }
a:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 2px; }

/* ── Header ── */
#header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 1.25rem 2rem;
}
.logo a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.logo a:hover { color: #fff; text-decoration: none; }
.logo a:visited { color: rgba(255,255,255,0.6); }

/* ── Banner ── */
#banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
#banner .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
#banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,20,0.88) 0%, rgba(10,8,20,0.35) 55%, rgba(10,8,20,0.1) 100%);
}
#banner .inner {
  position: relative;
  z-index: 1;
  padding: 4rem 2.5rem 3.5rem;
  max-width: 900px;
}
#banner h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.meta-date, .meta-location {
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.3rem;
}
.meta-date a, .meta-location a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.meta-date a:hover, .meta-location a:hover { color: #fff; text-decoration: underline; }
.meta-date a:visited, .meta-location a:visited { color: rgba(255,255,255,0.65); }

.label-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.label-tag {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25em 0.8em;
  border-radius: 2px;
  background: rgba(192,57,43,0.85);
  color: #fff;
  transition: background 0.2s;
  border: 1px solid transparent;
}
.label-tag:hover { background: var(--rose-light); color: #fff; text-decoration: none; }
a.label-tag:visited { background: rgba(120,40,30,0.75); color: rgba(255,255,255,0.85); }
a.label-tag:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Tile grid ── */
#tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  background: var(--navy);
}
.tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.tile .image {
  position: absolute;
  inset: 0;
}
.tile .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.tile:hover .image img { transform: scale(1.07); }

.tile header {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(30,27,46,0.85) 0%, rgba(30,27,46,0) 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tile:hover header { opacity: 1; }
.tile header h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* ── Body text ── */
#main {
  background: var(--cream);
  padding: 3rem 0;
}
#main .inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.event-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 1rem;
  font-style: italic;
  font-weight: 300;
}

/* ── Footer ── */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
#footer a { color: rgba(255,255,255,0.65); }
#footer a:hover { color: #fff; text-decoration: none; }
#footer a:visited { color: rgba(255,255,255,0.45); }
.sep { margin: 0 0.5rem; }

/* ── Mobile ── */
@media (max-width: 600px) {
  #tiles { grid-template-columns: repeat(2, 1fr); }
  #banner h1 { font-size: 2.4rem; }
  #banner .inner { padding: 2.5rem 1.25rem 2.5rem; }
  .tile header { opacity: 1; }  /* always visible on touch */
}
@media (max-width: 360px) {
  #tiles { grid-template-columns: 1fr; }
}

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