/* Design tokens: palette, type, motion. */

/* Self-hosted fonts (SIL Open Font License), Latin subset, cached by the
   service worker so the game still works offline. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/urbanist.woff2") format("woff2");
}

:root {
  /* Piazza palette */
  --terracotta: #B5452B;
  --terracotta-deep: #963820;
  --olive: #5B6B2F;
  --olive-deep: #46531F;
  --mustard: #E0A526;
  --espresso: #2A1E1A;
  --espresso-soft: #54433B;
  --cream: #F4ECDC;
  --felt: #EFE5D0;
  --felt-edge: #E2D3B4;
  --card-face: #FFFCF5;
  --paper: #FFFBF3;
  --line: rgba(42, 30, 26, 0.14);

  /* Type: Fraunces (warm serif) for titles, Urbanist (round geometric sans) for UI and numbers */
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Motion — custom curves; never ease-in for UI */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);        /* responses to the user */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* on-screen travel */
  --t-move: 240ms;
  --t-flip: 220ms;
  --t-press: 140ms;
  --t-modal-in: 220ms;
  --t-modal-out: 150ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-move: 0ms;
    --t-flip: 0ms;
    --t-press: 0ms;
  }
}
