:root {
  --fondo: #ecebe6;
  --fondo-luce: #f7f6f2;
  --carta: #141614;
  --carta-alta: #1d201c;
  --inchiostro: #f2f3ee;
  --tenue: #8e938a;
  --filo: rgba(255, 255, 255, 0.08);
  --accento: #d4f25c;
  --accento-scuro: #9fbd2a;
  --testo-pagina: #6f716b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fondo); }
body {
  background: radial-gradient(120% 80% at 50% 30%, var(--fondo-luce), var(--fondo) 70%);
  background-attachment: fixed;
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.corsa { position: relative; height: 400vh; }
.palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(2.4vh, 16px);
  overflow: hidden;
}

/* the soft shadow on the paper under the card, an element of its own so it can breathe with the scroll */
.ombra {
  position: absolute;
  width: min(300px, 70vw, calc(70vh * 0.6));
  height: min(40px, 6vh);
  top: 50%;
  transform: translateY(min(41vh, 260px));
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 34, 20, 0.28), transparent);
  filter: blur(8px);
}

.carta {
  position: relative;
  container-type: inline-size;
  --w: min(360px, 86vw, calc(82vh * 0.6));
  width: var(--w);
  aspect-ratio: 0.6;
  border-radius: calc(var(--w) * 0.08);
  background:
    radial-gradient(130% 70% at 50% 0%, var(--carta-alta), var(--carta) 60%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(20, 22, 14, 0.2),
    0 12px 24px -8px rgba(20, 22, 14, 0.28),
    0 40px 70px -24px rgba(20, 22, 14, 0.42);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: calc(var(--w) * 0.07) calc(var(--w) * 0.07) calc(var(--w) * 0.06);
  transform-origin: 50% 60%;
}
.grana {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)'/%3E%3C/svg%3E");
}
.alone {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 90cqw;
  height: 90cqw;
  margin: -45cqw 0 0 -45cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 242, 92, 0.22), rgba(212, 242, 92, 0.05) 60%, transparent);
  pointer-events: none;
}
.traccia {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.traccia path {
  fill: none;
  stroke: var(--accento);
  stroke-width: 0.9;
  stroke-linecap: round;
  opacity: 0.32;
}
.traccia circle { fill: var(--accento); }
.riflesso {
  position: absolute;
  inset: -20%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.07) 47%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.04) 54%, transparent 62%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.testa {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 3.6cqw;
}
.marchio {
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: -0.01em;
}
.marchio svg {
  width: 5.4cqw;
  height: 5.4cqw;
  fill: none;
  stroke: var(--accento);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.anno {
  color: var(--tenue);
  font-weight: 460;
  padding: 1.2cqw 2.8cqw;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--filo);
  background: rgba(255, 255, 255, 0.03);
}

.scene { position: relative; flex: 1; }
.scena {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.etichetta {
  font-size: 3.5cqw;
  font-weight: 520;
  letter-spacing: 0.02em;
  color: var(--accento);
  margin-bottom: 3cqw;
}

/* the odometer */
.numero {
  display: flex;
  font-size: 27cqw;
  line-height: 1;
  height: 1em;
  font-weight: 720;
  font-stretch: 92%;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  margin-left: -0.04em;
}
.cifra { position: relative; height: 1em; overflow: visible; }
.cifra__nastro { display: flex; flex-direction: column; }
.cifra__nastro span { display: block; height: 1em; text-align: center; }
.virgola { width: 0.19em; margin-left: -0.02em; color: var(--tenue); }
.unita {
  font-size: 4.4cqw;
  color: var(--tenue);
  margin-top: 1cqw;
  font-weight: 460;
}
.dati {
  list-style: none;
  display: flex;
  gap: 6cqw;
  margin-top: 7cqw;
  padding-top: 4.5cqw;
  border-top: 1px solid var(--filo);
}
.dati li { display: flex; flex-direction: column; gap: 0.6cqw; }
.dati b { font-size: 5.6cqw; font-weight: 640; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dati span { font-size: 3.2cqw; color: var(--tenue); }

/* the best month */
.parola {
  font-size: 17cqw;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.03em;
  margin-left: -0.03em;
}
.parola span {
  display: inline-block;
  font-variation-settings: 'wght' 200, 'wdth' 75;
}
.mese { margin-top: 7cqw; display: flex; flex-direction: column; }
.mese__riga {
  display: flex;
  justify-content: space-between;
  font-size: 3.7cqw;
  padding: 2.4cqw 0;
  border-top: 1px solid var(--filo);
}
.mese__riga span { color: var(--tenue); }
.mese__riga b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* the summary */
.frase {
  font-size: 7.6cqw;
  line-height: 1.12;
  font-weight: 560;
  letter-spacing: -0.025em;
  min-height: 3.4em;
}
.frase em { font-style: normal; color: var(--accento); }
.cursore {
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.04em;
  vertical-align: -0.1em;
  background: var(--accento);
  border-radius: 1px;
}
.condividi {
  position: relative;
  align-self: flex-start;
  margin-top: 6cqw;
  display: inline-flex;
  align-items: center;
  gap: 2.2cqw;
  padding: 3.4cqw 5.4cqw;
  border: 0;
  border-radius: 99px;
  background: none;
  color: #141614;
  font: inherit;
  font-size: 4cqw;
  font-weight: 620;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.condividi__fondo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #e2fb76, var(--accento) 55%, #c4e24a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 18px -6px rgba(212, 242, 92, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.condividi__testo { position: relative; font-variation-settings: 'wdth' 100; }
.condividi svg { position: relative; width: 4cqw; height: 4cqw; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.condividi__spunta { position: absolute !important; right: 5.4cqw; opacity: 0; }
@media (hover: hover) {
  .condividi:hover .condividi__fondo { filter: brightness(1.05); }
}
.condividi:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; }

/* the strip of months */
.mesi {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4cqw;
  align-items: end;
  padding-top: 4cqw;
  border-top: 1px solid var(--filo);
}
.mese-col { display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; }
.mese-col__pozzo {
  position: relative;
  width: 100%;
  height: 11cqw;
  border-radius: 1.2cqw;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}
.mese-col__liquido {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  border-radius: 1.2cqw;
  background: linear-gradient(180deg, #e9f2c9, #9aa58a);
  transform-origin: 50% 100%;
  transform: scaleY(0);
}
.mese-col.migliore .mese-col__liquido { background: linear-gradient(180deg, #ecff9a, var(--accento) 50%, var(--accento-scuro)); }
.mese-col__nome { font-size: 2.7cqw; color: var(--tenue); font-weight: 500; }
.mese-col.migliore .mese-col__nome { color: var(--accento); }

.invito {
  font-size: min(13px, 2.2vh);
  color: var(--testo-pagina);
  letter-spacing: 0.01em;
}
.piede {
  padding: 18vh 6vw;
  text-align: center;
  font-size: 13px;
  color: var(--testo-pagina);
}
