: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;
}
#map i.ph, i.ph.dark { color: var(--subtitle-color); }
#map i.ph-fork-knife { vertical-align: -1px; }

/* 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 {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 20px;
  border-radius: 3%;
  overflow: hidden;
  box-shadow: 5px 5px 5px gray;
}
#map > img {
  width: 100%;
}
#map>ol {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: item;
}
#map ol>li {
  position: absolute;
  background: white;
  border-radius: 100%;
  border: var(--subtitle-color) solid 2px;
  color: var(--subtitle-color);
  overflow: hidden;
  width: 1.2em;
  margin-left: -0.6em;
  margin-top: -0.6em;
  text-align: center;
  display: inline-block;
  font-weight: bold;
  cursor: pointer;
}
@media (-webkit-max-device-pixel-ratio: 1) {
  #map ol>li {
    font-size: large !important;
  }
}
#map ol>li:nth-child(1) { left: 48.8%; top: 16.9%; }
#map ol>li:nth-child(2) { left: 59.4%; top: 34.0%; }
#map ol>li:nth-child(3) { left: 63.8%; top: 37.5%; }
#map ol>li:nth-child(4) { left: 54.8%; top: 43.3%; }
#map ol>li:nth-child(5) { left: 70.0%; top: 47.9%; }
#map ol>li:nth-child(6) { left: 63.7%; top: 54.0%; }
#map ol>li:nth-child(7) { left: 77.2%; top: 65.0%; }
#map ol>li:nth-child(8) { left: 38.8%; top: 70.0%; }
#map ol>li:nth-child(9) { left: 91.7%; top: 71.5%; }
#map ol>li:nth-child(10) { left: 59.3%; top: 86.0%; }
#map ol>li:nth-child(11) { left: 16.3%; top: 39.4%; }
#map ol>li:nth-child(12) { left: 66.8%; top: 37.5%; }
#map ol>li:nth-child(13) { left: 73.0%; top: 47.9%; }
#map ol>li:nth-child(14) { left: 97.5%; top: 46.5%; }
#map ol>li:nth-child(15) { left: 71.4%; top: 50.9%; }
#map ol>li:nth-child(16) { left: 47.2%; top: 21.5%; }
#map ol>li:nth-child(17) { left: 63.7%; top: 33.6%; }

#studio-list {
  margin: 0 2em;
  padding-right: 1em;
}

#studio-list>h1,
#studio-list>h2 {
  text-transform: uppercase;
  font-family: "Barlow Condensed";
  color: var(--title-color);
  margin: 0;
}

#studio-list>h1 {
  margin-top: 1em;
  font-weight: bold;
}

#studio-list>h2 {
  font-weight: normal;
}

#studio-list ol {
  padding-left: 0;
  list-style: none;
  counter-reset: item;
}

#studio-list ol>li {
  counter-increment: item;
  margin-bottom: 5px;
}


#studio-list * {
  transition: background-color 3s;
}
#studio-list .flash {
  background-color: #80a3e4;
  transition: none;
}

#studio-list ol>li:before {
  margin-right: 10px;
  content: counter(item);
  background: white;
  border: var(--subtitle-color) solid 2px;
  border-radius: 100%;
  padding: 0.2em;
  color: var(--subtitle-color);
  width: 1.2em;
  text-align: center;
  display: inline-block;
  font-weight: bold;
}
@media (-webkit-max-device-pixel-ratio: 1) {
  #studio-list ol>li:before {
    font-size: small;
  }
}

.list-section {
  display: flex;
  flex-direction: row;
  padding: 1em 0;
  gap: 10px;
}
.list-section .icon-column {
  flex-shrink: 1;
  flex-grow: 0;
  color: var(--subtitle-color);
  padding-top: 3px;
}
.list-section .icon-column i.ph {
  font-size: xx-large;
  border: var(--subtitle-color) solid 2px;
  border-radius: 100%;
  color: var(--subtitle-color);
  padding: 0.3em;
}
@media(orientation: landscape) {
  .list-section .icon-column i.ph {
    font-size: medium;
  }
}
@media (-webkit-max-device-pixel-ratio: 1) {
  .list-section .icon-column i.ph {
    font-size: small;
  }
}

.music-schedule {
  display: grid;
  grid-template-columns: min-content auto;
  grid-column-gap: 0.75em;
  font-size: larger;
}
.music-schedule h1, .music-schedule h2 {
  grid-column: span 2;
  text-align: left;
}
.music-schedule h1 {
  display: inline-block;
  font-size: 100%;
  color: var(--subtitle-color);
  margin: 0;
}
.music-schedule h2 {
  font-size: smaller;
  font-weight: bold;
  color: var(--address-color);
  margin-top: 0;
  margin-bottom: 0.5em;
}
.music-schedule .time, .music-schedule .band {
  font-family: "Barlow Condensed";
}
.music-schedule .time {
  text-align: right;
  text-wrap: nowrap;
}
.music-schedule .band {
  text-align: left;
  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);
  margin-top: 0;
  margin-bottom: 0.5em;
  padding-left: 3em;
}

#studio-list .memo {
  text-align: center;
  font-style:italic;
  padding: 1em 0;
}

ul {
  list-style-type: none;
}

ul li {
  font-family: "Barlow Condensed", sans-serif;
  font-size: larger;
  line-height: 1.5;
  padding-left: 2em;
  text-indent: -2em;
}

#passport-callout {
  display: block;
  position: absolute;
  left: 3%;
  bottom: 3%;
  width: 40%;

  font-size: smaller;

  text-align: center;

  background-color: #ede0cb;
  padding: 12px;
  border: solid 2px #3d5460;
  border-radius: 10px;
  box-shadow: 2px 2px 2px #3d5460d8;
}
@media(orientation: landscape) and (-webkit-max-device-pixel-ratio: 1) {
  #passport-callout {
    font-size: large;
  }
}
@media(orientation: portrait) and (-webkit-max-device-pixel-ratio: 1) {
  #passport-callout {
    font-size: medium;
  }
}
#passport-callout a {
  text-decoration: underline;
}

@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;
  }
}

@media print {
  body {
    font-size: medium;
  }
  #passport-callout {
    display: none;
  }
  .list-section .icon-column i.ph {
    font-size: medium;
  }
  nav {
    display: none;
  }
}