@font-face {
  font-family: "Diatype";
  src: url("../type/ABCDiatype-Regular.woff");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  font-size: 0.7vw;
  --main: 1.8rem;
  --bg: rgb(255, 255, 255);
}
@media (max-width: 667px) {
  html {
    font-size: 7px;
  }
}

body {
  font-family: "Diatype";
  font-size: 1.6rem;
  scroll-behavior: smooth;
  background: var(--bg);
}

header,
.inner {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 1em;
}

header {
  padding: 1em 1em 0.25em 1em;
}

figure {
  padding: 1em;
  position: relative;
}
figure figcaption, figure span {
  position: absolute;
  top: 0.75em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2em;
  color: black;
  background: var(--bg);
  padding: 4px 1em;
  border-radius: 1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}
figure span {
  position: absolute;
  left: 2.5em;
}
figure:first-of-type figcaption, figure:first-of-type span {
  top: 1.5em;
}
figure:first-of-type span {
  left: 3em;
}
figure img {
  max-width: 100%;
  display: block;
  transition: 0.25s ease-in-out;
}
figure:hover {
  mix-blend-mode: normal;
}
figure:hover figcaption, figure:hover span {
  opacity: 1;
  pointer-events: auto;
}
figure:hover img {
  border-radius: 1em;
}

.news {
  position: fixed;
  bottom: 1em;
  right: 1em;
  width: 100%;
  max-width: 26em;
  height: 16.25em;
  border-radius: 1em;
  overflow: hidden;
  z-index: 100;
  text-align: center;
}
.news:hover {
  cursor: pointer;
}
@media (max-width: 667px) {
  .news {
    max-width: 60%;
    height: 16.5em;
    bottom: 1em;
  }
}
.news .close {
  content: "close";
  position: absolute;
  top: 12em;
  right: 50%;
  transform: translateX(50%);
  width: auto;
  height: auto;
  padding: 0.25em 0.75em;
  font-size: var(--main);
  background: #eee;
  border-radius: 1em;
  z-index: 100;
}
.news .close:hover {
  background: #ff0000;
  cursor: pointer;
}
.news figure {
  padding: 0;
}
.news figure:not(:first-of-type) {
  display: none;
}
main {
  position: relative;
  top: 16em;
}

.grey img {
  filter: grayscale(100%);
}

.double {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  padding: 1em;
  padding-top: 0;
}
@media (max-width: 667px) {
  .double {
    grid-template-columns: 1fr;
  }
}
.double figure {
  padding: 0;
}
.double figure:first-of-type figcaption, .double figure:first-of-type span {
  top: 0.75em;
}
.double figure:first-of-type span {
  left: 2.25em;
}
.inner {
  padding: 2em 0.5em 0 0;
}

footer {
  padding: 2em 1em 1.5em 1em;
  margin-top: 50vh;
}
footer p {
  padding-right: 1em;
  line-height: 1.2;
}

.logotype {
  padding: 1em;
  padding-top: 0;
}
@media (max-width: 667px) {
  .logotype {
    height: 150%;
  }
}
.logotype + figure {
  margin-top: 25vh;
}

.details {
  display: flex;
  flex-direction: row;
  padding-right: 0.5em;
}

h1,
.details {
  flex: 1;
}

h1,
h2,
nav a,
nav span,
p {
  font-weight: normal;
  font-size: var(--main);
}

nav {
  margin-left: auto;
}

nav,
h2 {
  display: inline-block;
}

@media (max-width: 667px) {
  h2 {
    display: none;
  }
}

a {
  text-decoration: none;
  color: black;
}
a:hover {
  opacity: 0.25;
}
a:not(:last-of-type):after {
  content: ", ";
}

nav span:after {
  content: ", ";
}
nav span:hover {
  opacity: 0.25;
}

.controls {
  position: relative;
  top: -3em;
  display: inline-flex;
  gap: 0.25em;
  justify-content: center;
  background: #eee;
  border-radius: 1em;
  padding: 0.75em;
  z-index: 100;
}
.controls .dot {
  width: 1rem;
  height: 1rem;
  background: #bbb;
  border-radius: 1em;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.controls .dot.current {
  background: gray;
  opacity: 1;
}

.overlay {
  position: fixed;
  bottom: 1em;
  left: 1em;
  padding: 1em;
  width: calc(40% - 1.5em);
  height: auto;
  background: #e6e6e6;
  z-index: 50;
  border-radius: 1em;
  transform: translateY(110%);
  transition: transform 0.35s ease-in-out;
}
@media (max-width: 667px) {
  .overlay {
    width: calc(100% - 2em);
  }
}
.overlay.active {
  transform: translateY(0);
}
.overlay .close {
  position: absolute;
  top: 0.5em;
  right: 0;
  width: auto;
  height: auto;
  padding: 0.25em 0.75em;
  font-size: var(--main);
}
.overlay .close:hover {
  color: white;
  cursor: pointer;
}
.overlay h2 {
  border-bottom: 1px solid black;
  padding-bottom: 0.35em;
  display: block;
}
.overlay label {
  display: none;
}
.overlay form {
  display: flex;
  flex-direction: column;
}
.overlay form input, .overlay form button, .overlay form textarea {
  font: inherit;
  font-size: var(--main);
  outline: 0;
  border: 0;
  background: transparent;
  width: 100%;
}
.overlay form textarea {
  padding: 0.35em 0;
}
.overlay form button:hover {
  color: white;
  cursor: pointer;
}
.overlay form input {
  width: 100%;
  border-bottom: 1px solid black;
  padding: 0.35em 0;
}
.overlay form input:focus::-webkit-input-placeholder {
  transition: opacity 0.5s 0.5s ease !important;
  opacity: 0;
}
.overlay form input::-webkit-input-placeholder {
  color: black;
}
.overlay form textarea {
  width: 100%;
  height: 10em;
}
.overlay form textarea:focus::-webkit-input-placeholder {
  transition: opacity 0.5s 0.5s ease !important;
  opacity: 0;
}
.overlay form textarea::placeholder {
  color: black;
}

#form-response {
  position: fixed;
  width: calc(100% - 2em);
  font-size: var(--main);
  background: #e6e6e6;
  bottom: 1em;
  left: 1em;
  padding: 1em;
  width: auto;
  height: auto;
  border-radius: 1em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
#form-response.active {
  opacity: 1;
  pointer-events: auto;
}

/*# sourceMappingURL=style.css.map */
