@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: block;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #060606;
  --fg: #f4f4f0;
  --mute: #8f8f88;
  --accent: #c8ff00;
  --pad: clamp(16px, 2.4vw, 32px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 13px/1.55 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: none;
}

#c {
  position: fixed;
  top: 0;
  left: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.ui {
  position: fixed;
  inset: 0;
  padding: var(--pad);
  padding-top: max(var(--pad), env(safe-area-inset-top));
  padding-bottom: max(var(--pad), env(safe-area-inset-bottom));
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.corner {
  color: var(--mute);
  max-width: 50ch;
}
.br { display: flex; flex-direction: column; gap: 4px; text-align: right; flex-shrink: 0; }

.bl strong {
  display: block;
  margin-top: 0.9em;
  color: var(--fg);
  font-weight: 600;
}

a {
  pointer-events: auto;
  cursor: none;
  color: var(--fg);
  text-decoration: none;
  padding: 2px 4px;
  margin: -2px -4px;
  outline: none;
}
a:hover, a:focus-visible {
  background: var(--accent);
  color: var(--bg);
}
a:active { background: var(--fg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 720px) {
  body { font-size: 12px; }
  .ui { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; }
  .bl { max-width: 100%; }
  .br { text-align: left; }
}

@media (hover: none) {
  body, a { cursor: auto; }
}

