:root {
  --fondo: #f3e7d6;        /* the warm paper behind the watch */
  --fondo-alto: #e7d3b8;   /* the top of the background */
  --quadrante: #1f5a4c;    /* the green sunburst dial */
  --acciaio: #aab1b8;      /* the steel of the case */
  --oro: #c9a24e;          /* the gold of the hands, the gears and the rotor */
  --cuoio: #8a4f2a;        /* the leather strap */
  --rubino: #b3123f;       /* the jewels of the movement */
  --accento: #e2552c;      /* the seconds hand and the small marks */
  --inchiostro: #1c1712;   /* the text */
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: 'Bricolage Grotesque Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

p, h1, h2 { margin: 0; }

/* ---------------------------------------------------------------- the stage */
.vista {
  position: relative;
  height: 560lvh;
}

.palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 60%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(to bottom, var(--fondo-alto), var(--fondo) 70%);
  touch-action: pan-y;
}

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

/* ---------------------------------------------------------------- the callouts on the parts */
.fili {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.fili line {
  stroke: var(--inchiostro);
  stroke-width: 1;
  stroke-opacity: .45;
}

.fili circle {
  fill: var(--fondo);
  stroke: var(--inchiostro);
  stroke-width: 1;
}

.etichette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.etichetta {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-size: clamp(10px, 1.15vw, 13px);
  line-height: 1.25;
  font-variation-settings: 'wdth' 80;
  opacity: 0;
}

.etichetta b {
  display: block;
  font-weight: 650;
  font-size: 1.08em;
}

.etichetta span { opacity: .62; }

/* ---------------------------------------------------------------- the words over the stage */
.testata {
  position: absolute;
  top: clamp(14px, 3.4vh, 30px);
  left: clamp(16px, 5vw, 64px);
  right: clamp(16px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.marchio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: .01em;
}

.marchio svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.sotto {
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}

.racconto {
  position: absolute;
  left: clamp(16px, 5vw, 64px);
  top: clamp(64px, 15vh, 150px);
  width: min(30vw, 400px);
  z-index: 2;
}

.capitolo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
}

.occhiello {
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accento);
  margin-bottom: .7em;
  font-weight: 600;
}

.titolo {
  font-family: 'Fraunces Variable', Georgia, serif;
  font-weight: 500;
  font-size: clamp(26px, min(4.2vw, 7.4vh), 60px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

.titolo em {
  font-style: italic;
  padding-right: .08em;
  color: var(--quadrante);
}

.nota {
  position: absolute;
  left: clamp(16px, 5vw, 64px);
  bottom: clamp(14px, 3.4vh, 30px);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .6;
  z-index: 2;
}

/* ---------------------------------------------------------------- after the stage: the order line */
.ordina {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 16px;
  text-align: center;
  background: var(--fondo);
}

.prezzo {
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: clamp(36px, min(7vw, 10vh), 84px);
  font-weight: 500;
  letter-spacing: -.02em;
}

.pillola {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--inchiostro);
  color: var(--fondo);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  font-variation-settings: 'wdth' 85;
  transition: font-variation-settings .45s cubic-bezier(.34, 1.56, .64, 1), transform .45s cubic-bezier(.34, 1.56, .64, 1);
}

@media (hover: hover) {
  .pillola:hover {
    font-variation-settings: 'wdth' 112;
    transform: scale(1.04);
  }
}

/* ---------------------------------------------------------------- the phone: words on top, the watch below */
@media (max-width: 720px) {
  .racconto {
    width: auto;
    right: 16px;
    top: clamp(52px, 11vh, 90px);
  }

  .titolo { font-size: clamp(21px, min(6.4vw, 5.6vh), 34px); }

  .etichetta { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .vista { height: 100lvh; }
  .pillola { transition: none; }
}
