/* Calendario dell'Avvento 2026 — token del sistema visivo.
   Direzione: «Il casellario postale di Babbo Natale» (docs/DIREZIONE-ARTISTICA.md).
   Per cambiare un colore, una misura o una curva basta modificarla qui. */

@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Notte: il fondo della pagina e il cielo del villaggio */
  --night: #1b2546;
  --night-deep: #121a33;
  --night-lift: #263460;
  /* Il mobile del casellario */
  --kraft: #a7784b;
  --kraft-light: #c0925f;
  --wood: #5a3a22;
  --recess: #2b1b12;
  /* Carta: etichette, lettere, telegrammi */
  --paper: #f4e9d2;
  --paper-shade: #e6d7b9;
  --paper-deep: #cdb48a;
  /* Rosso: francobolli, ceralacca, campo «Come funziona» */
  --red: #c62f2a;
  --red-deep: #9e2320;
  /* Inchiostro, oro della lanterna, abete degli annulli */
  --ink: #17130f;
  --ink-soft: #4a4036;
  --gold: #e3aa2c;
  --gold-deep: #b37f17;
  --fir: #1f5a3a;
  --fir-deep: #164029;
  --on-night: #f4e9d2;
  --on-night-soft: #cfc6b4;

  /* Una sola famiglia: Archivo, stretto e nerissimo per i titoli */
  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  --step-head: clamp(2rem, 1.45rem + 2.1vw, 2.75rem);
  --step-display: clamp(2.5rem, 0.9rem + 6.8vw, 6rem);

  --margin: clamp(16px, 3.2vw, 44px);
  --gutter: clamp(14px, 2vw, 28px);
  --section: clamp(96px, 11vw, 176px);

  /* Curve di Emil Kowalski */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-press: 120ms;
  --t-hover: 180ms;
  --t-ui: 240ms;

  /* Ombre naturali: sempre un offset e una sfocatura morbida */
  --shadow-paper: 0 1px 1px rgb(8 10 24 / 0.3), 0 10px 22px -8px rgb(6 9 24 / 0.55); /* taste-skill-ignore: ombre naturali della carta, richieste dal brief */
  --shadow-lift: 0 2px 2px rgb(8 10 24 / 0.24), 0 22px 36px -12px rgb(6 9 24 / 0.62); /* taste-skill-ignore: ombre naturali della carta, richieste dal brief */
  --shadow-float: 0 4px 8px rgb(8 10 24 / 0.28), 0 34px 64px -20px rgb(4 6 18 / 0.75); /* taste-skill-ignore: ombre naturali della carta, richieste dal brief */

  /* Materiali */
  --grain: url("/static/assets/derived/paper-grain.webp");
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='1.75' cy='1.75' r='1.1' fill='%2317130f' fill-opacity='.22'/%3E%3C/svg%3E");
  --dots-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Ccircle cx='2.25' cy='2.25' r='1.2' fill='%23f4e9d2' fill-opacity='.1'/%3E%3C/svg%3E");
  --leader: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Ccircle cx='3' cy='3' r='2' fill='%2317130f'/%3E%3C/svg%3E");
  --zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M0 0h16L8 10z' fill='%23f4e9d2'/%3E%3C/svg%3E");
  --scallop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='18'%3E%3Cpath d='M0 18C0 8 14 0 32 0s32 8 32 18z' fill='%23f4e9d2'/%3E%3C/svg%3E");
}
