@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;600;700;800&display=swap');

.articles-page-shell {
    --articles-bg: #faf8ff;
    --articles-paper: #ffffff;
    --articles-soft: #f2f3ff;
    --articles-text: #131b2e;
    --articles-muted: #5f6470;
    --articles-accent: #800020;
    --articles-accent-soft: #ffdada;
    --articles-outline: rgba(140, 112, 113, 0.16);
    --articles-shadow: 0 28px 60px rgba(19, 27, 46, 0.06);
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 0;
    color: var(--articles-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.articles-page-shell *,
.articles-page-shell *::before,
.articles-page-shell *::after {
    box-sizing: border-box;
}

.articles-page-shell [data-reveal] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22, 1, .36, 1), filter 0.8s ease;
    will-change: opacity, transform;
}

.articles-page-shell [data-reveal="up"] {
    transform: translate3d(0, 32px, 0);
}

.articles-page-shell [data-reveal="scale"] {
    transform: scale(0.96);
    filter: blur(6px);
}

.articles-page-shell [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.articles-page-shell [data-reveal-delay="1"] {
    transition-delay: 0.08s;
}

.articles-page-shell [data-reveal-delay="2"] {
    transition-delay: 0.16s;
}

.articles-page-shell [data-reveal-delay="3"] {
    transition-delay: 0.24s;
}

.articles-hero {
    padding: 26px 0 56px;
}

.articles-hero__inner {
    max-width: 840px;
}

.articles-eyebrow,
.articles-active-filter,
.articles-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--articles-accent-soft);
    color: var(--articles-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.articles-hero__title {
    margin: 20px 0 18px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(3.1rem, 6vw, 5.6rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.articles-hero__title span {
    color: var(--articles-accent);
}

.articles-hero__lede {
    margin: 0;
    max-width: 64ch;
    color: var(--articles-muted);
    font-size: clamp(1.02rem, 1.7vw, 1.18rem);
    line-height: 1.9;
}

.articles-hero__meta,
.articles-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.articles-meta-chip {
    min-width: 220px;
    padding: 16px 18px;
    border: 1px solid var(--articles-outline);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.articles-meta-chip strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.articles-meta-chip span {
    color: var(--articles-muted);
    font-size: 0.87rem;
}

.articles-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
    margin-bottom: 68px;
}

.articles-featured__media {
    display: block;
    overflow: hidden;
    border-radius: 26px;
    background: var(--articles-soft);
    box-shadow: var(--articles-shadow);
    text-decoration: none;
}

.articles-featured__media img,
.articles-featured__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.articles-featured__media img {
    object-fit: cover;
    transition: transform 0.7s ease;
}

.articles-featured__media:hover img {
    transform: scale(1.04);
}

.articles-featured__placeholder,
.article-card__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f2f3ff 100%);
}

.articles-featured__placeholder span,
.article-card__placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--articles-accent);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: 0 20px 40px rgba(19, 27, 46, 0.08);
}

.articles-featured__topline,
.articles-featured__footer,
.article-card__topline,
.article-card__footer,
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.articles-featured__reading,
.article-card__date,
.article-card__reading,
.pagination-summary {
    color: var(--articles-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.articles-featured__title,
.article-card__title {
    margin: 18px 0 14px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.articles-featured__title {
    font-size: clamp(2rem, 3.2vw, 3.45rem);
    line-height: 1.08;
}

.article-card__title {
    font-size: 1.35rem;
    line-height: 1.2;
}

.articles-featured__title a,
.article-card__title a,
.article-card__link,
.articles-inline-link,
.filter-btn,
.pagination-btn {
    text-decoration: none;
}

.articles-featured__title a,
.article-card__title a {
    color: inherit;
}

.articles-featured__title a:hover,
.article-card__title a:hover,
.article-card__link:hover,
.articles-inline-link:hover {
    color: var(--articles-accent);
}

.articles-featured__excerpt,
.article-card__excerpt,
.empty-state-desc {
    color: var(--articles-muted);
    line-height: 1.8;
}

.articles-featured__info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--articles-muted);
    font-size: 0.87rem;
}

.articles-inline-link,
.article-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--articles-text);
    font-weight: 700;
}

.articles-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 42px;
    padding-bottom: 22px;
    overflow-x: auto;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--articles-outline);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--articles-muted);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.filter-btn:hover {
    border-color: rgba(128, 0, 32, 0.3);
    color: var(--articles-accent);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--articles-accent);
    border-color: var(--articles-accent);
    color: #ffffff !important;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
    margin-bottom: 48px;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgba(140, 112, 113, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(128, 0, 32, 0.2);
    box-shadow: var(--articles-shadow);
}

.article-card__media {
    display: block;
    background: var(--articles-soft);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-card__media img {
    transform: scale(1.04);
}

.article-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 24px 22px;
}

.article-card__category {
    color: var(--articles-accent);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-card__excerpt {
    margin: 0 0 22px;
    font-size: 0.95rem;
}

.article-card__footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(140, 112, 113, 0.12);
}

.article-card__reading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-card__reading i {
    color: var(--articles-accent);
}

.article-card--newsletter {
    justify-content: center;
    padding: 32px;
    background: #fff7f8;
    border-color: rgba(128, 0, 32, 0.16);
}

.article-card--newsletter__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(128, 0, 32, 0.1);
    color: var(--articles-accent);
    font-size: 1.35rem;
}

.article-card--newsletter h3 {
    margin: 18px 0 10px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.article-card--newsletter p {
    margin: 0 0 18px;
    color: var(--articles-muted);
    line-height: 1.8;
}

.article-newsletter-form {
    display: grid;
    gap: 10px;
}

.article-newsletter-form input,
.article-newsletter-form button {
    min-height: 48px;
    border-radius: 14px;
    font: inherit;
}

.article-newsletter-form input {
    width: 100%;
    padding: 0 16px;
    border: 1px solid rgba(140, 112, 113, 0.18);
    background: #ffffff;
    color: var(--articles-text);
}

.article-newsletter-form input:focus {
    outline: none;
    border-color: rgba(128, 0, 32, 0.32);
    box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.08);
}

.article-newsletter-form button {
    border: 0;
    background: var(--articles-accent);
    color: #ffffff !important;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.24s ease, transform 0.24s ease;
}

.article-newsletter-form button:hover {
    background: #5f0017;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.article-newsletter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--articles-accent);
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.24s ease, transform 0.24s ease;
}

.article-newsletter-link:hover {
    background: #5f0017;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.pagination {
    justify-content: center;
    margin: 0 0 56px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--articles-outline);
    border-radius: 999px;
    background: #ffffff;
    color: var(--articles-text);
    transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.pagination-btn:hover {
    border-color: rgba(128, 0, 32, 0.28);
    color: var(--articles-accent);
}

.pagination-btn.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.empty-state {
    display: grid;
    place-items: center;
    padding: 64px 24px 82px;
    text-align: center;
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: var(--articles-soft);
    color: var(--articles-accent);
    font-size: 2rem;
}

.empty-state-title {
    margin: 20px 0 8px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .articles-featured,
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-card--newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .articles-page-shell {
        width: min(100% - 28px, 1320px);
        padding-top: 20px;
    }

    .articles-featured {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 54px;
    }

    .articles-hero__title {
        font-size: clamp(2.3rem, 9vw, 3.7rem);
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-card--newsletter {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .articles-featured__topline,
    .articles-featured__footer,
    .article-card__topline,
    .article-card__footer,
    .pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination {
        flex-direction: row;
        justify-content: center;
    }

    .article-card__body,
    .article-card--newsletter {
        padding: 22px 20px;
    }
}
