@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Barlow Semi Condensed", Arial, Helvetica, sans-serif;
  color: #2c2c2c;
  background: #f5f2ec;
}

.screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #f5f2ec;
}

.language {
  position: fixed;
  z-index: 20;

  top: 3.5vh;
  left: 4vw;

  display: flex;
  align-items: center;
  gap: 0.35em;

  font-size: clamp(11px, 0.75vw, 14px);
  font-weight: 400;
}

.language button {
  padding: 0;
  border: 0;
  background: transparent;

  color: inherit;
  font: inherit;

  cursor: pointer;
  opacity: 0.45;
}

.language button.active {
  opacity: 1;
}

.language button:hover {
  opacity: 1;
}

.site-header {
  position: fixed;

  left: 4vw;
  bottom: 6vh;

  z-index: 20;
}

.name {
  display: block;

  margin-bottom: 0.45em;

  color: inherit;
  text-decoration: none;

  font-size: clamp(30px, 2.8vw, 50px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 1.8em;
  margin-top: 1.9em;
}

nav a {
  color: inherit;
  text-decoration: none;

  font-size: clamp(12px, 0.9vw, 16px);
  font-weight: 400;

  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav a:hover {
  opacity: 0.5;
}

nav a.active {
  opacity: 0.45;
}

.works {
  min-height: 100vh;

  padding:
    8vh
    4vw
    10vh
    24vw;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9vh 5vw;
  align-items: start;
}

.series-card {
  color: inherit;
  text-decoration: none;
}

.series-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.8em;
  overflow: hidden;
  background: #e7e4de;
}

.series-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  background:
    linear-gradient(
      135deg,
      #e7e4de,
      #dedbd4
    );
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5vh 2.5vw;
  align-items: start;
}

.series-card:hover .series-title {
  opacity: 0.5;
}

@media (max-width: 900px) {

  .language {
    top: 3vh;
    left: 5vw;
  }

  .site-header {
    position: relative;

    left: auto;
    bottom: auto;

    padding:
      14vh
      5vw
      0;
  }

  .works {
    min-height: auto;

    padding:
      10vh
      5vw
      12vh;
  }

  .series-grid {
    grid-template-columns: 1fr;
    gap: 8vh;
  }

  .series-title {
    font-size: 18px;
  }
}