.moods-main {
  padding-block: 88px 118px;
}

.moods-header {
  max-width: 760px;
  margin-bottom: 72px;
}

.moods-header h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(58px, 7vw, 82px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .98;
}

.moods-header > p:last-child {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.65;
}

.moods-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 430px));
  justify-content: start;
  gap: 56px 42px;
  border-top: 1px solid var(--home-line);
}

.moods-entry {
  display: block;
  padding-block: 52px;
}

.moods-entry:last-child {
  border-bottom: 0;
}

.moods-date {
  margin: 0 0 0 auto;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.moods-figure {
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.moods-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(17, 17, 17, .11);
}

.moods-copy {
  min-width: 0;
  padding-top: 1px;
}

.moods-note {
  margin: 0;
  color: #363532;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.35;
}

.moods-copy .home-star {
  margin-top: 18px;
}

.moods-controls {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.moods-share {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.moods-share-button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--home-primary);
  padding: 2px 0;
  cursor: pointer;
  font: 500 13px/1 "Inter", Arial, sans-serif;
}

.moods-share-button:hover,
.moods-share-button:focus-visible {
  color: var(--home-primary);
  text-decoration: underline;
}

.moods-share-status {
  max-width: 190px;
  margin-top: 5px;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.35;
}

.moods-entry:target {
  scroll-margin-top: 88px;
}

.moods-empty {
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
}

.moods-more {
  margin-top: 44px;
  cursor: pointer;
}

.moods-more[hidden],
.moods-empty[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .moods-main {
    padding-block: 72px 104px;
  }

  .moods-header {
    margin-bottom: 54px;
  }

  .moods-list {
    grid-template-columns: repeat(auto-fill, minmax(240px, 360px));
    gap: 46px 30px;
  }
}

@media (max-width: 640px) {
  .moods-main {
    width: min(100% - 32px, 520px);
    padding-block: 58px 88px;
  }

  .moods-header {
    margin-bottom: 44px;
  }

  .moods-header h1 {
    font-size: clamp(48px, 14vw, 60px);
  }

  .moods-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .moods-entry {
    padding-block: 42px;
  }

  .moods-image {
    width: min(100%, 380px);
    max-height: none;
  }

  .moods-more {
    width: 100%;
    margin-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moods-page *,
  .moods-page *::before,
  .moods-page *::after {
    transition-duration: .01ms !important;
  }
}

.moods-meta {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 18px;
  margin-top: 13px;
}
