/* Holiday homepage only (index.html alone loads this file, with holiday-repair.js). On a fresh visit the strand in holiday.css
   starts unlit, flickers on, dips once and recovers; two or three bulbs then go out, stay out for a beat, and the bird relights
   them. Every unlit look below is a cover drawn over the lit strand: the same swag tile with clear, colourless glass and no
   glow, on the page's own background colour, laid out exactly as the strand is so the wire lines up. Each cover is invisible
   except while its finite animation runs, so anything that stops an animation (reduced motion, a missing script, a failure
   halfway) leaves the lit strand. */
.holiday-lights { --unlit: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='32' viewBox='0 0 240 32'><path d='M-240 2.5Q-120 21.5 0 2.5Q120 21.5 240 2.5Q360 21.5 480 2.5' fill='none' stroke='%2355534c' stroke-width='1.2' stroke-linejoin='round'/><g transform='translate(20 5.4) rotate(7.52)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g><g transform='translate(60 9.62) rotate(4.53)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g><g transform='translate(100 11.74) rotate(1.51)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g><g transform='translate(140 11.74) rotate(-1.51)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g><g transform='translate(180 9.62) rotate(-4.53)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g><g transform='translate(220 5.4) rotate(-7.52)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g></svg>"); }
@media (prefers-color-scheme: light) { :root:not([data-site-look="dark"]) .holiday-lights { --unlit: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='32' viewBox='0 0 240 32'><path d='M-240 2.5Q-120 21.5 0 2.5Q120 21.5 240 2.5Q360 21.5 480 2.5' fill='none' stroke='%238f897b' stroke-width='1.2' stroke-linejoin='round'/><g transform='translate(20 5.4) rotate(7.52)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(60 9.62) rotate(4.53)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(100 11.74) rotate(1.51)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(140 11.74) rotate(-1.51)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(180 9.62) rotate(-4.53)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(220 5.4) rotate(-7.52)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g></svg>"); } }
:root[data-site-look="light"] .holiday-lights { --unlit: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='32' viewBox='0 0 240 32'><path d='M-240 2.5Q-120 21.5 0 2.5Q120 21.5 240 2.5Q360 21.5 480 2.5' fill='none' stroke='%238f897b' stroke-width='1.2' stroke-linejoin='round'/><g transform='translate(20 5.4) rotate(7.52)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(60 9.62) rotate(4.53)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(100 11.74) rotate(1.51)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(140 11.74) rotate(-1.51)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(180 9.62) rotate(-4.53)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(220 5.4) rotate(-7.52)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g></svg>"); }
/* Up to 700 px the strand's bulbs are drawn a quarter larger (holiday.css); so are these, in the same way and the same order. */
@media (max-width: 700px) { .holiday-lights { --unlit: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'><path d='M-240 2.5Q-120 21.5 0 2.5Q120 21.5 240 2.5Q360 21.5 480 2.5' fill='none' stroke='%2355534c' stroke-width='1.2' stroke-linejoin='round'/><g transform='translate(20 5.4) rotate(7.52) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g><g transform='translate(60 9.62) rotate(4.53) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g><g transform='translate(100 11.74) rotate(1.51) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g><g transform='translate(140 11.74) rotate(-1.51) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g><g transform='translate(180 9.62) rotate(-4.53) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g><g transform='translate(220 5.4) rotate(-7.52) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%236b685f'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23171614' stroke='%235f5c54' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.07'/></g></svg>"); } }
@media (max-width: 700px) and (prefers-color-scheme: light) { :root:not([data-site-look="dark"]) .holiday-lights { --unlit: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'><path d='M-240 2.5Q-120 21.5 0 2.5Q120 21.5 240 2.5Q360 21.5 480 2.5' fill='none' stroke='%238f897b' stroke-width='1.2' stroke-linejoin='round'/><g transform='translate(20 5.4) rotate(7.52) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(60 9.62) rotate(4.53) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(100 11.74) rotate(1.51) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(140 11.74) rotate(-1.51) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(180 9.62) rotate(-4.53) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(220 5.4) rotate(-7.52) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g></svg>"); } }
@media (max-width: 700px) { :root[data-site-look="light"] .holiday-lights { --unlit: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'><path d='M-240 2.5Q-120 21.5 0 2.5Q120 21.5 240 2.5Q360 21.5 480 2.5' fill='none' stroke='%238f897b' stroke-width='1.2' stroke-linejoin='round'/><g transform='translate(20 5.4) rotate(7.52) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(60 9.62) rotate(4.53) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(100 11.74) rotate(1.51) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(140 11.74) rotate(-1.51) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(180 9.62) rotate(-4.53) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g><g transform='translate(220 5.4) rotate(-7.52) scale(1.625)'><rect x='-2' y='-.4' width='4' height='3.7' rx='.9' fill='%2377736a'/><ellipse cy='8.2' rx='3.2' ry='5' fill='%23dad6cb' stroke='%23857f72' stroke-width='.7'/><ellipse cx='-1' cy='6.6' rx='.85' ry='1.8' fill='%23fff' opacity='.5'/></g></svg>"); } }

.holiday-lights b { position: absolute; inset: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* ---- Coming on: the whole strand, once. holiday-repair.js sets .holiday-waking before the first paint. Unlit, on with one
     stutter, steadily on for most of a second, one dip, on again: about 2.25 s in all. */
  :root.holiday-waking:not(.reduce-motion) .holiday-lights::after { content: ""; position: absolute; inset: 0; opacity: 0;
    background: var(--unlit) 0 0 / calc(100% / var(--n)) auto repeat-x, var(--bg);
    animation: holiday-wake 2100ms ease-in-out 150ms both; }
  /* ---- One bulb out: a disc of the cover around that bulb (--x, --y, --r, set by holiday-repair.js). After --wait the bulb
     flares and dies. It is relit when the bird touches it (.is-lit: it catches, with a bloom in the bulb's own colour) or
     quietly if the repair is cut short (.is-calm), and in any case lights again by itself after 14 s. The three ways of
     lighting are fades under three names: a rule that reused the name of the waiting 14 s animation would only retime it, and
     it would end at once. */
  :root:not(.reduce-motion) .holiday-lights b::before { content: ""; position: absolute; inset: 0; opacity: 0;
    background: var(--unlit) 0 0 / calc(100% / var(--n)) auto repeat-x, var(--bg);
    clip-path: circle(var(--r) at var(--x) var(--y));
    animation: holiday-out 420ms ease-in-out var(--wait, 0ms) both, holiday-on 600ms ease-in-out 14s forwards; }
  :root:not(.reduce-motion) .holiday-lights b::after { content: ""; position: absolute; opacity: 0; border-radius: 50%;
    left: calc(var(--x) - var(--r) * 2.3); top: calc(var(--y) - var(--r) * 2.3); width: calc(var(--r) * 4.6); height: calc(var(--r) * 4.6);
    background: radial-gradient(closest-side, var(--glow), transparent);
    animation: holiday-pop 420ms ease-out var(--wait, 0ms) both; }
  :root:not(.reduce-motion) .holiday-lights b.is-lit::before { animation: holiday-lit 420ms ease-out forwards; }
  :root:not(.reduce-motion) .holiday-lights b.is-calm::before { animation: holiday-calm 700ms ease-in-out forwards; }
  :root:not(.reduce-motion) .holiday-lights b.is-lit::after { animation: holiday-bloom 900ms ease-out forwards; }
  :root:not(.reduce-motion) .holiday-lights b.is-calm::after { animation: none; }
}
@keyframes holiday-wake { 0%, 10% { opacity: 1; } 17% { opacity: .12; } 23% { opacity: .78; } 31%, 66% { opacity: 0; } 73% { opacity: .82; } 78% { opacity: .72; } 90%, 100% { opacity: 0; } }
@keyframes holiday-out { 0%, 30% { opacity: 0; } 50% { opacity: 1; } 68% { opacity: .5; } 100% { opacity: 1; } }
@keyframes holiday-pop { 0% { opacity: 0; transform: scale(.5); } 30% { opacity: .8; transform: scale(.9); } 55%, 100% { opacity: 0; transform: scale(1); } }
@keyframes holiday-on { from { opacity: 1; } to { opacity: 0; } }
@keyframes holiday-lit { 0% { opacity: 1; } 35% { opacity: 0; } 55% { opacity: .4; } 100% { opacity: 0; } }
@keyframes holiday-calm { from { opacity: 1; } to { opacity: 0; } }
@keyframes holiday-bloom { 0% { opacity: 0; transform: scale(.5); } 20% { opacity: .9; } 100% { opacity: 0; transform: scale(1); } }
