/* The pool that fills as you scroll: a made-up public baths, Lune, in the minimal style. The stage sticks while you
   scroll; the pool is drawn on a canvas from the colours below. */
:root {
  --carta: #f3f0e8;          /* the page */
  --inchiostro: #141414;     /* the text and the lines of the empty pool */
  --tenue: #8a857b;          /* the small text */
  --acqua: #1f6fd1;          /* the water: the only accent */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--carta);
  color: var(--inchiostro);
  font-family: 'Archivo Variable', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* ---------------------------------------------------------------- the stage */
.corsa {
  position: relative;
  height: 420lvh; /* the script sets the real height from RIDE */
}

.palco {
  position: sticky;
  top: 0;
  height: 100lvh;
  overflow: hidden;
  background: var(--carta);
}

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

/* ---------------------------------------------------------------- the small text */
.testa {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: clamp(14px, 3.4vh, 30px) clamp(16px, 4vw, 44px);
}

.marchio {
  color: var(--inchiostro);
  text-decoration: none;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: 0.01em;
}

.testa__nota {
  margin: 0;
  color: var(--tenue);
  font-size: 13px;
}

/* ---------------------------------------------------------------- the title, placed by the script */
.titolo {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  will-change: transform;
  pointer-events: none;
}

.titolo__parole {
  margin: 0;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  font-size: clamp(30px, min(8.4vw, 13vh), 108px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 220;
  font-stretch: 118%;
}

/* ---------------------------------------------------------------- depth and note */
.livello {
  position: absolute;
  left: clamp(16px, 4vw, 44px);
  bottom: clamp(14px, 3.6vh, 30px);
  z-index: 3;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tenue);
  font-variant-numeric: tabular-nums;
}

.livello__cifra {
  color: var(--inchiostro);
  margin-left: 6px;
}

.nota {
  position: absolute;
  right: clamp(16px, 4vw, 44px);
  bottom: clamp(14px, 3.6vh, 30px);
  z-index: 3;
  margin: 0;
  font-size: 13px;
  color: var(--tenue);
  opacity: 0;
}

.cenno {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3.6vh, 30px);
  z-index: 3;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tenue);
}

.cenno svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.piede {
  padding: 18vh clamp(16px, 4vw, 44px);
  color: var(--tenue);
  font-size: 14px;
  text-align: center;
}

.piede p {
  margin: 0;
}

@media (max-width: 560px) {
  .testa__nota {
    font-size: 12px;
  }

  .nota {
    display: none;
  }

  .cenno {
    left: auto;
    right: clamp(16px, 4vw, 44px);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cenno {
    display: none;
  }
}
