﻿/* =========================================================
   FinNews — listing page
   ========================================================= */

:root {
    --finnews-hero-bg: #2A101A;
    --finnews-page-bg: #ffffff;
    --finnews-card-bg: #ffffff;
    --finnews-border: rgba(17, 17, 17, .12);
    --accent: #54243D;
}

/* ---------- Hero ----------
   Frame, photo and type scale come from hero.css. */

.finnews-hero {
    background: var(--finnews-hero-bg);
}

.finnews-hero .eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
    display: inline-block;
    animation: fv-pulse 2.6s ease-in-out infinite;
}

.finnews-hero__title {
    max-width: 18ch;
    text-wrap: balance;
}

.finnews-hero__lead {
    max-width: 42ch;
    line-height: 1.45;
}

.finnews-hero__emphasis {
    margin-top: clamp(16px, 2.5vh, 26px);
    max-width: 34ch;
    font-size: clamp(17px, 8.9px + 0.9vw, 26px);
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -.028em;
}

.finnews-hero__emphasis-strong {
    color: #ffffff;
}

.finnews-hero__emphasis-muted {
    color: rgba(255, 255, 255, .5);
}

/* ---------- Articles section ---------- */

.finnews-articles {
    background: var(--finnews-page-bg);
    padding: clamp(64px, 10vh, 130px) clamp(20px, 4.5vw, 72px) clamp(72px, 11vh, 150px);
}

.finnews-articles__inner {
    max-width: var(--fa-shell, 1560px);
    margin: 0 auto;
}

.finnews-articles__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px 32px;
    padding-bottom: clamp(26px, 3.6vh, 44px);
    border-bottom: 1px solid var(--finnews-border);
}

.finnews-articles__eyebrow,
.finnews-articles__count {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .5);
}

.finnews-grid {
    margin-top: clamp(28px, 4vh, 52px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 32px);
    align-items: stretch;
}

/* ---------- Card ---------- */

.finnews-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
    border: 1px solid var(--finnews-border);
    background: var(--finnews-card-bg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(17, 17, 17, .04);
    transition: border-color .45s ease, box-shadow .45s ease;
}

    .finnews-card:hover {
        border-color: rgba(17, 17, 17, .24);
    }

.finnews-card__shot {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f2f2f3;
    flex: none;
}

    .finnews-card__shot img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(1);
        transform: scale(1.001);
        transition: filter .5s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
    }

.finnews-card:hover .finnews-card__shot img {
    filter: grayscale(0);
    transform: scale(1.03);
}

.finnews-card__body {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.8vh, 16px);
    padding: clamp(22px, 2.6vw, 32px);
    flex: 1 1 auto;
}

.finnews-card__link {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.8vh, 16px);
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.finnews-card__index {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .4);
}

.finnews-card__title {
    display: block;
    font-size: clamp(19px, 10.67px + 0.7vw, 24px);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.03em;
    text-wrap: balance;
    color: #17171A;
    transition: color .35s ease;
}

.finnews-card__excerpt {
    display: block;
    font-size: 14.5px;
    line-height: 1.66;
    color: rgba(17, 17, 17, .62);
    text-wrap: pretty;
}

.finnews-card__cta {
    margin-top: auto;
    padding-top: clamp(8px, 1.4vh, 14px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #17171A;
}

.finnews-card__arrow {
    display: inline-block;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.finnews-card:hover .finnews-card__arrow {
    transform: translateX(4px);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .9s cubic-bezier(.16, 1, .3, 1);
}

    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

/* ---------- Responsive ---------- */

@media (min-width: 601px) and (max-width: 1024px) {
    .finnews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Matches the smaller mobile hero scale (hero.css, --copy-bottom). */
@media (max-width: 767px) {
    .finnews-hero__emphasis {
        margin-top: 12px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .finnews-hero__title { max-width: 15ch; }
    .finnews-hero__lead { max-width: 32ch; }
    .finnews-hero__emphasis { max-width: 30ch; }

    .finnews-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@keyframes fv-pulse {
    0% {
        opacity: .35;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }

    100% {
        opacity: .35;
        transform: scale(1);
    }
}
