@font-face {
  font-family: VGA;
  src: url("./vendor/ibm-vga-8x16.woff") format("woff");
  font-display: swap;
}

:root { color-scheme: only dark; background: #000; color: #aaa; font-family: VGA, monospace; }
body { margin: 0; }
main { min-height: 100svh; display: grid; place-content: center; }
#screen {
  position: relative;
  width: min(94vw, 106svh, 1180px);
  aspect-ratio: 672 / 592;
  margin: 1rem auto;
}
#terminal { position: absolute; inset: 0 auto auto 0; width: 672px; height: 592px; transform-origin: top left; outline: none; }
#terminal canvas { image-rendering: pixelated; }
#spotify-dock { width: min(94vw, 520px); justify-self: center; margin-bottom: 1rem; }
#spotify-dock iframe {
  display: block;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color-scheme: light;
}
@media (min-width: 601px) and (min-height: 530px) {
  main:has(#spotify-dock:not([hidden])) #screen { width: min(94vw, calc((100svh - 205px) * 1.135), 1180px); }
}
#hotkeys { position: absolute; inset: 0; pointer-events: none; }
#hotkeys button {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  color: inherit;
}
#hotkeys button:hover, #hotkeys button:focus-visible { outline: 1px dashed #ffff55; outline-offset: -1px; }
.spoken { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }
#directory { max-width: 80vw; padding: 1rem; }
#directory a { color: #55ffff; display: inline-block; margin: .4rem; }
@media (max-width: 600px) {
  #screen { width: min(97vw, 480px); aspect-ratio: 336 / 640; margin: .5rem auto; }
  #terminal { width: 336px; height: 640px; }
}
