/* Pages lined up in space: the work page of a made-up designer. The canvas fills the screen; the name of the project in
   the middle, the header and the arrows sit on top. */
:root {
  --fondo: #ececec;        /* the grey of the room */
  --inchiostro: #181818;   /* the text */
  --tenue: #8a8a8a;        /* the small text */
  --rosso: #ff4b3e;        /* the accent */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

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

.sala {
  position: relative;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.sala.is-presa {
  cursor: grabbing;
}

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

.testata {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(16px, 2vw, 28px);
  pointer-events: none;
}

.firma,
.sopra {
  margin: 0;
  font-size: 12px;
}

.firma {
  font-family: 'Bricolage Grotesque Variable', system-ui, sans-serif;
  font-stretch: 75%;
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* the project in the middle, bottom left; the script blurs it out and back in at every change */
.scheda {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(56px, 9vh, 96px);
  display: grid;
  gap: 6px;
  max-width: 34ch;
  pointer-events: none;
}

.scheda__tipo,
.scheda__frase {
  margin: 0;
  font-size: 12px;
  color: var(--tenue);
}

.scheda__nome {
  margin: 0;
  font-family: 'Bricolage Grotesque Variable', system-ui, sans-serif;
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.comandi {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(56px, 9vh, 96px);
  display: flex;
  gap: 6px;
}

.comandi button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--inchiostro);
  border-radius: 50%;
  background: transparent;
  color: var(--inchiostro);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.comandi svg {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .comandi button:hover {
    background: var(--inchiostro);
    color: var(--fondo);
  }
}

.comandi button:focus-visible {
  outline: 2px solid var(--rosso);
  outline-offset: 3px;
}

.aiuto {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  color: var(--tenue);
  font-size: 11px;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 767px) {
  .scheda {
    bottom: 120px;
  }

  .comandi {
    bottom: 56px;
    left: 16px;
    right: auto;
  }
}
