/* Design tokens, reset and shared elements (typography, buttons). */

:root {
  /* colours */
  --ink: #2b1a33;
  --shadow: #1b0f22;
  --plum: #46305a;
  --cream: #fdf1dc;
  --paper: #fff9ec;
  --peach: #f6c9a3;
  --red: #c93a55;
  --orange: #f2a65a;
  --teal: #7fc8b5;
  --wood: #7a3b3a;
  --wood-dark: #55272f;
  --muted: #5c4763;
  --bezel: #8a769c;

  /* type */
  --font-body: "DM Mono", ui-monospace, Consolas, monospace;
  --font-pixel: "Press Start 2P", monospace;

  /* layout */
  --pixel: 4px; /* thickness of a "pixel" border */
  --monitor-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  background: #4a2530;
  color: var(--ink);
  font: 16px/1.65 var(--font-body);
}

h1 {
  font: 19px/1.55 var(--font-pixel);
  margin: 0 0 18px;
}

/* Small pixel-font text: top bar, footer, labels. */
.tiny {
  font: 10px/1.5 var(--font-pixel);
  letter-spacing: 0.03em;
}

/* ---------- buttons ---------- */

button {
  font: 10px/1.4 var(--font-pixel);
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 7px;
  cursor: pointer;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}

button:hover,
button.active {
  background: var(--red);
  color: #fff;
}

button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}
