:root {
  color-scheme: dark;
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #020607;
}

body {
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
}

.page {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: center;
  background: #020607;
}

.canvas {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  container-type: inline-size;
}

.canvas.landscape {
  width: min(100vw, calc(100vh * var(--ratio)));
}

.canvas.portrait {
  width: min(100vw, var(--natural-width));
}

.prototype {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot,
.replacement {
  position: absolute;
}

.hotspot {
  z-index: 4;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.hotspot:focus-visible {
  outline: 3px solid rgba(255, 217, 133, 0.95);
  outline-offset: -3px;
}

.replacement {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.replacement.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: uppercase;
}

.replacement.side-teal {
  color: #f0e8d9;
  background: #06292c;
}

.replacement.side-charcoal {
  color: #e5dfd3;
  background: #15191a;
}

.replacement.side-navy {
  color: #e9e7e5;
  background: #061221;
}

.replacement.side-black {
  color: #d7aa6b;
  background: #080908;
}

.replacement.paper {
  color: #173535;
  background: #ede7dc;
}

.replacement.gold-paper {
  color: #9b7138;
  background: #e9e0d1;
}

.replacement.navy {
  color: #e6e6e5;
  background: #091628;
}

.replacement.black-gold {
  color: #d3a15b;
  background: #090a09;
}

.replacement.nexus-dark {
  color: #d6ad6c;
  background: #06121b;
}

.replacement.about-dark {
  color: #d8a455;
  background: #05090a;
}

.replacement.body-dark {
  justify-content: flex-start;
  color: #cfc3b0;
  background: #080c0d;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: none;
}

.replacement.heading-dark {
  color: #d5c0a0;
  background: #070c0e;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.replacement.nexus-copy {
  justify-content: flex-start;
  color: #e1d0b3;
  background: #08121a;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: none;
}

.page-loading,
.page-error {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  color: #d7bd8a;
  background: #020607;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .canvas.landscape {
    width: 100vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
