/* Pixel font — see assets/fonts/README.md for native-size + rendering notes. */
@font-face {
  font-family: "04b03";
  src: url("./04b_03.ttf") format("truetype");
  font-display: block;
}

/* Nunito — variable display face (wght 200–1000). Lazy: only pages that
   reference "Nunito" trigger the fetch. */
@font-face {
  font-family: "Nunito";
  src: url("./Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 13px;
}

:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

code,
pre,
kbd,
samp {
  font-family:
    "ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas",
    "Liberation Mono", "Courier New", "monospace";
}

body {
  min-height: 100vh;
  overflow: hidden;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  -webkit-appearance: button;
  appearance: button;
  background-color: transparent;
  background-image: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  text-transform: none;
  margin: 0;
  border-width: 0;
}

input,
select,
textarea {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  color: inherit;
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
}

/* The canvas owns all pointer gestures: a single-finger draw must not scroll or
   zoom the page on iOS Safari, and a long-press must not raise the selection
   callout. Scoped to elm-canvas's inner canvas so it can't affect the scrollport
   or HUD. */
elm-canvas > canvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
