:root {
  color-scheme: dark;
  --paper: #060a0d;
  --ink: #f7f2df;
  --muted: rgba(247, 242, 223, 0.54);
  --rule: rgba(247, 242, 223, 0.16);
  --gold: #d4af37;
  --teal: #14b8a6;
  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:
    radial-gradient(circle at 50% 48%, rgba(20, 184, 166, 0.14), transparent 34rem),
    radial-gradient(circle at 50% 48%, rgba(212, 175, 55, 0.12), transparent 22rem),
    #060a0d;
  color: var(--ink);
}

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

.oracle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.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,
.constellation {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

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

.kbd,
.constellation a {
  border: 1px solid var(--rule);
  padding: 2px 6px;
}

.lexicon {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lexicon span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  color: rgba(247, 242, 223, 0.66);
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform-origin: 0 0;
  animation: orbit 32s linear infinite;
  animation-delay: var(--d);
}

@keyframes orbit {
  from {
    transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1));
  }
  to {
    transform: rotate(calc(var(--a) + 360deg)) translateX(var(--r)) rotate(calc((var(--a) + 360deg) * -1));
  }
}

.readout {
  position: absolute;
  right: 24px;
  top: 78px;
  z-index: 5;
  display: grid;
  gap: 8px;
  min-width: 170px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: rgba(6, 10, 13, 0.58);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.readout b {
  color: var(--teal);
  font-weight: 700;
}

.constellation {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.constellation a {
  color: rgba(247, 242, 223, 0.48);
  text-decoration: none;
  background: rgba(6, 10, 13, 0.36);
}

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

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

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

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

.nav__roman {
  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;
    align-items: flex-start;
    flex-direction: column;
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .meta__right,
  .readout {
    display: none;
  }

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