/* The sentence along the curve: a made-up magazine of slow travel, Meander, in the minimal style. The stage sticks
   while you scroll; the curve and the letters are drawn by the script, their colours come from the variables below. */
:root {
  --carta: #f3f0e8;          /* the page */
  --inchiostro: #141414;     /* the sentence */
  --curva: #141414;          /* the curve */
  --tenue: #8a857b;          /* the small text */
  --accento: #e8412a;        /* the full stop */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--carta);
  color: var(--inchiostro);
  font-family: 'Newsreader Variable', Georgia, 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: 520lvh; /* the script sets the real height from RIDE */
}

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

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

.curva {
  fill: none;
  stroke: var(--curva);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lettere text {
  fill: var(--inchiostro);
  font-family: 'Newsreader Variable', Georgia, serif;
  font-optical-sizing: none;
  text-anchor: middle;
}

.punto {
  fill: var(--accento);
}

.solo-lettori {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- the small text */
.testa {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: clamp(18px, 3vw, 34px) clamp(16px, 4.4vw, 60px);
}

.marchio {
  color: var(--inchiostro);
  font-size: 22px;
  font-style: italic;
  font-weight: 460;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.sotto {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(30em, calc(100% - 32px));
  margin: 0;
  color: var(--tenue);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%);
}

.cenno {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 36px);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--tenue);
  font-size: 14px;
  transform: translateX(-50%);
}

.cenno svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- after the stage */
.piede {
  display: grid;
  place-items: center;
  min-height: 60lvh;
  padding: 48px clamp(16px, 4.4vw, 60px);
  border-top: 1px solid rgba(20, 20, 20, 0.12);
}

.piede p {
  max-width: 26em;
  margin: 0;
  color: var(--tenue);
  font-size: clamp(16px, 1.4vw, 19px);
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

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