:root{--text:#fff8eb;--accent:#c2ddd5;--surface:#15212a;--text-small:12px}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}
body {
  background: #35333a;
  color: var(--text);
  font:
    15px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
#view {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
#still,
canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
canvas {
  opacity: 0;
}
canvas.ready {
  opacity: 1;
}
.chrome {
  position: absolute;
  transition: opacity 0.55s;
}
header {
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3vw, 48px);
  gap: 10px;
  background: linear-gradient(#15191f76, transparent);
}
.wordmark {
  font:
    italic 500 clamp(24px, 2.8vw, 42px)/1.15 Georgia,
    "Songti SC",
    serif;
  margin: 0;
  text-shadow: 0 2px 9px #1118;
}
nav,
.timeline,
.caption,
#volumePanel {
  display: flex;
  align-items: center;
}
nav {
  gap: 6px;
}
button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  border-radius: 24px;
  min-height: 44px;
  padding: 0 14px;
}
nav button {
  background: #25252cbd;
}
button:hover {
  background: #514840;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #fff8d4;
  outline-offset: 3px;
}
svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dock {
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 90vw);
  padding: 14px 20px 8px;
  background: #191d22cf;
  border: 1px solid #fff3;
  border-radius: 18px;
}
.caption {
  justify-content: center;
  gap: 12px;
  font-size: 15px;
}
.caption i {
  width: 1px;
  height: 13px;
  background: #fff6;
}
.timeline {
  gap: 10px;
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
  color: #e9e3db;
}
.timeline input {
  width: 100%;
  min-width: 0;
}
.timeline button {
  min-width: 40px;
  padding: 0;
}
.timeline svg {
  width: 16px;
}
input[type="range"] {
  accent-color: #eac5a0;
  cursor: pointer;
  height: 25px;
}
#volumePanel {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  top: calc(clamp(20px, 3vw, 48px) + 50px);
  background: #25262bf2;
  border-radius: 14px;
  padding: 8px 14px;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 90vw;
}
#volumePanel[hidden] {
  display: none;
}
#volume {
  width: 86px;
}
#status {
  position: absolute;
  bottom: 135px;
  text-align: center;
  width: 100%;
  pointer-events: none;
  text-shadow: 0 1px 3px #000;
}
main.idle {
  cursor: none;
}
.idle .chrome {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (max-width: 550px) {
  header {
    padding: 16px 12px;
  }
  nav {
    gap: 4px;
  }
  nav button {
    padding: 0 12px;
  }
  .dock {
    bottom: max(20px, env(safe-area-inset-bottom));
  }
}
.caption select {
  color: inherit;
  background: transparent;
  color-scheme: dark;
  border: 0;
  border-radius: 6px;
  padding: 7px 3px;
  font: inherit;
  cursor: pointer;
}
.caption select:focus-visible {
  outline: 2px solid #fff8d4;
}
.caption option {
  background: #25262b;
}
.timeline[hidden] {
  display: none;
}
#wildlife {
  opacity: 1;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.wordmark img {
  width: 32px;
  height: 32px;
}
.more-link {
  color: inherit;
  padding: 8px 11px;
  text-decoration: none;
  background: #25252cbd;
  border-radius: 20px;
}
.site-copy {
  background: var(--surface);
  color: var(--text);
  padding: clamp(40px, 8vw, 100px) max(24px, calc((100vw - 860px) / 2));
  line-height: 1.7;
}
.site-copy h1,
.site-copy h2 {
  font-family: Georgia, serif;
  font-weight: normal;
  line-height: 1.18;
}
.site-copy h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0 0 0.5em;
}
.site-copy h2 {
  margin-top: 2em;
}
.site-copy a,
.site-footer a {
  color: var(--accent);
}
.site-copy li + li {
  margin-top: 0.55em;
}
.site-copy details {
  border-bottom: 1px solid #82949b55;
  padding: 0.85rem 0;
}
.site-copy summary {
  cursor: pointer;
  font-weight: 600;
}
.site-footer {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding: 24px max(24px, calc((100vw - 860px) / 2));
  background: #0e1920;
}
@media (max-width: 520px) {
  .wordmark {
    gap: 5px;
    font-size: 1.25rem;
  }
  .wordmark img {
    width: 24px;
    height: 24px;
  }
  .more-link {
    padding: 6px;
    font-size: 0.75rem;
  }
  nav {
    gap: 3px;
  }
  nav button {
    padding: 0 8px;
  }
}


.journal-intro { max-width: 66ch; font-size: 1.0625rem; }
.journal-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid #82949b55; }
.journal-index .journal-entry { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; border-top: 1px solid #82949b55; padding: 1.15rem 0; margin: 0; }
.journal-entry time { color: var(--accent); font-size: .875rem; font-variant-numeric: tabular-nums; }
.journal-entry h3 { font: normal clamp(1.2rem, 2.6vw, 1.6rem)/1.22 Georgia, serif; margin: 0 0 .35rem; }
.journal-entry p { max-width: 65ch; margin: 0; }
.journal-index a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.journal-return { margin: 2rem 0 0; }
@media (max-width: 560px) { .journal-index .journal-entry { grid-template-columns: minmax(0, 1fr); gap: .35rem; } }
