:root {
  color-scheme: light;
  --ink: #292724;
  --muted: #a5a09a;
  --paper: #fff;
  --title-font:
    "Bradley Hand", "Noteworthy", "Segoe Print", "Comic Sans MS", "Marker Felt",
    cursive;
  --ui-font: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--ui-font);
  background: var(--paper);
}

.home-page {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  width: min(1380px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 46px 58px 34px;
}

.home-nav {
  position: relative;
  z-index: 20;
  display: grid;
  gap: 32px;
  align-content: start;
  padding-top: 4px;
}

.home-nav a {
  width: fit-content;
  color: #34312e;
  text-decoration: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.home-nav a:hover {
  opacity: 0.58;
  transform: translateX(4px);
}

.home-nav span {
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.home-nav small {
  margin-left: 8px;
  color: #b7b2ac;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.music-mark {
  margin: 2px 0 0 12px;
  font-family: Georgia, serif;
  font-size: 2rem;
}

.home-collage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.home-date {
  position: absolute;
  top: 16px;
  right: 2%;
  margin: 0;
  color: #d3cfca;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.home-feature {
  position: absolute;
  inset: 0 4% 4% 5%;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
}

.home-feature img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.home-piece {
  position: absolute;
  margin: 0;
  overflow: hidden;
  opacity: 1;
  background: #fff;
  transition: opacity 320ms ease;
}

.home-collage.is-changing .home-piece {
  opacity: 0.08;
}

.home-piece img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.piece-one {
  left: 23%;
  top: 1%;
  z-index: 5;
  width: 37%;
  height: 32%;
  transform: rotate(1deg);
}

.piece-two {
  left: 7%;
  top: 23%;
  z-index: 3;
  width: 29%;
  height: 31%;
  transform: rotate(-1deg);
}

.piece-three {
  left: 34%;
  top: 30%;
  z-index: 7;
  width: 34%;
  height: 51%;
}

.piece-four {
  right: 5%;
  top: 24%;
  z-index: 4;
  width: 34%;
  height: 32%;
  transform: rotate(0.6deg);
}

.piece-five {
  right: 8%;
  bottom: 12%;
  z-index: 6;
  width: 31%;
  height: 23%;
  transform: rotate(-0.8deg);
}

.piece-two::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 32%;
  z-index: 2;
  width: 68px;
  height: 22px;
  background: rgba(216, 212, 204, 0.62);
  transform: rotate(-2deg);
}

.portfolio-signature {
  position: absolute;
  right: 4%;
  bottom: 1%;
  z-index: 10;
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  transform: rotate(-5deg);
}

@media (max-width: 820px) {
  .home-page {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 22px;
  }

  .home-nav {
    grid-template-columns: repeat(3, auto);
    gap: 18px;
    align-items: center;
  }

  .home-nav a {
    white-space: nowrap;
  }

  .home-nav small,
  .music-mark {
    display: none;
  }

  .home-collage {
    min-height: 650px;
  }

  .home-feature {
    inset: 2% 0 8%;
  }
}

@media (max-width: 560px) {
  .home-page {
    padding-inline: 16px;
  }

  .home-nav {
    gap: 12px;
  }

  .home-nav span {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .home-collage {
    min-height: 590px;
  }

  .home-feature {
    inset: 3% 0 13%;
  }

  .piece-one {
    left: 19%;
    width: 56%;
    height: 25%;
  }

  .piece-two {
    left: 0;
    top: 21%;
    width: 43%;
    height: 25%;
  }

  .piece-three {
    left: 27%;
    top: 31%;
    width: 49%;
    height: 43%;
  }

  .piece-four {
    right: 0;
    top: 22%;
    width: 39%;
    height: 24%;
  }

  .piece-five {
    right: 2%;
    bottom: 13%;
    width: 43%;
    height: 20%;
  }
}
