/* Summer closing announcement bar — sits above the fixed header. */

:root {
    --announcement-h: 40px;
    --announcement-speed: 75s;
}

@media (max-width: 768px) {
    :root {
        --announcement-h: 34px;
        --announcement-speed: 50s;
    }
}

@media (max-width: 480px) {
    :root {
        --announcement-h: 32px;
        --announcement-speed: 40s;
    }
}

/* Push the whole page down so nothing hides behind the bar. */
body {
    padding-top: var(--announcement-h);
}

.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--announcement-h);
    background: #000;
    color: #fff;
    overflow: hidden;
}

.announcement-bar__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.announcement-bar__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.announcement-bar__track {
    display: flex;
    width: max-content;
    animation: announcement-scroll var(--announcement-speed) linear infinite;
    will-change: transform;
}

.announcement-bar:hover .announcement-bar__track {
    animation-play-state: paused;
}

.announcement-bar__group {
    display: flex;
    flex: 0 0 auto;
}

.announcement-bar__item {
    flex: 0 0 auto;
    padding: 0 1.75rem;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: var(--announcement-h);
}

.announcement-bar__item::after {
    content: "—";
    margin-left: 1.75rem;
    opacity: 0.45;
}

@media (max-width: 480px) {
    .announcement-bar__item {
        font-size: 10px;
        letter-spacing: 0.1em;
        padding: 0 1.25rem;
    }

    .announcement-bar__item::after {
        margin-left: 1.25rem;
    }
}

@keyframes announcement-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Motion-sensitive users get a single centered, static message. */
@media (prefers-reduced-motion: reduce) {
    .announcement-bar__track {
        animation: none;
        width: 100%;
        justify-content: center;
    }

    .announcement-bar__group:not(:first-child),
    .announcement-bar__item:not(:first-child) {
        display: none;
    }

    .announcement-bar__item::after {
        content: none;
    }
}
