/* Pastificio Pepe — Design System · tokens
   Sistema "Modernist Black" (DECISO da Giorgio 04/10): stessa identità dei
   LISTINI 2026, su carta e schermo. Fonte unica per sito, listini, catalogo,
   stampe. Vedi docs/sito/guida-coerenza.md. Non modificare i valori senza
   aggiornare anche tokens.json. */

/* Font SELF-HOSTED (OFL): niente Google Fonts. File woff2 in ../fonts/, subset
   latin + latin-ext. DM Serif Display (titoli, nomi formato, prezzi, numeri) +
   Archivo (testo, label). Licenza SIL Open Font License 1.1 — DM Serif Display
   (Colophon Foundry), Archivo (Omnibus-Type). Percorso relativo a questo CSS. */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/dm-serif-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/dm-serif-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/dm-serif-display-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/dm-serif-display-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colori — terreno nero caldo (listini "Modernist Black") */
  --pepe-nero: #0b0a08;
  --pepe-nero-superficie: #15130f;
  --pepe-linea: rgba(201, 165, 92, .25);        /* hair oro */
  --pepe-linea-chiara: rgba(201, 165, 92, .35);
  --pepe-avorio: #f0e5cc;                        /* crema testo (titoli) */
  --pepe-sabbia: rgba(240, 229, 204, .62);       /* corpo */
  --pepe-sabbia-chiara: rgba(240, 229, 204, .80);
  --pepe-grigio-caldo: rgba(240, 229, 204, .42); /* didascalie */
  --pepe-grigio-muto: rgba(240, 229, 204, .32);
  /* Accento oro (dai listini) */
  --pepe-oro: #c9a55c;
  --pepe-oro-chiaro: #dcbf7a;
  --pepe-oro-scuro: #8a6f33;                     /* accento su crema */
  /* Terreno chiaro (carta): cassa, ordine, B2B */
  --pepe-crema: #f0e5cc;
  --pepe-crema-superficie: #e6dcc4;
  --pepe-bordo-chiaro: rgba(11, 10, 8, .18);
  --pepe-inchiostro: #0b0a08;
  --pepe-inchiostro-secondario: rgba(11, 10, 8, .80);  /* ≥7:1 su crema */

  /* Tipografia (Modernist Black) */
  --pepe-font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --pepe-font-testo: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  /* DM Serif Display rende più grande e pesante: scala rivista. */
  --pepe-display-1: 400 76px/1.0 var(--pepe-font-display);
  --pepe-display-2: 400 52px/1.06 var(--pepe-font-display);
  --pepe-h3: 400 38px/1.1 var(--pepe-font-display);
  --pepe-numero: 400 34px/1.1 var(--pepe-font-display);
  --pepe-body-lg: 400 18px/1.6 var(--pepe-font-testo);
  --pepe-body: 400 16px/1.65 var(--pepe-font-testo);
  --pepe-caption: 400 13px/1.5 var(--pepe-font-testo);
  --pepe-eyebrow: 600 12px/1.2 var(--pepe-font-testo);
  --pepe-tracking-caption: 0.08em;
  --pepe-tracking-eyebrow: 0.34em;               /* label uppercase .32–.4em */

  /* Spazi */
  --pepe-space-1: 4px;
  --pepe-space-2: 8px;
  --pepe-space-3: 16px;
  --pepe-space-4: 24px;
  --pepe-space-5: 40px;
  --pepe-space-6: 56px;
  --pepe-space-7: 96px;
  --pepe-space-8: 120px;
  --pepe-gutter: 56px;          /* margine laterale desktop */
  --pepe-gutter-mobile: 20px;

  /* Forme e misure */
  --pepe-radius: 8px;           /* raggio "morbido" (bottoni, input, chip, badge, riquadri) */
  --pepe-tocco: 44px;
  --pepe-cta: 52px;
}

@media (max-width: 720px) {
  :root {
    --pepe-display-1: 400 42px/1.02 var(--pepe-font-display);
    --pepe-display-2: 400 34px/1.05 var(--pepe-font-display);
    --pepe-h3: 400 28px/1.1 var(--pepe-font-display);
    --pepe-numero: 400 28px/1.1 var(--pepe-font-display);
    --pepe-body-lg: 400 16px/1.6 var(--pepe-font-testo);
    --pepe-gutter: var(--pepe-gutter-mobile);
  }
}
