/* ==========================================================================
   anicat — design tokens
   --------------------------------------------------------------------------
   Paleta pròpia de fosc càlid. No imita cap marca: el to de referència és
   #0f0e0d, amb superfícies escalonades i un únic accent.

   Accent triat: «magenta càlid» (#e8607d).
   Alternativa provada: «turquesa càlid» (#3ec9b0); es pot canviar només
   substituint els valors --accent-* d'aquest bloc.

   Contrast (sobre --bg): accent text 7.30:1 · accent 5.92:1 · text 16.6:1
   · text suau 8.8:1 · text subtil 5.75:1. Els botons amb accent fan servir
   text fosc (5.71:1).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: dark;

  /* --- Superfícies ------------------------------------------------------- */
  --bg: #0f0e0d;
  --bg-soft: #131110;
  --surface-1: #1a1715;
  --surface-2: #221e1b;
  --surface-3: #2b2622;
  --surface-4: #352f2a;
  --surface-glass: rgba(20, 17, 15, 0.78);
  --surface-scrim: rgba(9, 8, 7, 0.72);

  /* --- Text -------------------------------------------------------------- */
  --text: #f4ece4;
  --text-muted: #b9aca2;
  --text-subtle: #948a82;
  --text-inverse: #1b0f12;

  /* --- Accent (magenta càlid) ------------------------------------------- */
  --accent-400: #f07a93;
  --accent-500: #e8607d;
  --accent-600: #d24d6b;
  --accent-700: #b93a57;
  --accent-text: #f07a93;
  --accent-soft: rgba(232, 96, 125, 0.14);
  --accent-soft-strong: rgba(232, 96, 125, 0.24);
  --accent-contrast: #1b0f12;
  --accent-glow: rgba(232, 96, 125, 0.34);

  /* --- Semàntica discreta ------------------------------------------------ */
  --success: #7cc4a3;
  --success-soft: rgba(124, 196, 163, 0.14);
  --error: #e58a7a;
  --error-soft: rgba(229, 138, 122, 0.14);
  --warning: #e0b36a;

  /* --- Vores ------------------------------------------------------------- */
  --border: rgba(244, 236, 228, 0.09);
  --border-strong: rgba(244, 236, 228, 0.16);
  --border-accent: rgba(232, 96, 125, 0.42);

  /* --- Tipografia -------------------------------------------------------- */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md: 1.0625rem;    /* 17px */
  --text-lg: 1.1875rem;    /* 19px */
  --text-xl: 1.375rem;     /* 22px */
  --text-2xl: 1.75rem;     /* 28px */
  --text-3xl: 2.25rem;     /* 36px */
  --text-4xl: clamp(2.1rem, 4.6vw, 3.6rem);

  --leading-tight: 1.08;
  --leading-snug: 1.3;
  --leading-normal: 1.55;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --tracking-tight: -0.02em;
  --tracking-wide: 0.08em;

  /* --- Espaiat ----------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* --- Radis ------------------------------------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* --- Ombres ------------------------------------------------------------ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.48);
  --shadow-accent: 0 8px 30px rgba(232, 96, 125, 0.22);

  /* --- Moviment ---------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 150ms;
  --duration-base: 180ms;
  --duration-slow: 200ms;

  /* --- Layout ------------------------------------------------------------ */
  --container: 1440px;
  --gutter: clamp(1rem, 3.2vw, 3rem);
  --header-height: 68px;
  --card-width: clamp(142px, 15vw, 190px);
  --progress-card-width: clamp(260px, 28vw, 330px);
  --focus-ring: 2px solid var(--accent-500);
  --focus-offset: 3px;
}

@media (max-width: 720px) {
  :root {
    --header-height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-base: 0.01ms;
    --duration-slow: 0.01ms;
  }
}
