.section {
  padding-top: 3.5rem;
}

.section h2 {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  font: 600 clamp(1.6rem, 4vw, 2.2rem) / 1.1 var(--pixel);
  text-transform: lowercase;
  margin-bottom: 0.5rem;
}

.section h2 .letter {
  font-size: 1rem;
  padding-bottom: 0.2rem;
}

/* Grass and wildflowers grow along the rest of the line. */
.section h2::after {
  content: "";
  flex: 1;
  height: 15px;
  margin-bottom: 0.25rem;
  background: var(--grass) repeat-x 0 100% / 72px 15px;
  image-rendering: pixelated;
  opacity: 0.9;
}

.section-intro {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* A bed of plants: each entry is something growing, not a box. */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
  gap: 2.25rem 3.5rem;
  margin-top: 1.75rem;
}

.entry {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.plant {
  flex: none;
  width: 27px;
  padding-top: 0.2rem;
}

.plant-svg {
  display: block;
  transform-origin: 50% 100%;
}

.px-s { fill: var(--leaf); }
.px-l { fill: color-mix(in srgb, var(--leaf) 72%, #ffffff); }
.px-p { fill: var(--accent); }
.plant-flower .px-p { fill: #e58aa8; }
.px-c { fill: var(--body); }
.px-r { fill: #c4452d; }
.px-w { fill: color-mix(in srgb, var(--bg) 50%, #ffffff); }
.px-d { fill: var(--hill-2); }

.entry-body {
  min-width: 0;
}

.entry h3 {
  font: 600 1.15rem/1.25 var(--pixel);
}

.entry h3 a {
  color: var(--ink);
  text-decoration: none;
}

/* The whole entry is the link target. */
.entry h3 a::after {
  content: "";
  position: absolute;
  inset: -0.4rem -0.5rem;
}

.entry.linked:hover h3 a,
.entry.linked:focus-within h3 a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.entry.linked:hover .plant-svg,
.entry.linked:focus-within .plant-svg {
  animation: grow 0.5s steps(4);
}

.entry .meta {
  display: block;
  margin-top: 0.15rem;
  font: 0.85rem/1.3 var(--pixel);
  color: var(--accent);
}

.entry p {
  margin-top: 0.4rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

@keyframes grow {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(1.14); }
  100% { transform: scaleY(1); }
}

@media (max-width: 36rem) {
  .section {
    padding-top: 2.75rem;
  }

  .entries {
    gap: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry.linked:hover .plant-svg {
    animation: none;
  }
}
