/* Palette: night sky with indigo dusk, violet haze and neon fairground lights. */
:root {
  --night: #120e18;
  --indigo: #2c3478;
  --indigo-deep: #232657;
  --violet: #8a6fb3;
  --neon: #ff7a3d;
  --neon-warm: #ffb35c;
  --ember: #e8414f;
  --text: #f6f2ff;
  --muted: #c9c3e6;
  --muted-2: #b9b3dc;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.13);
  --neon-gradient: linear-gradient(100deg, var(--neon-warm) 0%, var(--neon) 45%, var(--ember) 100%);
  --button-gradient: linear-gradient(100deg, var(--neon-warm), var(--neon));
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Unbounded", "Inter", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 5.5vw, 80px);
  --max: 1280px;
  --nav-height: 69px;
  color-scheme: dark;
}

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

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--neon); color: var(--night); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--neon-warm);
  outline-offset: 3px;
}

/* Sky. Static on purpose: animating this full-screen layer made the browser redraw every frame. */
body::before {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(14% 10% at 82% 15%, rgba(255, 196, 110, 0.75), transparent 75%),
    radial-gradient(30% 22% at 85% 18%, rgba(255, 110, 50, 0.6), transparent 72%),
    radial-gradient(50% 40% at 92% 28%, rgba(232, 50, 80, 0.42), transparent 70%),
    radial-gradient(60% 40% at 30% 92%, rgba(138, 111, 179, 0.38), transparent 70%),
    radial-gradient(50% 40% at 8% 40%, rgba(70, 92, 190, 0.45), transparent 70%),
    linear-gradient(165deg, #2f3a86 0%, var(--indigo) 30%, var(--indigo-deep) 58%, #1b1630 80%, var(--night) 100%);
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='2.6 0 0 0 -.8 2.6 0 0 0 -.8 2.6 0 0 0 -.8 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Navbar: shared by every page, stays on top while scrolling. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

/* Blur lives on a layer: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(30, 30, 72, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-nav__links {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  column-gap: clamp(16px, 2.2vw, 32px);
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-nav__links a:hover { color: var(--neon-warm); }

.site-nav__links a[aria-current="page"] {
  color: var(--neon);
  font-weight: 600;
}

.site-nav__links a svg { color: var(--neon-warm); }

.site-nav__menu {
  display: flex;
  align-items: center;
  column-gap: inherit;
}

.site-nav__toggle,
.site-nav__close {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text);
  cursor: pointer;
}

/* Mobile: Late Night Media on the left, burger on the right, the rest opens as a full-screen overlay. */
@media (max-width: 640px) {
  .site-nav__links { justify-content: space-between; }

  .site-nav__toggle { display: inline-grid; margin-right: -10px; }

  .site-nav__menu { display: none; }

  .site-nav.is-open .site-nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 80px var(--gutter);
    background: rgba(18, 14, 24, 0.86);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    animation: menu-in 0.18s ease-out;
  }

  .site-nav__menu a {
    min-height: 56px;
    padding: 0 24px;
    font-family: var(--font-display);
    font-size: 26px;
  }

  .site-nav__links .site-nav__menu a[aria-current="page"] { font-weight: 500; }

  .site-nav__close {
    display: inline-grid;
    position: absolute;
    top: 12px;
    right: calc(var(--gutter) - 10px);
  }

  html.menu-open { overflow: hidden; }
}

@keyframes menu-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav.is-open .site-nav__menu { animation: none; }
}

/* Shared text */
.neon {
  display: inline-block;
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.text-link {
  color: var(--neon-warm);
  text-decoration: underline;
  text-decoration-color: rgba(255, 179, 92, 0.45);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease;
}

.text-link:hover { text-decoration-color: currentColor; }

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--neon-warm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--button-gradient);
  box-shadow: 0 12px 40px -12px rgba(255, 122, 61, 0.8);
  color: var(--night);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.btn-primary:hover { filter: brightness(1.07); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--neon-warm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.center-row {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* Main page */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vw, 104px) var(--gutter);
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.2vw, 32px);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 120px);
  font-weight: 500;
  line-height: 1.25em;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(18, 14, 24, 0.35);
}

.hero__title > span:first-child { display: block; }

.hero__title .neon { filter: drop-shadow(0 0 22px rgba(255, 122, 61, 0.5)); }

.hero__lead {
  margin: 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Inner pages */
.page {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 5.5vw, 80px) var(--gutter) clamp(56px, 6.5vw, 96px);
}

.page__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.page-head__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Schools and parties pages */
.chips {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.chip:hover { background: rgba(255, 255, 255, 0.1); }

.chip__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--button-gradient);
  color: var(--night);
  font-weight: 600;
}

.chip[aria-pressed="true"] .chip__count {
  background: rgba(18, 14, 24, 0.18);
  color: inherit;
  font-weight: 700;
}

.cities {
  margin-top: 28px;
  columns: 440px 2;
  column-gap: 20px;
}

.city {
  break-inside: avoid;
  margin: 0 0 20px;
  padding: 22px 24px 8px;
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: var(--glass);
}

.city__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}

.city__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.city__title svg { flex: none; color: var(--neon); }

.city__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.city__country {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(138, 111, 179, 0.25);
  color: #ddd0f5;
  font-size: 12px;
  font-weight: 600;
}

.city__count {
  flex: none;
  color: var(--muted-2);
  font-size: 14px;
}

.school,
.party {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.school__name,
.party__name {
  padding: 10px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.school__links,
.party__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.school__links a,
.party__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--neon-warm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.school__links a:hover,
.party__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.party__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
}

.party__info .party__name { padding: 0; }

.party__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--muted-2);
  font-size: 14px;
}

.party__style {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Festivals page: any <iframe> placed inside .calendar fills it. */
.calendar {
  position: relative;
  height: clamp(560px, 78vh, 840px);
  margin-top: 40px;
  padding: 8px;
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 40px 100px -30px rgba(6, 4, 16, 0.85),
    0 0 160px -50px rgba(255, 122, 61, 0.45);
}

.calendar iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 20px;
  background: #fff;
}

@media (max-width: 640px) {
  .city { padding: 18px 18px 6px; border-radius: 20px; }

  .calendar {
    height: 72vh;
    min-height: 520px;
    padding: 6px;
    border-radius: 20px;
  }

  .calendar iframe { border-radius: 14px; }
}
