:root {
  --fondo: #f5f1e9;
  --carta: #fbfaf6;
  --inchiostro: #1d1b18;
  --grigio: #8b867c;
  --accento: #2f4f9e;
  --emulsione: #9ba6ad;
  --lato: min(25vw, 40vh, 290px);
}

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

html, body { height: 100%; }

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

.pagina {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 3.4vh, 32px) clamp(16px, 4vw, 44px);
}

.testa, .piede {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(11px, 1.6vh, 14px);
  letter-spacing: 0.01em;
}

.marchio { font-weight: 640; }
.testa__nota, .nota, .stato { color: var(--grigio); }
.stato [data-conta] { color: var(--inchiostro); font-variant-numeric: tabular-nums; }

.fila {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 40px);
}

.istantanea {
  position: relative;
  width: var(--lato);
  will-change: transform;
}

.istantanea__ombra {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -2%;
  height: 22%;
  border-radius: 50%;
  background: rgba(40, 32, 20, 0.22);
  filter: blur(10px);
  transform-origin: 50% 50%;
}

.istantanea__corpo {
  position: relative;
  background: var(--carta);
  padding: 7% 7% 0;
  border-radius: 2px;
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.04), 0 1px 2px rgba(40, 32, 20, 0.08);
}

.istantanea__corpo::after {
  /* the faint sheen of the glossy print */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.istantanea__tela {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: var(--emulsione);
}

.istantanea__scritta {
  display: block;
  height: calc(var(--lato) * 0.26);
  padding-top: calc(var(--lato) * 0.05);
  font-family: 'Caveat Variable', cursive;
  font-weight: 480;
  font-size: calc(var(--lato) * 0.12);
  line-height: 1;
  color: var(--accento);
  white-space: nowrap;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
}

@media (max-width: 560px) {
  :root { --lato: min(27vw, 30vh, 230px); }
  .testa__nota { display: none; }
}
