/* The headline that arrives in pixels: minimal. Black, a warm white for the letters and one accent, a lime that only
   the reel card wears. A pixel typeface with variable axes (Bitcount: weight and the shape of its dots), a narrow
   sans for the small print. */
:root {
  --fondo: #0b0b0c;        /* the page */
  --inchiostro: #f1eee6;   /* the letters */
  --tenue: #7c7a74;        /* the small print */
  --accento: #d6ff4f;      /* the reel card */
  --raggio: 18px;          /* the corners of the card */
  --pendenza: -11deg;      /* how tilted the card settles */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: 'Instrument Sans Variable', 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.palco {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  padding: 0 4vw;
  overflow: hidden;
}

.testa {
  position: absolute;
  top: clamp(16px, 4vh, 36px);
  left: 4vw;
  right: 4vw;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.marchio {
  font-family: 'Bitcount Prop Single Variable', monospace;
  font-size: 18px;
  font-weight: 600;
}

.nota {
  color: var(--tenue);
}

/* the two words: as wide as the screen allows, and never taller than a third of it */
.titolo {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Bitcount Prop Single Variable', monospace;
  font-weight: 700;
  font-size: min(23vw, 31vh);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.riga {
  display: block;
  width: max-content;
}

.riga--seconda {
  margin-left: auto;
}

.riga__dentro {
  display: block;
}

/* every letter carries its own dot shape and weight, so they can change one by one */
.titolo .lettera {
  font-variation-settings: 'ELSH' var(--forma, 50), 'ELXP' var(--gonfio, 0);
  font-weight: var(--peso, 700);
}

/* the reel: one element for GSAP, the child for the look */
.carta {
  position: absolute;
  z-index: 2;
  left: 9vw;
  top: 50%;
  width: min(28vw, 40vh);
  aspect-ratio: 16 / 10;
  margin-top: 2vh;
  color: var(--fondo);
  text-decoration: none;
}

.carta__fondo {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: var(--raggio);
  background: var(--accento);
  transform: rotate(var(--pendenza));
}

.carta__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  margin: -11% 0 0 -11%;
  fill: currentColor;
}

.carta__nome {
  position: absolute;
  left: 7%;
  bottom: 9%;
  font-family: 'Bitcount Prop Single Variable', monospace;
  font-size: clamp(12px, 1.4vw, 17px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.piede {
  position: absolute;
  left: 4vw;
  bottom: clamp(16px, 4vh, 36px);
  max-width: 300px;
  margin: 0;
  color: var(--tenue);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .titolo {
    font-size: min(27vw, 26vh);
  }

  .carta {
    left: 50%;
    width: 56vw;
    margin: calc(27vw * 0.86 + 6vh) 0 0 -28vw;
  }

  .nota {
    display: none;
  }
}
