@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-condensed-500-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-condensed-500-latin.woff2") format("woff2");
  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;
}

/* ==========================================================================
   A folder of photographs
   ========================================================================== */

:root {
  --paper: #f4efe4;
  --paper-dim: rgba(244, 239, 228, 0.64);
  --paper-faint: rgba(244, 239, 228, 0.46);
  --paper-ghost: rgba(244, 239, 228, 0.16);
  --ink: #0a0a0c;
  --accent: #d3ab72;
  --accent-soft: rgba(211, 171, 114, 0.12);
  --line: rgba(244, 239, 228, 0.15);
  --glass: rgba(10, 10, 12, 0.42);
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --mono: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --film-font: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --film-base: #070708;
  --film-edge: #e9b44c;
  --film-edge-dim: rgba(233, 180, 76, 0.72);
  --film-hole: rgba(244, 239, 228, 0.42);
  --film-inset: 14px;
  --gutter: clamp(20px, 3.4vw, 52px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(211, 171, 114, 0.35);
}

button {
  font: inherit;
  color: inherit;
}

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

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

svg {
  display: block;
}

/* --------------------------------------------------------------------------
   Stage
   -------------------------------------------------------------------------- */

.stage {
  position: fixed;
  inset: 0 0 var(--stage-bottom, 0) 0;
  z-index: 0;
  overflow: hidden;
  background: #08080a;
}

/* Vegas sets .vegas-container to position: relative; keep the stage fixed. */
body .stage.vegas-container {
  position: fixed;
  inset: 0 0 var(--stage-bottom, 0) 0;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #08080a;
}

.vegas-slide-inner {
  filter: saturate(0.94) contrast(1.015) brightness(0.97);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(7, 7, 9, 0.72) 0%,
      rgba(7, 7, 9, 0.22) 16%,
      rgba(7, 7, 9, 0) 34%,
      rgba(7, 7, 9, 0) 46%,
      rgba(7, 7, 9, 0.55) 78%,
      rgba(7, 7, 9, 0.93) 100%),
    radial-gradient(130% 100% at 50% 42%, transparent 48%, rgba(4, 4, 6, 0.55) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* --------------------------------------------------------------------------
   Interface shell
   -------------------------------------------------------------------------- */

.ui {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    calc(env(safe-area-inset-top) + 26px)
    var(--gutter)
    calc(env(safe-area-inset-bottom) + 14px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

body.is-ready .ui {
  opacity: 1;
}

.ui button,
.ui a,
.caption {
  pointer-events: auto;
}

/* topbar ------------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  height: 42px;
  pointer-events: none;
}

.events-control {
  position: relative;
  width: 100%;
  pointer-events: auto;
}

.events-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.26);
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.events-toggle svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.events-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(244, 239, 228, 0.32);
}

.events-toggle[aria-expanded="true"] {
  color: var(--accent);
  border-color: rgba(211, 171, 114, 0.45);
}

.events-toggle:focus-visible,
.event-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.artist-tile-frame.is-missing {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(233, 180, 76, 0.08) 0 1px,
      transparent 1px 6px
    ),
    var(--film-base);
}

.artist-tile-frame.is-missing::before {
  content: "—";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--film-edge-dim);
  font-family: var(--film-font);
  font-size: 12px;
}

.current-event {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-menu {
  position: absolute;
  z-index: 50;
  top: auto;
  bottom: calc(100% + 8px);
  left: auto;
  right: 0;
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  max-height: min(60vh, 480px);
  overflow-y: auto;
  padding: 14px 16px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(211, 171, 114, 0.08), transparent 55%),
    rgba(12, 12, 14, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.events-menu-title {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.event-list {
  display: flex;
  flex-direction: column;
}

.event-item {
  appearance: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid rgba(244, 239, 228, 0.07);
  background: transparent;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease), padding 0.2s var(--ease);
}

.event-item:last-child {
  border-bottom: 0;
}

.event-item:hover {
  color: var(--accent);
  padding-left: 4px;
}

.event-name {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.event-count {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--paper-faint);
  white-space: nowrap;
}

.event-item[aria-current="true"] {
  color: var(--accent);
  padding-left: 4px;
}

.event-item-bestof {
  color: var(--film-edge);
  border-bottom-color: rgba(233, 180, 76, 0.22);
}

.event-item-bestof[aria-current="true"] {
  color: var(--film-edge);
}

.event-item-bestof + .event-item {
  border-top: 1px solid rgba(233, 180, 76, 0.18);
}

.event-item[aria-current="true"] .event-name::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  transform: translateY(-1px);
}

.event-item[aria-current="true"] .event-count {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Caption + controls
   -------------------------------------------------------------------------- */

.footer {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  pointer-events: none;
}

.caption {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  max-width: min(320px, 32vw);
  text-align: right;
  text-shadow: 0 2px 36px rgba(0, 0, 0, 0.45);
}

.caption-artist {
  margin: 0;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  padding-bottom: 1px;
}

.caption-artist.is-unknown {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-style: italic;
  color: var(--paper-dim);
}


/* --------------------------------------------------------------------------
   Artist strip
   -------------------------------------------------------------------------- */

.artists-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 0 10px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #15130f 0%, var(--film-base) 8%, var(--film-base) 92%, #15130f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(244, 239, 228, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.artists-wrap::before,
.artists-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='12'%3E%3Crect x='4' y='2' width='8' height='8' rx='2' fill='%23f4efe4' fill-opacity='.42'/%3E%3C/svg%3E");
  background-size: 19px 12px;
  background-repeat: repeat-x;
  opacity: 0.75;
  pointer-events: none;
}

.artists-wrap::before { top: 0; }
.artists-wrap::after { bottom: 0; }

.film-mark {
  position: absolute;
  z-index: 3;
  top: 2px;
  left: 16px;
  font-family: var(--film-font);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--film-edge);
  opacity: 0.85;
  pointer-events: none;
}

.artists {
  position: relative;
  display: flex;
  gap: 4px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--film-inset) 2px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.artists::-webkit-scrollbar {
  display: none;
}

.artists.is-dragging {
  cursor: grabbing;
}

.artists.is-dragging .artist-tile {
  cursor: grabbing;
}

.artist-tile {
  flex: 0 0 auto;
  width: clamp(92px, 8.4vw, 132px);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateX(var(--strip-shift, 0px)) scale(var(--strip-scale, 1));
  -webkit-appearance: none;
  appearance: none;
}

.artists.is-dragging .artist-tile {
  --strip-scale: 0.985;
}

.artists-wrap:has(.artists.is-dragging) {
  box-shadow:
    inset 0 0 0 1px rgba(233, 180, 76, 0.14),
    0 16px 38px rgba(0, 0, 0, 0.52);
}

.artists.is-snapping .artist-tile {
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}

.artist-tile-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 228, 0.08);
  border-radius: 1px;
  background: #000;
}

