:root {
  color-scheme: dark;
  --paper: #050507;
  --ink: #f5efe4;
  --muted: rgba(245, 239, 228, 0.56);
  --rule: rgba(245, 239, 228, 0.18);
  --gold: #d7a340;
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body,
.shell {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.shell {
  position: fixed;
  inset: 0;
}

.viz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  border: 0;
  background: #050507;
}

.meta {
  position: absolute;
  top: 18px;
  left: 54px;
  right: 54px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  pointer-events: none;
}

.meta__left,
.meta__right {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.meta__mark,
.meta__plate {
  color: var(--ink);
}

.meta__name,
.kbd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta__sep {
  color: var(--gold);
}

.kbd {
  border: 1px solid var(--rule);
  padding: 1px 5px;
  letter-spacing: 0.12em;
}

.nav {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}

.constellation {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.constellation a {
  color: rgba(245, 239, 228, 0.46);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 4px 6px;
  background: rgba(5, 5, 7, 0.32);
}

.constellation a:hover,
.constellation a.is-current {
  color: var(--ink);
  border-color: var(--rule);
}

.nav__plates {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  background: rgba(5, 5, 7, 0.62);
}

.nav__plate {
  display: grid;
  gap: 4px;
  min-width: 214px;
  padding: 12px 18px;
  border-top: 2px solid var(--gold);
}

.nav__roman {
  color: var(--gold);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px;
  font-style: italic;
}

.nav__name {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.nav__death {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .meta {
    left: 18px;
    right: 18px;
    top: 14px;
    align-items: flex-start;
    flex-direction: column;
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .meta__right {
    display: none;
  }

  .nav {
    bottom: 10px;
  }

  .constellation {
    right: 12px;
    bottom: 80px;
  }
}
