/* Small ink silhouettes in the existing Watercolor streetscape. */
html { scroll-padding-top: 11rem; }
html:has(.crow-neighborhood.is-hidden) { scroll-padding-top: 4rem; }
.crow-neighborhood {
  position: sticky; top: 0; z-index: 4;
  background: var(--paper); border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.crow-stage { position: relative; height: 112px; overflow: hidden; pointer-events: none; }
.crow-scenery { width: 100%; height: 112px; display: block; }
.crow-wire, .crow-clothesline { fill: none; stroke: var(--muted); stroke-width: 1.2; opacity: .65; }
.crow-pole { fill: none; stroke: #b99f83; stroke-width: 5; stroke-linecap: round; }
.crow-building { fill: var(--green); opacity: .38; }
.crow-ledge { fill: none; stroke: #99ad91; stroke-width: 3; }
.crow-wash { fill: var(--blue); opacity: .13; }
.crow-laundry { fill: var(--pink); stroke: var(--paper); stroke-width: 1.5; }
.crow-laundry-blue { fill: var(--blue); }
.crow-static, .crow { color: #35424c; }
.crow { position: absolute; top: 0; left: 0; width: 48px; height: 42px; will-change: auto; }
.crow.is-flying { will-change: transform; }
.crow svg { display: block; width: 48px; height: 42px; overflow: visible; }
.crow-body { fill: currentColor; }
.crow-wing { fill: #46525a; transform-origin: 30px 29px; }
.crow-feet { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.crow-eye { fill: #fcfbf8; }
.crow-beak { fill: #35424c; }
.crow-mouth { fill: none; stroke: #fcfbf8; stroke-width: .7; }
.crow.is-flying .crow-wing { animation: crow-flap .28s ease-in-out infinite alternate; }
.crow.is-flying .crow-feet { opacity: 0; }
.crow.is-caw .crow-head { animation: crow-call .85s ease-in-out; transform-origin: 38px 22px; }
.crow.is-caw .crow-beak-lower { animation: crow-beak .85s ease-in-out; transform-origin: 45px 16px; }
.crow.is-look .crow-head { animation: crow-look 1.1s ease-in-out; transform-origin: 38px 22px; }
.crow.is-ruffle .crow-wing, .crow.is-settle .crow-wing { animation: crow-ruffle .6s ease-in-out; }
.crow.is-ruffle svg { animation: crow-bob .6s ease-in-out; }
.crow-neighborhood.is-paused .crow * { animation-play-state: paused; }
.crow-controls {
  display: flex; justify-content: space-between; align-items: center;
  gap: .25rem 1rem; max-width: 68rem; margin: 0 auto; padding: 0 .75rem .2rem;
  color: var(--muted); font: .875rem/1.4 system-ui, sans-serif;
}
.crow-controls[hidden] { display: none; }
.crow-buttons { display: flex; flex-wrap: wrap; gap: .2rem; }
.crow-buttons button {
  background: transparent; color: var(--link); border: 1px solid transparent;
  padding: .45rem .6rem; min-height: 40px; border-radius: .3rem; cursor: pointer;
  font: inherit;
}
.crow-buttons button:hover { background: var(--panel); }
.crow-buttons button:focus-visible { outline: 3px solid #674c78; outline-offset: 1px; }
.crow-buttons button[aria-pressed="true"] { background: var(--code); border-color: var(--line); }
.crow-buttons button:disabled { color: var(--muted); cursor: default; opacity: .7; }
.crow-neighborhood.is-hidden .crow-stage { display: none; }
.crow-neighborhood.is-hidden .crow-caption { visibility: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
@keyframes crow-flap { from { transform: rotate(-42deg) scaleY(1.4); } to { transform: rotate(42deg) scaleY(.65); } }
@keyframes crow-call { 0%,100% { transform: rotate(0); } 35%,65% { transform: rotate(-15deg); } }
@keyframes crow-beak { 0%,100% { transform: rotate(0); } 35%,65% { transform: rotate(18deg); } }
@keyframes crow-look { 0%,100% { transform: rotate(0); } 40%,70% { transform: rotate(14deg); } }
@keyframes crow-ruffle { 50% { transform: rotate(-15deg) translateY(-2px); } }
@keyframes crow-bob { 50% { transform: translateY(-3px); } }
@media(max-width: 600px) {
  .crow-stage { height: 102px; }
  .crow-caption { display: none; }
  .crow-controls { justify-content: flex-end; padding-inline: .4rem; }
  .crow-buttons button { min-height: 44px; }
}
@media(max-height: 500px) {
  html, html:has(.crow-neighborhood.is-hidden) { scroll-padding-top: 1rem; }
  .crow-neighborhood { position: relative; }
}
@media(prefers-reduced-motion: reduce) {
  .crow * { animation: none !important; }
}
