/*
  Home page (site/templates/home.php): intro, latest notes, albums.
*/

.home-intro {
  max-width: 40rem;
  margin-bottom: 4.5rem;
}
/* Grows from 2rem on phones to 3rem on wide screens. */
.home-intro-title {
  font-size: clamp(2rem, 1.25rem + 2.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.home-intro-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
}
.home-intro-text p {
  margin-bottom: 1rem;
}
.home-intro-text a {
  text-decoration: underline;
}

/*
  Section headings carry the same short plum rule as the footer, so the
  page reads as one system.
*/
.home-section {
  margin-bottom: 4.5rem;
}
.home-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.home-section-title::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1rem;
}

.home-more {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
.home-more:hover {
  color: var(--color-accent);
}
.home-more span {
  display: inline-block;
  color: var(--color-accent);
  transition: transform .2s ease;
}
.home-more:hover span,
.home-more:focus-visible span {
  transform: translateX(.25rem);
}

/* Albums: two per row on phones, four on wide screens. */
.home-albums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 1.5rem;
}
@media screen and (min-width: 60rem) {
  .home-albums {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
