
/* =========================================================
   WFC Category Archive
   Premium editorial style
   ========================================================= */

.wfc-category-page {
    --wfc-cat-paper: #f7f6f2;
    --wfc-cat-white: #fff;
    --wfc-cat-ink: #282620;
    --wfc-cat-muted: #77736c;
    --wfc-cat-accent: #987247;
    --wfc-cat-line: #e4dfd6;

    background: var(--wfc-cat-paper);
    color: var(--wfc-cat-ink);
    padding-bottom: 100px;
}

.wfc-category-page *,
.wfc-category-page *::before,
.wfc-category-page *::after {
    box-sizing: border-box;
}

.wfc-category-page a {
    color: inherit;
    text-decoration: none;
}

/* Header */

.wfc-category-header {
    padding: 36px 24px 68px;
    border-bottom: 1px solid var(--wfc-cat-line);
    text-align: center;
}

.wfc-category-header-inner {
    max-width: 900px;
    margin: 0 auto;
}

.wfc-category-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 54px;
    color: var(--wfc-cat-muted);
    font-size: 12px;
    letter-spacing: .04em;
}

.wfc-category-breadcrumb a {
    transition: color .25s ease;
}

.wfc-category-breadcrumb a:hover {
    color: var(--wfc-cat-accent);
}

.wfc-category-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: var(--wfc-cat-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.wfc-category-title {
    margin: 0;
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.wfc-category-description {
    max-width: 620px;
    margin: 22px auto 0;
    color: var(--wfc-cat-muted);
    font-size: 15px;
    line-height: 1.9;
}

.wfc-category-description p {
    margin: 0;
}

.wfc-category-heading-line {
    display: block;
    width: 48px;
    height: 2px;
    margin: 28px auto 0;
    background: var(--wfc-cat-accent);
}

/* Main container */

.wfc-category-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* Featured article */

.wfc-category-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: center;
    gap: clamp(32px, 5vw, 76px);
    margin: 72px 0 96px;
}

.wfc-category-featured-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1.35 / 1;
    background: #e9e5dd;
}

.wfc-category-featured-image img,
.wfc-category-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .65, .3, 1);
}

.wfc-category-featured-image:hover img,
.wfc-category-card-image:hover img {
    transform: scale(1.045);
}

.wfc-category-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 180px;
    place-items: center;
    background: #e9e5dd;
    color: var(--wfc-cat-muted);
    font-family: Georgia, serif;
    font-size: 20px;
}

.wfc-category-featured-content {
    padding: 10px 0;
}

.wfc-category-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--wfc-cat-muted);
    font-size: 11px;
    letter-spacing: .04em;
}

.wfc-category-meta-divider {
    width: 24px;
    height: 1px;
    background: var(--wfc-cat-accent);
}

.wfc-category-featured-title {
    margin: 0 0 30px;
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.wfc-category-featured-title a,
.wfc-category-card-title a {
    transition: color .25s ease;
}

.wfc-category-featured-title a:hover,
.wfc-category-card-title a:hover {
    color: var(--wfc-cat-accent);
}

.wfc-category-read-more {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--wfc-cat-accent);
    color: var(--wfc-cat-accent) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wfc-category-read-more span {
    transition: transform .25s ease;
}

.wfc-category-read-more:hover span {
    transform: translate(3px, -3px);
}

/* Article section */

.wfc-category-section-heading {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 34px;
}

.wfc-category-section-heading h2 {
    flex-shrink: 0;
    margin: 0;
    font-family: "Noto Serif", Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.4;
}

.wfc-category-section-heading > span {
    width: 100%;
    height: 1px;
    background: var(--wfc-cat-line);
}

.wfc-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 46px 28px;
}

.wfc-category-card {
    min-width: 0;
}

.wfc-category-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.32 / 1;
    background: #e9e5dd;
}

.wfc-category-card-content {
    padding: 22px 0 0;
}

.wfc-category-card-date {
    display: block;
    margin-bottom: 12px;
    color: var(--wfc-cat-muted);
    font-size: 11px;
    letter-spacing: .06em;
}

.wfc-category-card-title {
    margin: 0 0 20px;
    font-family: "Noto Serif", Georgia, serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.wfc-category-card-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--wfc-cat-accent) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.wfc-category-card-link span {
    transition: transform .25s ease;
}

.wfc-category-card-link:hover span {
    transform: translateX(4px);
}

/* Pagination */

.wfc-category-pagination {
    margin-top: 76px;
}

.wfc-category-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wfc-category-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--wfc-cat-line);
    color: var(--wfc-cat-ink);
    font-size: 12px;
    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.wfc-category-pagination .page-numbers.current,
.wfc-category-pagination .page-numbers:hover {
    border-color: var(--wfc-cat-ink);
    background: var(--wfc-cat-ink);
    color: #fff;
}

.wfc-category-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--wfc-cat-muted);
}

/* Empty category */

.wfc-category-empty {
    padding: 90px 20px;
    text-align: center;
}

.wfc-category-empty h2 {
    font-family: "Noto Serif", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
}

.wfc-category-empty p {
    margin-bottom: 28px;
    color: var(--wfc-cat-muted);
}

.wfc-category-empty > a {
    display: inline-block;
    padding: 14px 24px;
    background: var(--wfc-cat-ink);
    color: #fff;
}

/* Tablet */

@media (max-width: 900px) {
    .wfc-category-featured {
        grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
        gap: 30px;
        margin: 54px 0 76px;
    }

    .wfc-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 24px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .wfc-category-page {
        padding-bottom: 64px;
    }

    .wfc-category-header {
        padding: 26px 20px 44px;
    }

    .wfc-category-breadcrumb {
        margin-bottom: 38px;
        font-size: 11px;
    }

    .wfc-category-title {
        font-size: 36px;
    }

    .wfc-category-description {
        font-size: 14px;
    }

    .wfc-category-container {
        width: calc(100% - 36px);
    }

    .wfc-category-featured {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 36px 0 58px;
    }

    .wfc-category-featured-image {
        aspect-ratio: 1.2 / 1;
    }

    .wfc-category-featured-content {
        padding: 0;
    }

    .wfc-category-post-meta {
        margin-bottom: 14px;
    }

    .wfc-category-featured-title {
        margin-bottom: 22px;
        font-size: 29px;
    }

    .wfc-category-section-heading {
        gap: 16px;
        margin-bottom: 26px;
    }

    .wfc-category-section-heading h2 {
        font-size: 24px;
    }

    .wfc-category-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .wfc-category-card-image {
        aspect-ratio: 1.4 / 1;
    }

    .wfc-category-card-content {
        padding-top: 18px;
    }

    .wfc-category-card-title {
        margin-bottom: 14px;
        font-size: 20px;
    }

    .wfc-category-pagination {
        margin-top: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wfc-category-page *,
    .wfc-category-page *::before,
    .wfc-category-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
