/* ── Marquee — From the guestbook ────────────────────────────
   Figma: desktop 1397:12071, mobile 1397:11816.
   ─────────────────────────────────────────────────────────── */

.marquee {
    display: flex;
    align-items: center;
    gap: 64px;
    /* Label and names sit in the content box; the names fade out at its
       right edge (the viewport's mask), the candle wax runs on to the screen's. */
    padding: 16px max(var(--pad-x), calc((100% - var(--site-max-w)) / 2));
    background: var(--color-candle-wax);
    overflow: hidden;
}

.marquee__label {
    flex-shrink: 0;
    color: var(--color-ink-soft);
}

.marquee__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}

.marquee__list {
    display: flex;
    gap: 64px;
    padding-right: 64px;
}

.marquee__item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-style: italic;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--color-beamwood);
}

.marquee__item::before {
    content: "✦";
    font-size: 22px;
    color: var(--color-walnut);
}

.marquee__year {
    color: var(--color-walnut);
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee__track {
        animation: none;
    }
}


/* Tablet and mobile — 1024px and below: smaller. The label stays (the
   Figma drops it, but the names meant nothing without it: QA A1.1). */
@media (max-width: 1024px) {
    .marquee {
        gap: 32px;
        min-height: 58px;
        padding: 14px 0 14px var(--pad-x);
    }

    .marquee__viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .marquee__list {
        gap: 32px;
        padding-right: 32px;
    }

    .marquee__item {
        align-items: center;
        gap: 10px;
        font-size: 14px;
    }

    .marquee__item::before {
        font-size: 16px;
    }
}


/* Phones: the label over the names */
@media (max-width: 767px) {
    .marquee {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-left: 0;
    }

    .marquee__label {
        text-align: center;
    }
}
