@font-face {
  font-family: City;
  src: local("Arial");
  font-display: swap;
}
:root {
  --paper: #f5f2e9;
  --ink: #252c27;
  --muted: #6c7065;
  --accent: #b95432;
  --line: #dbd9cf;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 City,
    Arial,
    sans-serif;
}
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 2000;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: grid;
  grid-template-columns: 44px auto;
  align-items: center;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-decoration: none;
}
.wordmark img {
  grid-row: 1/3;
}
.wordmark span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.2px;
  margin-top: 4px;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}
nav a {
  text-decoration: none;
}
nav button {
  border: 0;
  background: none;
  padding: 10px 0;
}
#saved-count {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 100%;
  min-width: 22px;
  text-align: center;
  margin-left: 5px;
}
.intro {
  padding: 46px 4vw 38px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
h1 {
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1.07;
  letter-spacing: -2.9px;
  margin: 18px 0 0;
  font-weight: 500;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
.intro-side {
  width: 290px;
  flex-shrink: 0;
}
.intro-side p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 0;
}
.intro-side label {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}
select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 32px 8px 0;
  width: 100%;
  font-size: 19px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  margin: 0 4vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.map-wrap {
  position: relative;
  min-height: 650px;
  background: #e2e4d4;
}
#map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e2e4d4;
}
.map-note {
  position: absolute;
  bottom: 28px;
  left: 15px;
  background: rgba(245, 242, 233, 0.94);
  padding: 6px 9px;
  font-size: 10px;
  pointer-events: none;
}
#map-error {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  background: var(--paper);
  padding: 12px;
  font-size: 12px;
  z-index: 400;
}
article {
  padding: 24px 0 24px 30px;
}
.route-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.route-top .eyebrow {
  color: var(--accent);
}
#save {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: none;
  font-size: 25px;
}
#save[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
h2 {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 16px 0;
}
#route-description {
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
}
dl {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 23px 0 16px;
}
dt {
  font-size: 10px;
  color: var(--muted);
}
dd {
  margin: 4px 0 0;
  font-size: 12px;
}
#stops {
  list-style: none;
  padding: 0;
  counter-reset: stops;
  margin: 0 0 22px;
}
#stops li {
  counter-increment: stops;
  position: relative;
  padding-left: 37px;
  margin-bottom: 17px;
}
#stops li:before {
  content: counter(stops, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 11px;
  color: var(--accent);
}
#stops button {
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
#stops button:hover {
  color: var(--accent);
}
#stops p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 5px 0 0;
}
.primary {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.18s;
}
.primary:hover {
  background: var(--accent);
}
.fine {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.text-button {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  font-size: 11px;
}
#feedback {
  min-height: 15px;
  margin-bottom: 0;
}
.route-marker {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border: 2px solid var(--paper);
  border-radius: 50%;
  font:
    12px/1 Arial,
    sans-serif;
  box-shadow: 0 2px 8px #0002;
}
.leaflet-container {
  font-family: Arial, sans-serif;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.leaflet-control-zoom a {
  color: var(--ink) !important;
}
.route-enter {
  animation: appear 0.3s ease-out;
}
@keyframes appear {
  from {
    opacity: 0.35;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
