.bergamot-new-year .header {
    background: linear-gradient(180deg, #f7f4ed, var(--paper) 30px);
}

.festive-garland {
    --spacing: max(40px, 1.7vw);
    --fade-depth: clamp(20px, 2vw, 30px);
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    height: calc(32px + var(--fade-depth));
    margin-bottom: calc(-1 * var(--fade-depth));
    overflow: hidden;
    pointer-events: none;
    background: url("seasonal/garland.svg?v=4") left top / calc(var(--spacing) * 6) 32px repeat-x,
                linear-gradient(180deg, #f2ede2 0, #f6f2eaf5 18px,
                    #f7f4edbd 32px, #f7f4ed38 78%, #f7f4ed00 100%);
}

html:has(.festive-garland) { scroll-padding-top: 40px; }

/* On narrow phones WordPress scrolls the admin bar with the page. */
@media (min-width: 601px) {
    .admin-bar .festive-garland { top: var(--wp-admin--admin-bar--height, 32px); }
    html:has(.admin-bar .festive-garland) { scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 32px) + 40px); }
}

.garland-lamp {
    --light: #ff555c;
    --hang: 5px;
    --tilt: -9deg;
    --phase: 0s;
    position: relative;
    flex: 0 0 var(--spacing);
    height: 32px;
    pointer-events: auto;
}

.garland-lamp:nth-child(6n + 2) { --light: #6aff83; --hang: 9px; --phase: -1.2s; --tilt: 6deg; }
.garland-lamp:nth-child(6n + 3) { --light: #53ceff; --hang: 12px; --phase: -2.4s; --tilt: -4deg; }
.garland-lamp:nth-child(6n + 4) { --light: #ca78ff; --hang: 12px; --phase: -.6s; --tilt: 9deg; }
.garland-lamp:nth-child(6n + 5) { --light: #ffca4c; --hang: 9px; --phase: -1.8s; --tilt: -6deg; }
.garland-lamp:nth-child(6n) { --light: #50f2da; --phase: -3s; --tilt: 5deg; }

.garland-lamp i {
    position: absolute;
    top: var(--hang);
    left: calc(50% - 4px);
    width: 8px;
    height: 13px;
    border-top: 3px solid #192a24;
    border-radius: 3px 3px 55% 55%;
    background: #395247;
    transform-origin: center top;
    transform: rotate(var(--tilt));
}

.garland-lamp i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 3px 3px 55% 55%;
    background: radial-gradient(ellipse at 37% 30%, #fffceb, transparent 54%), var(--light);
    box-shadow: 0 0 4px 1px var(--light), 0 2px 10px 2px var(--light);
    animation: garland-glow 3.6s ease-in-out var(--phase) infinite !important;
    transition: opacity .38s ease !important;
}

@keyframes garland-glow {
    0%, 100% { filter: brightness(.32); }
    50% { filter: brightness(1.35); }
}

@media (any-hover: hover) {
    .garland-lamp:hover i::after,
    .garland-lamp:hover + .garland-lamp i::after,
    .garland-lamp:has(+ .garland-lamp:hover) i::after {
        opacity: 0;
    }
}

.bergamot-new-year .hero {
    isolation: isolate;
    background: radial-gradient(ellipse at 79% 40%, #f9f2de, transparent 40%),
                linear-gradient(120deg, #f2f0e7, #e0e8df 62%, #cedbd0);
    box-shadow: inset 0 0 0 1px #788d7a30;
}

.bergamot-new-year .hero-visual {
    background: transparent;
}

.bergamot-new-year::before {
    /* Fade the denser layer out at the edges of the catalogue's content column. */
    mask-image: linear-gradient(to right,
        black max(0px, calc(50% - 756px)),
        transparent max(4%, calc(50% - 700px)),
        transparent min(96%, calc(50% + 700px)),
        black min(100%, calc(50% + 756px)));
}

.bergamot-new-year::before,
.bergamot-new-year::after {
    content: "";
    position: fixed;
    z-index: 6;
    inset: -320px 0 0;
    background: url("seasonal/snow.svg?v=2") repeat;
    opacity: .82;
    pointer-events: none;
    /* The festive switch owns these effects, including with reduced motion. */
    animation: bergamot-snowfall 25s linear infinite !important;
}

.bergamot-new-year::after {
    background-position: 71px 109px;
    opacity: .4;
    animation: bergamot-snowfall 39s linear -12s infinite !important;
}

@media (max-width: 680px) {
    .bergamot-new-year::before { content: none; }
}

.bergamot-new-year .footer {
    background: linear-gradient(110deg, #15352b, #183d31 70%, #224535);
    box-shadow: inset 0 2px #c79c56;
}

@keyframes bergamot-snowfall {
    from { transform: translateY(0); }
    to { transform: translateY(320px); }
}

