/* Design tokens: fonts, colours, motion and focus-ring settings.
   Colours ported 1:1 from the old Next.js app. */

@font-face {
  font-family: 'Mammane';
  src: url('../../fonts/Mammane-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Mono';
  src: url('../../fonts/RobotoMono.ttf') format('truetype');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg-level-0: #F4F6EE;
  --color-text-primary: #CA0000;
  --color-text-darkpurple: #4F4A61;

  --font-display: 'Mammane', serif;
  --font-body: 'Roboto Mono', monospace;

  --ease-panel: cubic-bezier(0.65, 0, 0.35, 1);
  /* Entrances: the CSS equivalent of the intro's GSAP 'power3.out'. */
  --ease-enter: cubic-bezier(0.215, 0.61, 0.355, 1);

  /* Keyboard focus ring, used everywhere (see base/focus.css).
     Red has >= 3:1 contrast on white and on the yellow map. */
  --focus-color: var(--color-text-primary);
  --focus-width: 3px;
  --focus-offset: 2px;
  /* Room scroll containers need so the ring isn't clipped. */
  --focus-room: calc(var(--focus-width) + var(--focus-offset) + 1px);
  --duration-panel: 1.2s;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-panel: 0.01s;
  }
}

/* The map's on-screen land colour, used by the intro cover
   (components/intro.css). Not the wash colour #faea39: the wash is a
   `color` blend layer, so its own colour never shows -- the land comes out
   much paler. Measured from a screenshot of the finished map; re-measure
   if the wash, tiles or the map's opacity change. */
:root {
  --color-map-land: #fbee5d;
}
