:root {
  --pink: #ef4a78;
  --orange: #f26b45;
  --grad: linear-gradient(90deg, var(--pink), var(--orange));
  --cream: #f4ece0;
  --dim: rgba(244, 236, 224, .62);
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { background: #000; }
html, body { height: 100%; overscroll-behavior: none; }
body {
  margin: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* no background here: it would cover the slideshow, which sits behind the page (html is black instead) */
  color: var(--cream);
  font: 13px/1.5 var(--mono);
  letter-spacing: .04em;
}
a { color: inherit; text-decoration: none; }

/* Background slideshow: black-and-white concert photos, slowly drifting */
.slides { position: fixed; inset: 0; z-index: -1; background: #000; }
.slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.62);
  opacity: 0;
  transition: opacity 1.8s ease;
}
/* The slow zoom is an animation (not a transition) so it also runs on the photo shown when the page opens. */
.slides img.is-on { opacity: 1; animation: drift 6s linear both; } /* 6s = time each photo is shown, so it ends at rest and never jumps */
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.slides::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 0% 0%, rgba(0,0,0,.75), transparent 75%),
    radial-gradient(120% 90% at 30% 100%, rgba(0,0,0,.88), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.55), transparent 28%);
}

/* Top: logo + social */
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--pad);
}
.brand { margin: 0; line-height: 0; }
.logo {
  width: clamp(110px, 12vw, 170px);
  filter:
    drop-shadow(0 0 3px rgba(239, 74, 120, .9))
    drop-shadow(0 0 12px rgba(239, 74, 120, .6))
    drop-shadow(0 0 32px rgba(242, 107, 69, .4));
  animation: hum 7s infinite;
}
@keyframes hum {
  0%, 91%, 100% { opacity: 1; }
  92% { opacity: .55; } 93% { opacity: 1; } 95% { opacity: .7; } 96% { opacity: 1; }
}
.social { display: flex; align-items: center; gap: 22px; text-transform: uppercase; font-size: 12px; }
.social a, .bottom a { color: var(--dim); transition: color .2s; }
.social a:hover, .bottom a:hover { color: var(--cream); }

/* Middle: the next concert */
.next {
  align-self: end;
  padding: 0 var(--pad);
  max-width: 1100px;
}
.label {
  margin: 0 0 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  filter: drop-shadow(0 0 3px rgba(239, 74, 120, 1)) drop-shadow(0 0 12px rgba(239, 74, 120, .75)) drop-shadow(0 0 28px rgba(242, 107, 69, .5));
}
.when { margin: 0 0 6px; font-size: 14px; color: var(--cream); }
.when::first-letter { text-transform: uppercase; }
.when span { white-space: nowrap; } /* wrap between items, never inside one */
.title {
  margin: 0;
  font: 400 clamp(36px, min(9vw, 13vh), 148px)/.92 var(--serif); /* index.php shrinks it further if a long name would not fit */
  letter-spacing: -.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.title em { font-style: italic; }
.title span { display: block; text-wrap: balance; }
.go {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(#0d0b0b, #0d0b0b) padding-box, var(--grad) border-box;
  color: var(--cream);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
  box-shadow: 0 0 24px rgba(239, 74, 120, .2);
}
.go:hover { background: var(--grad) border-box; color: #000; }

/* Bottom: map + email, slide dots */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(28px, 5vh, 56px) var(--pad) var(--pad);
  font-size: 12px;
  text-transform: uppercase;
}
.contact { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.contact .email { text-transform: none; letter-spacing: .04em; }
.contact .musicians { color: var(--pink); }
.dots { display: flex; gap: 6px; }
.count { margin: 0; color: var(--dim); letter-spacing: .12em; }
.count span { color: var(--orange); }
.dots button {
  width: 22px; height: 2px; padding: 0;
  border: 0; background: rgba(244, 236, 224, .3);
  cursor: pointer;
  transition: background .3s, width .3s;
}
.dots button.is-on { width: 40px; background: var(--grad); }

@media (max-width: 640px) {
  .social { flex-direction: column; align-items: flex-end; gap: 8px; }
  .when { font-size: 13px; }
  .bottom { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .slides img { transition: opacity 1s ease; }
  .slides img.is-on { animation: none; }
  .logo { animation: none; }
}

/* Jam session registration page (registracija.php) */
body.reg { height: auto; min-height: 100svh; overflow: auto; display: block; background: radial-gradient(120% 70% at 0% 0%, #2a0f1a, #000 60%); }
.reg__box { width: min(520px, 100%); margin: 0 auto; padding: var(--pad); }
.reg .logo { width: 96px; margin-bottom: 28px; }
.reg .title { font-size: clamp(44px, 12vw, 72px); margin-bottom: 24px; }
.reg__note { color: var(--dim); font-size: 14px; }
.reg__intro { margin: -8px 0 28px; font-size: 14px; line-height: 1.6; color: var(--cream); opacity: .85; }
.reg__tunes .reg__note { margin: 10px 0 0; line-height: 1.6; }
.reg__note a { color: var(--cream); border-bottom: 1px solid var(--pink); }
.reg__error { color: var(--orange); font-size: 14px; }
.reg__form { display: grid; gap: 18px; }
.reg__form label { display: grid; gap: 8px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.reg__form input, .reg__form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(244, 236, 224, .25);
  border-radius: 12px;
  background: rgba(0, 0, 0, .5);
  color: var(--cream);
  font: 16px var(--mono); /* 16px stops iPhones zooming in on the field */
  text-transform: none;
  letter-spacing: 0;
}
.reg__form input:focus, .reg__form select:focus { outline: none; border-color: var(--pink); }
.reg__form button.go { margin-top: 8px; cursor: pointer; font-family: var(--mono); }
.reg__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.reg__tunes { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line, rgba(244,236,224,.2)); }
.reg__form .reg__consent { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 1.5; cursor: pointer; }
.reg__consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--pink); }
.reg__tunes ol { margin: 12px 0 0; padding-left: 26px; font: 22px/1.5 var(--serif); }
.reg__tunes li { margin-bottom: 14px; }
.reg__tunes li span { display: block; }
.reg__tunes li a { display: inline-block; margin: 6px 6px 0 0; padding: 3px 10px; border: 1px solid rgba(244, 236, 224, .25); border-radius: 999px; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); vertical-align: middle; }
.reg__tunes li a:hover { border-color: var(--pink); color: var(--cream); }
.reg__take { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.reg__take a, .reg__take button { padding: 9px 14px; border: 1px solid var(--pink); border-radius: 999px; background: transparent; color: var(--cream); font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.reg__take a:hover, .reg__take button:hover { background: var(--pink); color: #000; }
.reg__suggest { margin-top: 28px; }
.reg__suggest summary { cursor: pointer; color: var(--dim); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; list-style: none; }
.reg__suggest summary::-webkit-details-marker { display: none; }
.reg__suggest summary:hover { color: var(--cream); }
.reg__suggest .reg__form { margin-top: 14px; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.reg__suggest .reg__form button.go { margin-top: 0; }

/* Desktop: form on the left, standards on the right. Phones keep one column. */
@media (min-width: 900px) {
  .reg__box.has-tunes { width: min(1100px, 100%); min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7vw; align-content: center; }
  .has-tunes .reg__tunes { margin-top: 124px; padding: 0 0 0 7vw; border-top: 0; border-left: 1px solid rgba(244, 236, 224, .2); }
}
