/* The Holiday lights landing page (/holiday-lights), a winter night on
   campaign.css: the pitch under Halloween's star field (halloween/_stars)
   beside a block of the map with string lights, snow, and a plate of
   cookies, then Halloween's street skyline (halloween/_street) with snow on
   the roofs and lights along the eaves, the film, three points, and the
   apps. The night is the brand's navy fading to near black. Its darker
   shades, which the brand lacks, live here as page-only properties, and the
   skyline's own properties take them; everything else is the brand's tokens
   and logo accents. */
@layer components {
  body.holiday-lights-surface {
    --holiday-lights-dusk: #0b1a3c;
    --holiday-lights-night: #060d1f;
    --holiday-lights-house: #03070f;
    --halloween-house: var(--holiday-lights-house);
    --halloween-night: var(--holiday-lights-night);
    --campaign-heading: var(--color-white);
    --campaign-accent: var(--color-orange);
    --campaign-lede: rgb(244 238 227 / 88%);
    --campaign-copy: rgb(244 238 227 / 82%);
    --campaign-legal: rgb(244 238 227 / 70%);
    --campaign-rule: rgb(244 238 227 / 14%);
    --campaign-glow: rgb(252 121 83 / 35%);
    --campaign-map-shadow: 0 1.5rem 4rem rgb(0 0 0 / 55%), 0 0 0 .0625rem rgb(244 238 227 / 12%);

    color-scheme: dark;
    background:
      radial-gradient(38rem 28rem at 85% 0, rgb(89 157 227 / 24%), transparent),
      radial-gradient(26rem 18rem at 10% 4rem, rgb(252 190 69 / 8%), transparent),
      linear-gradient(var(--color-navy), var(--holiday-lights-dusk) 18rem, var(--holiday-lights-night) 36rem);
    background-color: var(--holiday-lights-night);
    background-repeat: no-repeat;
    color: var(--color-ivory);
  }

  /* The wordmark is navy artwork, so it sits on an ivory badge. */
  .holiday-lights-surface .campaign-brand {
    display: inline-flex;
    padding: .4rem 1.1rem .4rem .45rem;
    background: var(--color-ivory);
    box-shadow: 0 .5rem 2rem rgb(89 157 227 / 28%);
  }

  .holiday-lights-surface .campaign-brand:focus-visible {
    outline: .18rem solid var(--color-orange);
    outline-offset: .2rem;
  }

  .holiday-lights-surface .campaign-film .about-film-video {
    border-color: rgb(244 238 227 / 14%);
    box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 55%);
  }

  /* The skyline's glow is a cold blue here, not Halloween's purple. */
  .holiday-lights-surface .halloween-glow-top {
    stop-color: var(--color-logo-blue);
    stop-opacity: 0;
  }

  .holiday-lights-surface .halloween-glow-bottom {
    stop-color: var(--color-logo-blue);
    stop-opacity: .1;
  }

  .holiday-lights-surface .halloween-curb {
    stroke: rgb(244 238 227 / 18%);
  }

  .holiday-lights-roof-snow {
    fill: var(--color-ivory);
    opacity: .85;
  }

  .holiday-lights-snowbank {
    fill: var(--color-ivory);
    opacity: .3;
  }

  .holiday-lights-wire {
    fill: none;
    stroke: rgb(244 238 227 / 30%);
    stroke-width: 1;
  }

  .holiday-lights-bulb {
    filter: drop-shadow(0 0 .2rem currentColor);
    fill: currentColor;
  }

  .holiday-lights-bulb.is-orange { color: var(--color-orange); }
  .holiday-lights-bulb.is-yellow { color: var(--color-logo-yellow); }
  .holiday-lights-bulb.is-green { color: var(--color-logo-green); }
  .holiday-lights-bulb.is-blue { color: var(--color-logo-blue); }
  .holiday-lights-bulb.is-purple { color: var(--color-logo-purple); }

  /* A few bulbs on the street and the map dim and brighten, each at its own
     moment. */
  .holiday-lights-bulb.is-twinkling,
  .holiday-lights-map-bulb.is-twinkling {
    animation: holiday-lights-twinkle 2.4s ease-in-out var(--twinkle-delay, 0s) infinite;
  }

  @keyframes holiday-lights-twinkle {
    50% { opacity: .35; }
  }

  @media (prefers-reduced-motion: reduce) {
    .holiday-lights-bulb.is-twinkling,
    .holiday-lights-map-bulb.is-twinkling {
      animation: none;
    }
  }

  @media (forced-colors: active) {
    .holiday-lights-surface .campaign-brand {
      border: .0625rem solid CanvasText;
    }
  }
}

/* The public pages' header and footer rules in interest.css sit outside any
   layer, so a layered rule can't override them. These do, with more
   specific selectors, since interest.css loads after this file. */
.holiday-lights-surface .site-header .campaign-brand {
  border-radius: var(--radius-panel);
}

.holiday-lights-surface .campaign-header .header-link {
  color: var(--color-ivory);
}

.holiday-lights-surface .site-footer {
  border-color: rgb(244 238 227 / 14%);
  color: rgb(244 238 227 / 72%);
}

.holiday-lights-surface .site-footer a {
  color: rgb(244 238 227 / 72%);
}

.holiday-lights-surface .site-footer a:hover {
  color: var(--color-ivory);
}
