@font-face {
  font-family: "Geist";
  src: url("/brand/Geist-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Victor Mono";
  src: url("/brand/VictorMono-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --ground: #0a0a0a;
  --ink: #fafafa;
  --soft: rgba(250, 250, 250, 0.62);
  --faint: rgba(250, 250, 250, 0.38);
  --hairline: rgba(255, 255, 255, 0.12);
  --wash: rgba(255, 255, 255, 0.05);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Victor Mono", ui-monospace, "SF Mono", monospace;
  --edge: 28px;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body,
#map {
  height: 100%;
  margin: 0;
  background: var(--ground);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.78), transparent 26%),
    linear-gradient(to top, rgba(10, 10, 10, 0.7), transparent 16%);
}

.masthead,
.panel,
.colophon {
  position: fixed;
  z-index: 2;
}

.masthead {
  top: var(--edge);
  left: var(--edge);
}

.wordmark {
  display: block;
  width: 104px;
  opacity: 0.92;
}

.wordmark img {
  display: block;
  width: 100%;
}

.masthead h1 {
  margin: 22px 0 0;
  font-size: 44px;
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.04em;
}

.masthead p {
  margin: 8px 0 18px;
  font-size: 14px;
  color: var(--soft);
}

.lines {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 260px;
}

.line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 7px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.5);
  color: var(--soft);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.line::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--swatch);
}

.line:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
}

.panel {
  top: var(--edge);
  right: var(--edge);
  width: 336px;
  max-height: calc(100% - 2 * var(--edge) - 28px);
  overflow-y: auto;
  padding: 22px 22px 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  scrollbar-width: none;
}

.close {
  position: absolute;
  top: 20px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.panel h2 {
  margin: 0 32px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}

.dot.live {
  background: #3ddc84;
}

.live-label {
  color: var(--ink);
}

.arrivals {
  border-top: 1px solid var(--hairline);
}

.arrival {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12.5px/1 var(--mono);
  color: var(--ink);
}

.badge::before {
  content: "";
  flex: none;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--swatch, var(--faint));
}

.where {
  min-width: 0;
}

.where strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--soft);
  transition: color 0.2s ease;
}

.arrival:hover .where strong,
.arrival.on .where strong {
  color: var(--ink);
}

.where span {
  display: block;
  margin-top: 3px;
  font: 400 10.5px/1 var(--mono);
  color: var(--faint);
}

.when {
  font: 500 14px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.when small {
  margin-left: 3px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--faint);
}

.quiet {
  margin: 14px 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--soft);
}

.colophon {
  right: var(--edge);
  bottom: 22px;
  left: var(--edge);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 400 10.5px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--faint);
  pointer-events: none;
}

.links {
  display: flex;
  gap: 18px;
}

.colophon a,
.colophon button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--soft);
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  transition: color 0.2s ease;
}

.colophon a:hover,
.colophon button:hover {
  color: var(--ink);
}

.about h2 {
  margin-bottom: 12px;
}

.about h3 {
  margin: 18px 0 6px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.about p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--soft);
}

.about a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}

.noscript {
  position: fixed;
  inset: auto 0 50% 0;
  z-index: 3;
  text-align: center;
  color: var(--soft);
}

#hint {
  transition: opacity 0.5s ease;
}

#hint.gone {
  opacity: 0;
}

.pin {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.5);
}

.maplibregl-ctrl-bottom-right {
  bottom: 38px;
  right: 18px;
}

.maplibregl-ctrl-attrib.maplibregl-compact {
  background: transparent !important;
  opacity: 0.45;
}

.maplibregl-ctrl-attrib a {
  color: var(--soft);
}

@media (max-width: 720px) {
  :root {
    --edge: 18px;
  }

  .masthead h1 {
    font-size: 34px;
  }

  .panel {
    top: auto;
    bottom: var(--edge);
    left: var(--edge);
    width: auto;
    max-height: 48%;
  }

  #hint {
    display: none;
  }

  .colophon {
    justify-content: flex-end;
  }
}
