:root {
  --red: #e4001c;
  --red-dark: #b10016;
  --text: #fff;
  --muted: #aaa;
  --column: 680px;
  --gutter: 1.25rem;
}

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

html {
  background: #000;
}

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: 'Archivo', sans-serif;
  line-height: 1.6;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--red-dark);
}

p {
  color: var(--muted);
}

/* Logo on the background gif */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 8vh, 5rem) var(--gutter) clamp(2rem, 6vh, 4rem);
  overflow: hidden;
  background: #000;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .15) 75%, #000);
}

.hero .logo {
  position: relative;
  z-index: 1;
  /* ~55% of the screen height (logo is a bit taller than wide), capped at
     460px and the screen width, never below 240px: the tagline stays in view */
  width: 50vh;
  width: max(240px, min(460px, 80vw, 50svh));
  height: auto;
}

/* Single column */

.page {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tagline {
  margin: 0 0 3rem;
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 9vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
}

.lineup {
  margin: 2rem 0 0;
  font-size: .8rem;
  line-height: 1.8;
  letter-spacing: 1px;
  text-align: center;
  color: var(--red);
}

h2 {
  font-size: .8rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: darkred;
}

.section-title {
  margin: 0 0 2rem;
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0;
  color: var(--text);
}

.section-title::before {
  content: "\2605";
  margin-right: .5rem;
  color: var(--red);
}

section {
  margin-bottom: 5rem;
}

/* Description FR / EN */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about p {
  margin: 0;
  hyphens: auto;
}

.about h2 {
  margin-top: 0;
}

.about [lang="fr"] h2::after { content: " — FR"; }
.about [lang="en"] h2::after { content: " — EN"; }

@media (max-width: 600px) {
  .about {
    grid-template-columns: 1fr;
  }
}

.farewell {
  margin-top: 3rem;
}

/* Platform links */

.platforms {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: -1rem 0 3.5rem;
}

.platforms a {
  display: block;
  color: var(--red);
  transition: color .15s;
}

.platforms a:hover,
.platforms a:focus-visible {
  color: var(--text);
}

.platforms svg {
  display: block;
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

/* EP / Bandcamp */

.ep {
  text-align: center;
}

.ep .cover {
  display: block;
  max-width: 400px;
  margin: 0 auto;
}

.ep .cover img {
  display: block;
  width: 100%;
  height: auto;
}

.ep-title {
  margin: 1.5rem 0 1rem;
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 5.5rem;
  letter-spacing: 0;
  color: var(--text);
}

.ep .player {
  display: block;
  width: 100%;
  /* header with small artwork, controls and 5-track list */
  height: 310px;
  margin: 0 auto;
  border: 0;
}

.cta {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--red);
}

/* Media */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pen {
  position: relative;
  top: .2rem;
  font-size: 2rem;
  color: var(--red);
}

/* Flyer wall — posters stuck edge to edge on a gig-venue wall */

.wall {
  margin-bottom: 0;
}

.wall .section-title {
  max-width: var(--column);
  margin: 0 auto 2rem;
  padding: 0 var(--gutter);
}

.flyers {
  --k: 1; /* strength of the random tilt / offsets */
  column-width: 15rem;
  column-gap: 0;
  padding: 1rem .5rem 2rem;
  /* posters may spill over the top and bottom; only clip the sides
     so tilted edge posters don't cause horizontal scrolling */
  overflow-x: clip;
}

.flyers a {
  position: relative;
  z-index: var(--z, 1);
  display: block;
  break-inside: avoid;
  /* overlap neighbours so no wall shows between posters */
  margin-bottom: var(--overlap, -1rem);
  transform:
    translate(calc(var(--x, 0px) * var(--k)), 0)
    rotate(calc(var(--r, 0deg) * var(--k)))
    scale(var(--s, 1.07));
  transition: transform .2s ease;
}

/* hover only zooms: same tilt, same stacking */
.flyers a:hover,
.flyers a:focus-visible {
  --s: 1.12;
  outline: none;
}

.flyers img {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* glued paper: soft embossed bumps over every poster (one shared SVG tile,
   offset per poster by --wx / --wy so no two look the same) */
.flyers a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.009 .014' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='10'%3E%3CfeDistantLight azimuth='225' elevation='30'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E")
    var(--wx, 0) var(--wy, 0) / 360px 360px;
  mix-blend-mode: soft-light;
  opacity: .6;
}

/* staples on some posters (both drawn by one pseudo-element) */
.flyers [data-pin="staple"]::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: .6rem;
  left: .7rem;
  right: .7rem;
  height: 3px;
  background:
    linear-gradient(#eee, #8a8a8a) left / .8rem 3px no-repeat,
    linear-gradient(#eee, #8a8a8a) right / .8rem 3px no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6));
  pointer-events: none;
}

@media (max-width: 600px) {
  .flyers {
    --k: .6;
    column-width: auto;
    column-count: 2;
    padding: .75rem .25rem 1.5rem;
  }
}

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

/* Footer */

.merci {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 4rem var(--gutter);
}

.merci a {
  opacity: .8;
  transition: opacity .15s;
}

.merci a:hover {
  opacity: 1;
}

.merci img {
  display: block;
  height: auto;
}

/* Lightbox */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .97);
  color: var(--text);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox img {
  max-width: calc(100vw - 7rem);
  max-height: calc(100dvh - 5rem);
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  padding: .5rem 1rem;
  border: 0;
  background: none;
  color: var(--text);
  font: 400 2.5rem/1 'Archivo', sans-serif;
  cursor: pointer;
  outline: none;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  color: var(--red);
}

.lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0; top: 50%; transform: translateY(-50%); }
.lb-close { right: 0; top: 0; }

.lb-count {
  position: absolute;
  bottom: .5rem;
  left: 0;
  right: 0;
  margin: 0;
  font-size: .8rem;
  letter-spacing: 1px;
  text-align: center;
}

@media (max-width: 600px) {
  .lightbox img {
    max-width: 100vw;
    max-height: calc(100dvh - 7rem);
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 0;
    transform: none;
  }
}
