/* The Holiday cards landing page (/holiday-cards), a winter take on the
   light theme in campaign.css: the pitch under a few drifting snowflakes,
   beside a block of the map with snow on the park and roofs, string lights
   along the street, and a card on each saved home, then how the card list
   works, the film, three points, and the apps. Every color is a brand token
   or logo accent. */
@layer components {
  body.holiday-cards-surface {
    --campaign-rule: rgb(89 157 227 / 22%);
    --campaign-map-shadow: 0 1.5rem 4rem rgb(46 112 184 / 16%), 0 0 0 .0625rem rgb(16 38 83 / 8%);

    background:
      radial-gradient(40rem 28rem at 88% 0, rgb(89 157 227 / 20%), transparent),
      radial-gradient(28rem 20rem at 4% 2rem, rgb(163 139 218 / 12%), transparent),
      radial-gradient(30rem 22rem at 70% 34rem, rgb(89 157 227 / 10%), transparent),
      linear-gradient(var(--color-white), var(--color-cream) 40rem);
    background-color: var(--color-cream);
    background-repeat: no-repeat;
  }

  /* Behind the pitch and the map, over the first screen. */
  .holiday-cards-snow {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    block-size: min(44rem, 100svh);
    overflow: hidden;
    pointer-events: none;
  }

  .holiday-cards-flake {
    position: absolute;
    inset-block-start: -1rem;
    inset-inline-start: var(--flake-x);
    inline-size: var(--flake-size, .4rem);
    block-size: var(--flake-size, .4rem);
    border-radius: 50%;
    background: var(--color-logo-blue);
    opacity: 0;
    animation: holiday-cards-fall var(--flake-length, 20s) linear var(--flake-delay, 0s) infinite;
  }

  /* A slow fall with a gentle sway, fading in at the top and out near the
     bottom of the first screen. */
  @keyframes holiday-cards-fall {
    0% { opacity: 0; transform: translate(0, 0); }
    10% { opacity: .35; }
    40% { transform: translate(1rem, 17rem); }
    70% { transform: translate(-.75rem, 30rem); }
    85% { opacity: .3; }
    100% { opacity: 0; transform: translate(.25rem, 44rem); }
  }

  @media (prefers-reduced-motion: reduce) {
    .holiday-cards-snow {
      display: none;
    }
  }
}
