@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-display: swap;
  src: url(fonts/libre-baskerville-italic.woff2) format('woff2');
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: #000;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* The story lines share one spot at the bottom, main.js fades in the one for the current zoom. */
ol {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #fff;
  font: italic clamp(1.125rem, 1rem + 1vw, 1.75rem) / 1.35 'Libre Baskerville', serif;
  text-align: center;
  text-wrap: balance;
}

li {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6rem 1.5rem 3rem;
  background: linear-gradient(transparent, #000 6rem); /* keeps the text readable over lines and numbers */
  opacity: 0;
  pointer-events: none;
}

h1 {
  margin: 0;
  font: inherit;
}

p {
  margin: .5em 0 0;
  font-size: .75em;
  opacity: .7;
}

/* The way back to the start, main.js shows it far away from the 1. */
button {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .75rem 1rem;
  border: 0;
  background: #000;
  color: rgba(255, 255, 255, .7);
  font: italic 1rem / 1 'Libre Baskerville', serif;
  cursor: pointer;
}

button:hover {
  color: #fff;
}
