:root {
  --bg: #000;
  --ink: #f1e6d2;
  --muted: #9a8c78;
  --accent: #e0a458;
  --font: 'Fragment Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #fff;
  --ink: #000;
  --muted: #666;
  --accent: #000;
  color-scheme: light;
}

/* Before the theme script runs, or without JavaScript, follow the system setting. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #fff;
    --ink: #000;
    --muted: #666;
    --accent: #000;
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font: inherit;
}

ol,
ul {
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--muted);
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

#hole {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.live #hole {
  display: block;
}

#still {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 1.25vw/1.2 var(--font);
  color: var(--accent);
}

.live #still {
  display: none;
}

.theme {
  position: absolute;
  z-index: 3;
  top: clamp(16px, 4vw, 48px);
  right: clamp(16px, 4vw, 48px);
  padding: 0.25em 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.87rem;
  cursor: pointer;
}

.theme:hover {
  color: var(--ink);
}

.intro {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 48px);
  /* Keeps the text legible where stars or lensed light pass behind it. */
  background: var(--bg);
  box-shadow: 0 0 0 0.75em var(--bg);
}

.intro h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.intro p {
  margin-top: 0.35rem;
  font-size: 0.87rem;
  color: var(--muted);
}

.intro nav {
  display: flex;
  gap: 1.5em;
  margin-top: 0.75em;
  font-size: 0.87rem;
}

main {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 10vw, 112px) clamp(16px, 4vw, 48px);
  max-width: 58rem;
}

section + section {
  margin-top: 4rem;
}

h2 {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.lede {
  max-width: 62ch;
}

.entries li {
  display: grid;
  grid-template-columns: 22ch minmax(0, 1fr);
  gap: 0 2ch;
}

.entries li + li {
  margin-top: 1.5rem;
}

.dates {
  color: var(--muted);
}

.entries p,
.notes {
  max-width: 62ch;
  color: var(--muted);
}

.notes {
  margin-top: 1rem;
  margin-left: calc(22ch + 2ch);
}

.notes li::before,
.sites li::before {
  content: '- ';
}

.entries .sites {
  display: block;
  color: var(--muted);
}

.entries .sites li {
  display: block;
  margin: 0;
}

#trail {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

footer {
  position: relative;
  z-index: 2;
  padding: 0 clamp(16px, 4vw, 48px) clamp(32px, 6vw, 64px);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .entries li {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes {
    margin-left: 0;
  }
}
