/* ==== Fonts ==== */
@font-face {
  font-family: 'Big Noodle Titling';
  src: url('/fonts/big-noodle-titling.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==== Tokens ==== */
:root {
  --black: #000;
  --white: #fff;
  --magenta: #e900ff;
  --blue: #3d93f0;
  --blue-button: #0b6bd6;
  --glow: #be00ff;
  --font-display: 'Big Noodle Titling', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --canvas: 1440px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--magenta);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}

img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--white);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--white);
  color: var(--black);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==== Layout ==== */
.page-section {
  width: 100%;
  max-width: var(--canvas);
  margin: 0 auto;
  padding: 24px var(--gutter);
}

main {
  display: block;
  padding-bottom: 40px;
}

/* ==== Typography ==== */
.statement,
.page-heading,
.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

.statement {
  color: var(--white);
  font-size: 28px;
  text-align: center;
  text-shadow: 5px 5px 8px var(--glow);
}

.page-heading,
.section-heading {
  color: var(--magenta);
  font-size: 44px;
  text-align: center;
}

.body-copy {
  margin: 0 0 24px;
  color: var(--magenta);
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .statement {
    font-size: 32px;
  }

  .page-heading,
  .section-heading {
    font-size: 59px;
  }

  .body-copy {
    font-size: 24px;
    line-height: 1.5;
  }
}

/* ==== Header and nav ==== */
.site-header {
  position: relative;
  background: var(--black);
}

.site-header__banner {
  display: block;
  height: clamp(161px, calc(161px + (100vw - 640px) * 0.28), 385px);
  overflow: hidden;
}

.site-header__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 var(--gutter) 8px;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(16px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: 4px 8px;
  color: var(--magenta);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 50px);
  line-height: 1.1;
  text-decoration: none;
  text-shadow: 0 0 6px var(--black);
}

.site-nav__list a:hover {
  color: var(--white);
}

.site-nav__list a[aria-current='page'] {
  color: var(--blue);
}

.site-nav__toggle {
  display: none;
  margin: 0 auto;
  padding: 6px 18px;
  border: 2px solid var(--magenta);
  border-radius: 3px;
  background: var(--black);
  color: var(--magenta);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  cursor: pointer;
}

@media (max-width: 639px) {
  .site-nav.is-enhanced {
    position: relative;
    margin-top: -64px;
    padding-top: 0;
    padding-bottom: 12px;
  }

  .site-nav.is-enhanced .site-nav__toggle {
    display: block;
  }

  .site-nav.is-enhanced .site-nav__list {
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    padding: 8px;
    border: 2px solid var(--magenta);
  }

  .site-nav.is-enhanced .site-nav__list[hidden] {
    display: none;
  }
}

/* ==== Home ==== */
.hero {
  padding-top: 40px;
  padding-bottom: 24px;
}

.hero .statement {
  max-width: 1100px;
  margin: 0 auto;
}

.highlight {
  max-width: 1000px;
}

.quote-block {
  padding-top: 40px;
  padding-bottom: 40px;
}

.quote-block figure,
.quote-block blockquote {
  margin: 0;
}

.quote-block figcaption {
  margin-top: 12px;
  color: var(--magenta);
  font-family: var(--font-display);
  font-size: 24px;
  text-align: center;
}

.quote-block figcaption.statement {
  color: var(--white);
  font-size: 28px;
}

.quote-block .statement {
  max-width: 1000px;
  margin: 0 auto;
}

/* ==== Shows ==== */
.shows {
  padding-top: 32px;
}

.shows__empty {
  margin: 24px 0 0;
  color: var(--magenta);
  font-size: 18px;
  text-align: center;
}

.show-list {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}

.show {
  margin: 0 0 20px;
  text-align: center;
}

.show__entry {
  display: block;
  color: inherit;
  text-decoration: none;
}

.show__date {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}

.show__event {
  display: block;
  color: var(--magenta);
  font-size: 15px;
  line-height: 1.5;
}

a.show__entry .show__event {
  color: var(--blue);
  text-decoration: underline;
}

a.show__entry:hover .show__event {
  color: var(--white);
}

/* ==== Video ==== */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.video__button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--black);
  cursor: pointer;
  overflow: hidden;
}

.video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--magenta);
  transform: translate(-50%, -50%);
}

.video__play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--black);
  transform: translate(-35%, -50%);
}

.video__button:hover .video__play,
.video__button:focus-visible .video__play {
  background: var(--white);
}

.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.videos__channel {
  text-align: center;
}

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

@media (min-width: 900px) {
  .video-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==== Gallery and lightbox ==== */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery::after {
  content: '';
  flex-grow: 10;
}

.gallery__item {
  flex: 1 1 auto;
  height: 150px;
}

.gallery__link {
  position: relative;
  display: block;
  height: 100%;
}

.gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgb(233 0 255 / 0%);
  transition: background 0.2s;
}

