.home-content {
  --home-width: 1380px;
  --home-gutter: max(6vw, calc((100% - var(--home-width)) / 2));
  --home-navy: #182f3e;
}

.home-content h2 {
  font-size: clamp(2.5rem, 4.65vw, 5.2rem);
  overflow-wrap: break-word;
}

.home-content figure {
  margin: 0;
}

.home-content p {
  margin: 1rem 0;
}

.home-wrap {
  width: min(88%, var(--home-width));
  margin-inline: auto;
}

.home-stay {
  display: grid;
  grid-template-columns: minmax(0, 0.79fr) minmax(0, 1.21fr);
  align-items: center;
  gap: clamp(30px, 5.1vw, 90px);
  padding-block: clamp(52px, 7.6vw, 120px);
}

.home-stay h2 em {
  display: block;
}

.home-stay__copy p {
  max-width: 51ch;
}

.home-stay__copy .under {
  display: inline-block;
  margin-top: 0.3rem;
}

.home-stay__photos {
  position: relative;
  padding-bottom: clamp(32px, 5vw, 78px);
}

.home-stay__photos img {
  object-fit: cover;
}

.home-stay__photos figcaption {
  margin-top: 0.48rem;
  color: #485960;
  font-size: 0.875rem;
  line-height: 1.4;
}

.home-stay__interior {
  width: 87%;
}

.home-stay__interior img {
  aspect-ratio: 1.44;
}

.home-stay__terrace {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 47%;
  padding: clamp(5px, 0.6vw, 10px);
  background: var(--paper);
  box-shadow: 0 7px 25px rgb(26 47 51 / 15%);
}

.home-stay__terrace img {
  aspect-ratio: 1.34;
}

.home-area {
  padding-block: clamp(46px, 6.7vw, 106px);
  background: #e8eee8;
}

.home-area__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 0.83fr);
  align-items: end;
  gap: clamp(20px, 5vw, 78px);
  margin-bottom: clamp(22px, 3.3vw, 51px);
}

.home-area__heading p {
  max-width: 53ch;
  margin-top: 0;
}

.home-places {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 1vw, 16px);
}

.home-place {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: clamp(198px, 18.5vw, 290px);
  overflow: hidden;
  color: #fffaf1;
  background: var(--home-navy);
}

.home-place::after,
.home-place > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-place::after {
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgb(9 26 37 / 94%), rgb(9 26 37 / 67%) 28%, transparent 76%);
}

.home-place > img {
  z-index: -2;
  object-fit: cover;
  transition: transform 230ms ease;
}

.home-place--coast {
  grid-row: span 2;
  min-height: clamp(400px, 37vw, 610px);
}

.home-place--coast > img {
  object-position: 62% center;
}

.home-place--matisse > img {
  object-position: center 47%;
}

.home-place--harbor > img {
  object-position: center 38%;
}

.home-place__copy {
  padding: clamp(16px, 2.2vw, 36px);
}

.home-place h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.45vw, 2.9rem);
  line-height: 1.1;
}

.home-place--coast h3 {
  font-size: clamp(2.16rem, 3.45vw, 4.05rem);
}

.home-place p {
  max-width: 46ch;
  margin: 0.45rem 0 0;
  line-height: 1.45;
}

.home-place:focus-visible {
  outline-offset: -5px;
}

.home-place:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.19em;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-place:hover > img {
    transform: scale(1.035);
  }
}

.home-return {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
  color: #fffaf1;
  background: var(--home-navy);
}

.home-return > img {
  height: 100%;
  min-height: clamp(320px, 34vw, 560px);
  max-height: 650px;
  object-fit: cover;
  object-position: center 54%;
}

.home-return__copy {
  align-self: center;
  padding: clamp(36px, 5.8vw, 86px) var(--home-gutter) clamp(36px, 5.8vw, 86px) clamp(30px, 5.1vw, 81px);
}

.home-return h2 em {
  color: #ffcd99;
}

.home-return p {
  max-width: 48ch;
}

.home-return .lightbtn {
  margin-top: 0.4rem;
}

.home-credits {
  padding-block: 14px 18px;
  color: #485960;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.home-credits summary {
  width: fit-content;
  cursor: pointer;
}

.home-credits a {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .home-content {
    --home-gutter: 5vw;
  }

  .home-wrap {
    width: 90%;
  }

  .home-stay,
  .home-area__heading,
  .home-places,
  .home-return {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-stay {
    gap: 25px;
  }

  .home-stay__interior {
    width: 90%;
  }

  .home-stay__terrace {
    width: 48%;
  }

  .home-places {
    grid-template-rows: none;
    gap: 10px;
  }

  .home-place--coast {
    grid-row: auto;
  }

  .home-place {
    min-height: 226px;
  }

  .home-place--coast {
    min-height: clamp(275px, 73vw, 440px);
  }

  .home-return > img {
    min-height: 0;
    height: clamp(240px, 55vw, 420px);
  }

  .home-return__copy {
    padding: 40px var(--home-gutter);
  }
}
