/* The mark that rises from the noise: minimal. A dark ground, a name, one hairline that fills, and the mark of a
   made-up sound studio coming up out of a drifting noise; the only colour is the blue of the edge where it burns in. */
:root {
  --fondo: #111319;        /* the ground */
  --linea: #e9ecee;        /* the mark, the name, the line */
  --accento: #4f8bff;      /* the edge of the dissolve */
  --tenue: #6e7b88;        /* the small text and the empty line */
  --schermo: 100vh;
}

@supports (height: 100lvh) {
  :root {
    --schermo: 100lvh;
  }
}

* {
  box-sizing: border-box;
}

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

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

.soglia {
  position: relative;
  height: var(--schermo);
}

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

/* under the mark: the name, then the line that fills, then the button in the same place */
.piede {
  position: absolute;
  left: 50%;
  top: var(--piede, 70%);
  display: grid;
  justify-items: center;
  gap: 22px;
  translate: -50% 0;
}

.nome {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 380;
  font-stretch: 125%;
  font-size: 15px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
}

.nome__sotto {
  color: var(--tenue);
  font-stretch: 112%;
  font-size: 9px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}

/* the line and the count share one row; the button takes the same row when the line has gone */
.carica,
.entra {
  grid-area: 2 / 1;
}

.carica {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
}

.carica__riga {
  position: relative;
  width: 150px;
  height: 1px;
  background: color-mix(in srgb, var(--tenue) 45%, transparent);
  overflow: hidden;
}

.carica__pieno {
  position: absolute;
  inset: 0;
  background: var(--linea);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.carica__conto {
  width: 3ch;
  color: var(--tenue);
  font-size: 10px;
  font-stretch: 110%;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* the button: a hairline frame; on hover the word widens on the wdth axis and the frame follows it */
.entra {
  height: 34px;
  padding: 0 26px 0 calc(26px + 0.38em);
  border: 1px solid color-mix(in srgb, var(--linea) 40%, transparent);
  border-radius: 999px;
  background: none;
  color: var(--linea);
  font: inherit;
  font-size: 10px;
  font-stretch: 110%;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: font-stretch 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}

.entra:focus-visible {
  outline: 1px solid var(--accento);
  outline-offset: 4px;
}

@media (hover: hover) {
  .entra:hover {
    font-stretch: 125%;
    border-color: var(--linea);
  }
}
