:root {
    --bg: #f7f4ee;
    --bg-soft: #efece5;
    --ink: #0d0d0d;
    --ink-soft: #3a3a3a;
    --muted: #6b6b6b;
    --line: #e2dccc;
    --radius: 14px;
    --max: 1320px;
    --shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.display {
    font-family: "Archivo Black", sans-serif;
    font-weight: 900;
    letter-spacing: -.02em;
    text-transform: uppercase;
    line-height: .95;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

.hero {
    padding: 90px 28px 54px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    border-bottom: 1px solid var(--line);
}

.hero .eyebrow {
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0 auto 18px;
    font-size: clamp(42px, 7vw, 98px);
    max-width: 980px;
}

.hero p {
    margin: 0 auto;
    max-width: 680px;
    color: var(--ink-soft);
    font-size: 16px;
}

.topic-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 26px 28px;
    border-bottom: 1px solid var(--line);
    background: #f5f1e8;
}

.topic-pill {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    transition: .22s;
}

.topic-pill:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.articles {
    padding: 62px 0 110px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcf9f3 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: #d4cab7;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .09);
}

.article-card .cover {
    aspect-ratio: 16 / 10;
    background: #d8d2c3;
    overflow: hidden;
}

.article-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .45s ease;
}

.article-card:hover .cover img {
    transform: scale(1.08);
}

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

.article-card .cat {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.article-card h3 {
    margin: 0 0 12px;
    font-family: "Archivo Black", sans-serif;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.26;
    height: 46px;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.article-card p {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    height: 68px;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-card .read {
    display: inline-flex;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    margin-top: auto;
    align-self: flex-start;
    width: fit-content;
    transition: opacity .22s ease;
}

.article-card .read:hover {
    opacity: .7;
}

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

@media (max-width: 620px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 78px 18px 46px;
    }

    .topic-bar {
        padding: 18px;
    }
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.page-item {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}