/* Nightbloom Festival – music festival website demo by Drago Katić Development
   Fonts (SIL Open Font License, see fonts/OFL-*.txt): Unbounded, Rubik
   Pages and illustrations are generated by arhiva/alati/gen_nightbloom.py */

@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-ext.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #140b2e;
  --night-2: #1d1142;
  --violet: #3a1d7a;
  --magenta: #ff3d8b;
  --cyan: #37e2d5;
  --lime: #c6ff4d;
  --sun: #ffb547;
  --cream: #fbf4ff;
  --muted: #b9acd6;
  --line: rgba(251, 244, 255, .14);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--cyan);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .45em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(2.3rem, 1.3rem + 4.4vw, 5rem);
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.nb-wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.nb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nb-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--night);
}

.nb-skip:focus {
  top: 12px;
}

.nb-kicker {
  margin-bottom: .8em;
  color: var(--lime);
  font: 700 .8rem var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nb-lead {
  max-width: 36rem;
  color: #e3d9f5;
  font-size: 1.2rem;
}

/* ---------- buttons ---------- */
.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 .95rem var(--display);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s;
}

.nb-btn-hot {
  background: linear-gradient(90deg, var(--magenta), #ff6f61);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 61, 139, .8);
}

.nb-btn-hot:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(255, 61, 139, .9);
}

.nb-btn-line {
  border-color: var(--cream);
  color: var(--cream);
}

.nb-btn-line:hover {
  background: var(--cream);
  color: var(--night);
}

/* ---------- header ---------- */
.nb-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .3s;
}

.nb-header.is-solid,
.nb-header.is-open {
  background: rgba(20, 11, 46, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.nb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font: 700 1.3rem var(--display);
  text-decoration: none;
}

.nb-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.nb-nav a:hover {
  background: rgba(251, 244, 255, .1);
}

.nb-nav .nb-nav-cta {
  margin-left: 8px;
  background: var(--lime);
  color: var(--night);
  font-family: var(--display);
  font-size: .9rem;
}

.nb-nav .nb-nav-cta:hover {
  background: #fff;
}

.nb-menu {
  display: none;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 700 .9rem var(--display);
  cursor: pointer;
}

/* ---------- hero ---------- */
.nb-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(640px, 100vh);
  min-height: max(640px, 100svh);
  padding: 120px 0 80px;
  overflow: hidden;
}

.nb-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--night) 0%, rgba(20, 11, 46, .75) 35%, rgba(20, 11, 46, .1) 75%);
}

.nb-hero-inner {
  position: relative;
  z-index: 1;
}

.nb-date {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(198, 255, 77, .15);
  color: var(--lime);
  font: 700 .85rem var(--display);
}

.nb-hero h1 {
  max-width: 14ch;
}

.nb-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.nb-countdown[hidden] {
  display: none;
}

.nb-countdown div {
  min-width: 88px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 11, 46, .6);
  text-align: center;
}

.nb-countdown strong {
  display: block;
  font: 700 1.9rem/1.1 var(--display);
  font-variant-numeric: tabular-nums;
}

.nb-countdown span {
  color: var(--muted);
  font-size: .85rem;
}

.nb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- sections ---------- */
.nb-section {
  padding: clamp(70px, 9vw, 120px) 0;
}

.nb-section-dark {
  background: var(--night-2);
}

.nb-head {
  max-width: 44rem;
  margin-bottom: 36px;
}

.nb-head p:last-child {
  color: var(--muted);
}

/* line-up */
.nb-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

html:not(.js) .nb-tablist {
  display: none;
}

.nb-tablist [role="tab"] {
  min-width: 150px;
  padding: 12px 20px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: transparent;
  color: var(--cream);
  font: 700 1.1rem var(--display);
  text-align: left;
  cursor: pointer;
}

.nb-tablist small {
  display: block;
  color: var(--muted);
  font: 400 .85rem var(--body);
}

.nb-tablist [aria-selected="true"] {
  border-color: var(--magenta);
  background: var(--magenta);
  color: var(--night);
}

.nb-tablist [aria-selected="true"] small {
  color: var(--night);
}

.nb-day[hidden] {
  display: none;
}

.js .nb-day-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

html:not(.js) .nb-day + .nb-day {
  margin-top: 50px;
}

.nb-artists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-artist {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--night-2);
  animation: nb-in .45s var(--ease);
}

.nb-artist img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.nb-artist:hover img {
  transform: scale(1.05);
}

.nb-artist div {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(20, 11, 46, .95), rgba(20, 11, 46, 0));
}

.nb-artist h4 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.nb-artist p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.nb-slot {
  color: var(--lime) !important;
  font-weight: 600;
}

.nb-headliner {
  grid-column: span 2;
  grid-row: span 2;
}

.nb-headliner h4 {
  font-size: 1.8rem;
}

@keyframes nb-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* map */
.nb-map-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.nb-map-grid p {
  color: var(--muted);
}

.nb-legend {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.nb-legend span {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border-radius: 5px;
  vertical-align: -2px;
}

/* info */
.nb-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.nb-info li {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--night-2);
}

.nb-info li:nth-child(1) {
  border-top: 4px solid var(--magenta);
}

