:root {
  --carta: #f5f3ee;          /* the warm white of the page */
  --inchiostro: #16161a;     /* the ink of the circles and the names */
  --grigio: #a3a19b;         /* the grey of the small text */
  --accento: #2f45ff;        /* the one accent: the overlap */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--carta); }
body {
  background: var(--carta);
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.corsa {
  position: relative;
  height: 380vh;
}

.palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pezzo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 2.6vh, 24px);
  width: min(88vw, 74vh, 720px);
}

.sopra, .sotto {
  font-size: clamp(10px, min(1.5vw, 2.4vh), 13px);
  font-variation-settings: 'wght' 480, 'wdth' 100;
  letter-spacing: 0.02em;
  color: var(--grigio);
  user-select: none;
  white-space: nowrap;
}
.sotto { color: var(--inchiostro); font-variation-settings: 'wght' 520, 'wdth' 100; }

.diagramma {
  position: relative;
  width: 100%;
}

.venn { display: block; overflow: visible; }
.venn path, .venn line { vector-effect: non-scaling-stroke; }
.venn__fuori { fill: none; stroke: var(--inchiostro); stroke-linecap: round; }
.venn__dentro { fill: none; stroke: var(--inchiostro); stroke-opacity: 0.5; stroke-dasharray: 2 4; stroke-width: 1; }
.venn__lente { fill: var(--accento); stroke: var(--accento); stroke-width: 1; }
.venn__bacio { stroke: var(--accento); stroke-width: 1.5; stroke-linecap: round; }

/* the names sit in the middle of their crescent; GSAP moves the span, nothing else transforms it */
.nome, .incontro {
  position: absolute;
  top: 50%;
  left: 0;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.nome {
  font-size: clamp(12px, min(2.6vw, 3.6vh), 22px);
  font-variation-settings: 'wght' 520, 'wdth' 100;
  letter-spacing: -0.01em;
}
.incontro {
  font-size: clamp(12px, min(2.6vw, 3.6vh), 22px);
  font-variation-settings: 'wght' 640, 'wdth' 100;
  letter-spacing: -0.01em;
  color: var(--carta);
}
.incontro > span { display: inline-block; }

.scendi {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 5vh, 40px);
  transform: translateX(-50%);
  font-size: 12px;
  font-variation-settings: 'wght' 480, 'wdth' 110;
  letter-spacing: 0.04em;
  color: var(--grigio);
  user-select: none;
}
