.home-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;

  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 4rem 6rem;
}


/* ---------------------------------
   List items
--------------------------------- */

.home-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;

  width: 100%;
  max-width: 100%;

  margin-left: -6rem;
}

.home-list-text {
  flex: 0 0 auto;
  min-width: 0;
}


/* ---------------------------------
   Titles
--------------------------------- */

.home-list-title {
  margin: 0;

  color: #3057c7;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.home-profile .home-list-title {
  font-size: 2.25rem;
  font-weight: 600;
}

.home-list-meta {
  margin: 0.35rem 0 0;

  color: #3057c7;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
}

.home-profile .home-list-meta {
  font-size: 1rem;
}


/* ---------------------------------
   Work title links
--------------------------------- */

.home-work-title-link {
  display: inline-block;

  color: #3057c7;
  text-decoration: none;

  transition:
    color 0.25s ease,
    font-weight 0.25s ease;
}


/* Entire work row is the hover area */

.home-work:hover .home-work-title-link {
  color: #ff5f57;
  font-weight: 900;
}

.home-work:hover .home-list-meta {
  color: #ff5f57;
  font-weight: 500;
}


/* ---------------------------------
   First / profile entry
--------------------------------- */

.home-profile {
  margin-left: -6rem;
}

.home-profile-image-wrap {
  flex: 0 0 auto;

  width: 26.4rem;
  max-width: 100%;
}

.home-profile-image-wrap .home-list-image {
  width: 100%;
}

.home-profile-image-wrap .home-list-image img {
  display: block;

  width: 100%;
  height: auto;
}

.home-profile-image-caption {
  margin-top: 0.3rem;

  color: #555;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
}


/* ---------------------------------
   Work images
--------------------------------- */

.home-list-image-link {
  display: block;
  flex: 0 0 auto;

  width: 16rem;

  color: inherit;
  text-decoration: none;
}

.home-list-image {
  width: 100%;
  margin: 0;
}

.home-list-image img {
  display: block;

  width: 100%;
  max-width: 100%;
  height: auto;

  transition:
    opacity 0.25s ease,
    transform 0.35s ease;
}


/* Hover over title OR image */

.home-work:has(.home-work-title-link:hover) .home-list-image img,
.home-work:has(.home-list-image-link:hover) .home-list-image img {
  opacity: 0.9;
  transform: scale(1.015);
}


/* ---------------------------------
   Descriptions
--------------------------------- */

.home-list-description {
  flex: 1 1 0;

  width: auto;
  max-width: 30rem;
  min-width: 12rem;

  color: #000;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
}

.home-list-description p {
  margin: 0 0 0.8rem;
}

.home-list-description p:last-child {
  margin-bottom: 0;
}

.home-list-description a {
  color: #3057c7;
  text-decoration: none;
}

.home-list-description a:hover,
.home-list-description a:focus-visible,
.home-list-description a:active {
  color: #ff5f57;
}


/* ---------------------------------
   Home menu
--------------------------------- */

.home-profile-menu {
  position: fixed;
  z-index: 1000;

  top: 1.75rem;
  right: 1.75rem;

  margin: 0;
}

.home-profile-menu summary {
  list-style: none;
}

.home-profile-menu summary::-webkit-details-marker {
  display: none;
}

.home-profile-menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  box-sizing: border-box;

  width: 40px;
  height: 40px;
  padding: 0;

  border-radius: 50%;

  background: #ff5f57;

  cursor: pointer;
}

.home-profile-menu-button span {
  display: block;

  width: 18px;
  height: 2px;

  background: #000;
}

.home-profile-menu-links {
  position: absolute;

  top: 100%;
  right: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;

  margin-top: 0.85rem;

  text-align: right;
}

.home-profile-menu-links a {
  color: #3057c7;
  text-decoration: none;

  -webkit-tap-highlight-color: transparent;
}

.home-profile-menu-links a:hover,
.home-profile-menu-links a:focus,
.home-profile-menu-links a:focus-visible,
.home-profile-menu-links a:active {
  color: #ff5f57;
}


/* ---------------------------------
   Tablet / Mobile
--------------------------------- */

@media (max-width: 800px) {

  .home-list {
    gap: 3rem;

    width: 100%;
    max-width: 100%;

    padding: 5.5rem 1.25rem 4rem;
  }

  .home-list-item {
    display: block;

    width: 100%;
    max-width: 100%;

    margin-left: 0;
  }

  .home-profile {
    margin-left: 0;
  }

  .home-list-text {
    margin-bottom: 1rem;
  }

  .home-profile .home-list-title {
    font-size: 2.3rem;
  }

  .home-profile-image-wrap {
    width: 100%;
    max-width: 22rem;
  }

  .home-list-image-link {
    width: 100%;
    max-width: 16rem;
  }

  .home-list-description {
    width: 100%;
    max-width: 32rem;
    min-width: 0;

    margin-top: 1rem;
  }

  .home-profile-menu {
    top: 1.25rem;
    right: 1.25rem;
  }

  .home-profile-menu-links a,
  .home-profile-menu-links a:hover,
  .home-profile-menu-links a:focus,
  .home-profile-menu-links a:focus-visible,
  .home-profile-menu-links a:active {
    color: #ff5f57;
  }
}


/* ---------------------------------
   Small Mobile
--------------------------------- */

@media (max-width: 480px) {

  .home-list {
    gap: 2.75rem;

    padding-top: 5rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
  }

  .home-profile .home-list-title {
    font-size: 2rem;
  }

  .home-list-title {
    font-size: 1.1rem;
  }

  .home-list-meta {
    font-size: 0.9rem;
  }

  .home-profile-image-wrap {
    max-width: 18rem;
  }

  .home-list-image-link {
    max-width: 14rem;
  }

  .home-list-description {
    max-width: 100%;
  }

  .home-profile-menu {
    top: 1rem;
    right: 1rem;
  }
}


/* ---------------------------------
   Reduced Motion
--------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .home-list-image img,
  .home-work-title-link {
    transition: none;
  }
}


/* ---------------------------------
   Mobile scroll active state
--------------------------------- */

@media (max-width: 800px) {

  .home-work .home-list-image {
    overflow: hidden;
  }

  .home-work .home-list-image img {
    transform: scale(1);
    transform-origin: center center;

    transition:
      transform 0.45s ease,
      opacity 0.3s ease;
  }

  .home-work.is-active .home-work-title-link {
    color: #ff5f57;
    font-weight: 900;
  }

  .home-work.is-active .home-list-meta {
    color: #ff5f57;
    font-weight: 700;
  }

  .home-work.is-active .home-list-image img {
    transform: scale(1.07);
  }
}
