:root {
  --bg: #0d0f12;
  --fg: #e8eaed;
  --muted: #9aa3ad;
  --line: rgba(232, 234, 237, 0.14);
  --line-strong: rgba(232, 234, 237, 0.28);
  --accent: #8ab4f8;
  --accent-soft: rgba(138, 180, 248, 0.16);
  --panel: rgba(13, 15, 18, 0.94);
  --readout-size: clamp(1.05rem, 3.6vw, 1.55rem);
  --pad: 1.25rem;
  --max: 42rem;
  --now-y: 40%;
  --focus: #8ab4f8;
  --tint: rgba(0, 0, 0, 0);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--fg); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--fg);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: var(--pad); top: var(--pad); }

.stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.tint {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: var(--tint);
  transition: background 220ms linear;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  background-color: var(--bg);
  background-image: linear-gradient(var(--tint), var(--tint));
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(13, 15, 18, 0.9);
}

.top-inner {
  max-width: calc(var(--max) + 10rem);
  margin: 0 auto;
  padding: 0.7rem var(--pad) 0.85rem;
  display: grid;
  gap: 0.2rem;
}

.brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand a {
  color: var(--muted);
  font-size: 0.8125rem;
  text-decoration: none;
}
.brand a:hover { color: var(--fg); }

.page-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.era {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  min-height: 1.1em;
}

.readout-secondary {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.readout-secondary[hidden] { display: none; }
.readout {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: var(--readout-size);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
  min-height: 2.5em;
}
.readout[data-accent="true"] { color: var(--accent); }
.readout sub, .readout sup { font-size: 0.65em; font-weight: 600; }

.intro {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--pad) 2.25rem;
}
.intro h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.intro .sub {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.125rem);
}
.intro .hint {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.track-wrap {
  position: relative;
  z-index: 2;
  max-width: calc(var(--max) + 10rem);
  margin: 0 auto;
  padding: 0 var(--pad) 2rem;
  padding-left: max(var(--pad), 3.5rem);
}

.track {
  position: relative;
  height: 85000px;
  margin-left: 2.75rem;
  border-left: 1px solid var(--line);
  padding-left: 1.15rem;
}

.track-end-space { height: 55vh; }

.now-line {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--now-y);
  height: 0;
  z-index: 25;
  pointer-events: none;
}
.now-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line-strong);
  opacity: 0.5;
}
.now-line::after {
  content: "";
  position: absolute;
  left: max(0px, calc(50% - (var(--max) + 10rem) / 2 + max(var(--pad), 3.5rem) + 2.75rem - 4px));
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.ticks {
  position: absolute;
  /* Sit in the left gutter beside the rail (track has margin-left: 2.75rem). */
  left: -2.75rem;
  top: 0;
  bottom: 0;
  width: 2.75rem;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.tick {
  position: absolute;
  right: 0;
  left: auto;
  width: 8px;
  height: 1px;
  background: rgba(232, 234, 237, 0.28);
}
.tick-label {
  position: absolute;
  right: 10px;
  left: auto;
  transform: translateY(-50%);
  font-size: 0.625rem;
  line-height: 1.1;
  color: #9aa3ad;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
  text-align: right;
  pointer-events: none;
  letter-spacing: 0.01em;
}

.marker {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-0.55rem);
  padding: 0.15rem 0 0.15rem 0.1rem;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 160ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .marker { transition: none; }
}
.marker.is-mounted {
  pointer-events: auto;
}
.marker.is-near,
.marker.is-active {
  opacity: 1;
}
.marker.is-dim {
  opacity: 1;
}
.marker.is-dim .marker-line,
.marker.is-dim .marker-meta {
  display: none;
}
.marker.is-dim .marker-label {
  color: #9aa3ad;
  font-size: 0.95rem;
  font-weight: 500;
}
.marker.is-far {
  opacity: 1;
}
.marker.is-far .marker-body {
  display: none;
}
.marker.is-far::before {
  opacity: 0.45;
  background: var(--muted);
}
.marker::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--muted);
  border: 2px solid var(--bg);
}
.marker.is-active::before,
.marker.is-key.is-near::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.marker.is-now::before {
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  margin-left: -5.5px;
  background: var(--accent);
}
.marker-body {
  max-width: calc(100vw - 72px);
}
.marker-label {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.marker.is-active .marker-label,
.marker.is-near .marker-label {
  color: var(--accent);
}
.marker-meta {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.marker-line {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28rem;
}
.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 0.1em;
}

.outro {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad) 6rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.outro p { margin: 0 0 0.75rem; }

.jump {
  position: fixed;
  z-index: 40;
  right: 0.75rem;
  bottom: 0.75rem;
}
.jump summary {
  list-style: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jump summary::-webkit-details-marker { display: none; }
.jump[open] summary { border-color: rgba(138, 180, 248, 0.45); }
.jump-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  width: min(18rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.jump-panel .era-head {
  margin: 0.35rem 0.55rem 0.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.jump-panel button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.jump-panel button:hover,
.jump-panel button[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (min-width: 960px) {
  .jump {
    right: max(0.75rem, calc(50% - (var(--max) + 10rem) / 2 - 0.25rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tint { transition: none; }
  .marker { transition: none; }
  .now-line::after { box-shadow: none; }
  .marker.is-active::before,
  .marker.is-key.is-near::before { box-shadow: none; }
}

@media (max-width: 374px) {
  :root { --pad: 1rem; }
  .track { padding-left: 1rem; }
  .marker::before { left: -1rem; }
}

.era-intro {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding-left: 0.1rem;
  pointer-events: none;
  z-index: 1;
}
.era-intro p {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
