/* Design tokens: the eight-colour palette, the 4-pixel grid and the two pixel fonts. */

@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "VT323";
  src: url("../fonts/VT323-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #1a1c2c;
  --paper: #f4f4f4;
  --wall: #333c57;
  --highlight: #ffcd75;
  --action: #3b5dc9;
  --success: #38b764;
  --danger: #b13e53;
  --muted: #94b0c2;

  /* Everything snaps to this grid. */
  --u: 4px;
  --border: 4px;
  --shadow: 4px;

  --font-title: "Press Start 2P", monospace;
  --font-text: "VT323", monospace;

  /* Never below 16 px. */
  --fs-title: 16px;
  --fs-text: 24px;
  --fs-small: 20px;
  --lh-title: 24px;
  --lh-text: 28px;
  --lh-small: 24px;

  /* The status bar's height: 32 px buttons with 8 px above and below. */
  --statusbar-h: 48px;

  --focus: var(--action);
}
