/* Pinter — token generati da design/tokens.json. Non modificare a mano.
   Tema: segue il telefono; tre tocchi sul logo lo forzano (data-theme su <html>). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  color-scheme: light;
  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --surface-sunken: #EFEBE4;
  --line: #DDD7CD;
  --line-strong: #8F8B84;
  --ink: #1F2023;
  --ink-muted: #6B6A66;
  --on-ink: #F6F3EE;
  --on-accent: #F6F3EE;
  --vie: #D9661A;
  --vie-text: #A44D0C;
  --vie-soft: #FBE6D4;
  --falesie: #A8452F;
  --falesie-text: #A8452F;
  --falesie-soft: #F4DED8;
  --routines: #7A5AE0;
  --routines-text: #6347CC;
  --routines-soft: #E9E3FB;
  --training: #2F8F62;
  --training-text: #237451;
  --training-soft: #DCEFE5;
  --fondo: #2F8FCF;
  --fondo-text: #1C6899;
  --fondo-soft: #DCEBF6;
  --danger: #B42318;
  --focus: #1F2023;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-icon: 23.4%;
  --radius-full: 999px;
  --shadow-card: 0 1px 2px rgba(31,32,35,0.06), 0 4px 16px rgba(31,32,35,0.06);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: Inter, system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17181B;
  --surface: #202125;
  --surface-sunken: #121315;
  --line: #34363B;
  --line-strong: #6E6F74;
  --ink: #EDEAE4;
  --ink-muted: #A3A09A;
  --on-ink: #17181B;
  --vie: #F08A3E;
  --vie-text: #F59A55;
  --vie-soft: #3A2618;
  --falesie: #D9684F;
  --falesie-text: #E57E66;
  --falesie-soft: #3A201A;
  --routines: #9A80F0;
  --routines-text: #AC97F5;
  --routines-soft: #2A2342;
  --training: #45B07F;
  --training-text: #5CC293;
  --training-soft: #18332A;
  --fondo: #4FA8E3;
  --fondo-text: #6AB8EC;
  --fondo-soft: #162B3B;
  --danger: #F97066;
  --focus: #EDEAE4;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #17181B;
    --surface: #202125;
    --surface-sunken: #121315;
    --line: #34363B;
    --line-strong: #6E6F74;
    --ink: #EDEAE4;
    --ink-muted: #A3A09A;
    --on-ink: #17181B;
    --vie: #F08A3E;
    --vie-text: #F59A55;
    --vie-soft: #3A2618;
    --falesie: #D9684F;
    --falesie-text: #E57E66;
    --falesie-soft: #3A201A;
    --routines: #9A80F0;
    --routines-text: #AC97F5;
    --routines-soft: #2A2342;
    --training: #45B07F;
    --training-text: #5CC293;
    --training-soft: #18332A;
    --fondo: #4FA8E3;
    --fondo-text: #6AB8EC;
    --fondo-soft: #162B3B;
    --danger: #F97066;
    --focus: #EDEAE4;
    --shadow-card: 0 1px 2px rgba(0,0,0,0.4);
  }
}
