@font-face {
  font-family: "Space Mono";
  src: url("./assets/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("./assets/fonts/SpaceMono-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("./assets/fonts/SpaceMono-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("./assets/fonts/SpaceMono-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #fff;
  --shell: min(100vw, 420px);
  --frame: 14px;
  --group-gap-y: 12px;
  --item-gap-y: 8px;
  --item-gap-x: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Mono", "Courier New", Courier, monospace;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: var(--shell);
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
}

.hero {
  padding: var(--frame);
  position: relative;
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #151515;
  overflow: hidden;
}

.header-image,
.header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.header-image {
  background: #151515;
}

.hero-nav {
  position: absolute;
  top: 14px;
  right: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 1;
  text-align: right;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.15rem, 5.5vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  transition: text-shadow 150ms ease;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
}

.nav-link:hover,
.nav-link:focus-visible {
  text-shadow:
    0 0 10px #fff,
    0 0 18px rgba(255, 255, 255, 0.85);
}

.nav-link:focus-visible,
.social-link:focus-visible,
.button-outline:focus-visible,
.group-toggle:focus-visible,
.lightbox-close:focus-visible,
.video-thumb:focus-visible,
.footer-link:focus-visible,
.back-link:focus-visible,
.event-link:focus-visible,
.email-panel-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.social {
  width: 100%;
  min-height: 42px;
  padding: 2px var(--frame) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(38px, 38px));
  grid-auto-rows: 38px;
  justify-content: center;
  justify-items: center;
  align-content: start;
  align-items: center;
  gap: var(--item-gap-y) var(--item-gap-x);
  overflow: visible;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.social--force-visible {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(38px, 38px)) !important;
  grid-auto-rows: 38px !important;
  justify-content: center !important;
  justify-items: center !important;
  align-content: start !important;
  align-items: center !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.social-link {
  inline-size: 38px;
  block-size: 38px;
  min-inline-size: 38px;
  min-block-size: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  appearance: none;
  opacity: 1;
  visibility: visible;
  overflow: visible;
  line-height: 0;
}

.social-link svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.social--force-visible .social-link {
  opacity: 1 !important;
  visibility: visible !important;
}

.email-panel-host {
  margin-top: var(--item-gap-y);
  padding: 0 var(--frame);
}

.email-panel {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 14px 42px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
}

.email-panel-text {
  margin: 0;
  color: #fff;
  font-size: clamp(0.72rem, 3.2vw, 0.9rem);
  line-height: 1.4;
  text-transform: none;
  word-break: break-word;
}

.email-panel-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
}

.media-grid,
.gallery-block {
  margin-top: var(--group-gap-y);
  padding: 0 var(--frame);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: var(--item-gap-y);
  column-gap: var(--item-gap-x);
}

.video-card,
.video-thumb {
  width: 100%;
  background: #1f1f1f;
  aspect-ratio: 1 / 1;
}

.video-card {
  position: relative;
}

.video-thumb {
  position: relative;
  padding: 0;
  border: 0;
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  display: block;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.34));
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 18px solid rgba(255, 255, 255, 0.88);
  transform: translate(-40%, -50%);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.video-meta {
  position: absolute;
  inset: auto 10px 10px 10px;
  z-index: 1;
  font-size: 0.62rem;
  line-height: 1.35;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.group-toggle-wrap {
  margin-top: var(--item-gap-y);
  padding: 0 var(--frame);
  display: flex;
  justify-content: center;
}

.group-toggle {
  min-width: 112px;
}

.hero-block {
  margin-top: var(--group-gap-y);
  padding: 0 var(--frame);
}

.hero-image-frame {
  position: relative;
}

.hero-block-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #151515;
}

.hero-text {
  position: absolute;
  inset: 0 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  pointer-events: none;
}

.hero-block--text-only .hero-image-frame {
  min-height: 0;
}

.hero-block--text-only .hero-text {
  position: static;
  inset: auto;
  padding: 0;
  min-height: 0;
  gap: var(--item-gap-y);
}

.hero-text p {
  margin: 0;
  color: #fff;
  font-size: clamp(0.62rem, 2.6vw, 0.84rem);
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.gallery-block img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  background: #1f1f1f;
  object-fit: cover;
  cursor: zoom-in;
}

.footer-actions {
  margin-top: var(--group-gap-y);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--item-gap-y) var(--item-gap-x);
  padding: var(--frame);
}

.button-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.next-show {
  margin-top: var(--group-gap-y);
  padding: 0 var(--frame) var(--item-gap-y);
}

.next-show h2 {
  margin: 0 0 var(--item-gap-y);
  font-size: clamp(2rem, 10vw, 3.5rem);
  line-height: 0.95;
}

.next-show p {
  margin: 0;
  font-size: clamp(1rem, 5vw, 1.6rem);
  font-weight: 700;
  text-transform: none;
}

.event-item + .event-item {
  margin-top: var(--item-gap-y);
}

.event-line {
  margin: 0;
  font-size: clamp(1rem, 5vw, 1.6rem);
  font-weight: 700;
  text-transform: none;
}

.event-links {
  margin-top: calc(var(--item-gap-y) / 2);
}

.event-link {
  display: block;
  width: fit-content;
  color: #fff;
  font-size: clamp(0.72rem, 3.4vw, 0.92rem);
  line-height: 1.4;
  text-decoration: underline;
  text-transform: none;
}

.signature {
  margin-top: var(--group-gap-y);
  padding: 0 var(--frame);
  display: flex;
  justify-content: center;
}

.signature img {
  width: min(100%, 240px);
  height: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  padding: 20px;
}

.lightbox-content {
  position: relative;
  display: inline-flex;
}

.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.footer-link,
.back-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.footer-link:hover,
.footer-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: #fff;
}

.page-shell--legal {
  min-height: 100vh;
  display: flex;
}

.legal-page {
  width: 100%;
  padding: 18px var(--frame) 24px;
}

.legal-page h1 {
  margin: 18px 0 14px;
  font-size: clamp(1.5rem, 8vw, 2.3rem);
  line-height: 1;
}

.legal-page p {
  margin: 0;
  font-size: clamp(0.72rem, 3.2vw, 0.9rem);
  line-height: 1.55;
  text-transform: none;
}

.is-pressed {
  animation: press-pop 180ms ease-out;
}

@keyframes press-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.94);
  }

  100% {
    transform: scale(1);
  }
}

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

  .nav-link,
  .is-pressed {
    transition: none;
    animation: none;
  }
}
