/* ==========================================================================
   Newsletters: latest-issue spotlight + archive in order of release
   ========================================================================== */

/* ---- Issue covers: one of the five BHRS icon colours each, with the house mark ---- */
.cover {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    aspect-ratio: 3 / 4; padding: 16px; overflow: hidden;
    border-radius: 12px; text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.cover::before {
    content: ""; position: absolute; top: 14%; left: 50%; width: 56%; aspect-ratio: 600 / 577;
    transform: translateX(-50%);
    background: url("../img/mark-white.png") center / contain no-repeat;
    opacity: .9;
}
.cover:hover, .cover:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.cover__label { position: relative; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.cover__number { position: relative; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.cover__title { position: relative; margin-top: 8px; font-size: .85rem; letter-spacing: .04em; opacity: .9; }

.cover--mauve { background: var(--mauve); color: #fff; }
.cover--sage  { background: var(--sage); color: var(--ink); }
.cover--pale  { background: var(--pale); color: var(--ink); }
.cover--peach { background: var(--peach); color: var(--ink); }
.cover--slate { background: var(--slate); color: #fff; }

.cover--large { width: min(100%, 300px); padding: 24px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.cover--large .cover__number { font-size: 4.2rem; }
.cover--large .cover__title { font-size: 1rem; }

/* ---- Pills ("First issue", "Latest") ---- */
.pill {
    display: inline-block; padding: 4px 10px 2px; border-radius: 999px;
    font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    background: var(--pale-soft); color: var(--slate);
}
.pill--new { background: var(--peach); color: var(--ink); }

/* ---- Latest issue spotlight ---- */
.latest-issue__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.latest-issue__text { max-width: 56ch; }
.latest-issue__text .section__title { margin-bottom: 16px; }
.latest-issue__date { color: var(--muted); font-size: .7em; }
.latest-issue__text .btn .icon { width: 1em; height: 1em; }
.latest-issue__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 680px) {
    .latest-issue__grid { grid-template-columns: 1fr; }
    .cover--large { justify-self: center; width: min(70%, 260px); }
}

/* ---- Archive: every issue, oldest first, joined by a line like a timeline ---- */
.archive__note { margin: 0; color: var(--muted); }
.archive__list {
    position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px;
    margin: 0; padding: 0; list-style: none;
}
@media (max-width: 720px) { .archive__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
.archive__item { position: relative; display: grid; gap: 10px; align-content: start; }
/* Archive covers are landscape: number bottom-left, house mark top-right */
.archive__item .cover { aspect-ratio: 4 / 3; padding: 14px 16px; }
.archive__item .cover::before { top: 12%; left: auto; right: 10%; width: 34%; transform: none; }
.archive__item .cover__number { font-size: 2.3rem; }
.archive__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: .9rem; }
.archive__meta strong { font-weight: 600; margin-right: 2px; }
.archive__meta span:not(.pill) { color: var(--muted); }
.archive__item.is-latest .cover { outline: 3px solid var(--slate); outline-offset: 3px; }

/* Arrow between covers on wide screens, so the order reads left to right */
@media (min-width: 720px) {
    .archive__item:not(:last-child):not(:nth-child(4n))::after {
        content: "→"; position: absolute; top: 37%; right: -20px; transform: translateY(-50%);
        color: var(--mauve); opacity: .5; font-size: 1rem;
    }
}

/* ---- Subscribe ---- */
.subscribe { padding-top: 56px; }
.subscribe__box {
    display: grid; grid-template-columns: auto 1fr auto; gap: 20px 28px; align-items: center;
    padding: 28px 32px; border-radius: var(--radius);
    background: var(--peach-soft);
}
.subscribe__icon { width: 44px; height: 44px; color: var(--peach-dark); }
.subscribe__title { font-size: 1.5rem; margin-bottom: 4px; }
.subscribe__box p { margin: 0; color: var(--muted); }
@media (max-width: 720px) {
    .subscribe__box { grid-template-columns: 1fr; text-align: left; }
}
