.tags-index-page .tags-intro {
  padding: clamp(3rem, 4.5vw, 4rem) 0;
}

.tags-index-page .tags-intro .journal-hero-layout {
  display: block;
  min-height: 0;
}

.tags-index-page .tags-intro .journal-hero-layout > div:first-child {
  display: block;
  max-width: 68rem;
}

.tags-index-page .tags-intro .eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
}

.tags-index-page .tags-intro h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.4rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.tags-index-page .tags-intro .journal-hero-layout > div:first-child > p:last-child {
  max-width: 52rem;
  margin: 0;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.65;
}

@media (min-width: 48rem) {
  .tags-index-page .tags-intro .journal-hero-layout > div:first-child > p:last-child {
    white-space: nowrap;
  }
}

.tags-index-page .tag-cloud-section {
  padding: 3.25rem 0 5.5rem;
  border-top: 1px solid var(--line);
}

.tags-index-page .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  width: 86%;
  max-width: 64rem;
  margin-inline: auto;
  gap: 0.7rem;
}

.tags-index-page .tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  max-width: 100%;
  padding: 0 0.9rem;
  border: 1px solid #dedbd5;
  border-radius: 12px;
  background: #fbfaf7;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.tags-index-page .tag-chip__count {
  margin-left: 0.48rem;
  color: #817a71;
  font-size: 0.76rem;
  font-weight: 600;
}

.tags-index-page .tag-chip:hover,
.tags-index-page .tag-chip:focus,
.tags-index-page .tag-chip:focus-visible {
  border-color: #9a4d43;
  background: #f8eeea;
  color: #71382f;
}

.tags-index-page .tag-chip:hover .tag-chip__count,
.tags-index-page .tag-chip:focus .tag-chip__count,
.tags-index-page .tag-chip:focus-visible .tag-chip__count {
  color: #8f4b40;
}

.tags-index-page .tag-chip:focus,
.tags-index-page .tag-chip:focus-visible {
  outline: 2px solid rgba(154, 77, 67, 0.28);
  outline-offset: 3px;
}

@media (max-width: 63.99rem) {
  .tags-index-page .tag-cloud-section {
    padding: 2.85rem 0 4.75rem;
  }
}

@media (max-width: 47.99rem) {
  .tags-index-page .tags-intro {
    padding: 2rem 0 2.15rem;
  }

  .tags-index-page .tags-intro .eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
  }

  .tags-index-page .tags-intro h1 {
    margin-bottom: 0.65rem;
    font-size: 2.05rem;
  }

  .tags-index-page .tags-intro .journal-hero-layout > div:first-child > p:last-child {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .tags-index-page .tag-cloud-section {
    padding: 2.35rem 0 4rem;
  }

  .tags-index-page .tag-cloud {
    width: 100%;
    max-width: none;
    gap: 0.6rem 0.55rem;
  }

  .tags-index-page .tag-chip {
    padding-inline: 0.7rem;
    border-radius: 11px;
    font-size: 0.82rem;
  }

  .tags-index-page .tag-chip__count {
    margin-left: 0.38rem;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tags-index-page .tag-chip {
    transition: none;
  }
}