.artist-tile-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  pointer-events: none;
  transition: border-color 0.25s var(--ease);
}

.artist-tile-frame img {
  -webkit-user-drag: none;
  user-drag: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  filter: saturate(0.82) contrast(1.04) sepia(0.06);
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease);
}

.artist-tile-event .artist-tile-frame::before {
  content: "ALL";
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 5px;
  padding: 2px 3px;
  background: rgba(7, 7, 8, 0.78);
  color: var(--film-edge);
  font-family: var(--film-font);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  pointer-events: none;
}


.artist-tile:focus-visible {
  outline: 2px solid var(--film-edge);
  outline-offset: 2px;
}

.artist-tile:hover .artist-tile-frame img,
.artist-tile[aria-pressed="true"] .artist-tile-frame img {
  opacity: 1;
  filter: saturate(0.95) contrast(1.04) sepia(0.03);
}

.artist-tile[aria-pressed="true"] .artist-tile-frame::after {
  border-color: var(--film-edge);
}

.artist-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-top: 5px;
  min-height: 2.75em;
  max-height: 4.05em;
  font-family: var(--film-font);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--film-edge-dim);
  overflow: hidden;
  transition: color 0.25s var(--ease);
}

.artist-tile-count {
  color: rgba(233, 180, 76, 0.48);
  white-space: nowrap;
}

