/* HEADER */

header {
  position: relative;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  margin: 2em 1em;
}

header .info {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  width: calc(var(--main-width) - 2em);
}

header .info .section {
  display: block;
  min-width: 6em;
}

header .info .publication,
header .info .section,
header .info .date {
  font-family: mono;
  font-size: 0.9em;
  color: var(--foreground-2);
  text-transform: uppercase;
  margin: 1em;
}

header .document {
  display: block;
  margin: auto;
  margin-bottom: 2em;
  font-family: mono;
  text-transform: uppercase;
}

header img {
  height: 30em;
  margin: auto;
}

header .cover-info {
  position: absolute;
  padding: 1em;
  bottom: 0;
  right: 0;
  color: var(--foreground);
  fill: var(--foreground);
}

header .cover-info * {
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

header .cover-info .cover-info-content {
  display: none;
  position: absolute;
  background-color: var(--background-2);
  padding: 1em 2em;
  max-width: 30em;
  width: max-content;
  right: 0;
  bottom: 0;
  font-family: mono;
}

header .cover-info:hover .cover-info-content {
  display: block;
}

@media (max-width: 80em) {
  header {
    margin: 0;
  }

  header .info {
    width: 100%;
  }

  header img {
    width: 100%;
    height: auto;
  }
}
