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

.marquee {
    display: flex;
    align-items: center;
    gap: 64px;
    /* The label lines up with the content; the names run on to the right edge. */
    padding: 16px 0 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;
}

.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: names only, smaller */
@media (max-width: 1024px) {
    .marquee {
        min-height: 58px;
        padding: 14px 0;
    }

    .marquee__label {
        display: none;
    }

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

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

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