:root {
  --title-color: #501c1b;
  --subtitle-color: #394f64;
  --address-color: #505958;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url(BarlowCondensed-Regular.ttf);
}

@font-face {
  font-family: "Barlow Condensed";
  src: url(BarlowCondensed-Bold.ttf);
  font-weight: bold;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
}

main {
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  font-size: xx-large;
  margin: 1em;
}

/* Phosphor icons are pale and slightly offest */
i.ph {
  color: darkgray;
  vertical-align: -2px;
}

/* Links are title-red when hovered; names additionally get an underline. */
a {
  color: black;
  text-decoration: none;
}
a:hover, a:active {
  color: var(--title-color);
}
a:hover>strong, a:active>strong, nav a:hover, nav a:active {
  text-decoration: underline;
}
a:hover>i, a:active>i {
  color: var(--title-color);
}


#map {
  aspect-ratio: 1 / 1;
  margin: 20px;
  overflow: hidden;
}

#studio-list {
  margin: 0 2em;
}

#studio-list>:first-child {
  margin-top: 10px !important;
}

#studio-list>h1,
#studio-list>h2 {
  text-transform: uppercase;
  font-family: "Barlow Condensed";
  color: var(--title-color);
  margin: 0;
}

#studio-list>h1 {
  font-weight: bold;
}

#studio-list>h2 {
  font-weight: normal;
}

#studio-list>h1>span {
  color: #dd0000;
}
#studio-list>h1>span>i {
  font-style: normal;
  color: #4e7e42;
}

#studio-list ol {
  padding-left: 0;
  margin-bottom: 2em;
  margin-right: 1em;
  list-style: none;
  counter-reset: item;
}

#studio-list ol>li {
  counter-increment: item;
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

#studio-list ol>li>div:first {
  display: flex;
  flex-direction: column;
}

#studio-list .stop-number {
  background: #4e7e42;
  border-radius: 100%;
  color: white;
  width: 44px;
  height: 40px;
  margin-top: 3px;
  padding-top: 4px;
  text-align: center;
  font-weight: bold;
}

#studio-list ol h1 {
  display: inline-block;
  font-size: 100%;
  color: var(--subtitle-color);
  margin-bottom: 0;
}

.address {
  font-size: smaller;
  font-weight: bold;
  color: var(--address-color);
  padding-left: 3em;
  margin-top: 0;
  margin-bottom: 0.5em;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  font-family: "Barlow Condensed", sans-serif;
  font-size: larger;
  line-height: 1.5;
  padding-left: 2em;
  text-indent: -2em;
}

@media(orientation: portrait) {
  body {
    flex-direction: column;
    font-size: xx-large;
  }

  ul li {
    padding-left: 2em;
    text-indent: -1em;
  }

  nav {
    flex-direction: column;
  }
}

@media(orientation: landscape) {
  body {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }

  main {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    flex-shrink: 1;
    overflow: hidden;
  }

  nav {
    font-size: small;
  }

  #map {
    flex-grow: 2;
    max-width: 85vh;
  }

  #studio-list {
    flex-grow: 1;
    flex-shrink: 1;
    max-width: 32em;
    min-width: 24em;
    max-height: 100%;
    overflow-y: auto;
  }

  #studio-list .stop-number {
    width: 22px;
    height: 20px;
    margin-top: 3px;
    padding-top: 2px;
  }
}