/* Features with icons that redraw themselves: six features of an invented notes app, thin line icons, one accent. */
:root {
  --fondo: #f7f6f2;      /* warm white */
  --inchiostro: #19191c; /* text and icons */
  --accento: #3b5bdb;    /* the one accent: the icon while it is under the pointer */
  --filo: #e1ded6;       /* the hairlines between the rows */
  --tenue: #8d8a83;      /* the brand line and the note */
}

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

html, body { height: 100%; }

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

.scena {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.blocco {
  width: min(780px, 100%);
}

.testa {
  margin-bottom: clamp(14px, 4vh, 40px);
}

.marchio {
  font-size: clamp(11px, min(2.9vw, 2.4vh), 13px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--tenue);
  margin-bottom: clamp(4px, 1vh, 8px);
}

.titolo {
  font-size: clamp(22px, min(6.4vw, 6vh), 40px);
  font-weight: 620;
  font-variation-settings: 'wdth' 96;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.griglia {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(14px, 3vw, 32px);
}

.voce {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.8vh, 16px);
  padding: clamp(12px, 3.2vh, 30px) 0 clamp(12px, 3.2vh, 30px);
  cursor: pointer;
}

/* the hairline on top of every row; a last one closes the grid */
.filo {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--filo);
  transform-origin: 0 50%;
}
.filo-fondo {
  top: auto;
  bottom: 0;
}

/* GSAP moves the svg (press), the paths are drawn with their dash */
.icona {
  width: clamp(20px, min(6vw, 5.4vh), 34px);
  height: clamp(20px, min(6vw, 5.4vh), 34px);
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--inchiostro);
  transition: color 0.35s ease;
}
.voce.accesa .icona {
  color: var(--accento);
}

.nome {
  display: block;
  font-size: clamp(13px, min(3.9vw, 3.2vh), 17px);
  font-weight: 520;
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap;
  transition: font-variation-settings 0.35s ease;
  font-variation-settings: 'wght' 520;
}
.voce.accesa .nome {
  font-variation-settings: 'wght' 600;
}

.nota {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(12px, 4.5vh, 40px);
  text-align: center;
  font-size: clamp(10px, min(2.8vw, 2.4vh), 13px);
  letter-spacing: 0.02em;
  color: var(--tenue);
  opacity: 0;
}

/* on a narrow screen: two columns, three rows */
@media (max-width: 560px) {
  .griglia { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .icona, .nome { transition: color 0.4s ease; }
}
