:root {
  --fondo: #fafaf8;
  --inchiostro: #121212;
  --grigio: #8c8c86;
  --linea: #c9c9c3;
  --accento: #ff5a3c;
  --scia: #ff5a3c;
  /* the mark is sized on both sides of the window, so it stays large in the phone's short box */
  --marchio: clamp(84px, min(24vw, 34vh), 230px);
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

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

.palco {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  display: grid;
  place-items: center;
}

.blocco {
  display: flex;
  align-items: center;
  gap: calc(var(--marchio) * 0.22);
}

.marchio {
  display: block;
  width: var(--marchio);
  height: var(--marchio);
  overflow: visible;
}

/* the icons are drawn as lines, then become the filled faces of the mark */
.pezzo {
  fill: var(--accento);
  fill-opacity: 0;
  stroke: var(--inchiostro);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scie path {
  fill: none;
  stroke: var(--scia);
  stroke-width: 0.8;
  stroke-linecap: round;
  opacity: 0;
}

.ombra { fill: var(--inchiostro); opacity: 0; }
.luce { fill: #fff; opacity: 0; pointer-events: none; }

.testi { display: flex; flex-direction: column; gap: calc(var(--marchio) * 0.06); }

.nome {
  font-size: calc(var(--marchio) * 0.38);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variation-settings: 'wdth' 100, 'wght' 620;
}

/* one span per letter: GSAP moves the span, the variable axes come from two custom properties */
.lettera {
  display: inline-block;
  --w: 100;
  --g: 620;
  font-variation-settings: 'wdth' var(--w), 'wght' var(--g);
}

.frase {
  font-size: clamp(11px, calc(var(--marchio) * 0.085), 17px);
  color: var(--grigio);
  white-space: nowrap;
  opacity: 0;
}

.replay {
  position: absolute;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vh, 28px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--fondo);
  color: var(--grigio);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: color 0.2s, border-color 0.2s;
}
.replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.replay svg.gira { transform-origin: 50% 50%; }
@media (hover: hover) {
  .replay:hover { color: var(--inchiostro); border-color: var(--inchiostro); }
}
.replay:active { transform: scale(0.96); }

/* on narrow or short windows the name goes under the mark */
@media (max-width: 640px), (max-aspect-ratio: 1/1) {
  .blocco { flex-direction: column; text-align: center; gap: calc(var(--marchio) * 0.16); }
  .testi { align-items: center; }
  :root { --marchio: clamp(84px, min(40vw, 30vh), 230px); }
}
