/* body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
} */

html {
  font-family: "garamond-premier-pro-subhead", serif;
  font-weight: 300;
  font-size: 1rem;
  font-style: normal;
  display: flex;
  justify-content: center;
  max-height: 100dvh;
  min-height: 100dvh;
}

body {
  flex: 1;
  display: flex;
  margin: 0 auto;
  padding: 8px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: fit-content;
}

main {
  position: relative;
}

.header {
  display: flex;
  justify-content: space-between;
}

.desktop-only {
  display: none;
}

.absolute {
  position: absolute !important;
  top: 0;
  left: 0;
}

.artwork {
  max-width: 100%;
  max-height: calc(100vh - 138px);
  position: relative;
  z-index: -1;
  transition: opacity ease-out 2000ms;
  opacity: 100;
}

.foreground {
  z-index: 1 !important;
}

.fade-out {
  opacity: 0 !important;
}

.text {
  color: black;
  transition: color 2000ms ease-in-out;
}

.green {
  color: green;
}


.footer {
  align-self: flex-end;
  text-align: right;
  position: relative;
}

.description {
  position: absolute;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-bottom: 0.1rem;
  bottom: 100%;
  right: 0;
  span {
    display: inline-block;
    text-wrap: nowrap;
  }
}

.mail-link {
  color: #333;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.mail-link:hover {
  color: #2d8a2f;
}

@media screen and (min-width: 930px) {
  .description {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }

  .header .text{
    margin-bottom: 0;
  }

  .header {
    padding-bottom: 5px;
  }

  .footer p{
    margin-top: 1px;
  }

  body { 
    justify-content: center; 
  }

}

@media screen and (orientation: landscape) and (max-width: 930px) and (hover: none) and (pointer: coarse) {
  .description{
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    span {
      white-space: pre-wrap;
    }
  }
  
  .footer p, .header p {
    margin: 0;
  }

  .artwork-container {
    width: 100%;
  }

  .artwork {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .absolute {
    left: 50%;
    transform: translateX(-50%);
  }
}
