/* The head that opens up: a deep teal page with the comedian's name in big coral letters behind a WebGL canvas.
   The canvas is transparent, so the name shows behind the sticker and the things that pop out of it. */
:root {
  --fondo: #0f3b3a;        /* the page */
  --nome: #ff7a59;         /* the big name behind the head */
  --crema: #fff6e5;        /* the small text, the pill, the labels */
  --inchiostro: #0f3b3a;   /* the text on the pill */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--fondo);
  color: var(--crema);
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- the opening */
.apertura {
  position: relative;
  height: 100vh;
  height: 100lvh;
  overflow: clip;
}

.testata {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2.2vw, 28px) clamp(16px, 2.6vw, 36px);
}

.testata__nome {
  color: var(--nome);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.pillola {
  padding: 0.7em 1.4em;
  border-radius: 999px;
  background: var(--crema);
  color: var(--inchiostro);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.4, 1.65, 0.3, 1);
}

@media (hover: hover) {
  .pillola:hover {
    transform: scale(1.06);
  }
}

.titolo {
  position: absolute;
  top: clamp(56px, 7vh, 90px);
  left: 0;
  right: 0;
  margin: 0;
  color: var(--nome);
  font-size: clamp(76px, 19.5vw, 340px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
}

.tela {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

/* the name of the thing under the pointer, a small pill that pops above it */
.etichetta {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  margin: 0;
  padding: 0.45em 1em;
  border-radius: 999px;
  background: var(--nome);
  color: var(--crema);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.4) rotate(-6deg);
  transition: opacity 0.15s, transform 0.45s cubic-bezier(0.4, 1.65, 0.3, 1);
}

.etichetta.attiva {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1) rotate(-6deg);
}

.ancora {
  position: absolute;
  left: clamp(16px, 2.6vw, 36px);
  bottom: clamp(16px, 3vh, 32px);
  z-index: 3;
  padding: 0.7em 1.3em;
  border: 1px solid rgb(255 246 229 / 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--crema);
  font: inherit;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.ancora:focus-visible {
  background: var(--crema);
  color: var(--inchiostro);
  outline: none;
}
@media (hover: hover) {
  .ancora:hover {
    background: var(--crema);
    color: var(--inchiostro);
    outline: none;
  }
}

/* ---------------------------------------------------------------- below */
.sotto {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 70vh;
  padding: 80px clamp(16px, 6vw, 110px);
  text-align: center;
}

.sotto__frase {
  max-width: 14em;
  margin: 0;
  font-size: clamp(36px, 6vw, 92px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.sotto__frase em {
  color: var(--nome);
  font-style: normal;
}

.sotto__piccolo {
  margin: 0;
  opacity: 0.6;
}
