/* Token di Rocchietti Studio, ripresi dal sito (rocchiettistudio.com). */

@font-face {
  font-family: 'Neue Montreal';
  src: url('../font/NeueMontreal-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../font/NeueMontreal-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --fondo: #f5f5f7;
  --inchiostro: #111;
  --marrone: #4d2d22;
  --azzurro: #ddecef;
  --giallo: #f4e6a9;
  --rosa: #f2d9d9;
  --verde: #d4e6d4;
  --bianco: #fff;

  --sans: "Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --margine: clamp(20px, calc(11.236vw - 23.8px), 120px);
  --h1: clamp(40px, 6.4vw, 82px);
  --h2: clamp(34px, 4.375vw, 56px);
  --testo: clamp(17px, 1.5625vw, 20px);
  --r-piccolo: 8px;
  --r-pillola: 999px;
  --bordo: 2px;
  --spaziatura: -0.01em;
  --spaziatura-stretta: -0.015em;
  --curva: cubic-bezier(0.625, 0.05, 0, 1);
  /* Lo sfondo a quadretti del sito, come un quaderno: righe sottili ogni 24px. */
  --puntini: linear-gradient(rgb(17 17 17 / 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(17 17 17 / 0.05) 1px, transparent 1px) 0 0 / 24px 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--puntini), var(--fondo);
  background-attachment: fixed, fixed, scroll;
  color: var(--inchiostro);
  font-family: var(--sans);
  font-size: var(--testo);
  line-height: 1.5;
  letter-spacing: var(--spaziatura);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; }

:focus-visible {
  outline: var(--bordo) solid var(--inchiostro);
  outline-offset: 3px;
  border-radius: var(--r-piccolo);
}