.gallery__link:hover .gallery__overlay,
.gallery__link:focus-visible .gallery__overlay {
  background: rgb(233 0 255 / 25%);
}

@media (min-width: 960px) {
  .gallery__item {
    height: 200px;
  }
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 92%);
  color: var(--white);
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 92%);
}

.lightbox__frame {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  height: 100%;
}

.lightbox__figure {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 56px 0;
  min-height: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}

.lightbox__caption {
  margin-top: 12px;
  font-size: 16px;
  text-align: center;
}

.lightbox__button {
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 56px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__button:hover {
  color: var(--magenta);
}

.lightbox__close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  width: 56px;
  height: 56px;
}

.lightbox__prev {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
}

.lightbox__next {
  grid-column: 3;
  grid-row: 1;
  height: 100%;
}

@media (max-width: 639px) {
  .lightbox__frame {
    grid-template-columns: 44px 1fr 44px;
  }
}

/* ==== About and carousel ==== */
.about {
  display: grid;
  gap: 32px;
}

.about__heading {
  margin-bottom: 24px;
  text-align: left;
}

@media (min-width: 960px) {
  .about {
    grid-template-columns: minmax(0, 690px) minmax(0, 1fr);
    align-items: start;
  }
}

.carousel {
  position: relative;
}

.carousel__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--black);
}

.carousel__slides,
.carousel__slide {
  position: absolute;
  inset: 0;
}

.carousel__slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel__slide.is-active {
  opacity: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Without JS the first slide stays visible and the rest are hidden by aria-hidden. */
.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 64px;
  border: 0;
  background: rgb(0 0 0 / 55%);
  color: var(--white);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel__prev {
  left: 0;
}

.carousel__next {
  right: 0;
}

.carousel__arrow:hover {
  background: var(--magenta);
  color: var(--black);
}

.carousel [hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__slide {
    transition: none;
  }
}

/* ==== Contact ==== */
.contact {
  max-width: 800px;
}

.contact__heading {
  margin-bottom: 24px;
}

.contact .body-copy {
  text-align: center;
}

.contact-form {
  margin: 32px 0;
}

.contact-form .field {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--magenta);
  font-size: 18px;
}

.contact-form .optional {
  color: var(--white);
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--magenta);
  border-radius: 3px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 20px;
}

.contact-form textarea {
  min-height: 160px;
  font-family: var(--font-body);
  font-size: 16px;
  resize: vertical;
}

.contact-form .field-error {
  margin: 6px 0 0;
  color: #ff8a8a;
  font-size: 16px;
}

.contact-form input[aria-invalid='true'],
.contact-form select[aria-invalid='true'],
.contact-form textarea[aria-invalid='true'] {
  border-color: #ff4d4d;
}

.contact-form .privacy-note {
  color: var(--white);
}

/* ==== Message pages ==== */
.message-page .page-heading {
  margin-bottom: 24px;
}

.message-page .body-copy {
  text-align: center;
}

/* ==== Buttons and forms ==== */
.button {
  min-height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 3px;
  background: var(--blue-button);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.button:hover {
  background: #0a5db9;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--white);
  font-size: 16px;
}

.form-status.is-error {
  color: #ff8a8a;
}

.privacy-note {
  margin: 12px 0 0;
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
}

/* ==== Footer ==== */
.site-footer {
  background: linear-gradient(to bottom, #000, #155eab);
  padding: 80px var(--gutter) 60px;
  text-align: center;
}

.site-footer__inner {
  max-width: var(--canvas);
  margin: 0 auto;
}

.site-footer__title,
.site-footer__subtitle {
  margin: 0;

  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  text-shadow: 0 0 12px var(--glow);
}

.site-footer__title {
  font-size: 40px;
  color: var(--magenta);
}

.site-footer__subtitle {
  margin-top: 8px;
  font-size: 28px;
  color: var(--white);
}

@media (min-width: 640px) {
  .site-footer__subtitle {
    font-size: 32px;
  }
}

.signup-form {
  max-width: 640px;
  margin: 32px auto 0;
}

.signup-form__fields {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .signup-form__fields {
    grid-template-columns: 1fr 1fr;
  }
}

.signup-form input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 3px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 16px;
}

.signup-form input[aria-invalid='true'] {
  border-color: #ff4d4d;
}

.signup-form .button {
  margin-top: 16px;
}

.signup-form .field-error {
  margin: 6px 0 0;
  color: #ffd0d0;
  font-size: 14px;
  text-align: left;
}

.signup-form .privacy-note {
  max-width: 520px;
  margin: 12px auto 0;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.social-list__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--magenta);
  color: var(--black);
}

.social-list__link:hover {
  background: var(--white);
  color: var(--black);
}

.social-list__link svg {
  width: 24px;
  height: 24px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
