.pastel-blog-heading {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(22px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--celadon);
}

.pastel-blog-heading h1 {
  margin-block: .2em .5em;
  overflow-wrap: anywhere;
}

.pastel-blog-description {
  max-width: 60ch;
  margin-block-end: 1.25rem;
  color: var(--muted);
}

.pastel-blog-heading .search-field {
  min-width: 0;
  width: min(100%, 20rem);
  font-size: 1rem;
}

.pastel-blog-topics,
.pastel-blog-section-title,
.pastel-post-grid {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.pastel-blog-topics {
  margin-block: 0 clamp(28px, 5vw, 60px);
}

.pastel-blog-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.pastel-blog-topics li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.pastel-blog-topics li::before {
  content: none;
}

.pastel-blog-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4em 1.05em;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-button);
  background: var(--ivory);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pastel-blog-topics a:hover {
  background: var(--lilac);
}

.pastel-blog-topics [aria-current="page"] {
  background: var(--plum);
  color: var(--ivory);
}

.pastel-blog-section-title {
  margin-block: clamp(30px, 5vw, 58px) .65em;
}

.pastel-post-grid {
  grid-template-columns: minmax(0, 1fr);
}

.pastel-post-grid--featured .pastel-post-card {
  background: var(--ivory);
}

.pastel-post-card :is(h2,h3) {
  margin-block: .35em .55em;
  font-size: clamp(1.5rem, 2.25vw, 2.15rem);
}

.pastel-post-card :is(h2,h3) a:hover {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.pastel-post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
  color: var(--muted);
  font-size: .875rem;
}

.pastel-post-card-meta span {
  color: var(--violet);
  font-weight: 650;
}

.pastel-blog-heading :focus-visible,
.pastel-blog-topics :focus-visible,
.pastel-post-grid :focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.pastel-plugin-page .pastel-prose .ethet-section-inner > :is(.ethet-stats-grid,.etch-step-list,.ethet-cta-wrap,.ethet-card) {
  width: 100%;
  max-width: 100%;
}

/* Use the same content edge for section introductions and their cards. */
main .pastel-prose :is(.ethet-section-inner,.etcha-inner) > :is(.ethet-section-header,.etcha-section-header) {
  max-width: none;
  margin-block: 0 clamp(1.65rem, 3.2vw, 3rem);
  margin-inline: 0 !important;
  text-align: start;
}

main .pastel-prose :is(.ethet-section-header,.etcha-section-header) > :is(.ethet-section-kicker,.etcha-label,h2,.ethet-section-lead,.etcha-sub),
.pastel-prose .ethet-editorial-inner > :is(.ethet-editorial-kicker,.ethet-editorial-title,.ethet-editorial-lead) {
  margin-inline: 0 !important;
  text-align: start;
}

.pastel-prose .ethet-section-header ~ :is(.ethet-card,.ethet-stats-grid,.etch-step-list) {
  margin-inline: 0 !important;
}

main .pastel-prose :is(.ethet-section-header,.etcha-section-header,.ethet-editorial-inner,.etcha-hero) > :is(.ethet-section-kicker,.etcha-label) {
  max-width: none;
  margin-block: 0 clamp(.6rem, 1.2vw, 1rem);
  color: var(--violet);
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
}

main .pastel-prose :is(.ethet-section-header,.etcha-section-header) > h2 {
  max-width: 34ch;
  margin-block: 0;
  font-size: clamp(1.9rem, 3.25vw, 3.375rem);
  line-height: 1.08;
  text-wrap: balance;
}

main .pastel-prose :is(.ethet-section-header,.etcha-section-header,.ethet-editorial-inner) > :is(.ethet-section-lead,.etcha-sub,.ethet-editorial-lead) {
  max-width: 65ch;
  margin-block: clamp(.65rem, 1.4vw, 1.125rem) 0;
  color: var(--muted);
  line-height: 1.65;
}

.pastel-prose .ethet-editorial-inner > .ethet-editorial-title {
  margin-block: 0;
}

/* Interior heroes use the centered title and lead rhythm of the homepage. */
main .pastel-prose :is(.ethet-hero-inner,.etcha-hero) > :is(.ethet-hero-h1,.etcha-hero-title) {
  max-width: min(100%, 82rem);
  margin-block: clamp(.65rem, 1.5vw, 1.4rem) 0;
  font-size: clamp(2.2rem, 4.25vw, 4.85rem);
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
}

main .pastel-prose :is(.ethet-hero-inner,.etcha-hero) > :is(.ethet-hero-h1,.etcha-hero-title) :is(.etch-grad,.etcha-grad) {
  color: var(--violet);
  -webkit-text-fill-color: currentColor;
}

main .pastel-prose :is(.ethet-hero-inner,.etcha-hero) > h1 > br + :is(.etch-grad,.etcha-grad) {
  display: inline-block;
  text-wrap: balance;
}

main .pastel-prose :is(.ethet-hero-inner,.etcha-hero) > :is(.ethet-hero-lead,.etcha-hero-lead) {
  max-width: min(100%, 66ch);
  margin-block: clamp(.9rem, 2.2vw, 1.75rem) 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  text-align: center;
}

.pastel-plugin-page .pastel-prose .ethet-card-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.pastel-plugin-page .pastel-prose .ethet-card-column {
  display: grid;
  min-width: 0;
  margin: 0;
}

.pastel-plugin-page .pastel-prose :is(.ethet-stats-grid, .etch-step-list) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(16px, 2vw, 30px);
}

.pastel-plugin-page .pastel-prose :is(.ethet-card-column > .ethet-card, .ethet-stats-grid > .ethet-stat-card, .etch-step-list > .etch-step-card) {
  width: 100%;
  max-width: none;
  margin-block: 0;
}

.pastel-plugin-page .pastel-prose .ethet-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pastel-plugin-page .pastel-prose .ethet-stats-grid > .ethet-stat-card {
  display: grid;
  align-content: center;
  padding: clamp(12px, 2vw, 28px);
  text-align: center;
}

@media (min-width: 720px) {
  .pastel-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 782px) {
  .pastel-plugin-page .pastel-prose .ethet-card-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pastel-plugin-page .pastel-prose .ethet-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
