/* The silhouettes follow the outlines in the farm's original photographs. */
.wild-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .3em clamp(8px, 1.3vw, 20px); }
.wild-perch { display: inline-flex; vertical-align: middle; position: relative; flex: none; }
.wild-visitor { position: relative; margin: 0; line-height: 1; }
.wild-visitor summary {
  display: grid; place-items: center; list-style: none; width: var(--perch-width, 58px); min-width: 44px; min-height: 44px;
  cursor: pointer; border-radius: 6px; position: relative; -webkit-tap-highlight-color: transparent;
}
.wild-visitor summary::-webkit-details-marker { display: none; }
.wild-visitor summary:focus-visible { outline: 2px solid #466951; outline-offset: 2px; }
.wild-body { display: block; width: var(--wild-size, 52px); background-size: 100% 100%; background-repeat: no-repeat; }
.wild-label {
  position: absolute; z-index: 4; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  translate: var(--label-shift, 0px) 0; width: max-content; max-width: 160px; color: #fffdf1; background: #243e30; padding: 7px 12px;
  border-radius: 5px; box-shadow: 0 3px 10px #263f2926; text-align: center;
  font: 550 12px/1.3 var(--sans, system-ui); letter-spacing: normal; text-transform: none;
}
.wild-comma { --wild-size: 64px; --perch-width: 70px; --arrival: wild-flutter; }
.wild-comma .wild-body { aspect-ratio: 17/16; background-image: url("./assets/arrival/comma-butterfly.webp"); transform: rotate(-12deg); }
.wild-ladybird { --wild-size: 32px; --arrival: wild-scurrying; }
.wild-snail { --wild-size: 33px; --perch-width: 74px; --arrival: wild-creeping; }
.wild-snail .wild-body { transform: rotate(62deg); }
.wild-spider { --wild-size: 33px; --arrival: wild-swing; transform-origin: 50% -14px; }
.wild-spider::before { content: ""; position: absolute; height: 25px; width: 1px; bottom: 85%; left: 50%; background: linear-gradient(transparent, #859181); }
.wild-toad { --wild-size: 67px; --perch-width: 77px; --arrival: wild-hop; }
.wild-allium { --wild-size: 72px; --perch-width: 80px; --arrival: wild-sway; transform-origin: 50% 100%; }
.wild-verge {
  position: relative; isolation: isolate; height: clamp(128px, 12vw, 175px);
  background: linear-gradient(180deg, var(--paper) 25%, #eff0e2 80%, #e9eddf); overflow: clip;
}
.farm-footer:has(.wild-verge) { border-top: 0; }
.wild-verge::before {
  content: ""; position: absolute; inset: 0 0 -1px; pointer-events: none;
  background: url("./assets/wildlife/flowering-verge.webp") center 58% / cover no-repeat;
  mask-image: linear-gradient(to bottom, transparent 3%, #0005 31%, #000e 71%, #000e 86%, transparent 100%);
}
.wild-verge .wild-perch { position: absolute; z-index: 1; }
.verge-comma { top: 18%; left: 17%; }
.verge-bee { top: 16%; left: 55%; }
.verge-bee .wild-visitor { --wild-size: 26px; --arrival: verge-bee-flight; }
.verge-bee .wild-body {
  aspect-ratio: 144 / 202; background-image: url("./assets/wildlife/hovering-bee.webp"); transform: rotate(62deg);
  clip-path: polygon(1% 39%,4% 30%,10% 24%,9% 19%,18% 15%,26% 14%,45% 0%,48% 0%,32% 14%,43% 13%,52% 17%,62% 14%,61% 17%,53% 20%,61% 23%,72% 18%,78% 12%,76% 18%,70% 26%,66% 32%,75% 38%,85% 45%,94% 44%,98% 40%,96% 52%,93% 63%,84% 65%,83% 73%,76% 81%,64% 85%,69% 96%,67% 99%,58% 96%,43% 89%,32% 82%,25% 74%,20% 65%,13% 61%,8% 54%);
}
.verge-bee .wild-label { top: 100%; bottom: auto; }
.verge-allium { right: 14%; bottom: -8px; }
.verge-allium .wild-label { bottom: auto; top: 15%; right: 85%; left: auto; transform: none; }
.verge-comma .wild-label { bottom: auto; top: 95%; }
.atlas-locale .wild-perch { margin-left: 4px; }
.atlas-locale .wild-comma { --wild-size: 47px; --perch-width: 54px; }
.atlas-locale .wild-label { bottom: auto; top: 100%; }
.guide-index-head .wild-perch { margin-left: -.2rem; }
.wild-heading .wild-perch .wild-label { left: auto; right: 0; transform: none; }
.about-story .wild-perch { align-self: end; }
@media (max-width: 640px) {
  .wild-verge::before { background-position: 62% 60%; }
  .verge-comma { left: 6%; top: 17%; }
  .verge-comma .wild-label { left: 0; transform: none; }
  .verge-allium { right: 4%; }
  .verge-bee { left: 48%; }
  .wild-heading { gap: .35rem; }
  .wild-heading .wild-snail { --perch-width: 48px; --wild-size: 24px; }
  .wild-heading .wild-toad { --perch-width: 57px; --wild-size: 51px; }
}
@media (prefers-reduced-motion: no-preference) {
  .wild-verge.will-rise:not(.in-view)::before { transform: translateY(32px); opacity: .32; }
  .wild-verge.in-view::before { animation: verge-rise 1.85s cubic-bezier(.2,.65,.25,1) both; }
  @keyframes verge-rise { from { transform: translateY(32px); opacity: .32; } to { transform: none; opacity: 1; } }
  @keyframes verge-bee-flight {
    0% { transform: translate(-48px, 12px) rotate(-10deg); }
    37% { transform: translate(-28px,-7px) rotate(5deg); }
    72% { transform: translate(-8px,4px); }
    100% { transform: none; }
  }
  .wild-visitor.in-view summary { animation: var(--arrival) 2.6s ease-in-out both; }
  .wild-visitor[open] .wild-body { animation: wild-stir .75s ease both; }
  .wild-visitor summary:focus-visible { animation: none; }
  @keyframes wild-flutter { 0% { transform: translate(-23px, 9px) rotate(-16deg); } 35% { transform: translate(-14px,-4px) rotate(9deg) scaleX(.78); } 68% { transform: translate(-5px,4px) rotate(-5deg); } 100% { transform: none; } }
  @keyframes wild-scurrying { 0% { transform: translate(-9px, 3px) rotate(14deg); } 68% { transform: translate(-2px,-1px) rotate(-9deg); } 100% { transform: none; } }
  @keyframes wild-creeping { from { transform: translateX(-9px); } to { transform: translateX(0); } }
  @keyframes wild-swing { 0%, 60% { rotate: -6deg; } 30% { rotate: 7deg; } 100% { rotate: 0deg; } }
  @keyframes wild-hop { 0%, 32% { transform: translateX(12px); } 47% { transform: translate(7px,-6px) rotate(4deg); } 61%, 100% { transform: none; } }
  @keyframes wild-sway { 0%, 100% { rotate: 0deg; } 30% { rotate: 3deg; } 70% { rotate: -2deg; } }
  @keyframes wild-stir { 45% { translate: 0 -3px; rotate: -4deg; } }
}
.wild-ladybird .wild-body {
  aspect-ratio: 150 / 115; background-image: url("./assets/wildlife/ladybird.webp");
  clip-path: polygon(2.0% 32.2%, 4.0% 19.1%, 8.7% 11.3%, 16.7% 6.1%, 26.0% 1.7%, 40.0% 1.7%, 52.0% 5.2%, 61.3% 11.3%, 71.3% 19.1%, 80.7% 30.4%, 84.0% 39.1%, 94.7% 32.2%, 98.7% 36.5%, 90.7% 47.0%, 86.7% 60.0%, 84.0% 63.5%, 78.7% 78.3%, 81.3% 82.6%, 74.0% 92.2%, 64.0% 97.4%, 49.3% 94.8%, 36.7% 87.0%, 26.0% 80.0%, 18.0% 71.3%, 11.3% 60.9%, 5.3% 47.0%);
}
.wild-snail .wild-body {
  aspect-ratio: 49 / 100; background-image: url("./assets/wildlife/snail.webp");
  clip-path: polygon(8.2% 95.0%, 12.2% 85.0%, 18.4% 71.0%, 14.3% 65.0%, 8.2% 57.0%, 8.2% 46.0%, 14.3% 36.0%, 30.6% 29.0%, 38.8% 27.0%, 40.8% 17.0%, 57.1% 2.0%, 65.3% 1.0%, 63.3% 20.0%, 65.3% 27.0%, 79.6% 31.0%, 91.8% 38.0%, 98.0% 49.0%, 93.9% 61.0%, 85.7% 67.0%, 65.3% 74.0%, 55.1% 74.0%, 49.0% 81.0%, 34.7% 93.0%, 22.4% 98.0%);
}
.wild-allium .wild-body {
  aspect-ratio: 216 / 335; background-image: url("./assets/wildlife/allium.webp");
  clip-path: polygon(22.2% 99.7%, 27.8% 84.5%, 34.3% 70.4%, 37.5% 60.0%, 32.4% 57.6%, 30.6% 60.6%, 28.2% 56.1%, 22.7% 58.8%, 22.7% 54.6%, 15.3% 56.7%, 18.1% 52.5%, 11.6% 53.7%, 15.7% 49.3%, 9.7% 50.7%, 14.8% 46.9%, 6.0% 45.4%, 10.2% 43.6%, 1.9% 41.8%, 6.5% 39.7%, 0.0% 37.6%, 6.5% 35.5%, 1.4% 33.1%, 7.4% 33.1%, 2.3% 29.3%, 9.3% 30.1%, 9.7% 25.7%, 12.5% 26.6%, 13.4% 21.5%, 18.1% 22.4%, 16.7% 17.3%, 21.3% 20.0%, 19.4% 13.7%, 24.1% 15.8%, 25.0% 10.4%, 29.2% 13.7%, 28.7% 7.2%, 31.9% 10.7%, 33.3% 6.0%, 37.5% 9.0%, 38.9% 2.1%, 41.7% 6.6%, 45.4% 0.9%, 47.7% 5.1%, 52.3% 1.2%, 52.8% 5.1%, 56.9% 0.6%, 56.9% 5.4%, 62.0% 2.7%, 60.6% 6.9%, 65.3% 3.9%, 64.8% 7.5%, 69.9% 4.8%, 67.6% 9.9%, 73.1% 7.2%, 70.8% 11.3%, 77.8% 8.7%, 74.1% 13.4%, 83.3% 12.2%, 78.7% 16.4%, 87.0% 15.2%, 81.9% 19.7%, 89.8% 18.5%, 86.1% 23.0%, 90.7% 23.0%, 88.4% 26.9%, 94.4% 25.1%, 92.1% 29.3%, 97.7% 29.3%, 92.6% 33.4%, 99.1% 32.5%, 93.5% 36.1%, 99.5% 37.3%, 92.6% 39.7%, 98.1% 41.5%, 90.3% 43.6%, 95.8% 44.8%, 88.4% 47.8%, 92.1% 49.0%, 86.1% 49.9%, 89.4% 52.8%, 81.5% 52.5%, 81.9% 55.5%, 75.5% 54.6%, 75.0% 58.8%, 69.0% 56.4%, 67.1% 63.0%, 63.0% 58.2%, 58.8% 61.8%, 55.6% 58.8%, 51.9% 61.8%, 49.5% 57.6%, 45.4% 61.2%, 43.1% 60.9%, 39.8% 72.8%, 34.3% 86.0%, 28.7% 99.7%);
}
.wild-spider .wild-body {
  aspect-ratio: 258 / 299; background-image: url("./assets/wildlife/spider.webp");
  clip-path: polygon(3.5% 1.0%, 5.8% 0.3%, 5.0% 18.1%, 7.4% 36.5%, 12.0% 55.5%, 19.4% 52.8%, 20.9% 40.5%, 23.6% 29.4%, 28.7% 20.1%, 36.4% 13.0%, 43.0% 10.7%, 51.6% 10.7%, 58.5% 13.4%, 64.7% 20.7%, 71.3% 32.4%, 75.6% 44.8%, 76.7% 54.8%, 81.8% 60.9%, 79.8% 43.8%, 74.8% 32.4%, 68.6% 21.1%, 64.0% 11.4%, 65.9% 10.4%, 72.1% 20.1%, 79.5% 31.4%, 83.7% 42.5%, 86.0% 56.9%, 92.2% 48.8%, 94.6% 38.5%, 96.9% 39.1%, 95.7% 50.5%, 91.5% 59.5%, 83.3% 67.2%, 74.8% 70.6%, 68.6% 70.6%, 72.5% 77.9%, 81.8% 83.3%, 88.0% 85.3%, 94.6% 77.6%, 97.7% 77.6%, 90.3% 88.3%, 82.6% 90.0%, 70.9% 85.6%, 69.4% 88.0%, 76.0% 93.6%, 80.2% 93.0%, 77.9% 98.0%, 73.6% 98.7%, 64.0% 91.6%, 57.8% 80.3%, 51.9% 77.6%, 39.1% 77.9%, 31.4% 82.3%, 20.5% 89.3%, 15.1% 90.3%, 14.0% 87.3%, 26.0% 78.9%, 16.3% 84.3%, 8.1% 84.3%, 7.0% 80.9%, 14.0% 75.3%, 20.5% 68.2%, 21.7% 64.5%, 15.1% 68.9%, 9.3% 66.2%, 6.2% 58.5%, 3.1% 45.8%, 1.6% 30.8%, 2.3% 18.4%);
}
.wild-toad .wild-body {
  aspect-ratio: 297 / 242; background-image: url("./assets/wildlife/toad.webp");
  clip-path: polygon(0.7% 47.9%, 3.7% 38.4%, 3.0% 34.7%, 5.1% 28.1%, 8.4% 26.4%, 11.8% 26.4%, 19.9% 20.7%, 25.6% 19.0%, 29.0% 12.8%, 32.7% 7.4%, 39.7% 4.1%, 47.1% 2.5%, 54.9% 1.7%, 64.0% 2.5%, 73.1% 4.5%, 78.8% 2.9%, 85.2% 1.7%, 91.6% 2.9%, 94.9% 6.6%, 98.7% 12.0%, 99.3% 18.6%, 97.3% 25.2%, 93.3% 28.5%, 87.2% 29.3%, 84.2% 39.7%, 77.8% 46.7%, 72.4% 50.4%, 64.0% 55.4%, 59.9% 62.0%, 53.5% 69.4%, 45.8% 77.7%, 36.4% 83.5%, 32.3% 88.8%, 33.3% 96.7%, 31.3% 98.3%, 26.9% 94.6%, 22.6% 94.6%, 20.9% 92.1%, 28.6% 85.1%, 22.2% 89.3%, 20.5% 87.6%, 24.9% 81.4%, 29.3% 77.3%, 32.3% 71.5%, 35.4% 62.0%, 39.4% 56.6%, 31.6% 60.3%, 23.9% 62.8%, 16.8% 62.4%, 9.4% 60.7%, 4.7% 57.0%, 2.0% 54.5%);
}

@media (max-width: 370px) {
  .collection-head:has(.wild-spider) h1 { font-size: 48px; }
}
