/* Base */
:root {
  --bg-image: url("bg.png");
}

* { box-sizing: border-box; }

body {
  background-image: var(--bg-image);
  background-repeat: repeat;
  background-size: auto;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: opacity 150ms ease;
}

a:hover {
  opacity: 0.7;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;   /* ALWAYS one column */
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  overflow-x: hidden;
}

/* Intro overlay */
.introOverlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
  z-index: 10;
}

.introOverlay.show {
  opacity: 1;
}

.introLogo {
  width: min(72vmin, 520px);
  height: auto;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.985);
  will-change: transform, opacity;
  transition:
    opacity 700ms ease-out,
    transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.introOverlay.show .introLogo {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes vinylSpin {
  from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(0, 0, 0) rotate(360deg) scale(1); }
}

.introOverlay.spin .introLogo {
  animation: vinylSpin 1200ms linear infinite;
}

/* Page content: hidden until reveal */
.leftPane,
.rightPane {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 1000ms ease, transform 1000ms ease;
}

.stage.showLayout .leftPane,
.stage.showLayout .rightPane {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Logo block */
.leftPane {
  display: grid;
  place-items: center;
  padding-top: 8px;
}

.logo {
  width: min(56vmin, 260px); /* one-column “mobile” look */
  height: auto;
}

/* Description under logo */
.logoDescription {
  margin-top: 12px;
  max-width: 420px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.75;
  letter-spacing: 0.01em;
  opacity: 0.65;
  font-weight: 300;
  font-optical-sizing: auto;
  font-family: "Rubik", sans-serif;
}

/* Slightly tighter spacing on very small screens */
@media (max-width: 420px) {
  .logoDescription {
    font-size: 13px;
    margin-top: 10px;
  }
}

/* Events */
.rightPane {
  width: 100%;
  max-width: 600px;
  margin: 0 auto; /* center the column on wide screens */
}

.eventsTitle {
  font-family: "Titan One", serif;
  margin: 20px 0;
  font-size: 32px;
  font-weight: 200;
  color: color(srgb 0.8144 0.5868 0.1606);
}

.eventsTitlePast {
  font-family: "Titan One", serif;
  padding-top:40px;
  margin: 20px 0;
  font-size: 32px;
  font-weight: 200;
  color: color(srgb 0.8144 0.5868 0.1606);
}

.eventsList {
  display: grid;
  gap: 12px;
}

.eventCard {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.65);
}

.eventTop {
  display: flex;
  flex-direction: column; /* always stacked like mobile */
  gap: 6px;
}

.eventName {
  font-weight: 700;
  font-optical-sizing: auto;
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
}

.eventMeta {
  opacity: 0.7;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 400;
  font-optical-sizing: auto;
  font-family: "Rubik", sans-serif;
}

.eventBody {
  opacity: 0.85;
  line-height: 1.35;
  font-weight: 300;
  font-optical-sizing: auto;
  font-family: "Rubik", sans-serif;
  margin-top:8px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .introOverlay.spin .introLogo { animation: none; }
  .introOverlay, .introLogo, .leftPane, .rightPane { transition: none; }
}