Molecular structure as a blueprint for supramolecular structure chemistry in confined spaces.