/* =====================================================================
   Worth traveling for — the Sacred Time featured destination card.

   Scoped under .er-wtf. Canonical --er-* tokens only. Sized in px,
   because the root font-size on this site is 10px and rem does not
   mean 16px here.

   One card, photography-led, on a paper ground. Deliberately quieter
   than the discovery grid it sits under: it is an editorial aside, not
   a fifth way to browse.
   ===================================================================== */

.er-wtf {
    background-color: var(--er-paper);
    color: var(--er-ink);
    font-family: var(--er-sans);
    padding: 8px 0 56px;
}

.er-wtf__inner {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1240px;
    padding: 0 20px;
    width: 100%;
}

.er-wtf__head {
    border-top: 1px solid var(--er-rule);
    padding-top: 24px;
}

.er-wtf__eyebrow {
    align-items: center;
    color: var(--er-ink-3);
    display: flex;
    font-size: 12px;
    font-weight: 500;
    gap: 9px;
    letter-spacing: 0.12em;
    margin: 0 0 22px;
    text-transform: uppercase;
}

.er-wtf__dot {
    background-color: var(--er-clay);
    border-radius: 50%;
    display: inline-block;
    flex: none;
    height: 5px;
    width: 5px;
}

/* ------------------------------------------------------------ the card */

/* The whole card is one link, so there is no card-as-div trap and no
   nested interactive element to tab through twice. */
.er-wtf__card {
    background-color: var(--er-ivory);
    border: 1px solid var(--er-rule-soft);
    color: inherit;
    display: block;
    text-decoration: none;
    transition: border-color 160ms ease;
}

.er-wtf__card:hover,
.er-wtf__card:focus-visible {
    border-color: var(--er-rule-hair);
}

.er-wtf__card:focus-visible {
    outline: 2px solid var(--er-clay-deep);
    outline-offset: 3px;
}

.er-wtf__media {
    aspect-ratio: 16 / 10;
    background-color: var(--er-limestone);
    overflow: hidden;
}

.er-wtf__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.er-wtf__body {
    padding: 26px 22px 28px;
}

/* --------------------------------------------------- date as metadata */

.er-wtf__when {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin: 0 0 12px;
}

.er-wtf__date {
    color: var(--er-ink);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.er-wtf__countdown {
    color: var(--er-ink-4);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.er-wtf__place {
    color: var(--er-ink);
    font-family: var(--er-serif);
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
}

.er-wtf__location {
    color: var(--er-ink-4);
    font-size: 13px;
    letter-spacing: 0.06em;
    margin: 8px 0 0;
    text-transform: uppercase;
}

.er-wtf__occasion {
    color: var(--er-clay-deep);
    font-family: var(--er-serif);
    font-size: 18px;
    font-style: italic;
    margin: 16px 0 0;
}

.er-wtf__why {
    color: var(--er-ink-2);
    font-size: 16px;
    line-height: 1.66;
    margin: 12px 0 0;
    max-width: 62ch;
}

.er-wtf__changes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

/* The only pills in either Sacred Time module, and they earn it: three
   short practical facts scan faster as chips than as a sentence. Ink on
   paper, hairline bordered, no colour coding. */
.er-wtf__changes li {
    border: 1px solid var(--er-rule);
    color: var(--er-ink-3);
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 5px 11px;
    white-space: nowrap;
}

.er-wtf__cta {
    color: var(--er-clay-deep);
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    margin-top: 24px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.er-wtf__arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 160ms ease;
}

.er-wtf__card:hover .er-wtf__arrow {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .er-wtf__card,
    .er-wtf__arrow {
        transition: none;
    }

    .er-wtf__card:hover .er-wtf__arrow {
        transform: none;
    }
}

/* --------------------------------------------------------- breakpoints */

@media (min-width: 768px) {
    .er-wtf {
        padding: 8px 0 72px;
    }

    .er-wtf__inner {
        padding: 0 32px;
    }

    .er-wtf__body {
        padding: 32px 34px 36px;
    }
}

@media (min-width: 1024px) {
    .er-wtf__card {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }

    .er-wtf__media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 380px;
    }

    .er-wtf__body {
        align-self: center;
        padding: 40px 44px;
    }
}
