@font-face {
  font-family: "Geist Mono";
  src: url("GeistMono-Medium.woff2");
}

:root {
  --klein-blue: #002fa7;
  --cadmium-red: #e30022;
}

* {
  box-sizing: border-box;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "Courier New",
    Courier, monospace;
  background-color: white;
}

html,
body {
  height: 100%;
  margin: 0;
  cursor: none !important;
}

input,
textarea {
  cursor: text !important;
}

body {
  overflow: hidden;
  display: flex;
  min-height: 100dvh;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  cursor: none;
}

main {
  max-width: 50vh;
  color: var(--klein-blue);
}

a,
#email {
  cursor: none;
  color: var(--cadmium-red);
  text-decoration: none;
  display: inline-block;
}

a:hover,
#email:hover {
  text-decoration: underline;
}

#cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  background: var(--klein-blue);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 15ms ease, opacity 120ms ease, border-color 120ms ease;
  will-change: transform;
  z-index: 9999;
  border: 1px solid transparent;
}

#cursor.pointer {
  transform: translate(-50%, -50%) scale(3);
}

#cursor.invert {
  background: #ffd058;
  mix-blend-mode: difference;
  border-color: transparent;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  #cursor {
    display: none;
  }
}
