:root {
  --notte: #0d0c0b;
  --carta: #f6efe6;
  --ambra: #ff8a2a;
  --miele: #ffc46b;
  --brace: #b9400e;
  --pesca: #ffe1bd;
  --fondo-luce: #7a300d;
  --fondo-buio: #2a1206;
  --grigio: rgba(246, 239, 230, 0.56);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--notte); color: var(--carta); }
body { font-family: "Geist Mono Variable", ui-monospace, monospace; overflow-x: hidden; }

.corsa { position: relative; height: 400vh; }
.palco { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }

.luce { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 52%, var(--fondo-luce), var(--fondo-buio) 78%); }
.luce__dentro { position: absolute; inset: -6%; }
.macchia { position: absolute; border-radius: 50%; will-change: transform; }
.macchia--a { width: 70vmax; height: 70vmax; left: -10%; top: -20%; background: radial-gradient(closest-side, var(--ambra), rgba(255, 138, 42, 0) 72%); }
.macchia--b { width: 60vmax; height: 60vmax; right: -12%; top: 10%; background: radial-gradient(closest-side, var(--miele), rgba(255, 196, 107, 0) 70%); }
.macchia--c { width: 55vmax; height: 55vmax; left: 25%; bottom: -30%; background: radial-gradient(closest-side, var(--brace), rgba(185, 64, 14, 0) 72%); }
.macchia--d { width: 34vmax; height: 34vmax; left: 40%; top: 18%; background: radial-gradient(closest-side, var(--pesca), rgba(255, 225, 189, 0) 70%); opacity: 0.75; }
.righe {
  position: absolute; inset: 0 -40px;
  background: repeating-linear-gradient(90deg, rgba(255, 240, 220, 0.09) 0 1px, transparent 1px 16px);
  mix-blend-mode: soft-light;
}
.grana {
  position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

.velo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.velo__notte { fill: var(--notte); }
.velo text { font-family: "Anybody Variable", system-ui, sans-serif; font-weight: 600; dominant-baseline: alphabetic; }
.velo__bordo { fill: none; stroke: none; } /* the same word, invisible: it is the one we measure (a text inside a mask cannot be measured) */

.testa {
  position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: clamp(16px, 3.2vmin, 32px) clamp(18px, 4vw, 44px); font-size: clamp(11px, 1.6vmin, 13px); letter-spacing: 0.02em;
}
.marca { display: flex; align-items: center; gap: 8px; font-family: "Anybody Variable", sans-serif; font-weight: 650; font-stretch: 120%; font-size: clamp(14px, 2.2vmin, 17px); letter-spacing: 0; }
.marca svg { width: 18px; height: 18px; }
.etichetta { color: var(--grigio); }
.etichetta span { color: var(--carta); margin-left: 10px; }

.misura {
  position: absolute; left: clamp(18px, 4vw, 44px); bottom: clamp(16px, 3.2vmin, 32px);
  font-size: clamp(10px, 1.5vmin, 12px); color: var(--grigio); display: flex; gap: 6px; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.misura b { color: var(--carta); font-weight: 500; }
.misura i { font-style: normal; color: var(--grigio); }
.invito {
  position: absolute; right: clamp(18px, 4vw, 44px); bottom: clamp(16px, 3.2vmin, 32px);
  font-size: clamp(10px, 1.5vmin, 12px); color: var(--grigio); letter-spacing: 0.08em; text-transform: uppercase;
}

.sotto {
  position: absolute; left: 50%; top: 50%; width: min(86vw, 760px); transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3.4vmin, 30px); text-align: center;
  pointer-events: none;
}
.sotto__titolo {
  font-family: "Anybody Variable", sans-serif; font-weight: 640; font-stretch: 112%;
  font-size: clamp(26px, min(6.2vw, 8.4vh), 74px); line-height: 1.02; letter-spacing: -0.01em; color: #fff8ef;
  text-wrap: balance;
}
.pillola {
  position: relative; display: inline-grid; place-items: center; height: clamp(40px, 6vmin, 50px);
  padding: 0 clamp(20px, 3vmin, 28px); border-radius: 999px; color: var(--notte); text-decoration: none;
  font-size: clamp(12px, 1.8vmin, 14px); letter-spacing: 0.01em; pointer-events: auto;
}
.pillola__fondo { position: absolute; inset: 0; border-radius: inherit; background: #fff8ef; box-shadow: 0 10px 30px rgba(80, 20, 0, 0.35); }
.pillola__testo { position: relative; }
@media (hover: hover) {
  .pillola:hover .pillola__fondo { background: #fff; }
}
.pillola:focus-visible { outline: 1.5px solid #fff8ef; outline-offset: 4px; }

@media (max-width: 560px) {
  .etichetta span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .corsa { height: 100vh; }
}
