/* Bookanda: design token condivisi da tutte le pagine del sito.
   Ogni regola di stile legge solo questi valori. Una pagina nuova (per esempio una landing)
   importa tokens.css + site.css e ottiene tipografia, colori nei due temi, bottoni, barra e footer.

   Tema: chiaro di default; scuro se il sistema lo preferisce e l'utente non ha scelto il chiaro,
   oppure se l'utente ha scelto lo scuro (attributo data-theme su <html>, impostato dallo script
   inline nel <head> prima del primo disegno). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-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: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Righteous";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/righteous-latin.woff2") format("woff2");
}

:root {
  /* colore: tema chiaro (valori dell'app, lib/design_system/tokens/app_colors.dart) */
  --bg: #ffffff;
  --ink: #000000;
  --muted: #444444;
  --surface: #f2f2f2;
  --surface-2: #f7f7f7;
  --accent: #ff6b35;          /* solo come riempimento: il testo sopra Ã¨ --accent-ink */
  --accent-ink: #000000;
  --field: #000000;           /* campo a contrasto: una sezione che inverte il fondo */
  --field-ink: #ffffff;
  --field-muted: #b5b5b5;
  --paper: #ffffff;           /* carta di scontrini e frammenti dell'app: chiara in entrambi i temi */
  --paper-ink: #000000;
  --paper-muted: #444444;
  --bezel: #000000;           /* cornice del telefono */
  --slot-free: #ffffff;       /* slot liberi della striscia della giornata */
  --photo-dim: 1;
  color-scheme: light;

  /* tipo: Montserrat per tutto, Righteous solo per il wordmark */
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mark: "Righteous", var(--font);
  --step-xl: clamp(3rem, 1rem + 8.2vw, 9rem);         /* 48 -> 144 */
  --step-display: clamp(2.25rem, 1.5rem + 2.6vw, 4rem); /* 36 -> 64 */
  --step-lead: clamp(1.375rem, 1.1rem + 0.75vw, 2rem); /* 22 -> 32 */
  --step-body: 1.125rem;                                 /* 18 */
  --step-small: 0.875rem;                                /* 14 */

  /* spazio */
  --margin: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --gutter: clamp(1rem, 0.5rem + 1.6vw, 2.5rem);
  --section: clamp(6rem, 3rem + 9vw, 13rem);
  --header-h: 4rem;
  --measure: 62ch;
  --radius-pill: 999px;
  --radius-phone: 13.5%;      /* del lato corto del telefono, applicato in site.css */

  /* movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --stagger-item: 70ms;
}

/* tema scuro: valori dell'app (background nero, superfici #1A1A1A e #2A2A2A) */
:root[data-theme="dark"] {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #9e9e9e;
  --surface: #1a1a1a;
  --surface-2: #2a2a2a;
  --field: #ffffff;
  --field-ink: #000000;
  --field-muted: #444444;
  --bezel: #2a2a2a;
  --slot-free: #000000;
  --photo-dim: 0.86;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --ink: #ffffff;
    --muted: #9e9e9e;
    --surface: #1a1a1a;
    --surface-2: #2a2a2a;
    --field: #ffffff;
    --field-ink: #000000;
    --field-muted: #444444;
    --bezel: #2a2a2a;
    --slot-free: #000000;
    --photo-dim: 0.86;
    color-scheme: dark;
  }
}
