.list-page {
  padding-block: clamp(38px, 6vw, 76px) 64px;
}

.list-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.list-intro h1 {
  margin: 8px 0 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: .98;
}

.list-intro-copy {
  max-width: 760px;
}

.list-intro-copy > p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  color: #424742;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.list-count {
  min-width: 130px;
  margin: 0;
  padding: 17px 20px;
  border: 1px solid #d9be89;
  border-radius: 10px;
  color: var(--amber);
  background: var(--amber-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.beer-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.beer-row {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(320px, 1.5fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 142px;
  padding: 28px 34px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--paper);
}

.beer-row:first-child {
  border-top: 1px solid var(--line);
}

.beer-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  text-decoration-thickness: 1px;
}

.beer-keywords {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.45;
}

.beer-tags.taxonomy-pills {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.list-rating {
  min-width: 128px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.list-rating strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
}

.list-rating span {
  color: var(--muted);
  font-size: 12px;
}

.list-rating .list-stars {
  margin-top: 5px;
  color: var(--amber);
  font-size: 16px;
  letter-spacing: .09em;
}

@media (max-width: 820px) {
  .list-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .list-count {
    justify-self: start;
  }

  .beer-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .beer-details {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .list-rating {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .list-page {
    width: 100%;
    padding-top: 0;
  }

  .list-intro {
    padding: 38px 18px;
    border-inline: 0;
  }

  .list-intro h1 {
    font-size: 48px;
  }

  .beer-list {
    margin-top: 14px;
  }

  .beer-row {
    gap: 18px;
    padding: 24px 18px;
    border-inline: 0;
  }

  .beer-name {
    font-size: 26px;
  }

  .list-rating {
    min-width: 102px;
    padding-left: 16px;
  }

  .list-rating strong {
    font-size: 27px;
  }
}
