/* ─────────────────────────────────────────────────────────────────────────────
   Christmas garland (partials/landing-garland.js), under the header of
   /ziemassvetki.
   ───────────────────────────────────────────────────────────────────────────*/

/* ── Garland ───────────────────────────────────────────────────────────────
   One sagging wire repeated every 72px (an inline SVG), one bulb hanging from
   the bottom of every sag. Bulbs blink out of step: four inks, four delays. */
.garland {
  display: flex; height: 46px; overflow: hidden; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='30'%3E%3Cpath d='M0 4 Q36 30 72 4' fill='none' stroke='%232B241B' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0;
}
.garland i {
  flex: 0 0 72px; position: relative;
}
.garland i::before { /* socket */
  content: ""; position: absolute; left: 32px; top: 15px; width: 8px; height: 7px;
  background: #2B241B;
}
.garland i::after { /* bulb */
  --c: var(--amber);
  content: ""; position: absolute; left: 30px; top: 21px; width: 12px; height: 17px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent), 0 4px 14px 2px var(--c);
  animation: garland-blink 2.4s steps(1, end) infinite;
}
.garland i:nth-child(4n+2)::after { --c: var(--orange); animation-delay: -.6s; }
.garland i:nth-child(4n+3)::after { --c: #2F8FBF; animation-delay: -1.2s; animation-duration: 3s; }
.garland i:nth-child(4n)::after { --c: #3E8A55; animation-delay: -1.8s; animation-duration: 2s; }
.garland i:nth-child(odd)::after { transform: rotate(-8deg); }
.garland i:nth-child(even)::after { transform: rotate(7deg); }
@keyframes garland-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }
}

@media (max-width: 560px) { .garland { height: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .garland i::after { animation: none; }
}
