:root {
  color: #16191d;
  background: #f3f2ee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f3f2ee;
}

.shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 32px;
}

.masthead,
.status,
.section-heading,
.routes li,
footer {
  display: flex;
  align-items: center;
}

.masthead {
  gap: 18px;
  padding-bottom: 36px;
  border-bottom: 1px solid #b8bab8;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  background: #ff5a36;
  color: #fff;
  font: 700 24px/1 Georgia, serif;
}

.eyebrow,
.section-label,
.footer-label {
  margin: 0 0 7px;
  color: #666b6e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(25px, 4vw, 42px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0;
}

.status {
  justify-content: space-between;
  gap: 32px;
  padding: 54px 0 50px;
}

h2 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  margin-bottom: 0;
  color: #565b5d;
  font-size: 16px;
  line-height: 1.75;
}

.status-badge,
.route-state {
  flex: 0 0 auto;
  border: 1px solid #aeb1af;
  color: #343839;
  font-size: 12px;
  font-weight: 750;
}

.status-badge {
  padding: 10px 13px;
}

.status-badge span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #139b70;
}

.comparison {
  border-top: 4px solid #1b1e21;
}

.section-heading {
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.section-heading h2 {
  margin-bottom: 0;
  text-align: right;
}

.routes {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #b8bab8;
}

.routes li {
  min-height: 116px;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid #b8bab8;
}

.route-number {
  width: 42px;
  flex: 0 0 42px;
  color: #ff5a36;
  font: 700 16px/1 Georgia, serif;
}

.routes li > div {
  flex: 1;
  min-width: 0;
}

.routes h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
}

.routes p {
  margin-bottom: 0;
  color: #64696b;
  font-size: 14px;
  line-height: 1.6;
}

.route-state {
  min-width: 54px;
  padding: 7px 9px;
  text-align: center;
}

footer {
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  color: #343839;
}

footer > div:last-child {
  min-width: 0;
  text-align: right;
}

.footer-label {
  display: block;
}

footer strong,
footer code {
  font-size: 13px;
}

footer code {
  display: block;
  max-width: 48vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1040px);
    padding-top: 24px;
  }

  .masthead {
    align-items: flex-start;
    padding-bottom: 24px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 20px;
  }

  .status {
    align-items: flex-start;
    padding: 36px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    text-align: left;
  }

  .routes li {
    position: relative;
    align-items: flex-start;
    gap: 12px;
    padding-right: 4px;
  }

  .route-number {
    width: 30px;
    flex-basis: 30px;
  }

  .route-state {
    position: absolute;
    top: 20px;
    right: 0;
  }

  .routes h3 {
    max-width: calc(100% - 62px);
  }

  footer {
    display: block;
  }

  footer > div:last-child {
    margin-top: 18px;
    text-align: left;
  }

  footer code {
    max-width: 100%;
  }
}
