.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 1120px;
}

.home-layout .home-about,
.home-layout .home-recent {
  min-width: 0;
}

.home-about {
  max-width: 640px;
}

.home-layout h1,
.home-recent h2 {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-size: 1.75rem;
}

.home-recent {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 1.5rem;
}

.recent-work + .recent-work {
  border-top: 1px solid var(--bs-border-color);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

@media (min-width: 1160px) {
  .home-layout {
    grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.5fr);
    gap: clamp(2rem, 4vw, 5rem);
    max-width: 1760px;
    align-items: start;
  }

  .home-recent {
    border-top: 0;
    border-inline-start: 1px solid var(--bs-border-color);
    padding: 0 0 0 clamp(1.5rem, 2.5vw, 3rem);
  }
}

.profile-intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.profile-portrait img {
  display: block;
  max-width: 100%;
  height: auto;
}

.profile-portrait p,
.profile-copy > :last-child {
  margin-bottom: 0;
}

.profile-copy > section > h2:first-child,
.profile-copy > h2:first-child {
  margin-top: 0;
  font-size: 1.25rem;
  border: 0;
  padding: 0;
}

.recent-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.recent-work-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.recent-work-visual {
  max-width: 480px;
}

.recent-work-visual p {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .profile-intro {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
  }

  .profile-portrait img {
    width: 96px;
  }

  .recent-work {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .recent-work-visual {
    width: min(100%, 24rem);
  }
}

@media (max-width: 359px) {
  .profile-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}
