* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  background: #101b1b;
  color: #f6f1e5;
}
body {
  margin: 0;
}
.atlas {
  --line: #384642;
  --accent: #ff9863;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 56% 48%, #253833 0%, #152422 46%, #101b1b 82%);
}
.mast {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 46px) 0;
}
.eyebrow,
.map-key,
.metrics span,
.profile label {
  font-size: 11px;
  letter-spacing: 0.07em;
  color: #c2cec5;
}
.eyebrow {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}
h1 {
  font:
    normal clamp(28px, 4.4vw, 46px) / 1.02 Georgia,
    serif;
  letter-spacing: -0.045em;
  margin: 0;
}
.routes {
  display: flex;
  padding: 3px;
  border: 1px solid #62726a;
  border-radius: 24px;
}
.routes button {
  min-height: 34px;
  padding: 4px 17px;
  border: 0;
  border-radius: 22px;
  color: #d5e0d6;
  background: transparent;
  font:
    600 13px/1.2 'Segoe UI',
    sans-serif;
  cursor: pointer;
}
.routes button[aria-pressed='true'] {
  color: #15211e;
  background: #edecdc;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.map {
  position: relative;
  flex: 1;
  min-height: 250px;
}
.map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #b5cbb52e 1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at 50% 67%, #000 13%, transparent 69%);
  pointer-events: none;
}
.map canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.map-key {
  position: absolute;
  bottom: 4px;
  left: clamp(18px, 4vw, 46px);
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0;
}
.map-key i {
  width: 17px;
  background: var(--accent);
  height: 3px;
}
.map-key b {
  color: #ffdfac;
  margin-left: 7px;
}
.readout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  margin: 14px clamp(18px, 4vw, 46px) 0;
  border-top: 1px solid var(--line);
  padding: 14px 0 18px;
}
.metrics {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.metrics span,
.profile label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.01em;
}
.metrics strong {
  display: block;
  font:
    normal clamp(18px, 2.5vw, 28px) / 1.35 Georgia,
    serif;
  color: #f2e9d5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.profile label {
  display: flex;
  justify-content: space-between;
}
.profile output {
  font-variant-numeric: tabular-nums;
  color: #f5c6a4;
}
.profile canvas {
  width: 100%;
  height: 29px;
  display: block;
}
.profile input {
  width: 100%;
  margin: 0;
  display: block;
  height: 17px;
  accent-color: #ffad7d;
  cursor: ew-resize;
}
@media (max-width: 550px) {
  .mast {
    padding-top: 16px;
  }
  .routes button {
    padding-inline: 12px;
    min-height: 38px;
  }
  .map {
    min-height: 216px;
  }
  .readout {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
    padding-block: 12px;
  }
  .metrics strong {
    font-size: 21px;
  }
  .map-key {
    font-size: 10px;
  }
  .profile canvas {
    height: 23px;
  }
}
@media (min-width: 551px) and (min-height: 610px) {
  .map {
    min-height: 330px;
  }
}

[hidden] { display: none !important; }
.map-key i.blue { background: #92e4f8; }
.comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 14px clamp(18px, 4vw, 46px) 0; padding: 18px 0; border-top: 1px solid var(--line); }
.comparison span { display: block; font-size: 12px; color: #c2cec5; }
.comparison strong { font: normal clamp(22px, 3.5vw, 38px)/1.3 Georgia, serif; color: #f2e9d5; }
@media(max-width: 480px) { .mast { align-items: flex-start; flex-direction: column; } }