.artist-tile:hover .artist-tile-name,
.artist-tile[aria-pressed="true"] .artist-tile-name {
  color: var(--film-edge);
}

.artist-tile:hover .artist-tile-count,
.artist-tile[aria-pressed="true"] .artist-tile-count {
  color: rgba(233, 180, 76, 0.85);
}

/* --------------------------------------------------------------------------
   Bandcamp player
   -------------------------------------------------------------------------- */

.media-column {
  flex: none;
  width: 170px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--film-inset);
  pointer-events: none;
}

.bandcamp-panel {
  flex: none;
  width: 170px;
  height: 42px;
  line-height: 0;
  pointer-events: auto;
}

.bandcamp-panel iframe {
  display: block;
  width: 170px;
  height: 42px;
  border: 0;
  background: #333333;
}

/* --------------------------------------------------------------------------
   Intro / drop overlay
   -------------------------------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(28px, 6vh, 70px) var(--gutter);
  background:
    radial-gradient(90% 70% at 50% 32%, rgba(58, 48, 35, 0.42), transparent 62%),
    rgba(7, 7, 9, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.intro[hidden] {
  display: none;
}

.intro-panel {
  width: min(820px, 100%);
  text-align: center;
}

.kicker-center {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.kicker-center::before,
.kicker-center::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--paper-ghost);
}

.intro h1 {
  margin: 20px 0 18px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.03;
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  max-width: 52ch;
  margin: 0 auto 32px;
  color: var(--paper-dim);
  font-size: 14.5px;
  line-height: 1.65;
}

.intro-command {
  display: inline-block;
  margin: 24px auto 0;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--paper);
}

.intro-command code {
  padding: 0;
  background: transparent;
  font-size: inherit;
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.95em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper-dim);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  margin: 0;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .caption {
    max-width: 30vw;
  }

  .caption-artist {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
  }
}

@media (max-width: 720px) {
  .ui {
    padding-top: calc(env(safe-area-inset-top) + 18px);
  }

  .topbar {
    gap: 10px;
  }

  .caption {
    max-width: 28vw;
  }

  .caption-artist {
    font-size: 1rem;
  }

  .events-menu {
    width: calc(100vw - 2 * var(--gutter));
  }


  .footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .artists-wrap {
    flex: none;
    width: 100%;
  }

  .media-column {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    margin-top: 0;
    gap: 8px;
  }

  .media-column .bandcamp-panel {
    flex: 0 0 170px;
    width: 170px;
  }

  .media-column .events-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .artists {
    gap: 4px;
  }

  .artist-tile {
    width: 96px;
  }

  .intro {
    padding-top: 64px;
  }

}

@media (max-height: 700px) and (min-width: 721px) {
  .caption-artist {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
  }

  .artist-tile {
    width: 84px;
  }

  .artist-tile-name {
    margin-top: 4px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

}

/* --------------------------------------------------------------------------
   file:// notice
   -------------------------------------------------------------------------- */

.file-notice {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(28px, 6vh, 70px) var(--gutter);
  background:
    radial-gradient(90% 70% at 50% 30%, rgba(58, 48, 35, 0.42), transparent 62%),
    #0a0a0c;
}

.file-notice[hidden] {
  display: none;
}

.file-notice-panel {
  width: min(560px, 100%);
}

.file-notice-panel h1 {
  margin: 16px 0 18px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.file-notice-panel p {
  margin: 0 0 16px;
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.65;
}

.file-notice-panel a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.file-notice-command {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--paper);
  overflow-x: auto;
}

.file-notice-command code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  white-space: pre;
}

.file-notice-note {
  margin-top: 26px !important;
  font-family: var(--mono);
  font-size: 9.5px !important;
  letter-spacing: 0.06em;
  color: var(--paper-faint) !important;
}
