:root {
  color: #f7ecd6;
  background: #171511;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at 12% -20%, #59431d 0, transparent 38rem),
    #171511;
}

.masthead {
  min-height: 5.5rem;
  padding: 1rem 1.4rem 0.9rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid #55472f;
}

.eyebrow {
  margin: 0 0 0.15rem;
  color: #dba84d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  letter-spacing: -0.035em;
}

.snapshot-copy {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
  text-align: right;
}

.snapshot-copy strong {
  color: #ffbd45;
}

.snapshot-copy span {
  color: #afa48f;
  font-size: 0.82rem;
}

main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.timeline {
  display: grid;
  grid-template-columns: auto minmax(8rem, 1fr) auto auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.4rem;
  background: #211e18;
  border-bottom: 1px solid #3b3327;
}

button,
select {
  color: #f8e8c9;
  background: #30291f;
  border: 1px solid #6b5737;
  border-radius: 0.35rem;
  min-height: 2.15rem;
}

button {
  padding: 0 0.8rem;
  cursor: pointer;
  font-weight: 750;
}

button:hover:not(:disabled),
button[aria-pressed="true"] {
  background: #bd761b;
  border-color: #f0a83e;
  color: #15110b;
}

button:disabled {
  opacity: 0.4;
  cursor: default;
}

input[type="range"] {
  width: 100%;
  accent-color: #e89a27;
}

.jump {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #bfb39f;
  font-size: 0.78rem;
}

select {
  max-width: 19rem;
  padding: 0 0.65rem;
}

.map-shell {
  position: relative;
  min-height: 0;
  background: #0c0b09;
}

#map {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.empty-state {
  position: absolute;
  z-index: 2;
  inset: 0;
  place-content: center;
  text-align: center;
  padding: 2rem;
  background: #171511;
}

.empty-state:not([hidden]) {
  display: grid;
}

.empty-state h2 {
  margin: 0 0 0.5rem;
  color: #ffbd45;
}

.empty-state p {
  margin: 0;
  color: #afa48f;
}

@media (max-width: 760px) {
  .masthead {
    align-items: start;
    gap: 0.7rem;
  }

  .timeline {
    grid-template-columns: auto 1fr auto auto;
  }

  .jump {
    grid-column: 1 / -1;
  }

  .jump select {
    flex: 1;
    max-width: none;
  }
}