.nb-info li:nth-child(2) {
  border-top: 4px solid var(--lime);
}

.nb-info li:nth-child(3) {
  border-top: 4px solid var(--cyan);
}

.nb-info li:nth-child(4) {
  border-top: 4px solid var(--sun);
}

.nb-info p {
  margin: 0;
  color: var(--muted);
}

.nb-faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.nb-faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--night-2);
}

.nb-faq summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
}

.nb-faq summary::marker {
  color: var(--magenta);
}

.nb-faq p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
}

/* newsletter */
.nb-news {
  padding-top: 0;
}

.nb-news-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background: linear-gradient(120deg, var(--violet), var(--magenta));
}

.nb-news-inner p {
  margin: 0;
  color: #ffe0ec;
}

.nb-news-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nb-news-form input {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--night);
  font: inherit;
}

.nb-news-form .nb-btn-hot {
  background: var(--night);
  box-shadow: none;
}

.nb-news-status {
  flex-basis: 100%;
  margin: 0;
  font-weight: 600;
}

/* tickets */
.nb-page-head {
  padding: 150px 0 40px;
  background: radial-gradient(circle at 80% 0%, var(--violet), transparent 60%);
}

.nb-shop {
  padding-top: 30px;
}

.nb-shop-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}

.nb-tickets {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-ticket {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--night-2);
  transition: border-color .2s;
}

.nb-ticket.is-picked {
  border-color: var(--lime);
}

.nb-ticket h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.nb-ticket p {
  margin: 0;
  color: var(--muted);
}

.nb-price {
  color: var(--cream) !important;
  font: 700 1.5rem var(--display);
}

.nb-qty {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 999px;
}

.nb-qty button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 1.3rem;
  cursor: pointer;
}

.nb-qty button:hover {
  background: rgba(251, 244, 255, .1);
}

.nb-qty input {
  width: 46px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: 700 1.1rem var(--display);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.nb-qty input::-webkit-inner-spin-button,
.nb-qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

html:not(.js) .nb-qty button {
  display: none;
}

.nb-order {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 24px;
  background: var(--cream);
  color: var(--night);
}

.nb-order h2 {
  font-size: 1.4rem;
}

.nb-order-lines {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px dashed #cdbfe6;
  list-style: none;
}

.nb-order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.nb-order-empty {
  color: #6d5f8a;
}

.nb-fee,
.nb-sum {
  display: flex;
  justify-content: space-between;
  margin: 0;
}

.nb-fee {
  color: #6d5f8a;
}

.nb-sum strong {
  font: 700 1.6rem var(--display);
}

.nb-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.nb-field input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 2px solid #cdbfe6;
  border-radius: 12px;
  background: #fff;
  color: var(--night);
  font: inherit;
}

.nb-field input:focus {
  border-color: var(--magenta);
  outline: none;
}

.nb-field [aria-invalid="true"] {
  border-color: #c11d4f;
  background: #ffe8ef;
}

.nb-order-status {
  margin: 0;
  font-weight: 600;
}

/* footer */
.nb-footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--line);
  background: #0c0620;
  color: var(--muted);
}

.nb-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px 60px;
}

.nb-footer .nb-logo {
  margin-bottom: 12px;
}

.nb-footer .made-by {
  margin: 0;
}

.nb-copy {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}

/* reveal */
.js .nb-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .nb-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nb-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .nb-shop-grid {
    grid-template-columns: 1fr;
  }

  .nb-order {
    position: static;
  }
}

@media (max-width: 820px) {
  .nb-menu {
    display: block;
  }

  .nb-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 20px 22px;
    background: rgba(20, 11, 46, .98);
  }

  .is-open .nb-nav {
    display: block;
  }

  .nb-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nb-nav .nb-nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  html:not(.js) .nb-menu {
    display: none;
  }

  html:not(.js) .nb-header {
    position: absolute;
  }

  html:not(.js) .nb-header-row {
    flex-wrap: wrap;
  }

  html:not(.js) .nb-nav {
    position: static;
    display: block;
    padding: 0 0 12px;
    background: none;
  }

  html:not(.js) .nb-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nb-map-grid,
  .nb-news-inner,
  .nb-footer-grid {
    grid-template-columns: 1fr;
  }

  .nb-artists {
    grid-template-columns: repeat(2, 1fr);
  }

  .nb-artist:nth-child(6):last-child {
    grid-column: span 2;
  }

  .nb-artist:nth-child(6):last-child img {
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .nb-info {
    grid-template-columns: 1fr;
  }

  .nb-artists {
    gap: 10px;
  }

  .nb-artist div {
    padding: 30px 10px 10px;
  }

  .nb-artist h4 {
    font-size: .9rem;
  }

  .nb-artist p {
    font-size: .78rem;
  }

  .nb-headliner h4 {
    font-size: 1.4rem;
  }

  .nb-tablist [role="tab"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: .95rem;
  }

  .nb-countdown div {
    min-width: 0;
    flex: 1;
    padding: 10px 6px;
  }

  .nb-countdown strong {
    font-size: 1.4rem;
  }

  .nb-ticket {
    grid-template-columns: 1fr auto;
  }

  .nb-ticket > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .nb-reveal {
    opacity: 1;
    transform: none;
  }
}
