:root {
  color-scheme: dark;
  --bg: #080d13;
  --fg: #cad4d8;
  --muted: #6f7e84;
  --cyan: #62d6e8;
  --yellow: #f3cf65;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--fg);
  font-family: monospace;
}

#app {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: auto;
}

.grid {
  width: max-content;
}

.row {
  height: 1em;
  white-space: pre;
  line-height: 1;
}

.cell {
  color: inherit;
  text-decoration: none;
}

a.cell {
  cursor: pointer;
}

a.cell:hover,
a.cell:focus-visible,
a.cell.route-hovered,
a.cell.route-focused {
  color: var(--bg);
  background: var(--fg);
  outline: none;
}

.bold {
  font-weight: 700;
}

.dim {
  color: var(--muted);
}

.italic {
  font-style: italic;
}

.underline {
  text-decoration: underline;
}

.inverted {
  color: var(--bg);
  background: var(--fg);
}

.cyan {
  color: var(--cyan);
}

.yellow {
  color: var(--yellow);
}

.cell.inverted.cyan {
  color: var(--bg);
  background: var(--cyan);
}

.loading,
noscript {
  display: block;
  padding: 2rem;
  color: var(--muted);
}

.measure {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  line-height: 1;
}

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