/* =========================================================
   POST ARCHIVES
   Category / Month / Year / Tag
========================================================= */

.tml-archive-page {
    --archive-navy: #101c29;
    --archive-navy-soft: #1b2a3a;
    --archive-gold: #c79a48;
    --archive-gold-dark: #9e7129;
    --archive-gold-light: #e3ba6d;
    --archive-cream: #f7f4ed;
    --archive-paper: #fcfbf8;
    --archive-white: #fff;
    --archive-text: #171d24;
    --archive-muted: #68727c;
    --archive-border: rgba(16,28,41,.11);

    overflow: hidden;
}


.tml-archive-page *,
.tml-archive-page *::before,
.tml-archive-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO
========================================================= */

.tml-archive-hero {
    position: relative;

    min-height: 340px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0f1b28,
            #192b3d 68%,
            #22374c
        );
}


.tml-archive-hero::before {
    content: "";

    position: absolute;

    right: -180px;
    top: -270px;

    width: 620px;
    height: 620px;

    border:
        1px solid
        rgba(228,186,109,.12);

    border-radius: 50%;
}


.tml-archive-hero::after {
    content: "";

    position: absolute;

    right: 11%;
    bottom: -110px;

    width: 290px;
    height: 290px;

    border:
        1px solid
        rgba(255,255,255,.06);

    border-radius: 50%;
}


.tml-archive-hero-overlay {
    position: absolute;

    inset: 0;

    opacity: .18;

    background-image:
        radial-gradient(
            rgba(228,186,109,.25) 1px,
            transparent 1px
        );

    background-size:
        21px 21px;

    mask-image:
        linear-gradient(
            90deg,
            #000 0%,
            rgba(0,0,0,.5) 45%,
            transparent 82%
        );
}


.tml-archive-hero .tml-shell {
    position: relative;

    z-index: 2;

    width: 90%;
}


.tml-archive-hero-content {
    max-width: 920px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.tml-archive-breadcrumb {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 23px;

    color:
        rgba(255,255,255,.5);

    font-size: 9px;
}


.tml-archive-breadcrumb a {
    color: inherit;

    text-decoration: none;
}


.tml-archive-breadcrumb a:hover {
    color:
        var(--archive-gold-light);
}


/* =========================================================
   HERO TYPOGRAPHY
========================================================= */

.tml-archive-eyebrow,
.tml-archive-section-eyebrow {
    display: block;

    color:
        var(--archive-gold-light);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.tml-archive-hero h1 {
    margin:
        13px 0 0;

    color: #fff;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            45px,
            5vw,
            68px
        );

    font-weight: 500;

    line-height: 1.03;

    letter-spacing: -.03em;
}


.tml-archive-hero h1 em {
    color:
        var(--archive-gold-light);

    font-style: italic;
}


.tml-archive-description {
    max-width: 680px;

    margin-top: 19px;

    color:
        rgba(255,255,255,.67);

    font-size: 14px;

    line-height: 1.75;
}


.tml-archive-description p {
    margin: 0;
}


/* =========================================================
   HERO META
========================================================= */

.tml-archive-hero-meta {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-top: 27px;

    color:
        rgba(255,255,255,.55);

    font-size: 10px;
}


.tml-archive-hero-meta strong {
    color:
        var(--archive-gold-light);

    font-family:
        Georgia,
        serif;

    font-size: 20px;

    font-weight: 500;
}


.tml-archive-meta-divider {
    width: 1px;
    height: 22px;

    background:
        rgba(255,255,255,.15);
}


/* =========================================================
   LISTING
========================================================= */

.tml-archive-listing {
    padding:
        94px 0 108px;

    background:
        var(--archive-cream);
}


/* =========================================================
   SECTION HEAD
========================================================= */

.tml-archive-section-head {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 45px;
}


.tml-archive-section-eyebrow {
    color:
        var(--archive-gold-dark);
}


.tml-archive-section-head h2 {
    margin:
        11px 0 0;

    color:
        var(--archive-navy);

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            40px,
            4.2vw,
            58px
        );

    font-weight: 500;

    line-height: 1.05;

    letter-spacing: -.02em;
}


.tml-archive-section-head h2 em {
    color:
        var(--archive-gold-dark);

    font-style: italic;
}


.tml-archive-all-link {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 7px;

    color:
        var(--archive-navy);

    font-size: 10px;

    font-weight: 800;

    text-decoration: none;
}


.tml-archive-all-link span {
    transition:
        transform .2s ease;
}


.tml-archive-all-link:hover span {
    transform:
        translateX(4px);
}


/* =========================================================
   GRID
========================================================= */

.tml-archive-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap:
        27px 22px;

    align-items: stretch;
}


/* =========================================================
   CARD
========================================================= */

.tml-archive-card {
    position: relative;

    min-width: 0;

    height: 100%;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        var(--archive-border);

    border-radius: 19px;

    background: #fff;

    box-shadow:
        0 10px 28px
        rgba(16,28,41,.035);

    transition:
        transform .32s ease,
        box-shadow .32s ease,
        border-color .32s ease;
}


.tml-archive-card::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    opacity: 0;

    background:
        linear-gradient(
            90deg,
            var(--archive-gold-dark),
            var(--archive-gold-light)
        );

    transition:
        opacity .25s ease;
}


.tml-archive-card:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(199,154,72,.3);

    box-shadow:
        0 25px 58px
        rgba(16,28,41,.09);
}


.tml-archive-card:hover::after {
    opacity: 1;
}


/* =========================================================
   IMAGE
========================================================= */

.tml-archive-card-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio:
        16 / 10;

    overflow: hidden;

    background:
        #eae6de;
}


.tml-archive-card-image::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .45;

    background:
        linear-gradient(
            180deg,
            transparent 52%,
            rgba(8,17,26,.26)
        );
}


.tml-archive-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .55s ease;
}


.tml-archive-card:hover
.tml-archive-card-image img {
    transform:
        scale(1.04);
}


/* category badge */

.tml-archive-category {
    position: absolute;

    left: 15px;
    bottom: 14px;

    z-index: 3;

    display: inline-flex;

    align-items: center;

    min-height: 27px;

    padding:
        0 10px;

    border:
        1px solid
        rgba(255,255,255,.2);

    border-radius: 999px;

    color: #fff;

    background:
        rgba(16,28,41,.83);

    backdrop-filter:
        blur(8px);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}


/* top arrow */

.tml-archive-image-arrow {
    position: absolute;

    right: 15px;
    top: 15px;

    z-index: 3;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.24);

    border-radius: 50%;

    color: #fff;

    background:
        rgba(16,28,41,.5);

    backdrop-filter:
        blur(7px);

    opacity: 0;

    transform:
        translateY(-5px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        background .25s ease;
}


.tml-archive-card:hover
.tml-archive-image-arrow {
    opacity: 1;

    transform:
        translateY(0);
}


.tml-archive-image-arrow svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.tml-archive-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #eee8dc,
            #e2d9ca
        );
}


.tml-archive-placeholder span {
    color:
        var(--archive-gold-dark);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}


/* =========================================================
   CARD BODY
========================================================= */

.tml-archive-card-body {
    flex: 1;

    display: flex;

    flex-direction: column;

    padding:
        20px 20px 19px;
}


/* =========================================================
   META
========================================================= */

.tml-archive-card-meta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 9px;

    color:
        var(--archive-muted);

    font-size: 8.5px;
}


.tml-archive-card-meta time,
.tml-archive-card-meta > span {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}


.tml-archive-card-meta svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke:
        var(--archive-gold-dark);

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   TITLE
========================================================= */

.tml-archive-card h3 {
    margin:
        14px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 22px;

    font-weight: 500;

    line-height: 1.2;

    letter-spacing: -.012em;
}


.tml-archive-card h3 a {
    color:
        var(--archive-navy);

    text-decoration: none;

    transition:
        color .2s ease;
}


.tml-archive-card h3 a:hover {
    color:
        var(--archive-gold-dark);
}


/* =========================================================
   AUTHOR
========================================================= */

.tml-archive-card-author {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 15px;

    color:
        var(--archive-muted);

    font-size: 9px;
}


.tml-archive-author-icon {
    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 50%;

    color:
        var(--archive-gold-dark);

    background:
        rgba(199,154,72,.1);
}


.tml-archive-author-icon svg {
    width: 13px;
    height: 13px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.5;
}


.tml-archive-card-author strong {
    color:
        var(--archive-navy);
}


/* =========================================================
   EXCERPT
========================================================= */

.tml-archive-card-excerpt {
    margin:
        15px 0 0;

    color:
        var(--archive-muted);

    font-size: 12.5px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.tml-archive-card-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 20px;
}


.tml-archive-read {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color:
        var(--archive-gold-dark);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .04em;

    text-decoration: none;

    text-transform: uppercase;
}


.tml-archive-read span {
    transition:
        transform .2s ease;
}


.tml-archive-read:hover span {
    transform:
        translateX(4px);
}


.tml-archive-card-mark {
    width: 31px;
    height: 31px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--archive-border);

    border-radius: 50%;

    color:
        rgba(16,28,41,.42);

    background:
        var(--archive-paper);

    transition:
        color .25s ease,
        border-color .25s ease,
        background .25s ease;
}


.tml-archive-card:hover
.tml-archive-card-mark {
    color: #fff;

    border-color:
        var(--archive-navy);

    background:
        var(--archive-navy);
}


.tml-archive-card-mark svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.5;
}


/* =========================================================
   PAGINATION
========================================================= */

.tml-archive-pagination {
    margin-top: 58px;
}


.tml-archive-pagination
.nav-links {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;
}


.tml-archive-pagination
.page-numbers {
    min-width: 40px;
    height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 13px;

    border:
        1px solid
        var(--archive-border);

    border-radius: 8px;

    color:
        var(--archive-navy);

    background: #fff;

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform .2s ease,
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}


.tml-archive-pagination
.page-numbers:hover {
    transform:
        translateY(-2px);

    color: #fff;

    border-color:
        var(--archive-navy);

    background:
        var(--archive-navy);
}


.tml-archive-pagination
.page-numbers.current {
    color:
        var(--archive-navy);

    border-color:
        var(--archive-gold);

    background:
        var(--archive-gold);
}


/* =========================================================
   EMPTY
========================================================= */

.tml-archive-empty {
    max-width: 680px;

    padding: 42px;

    border:
        1px solid
        var(--archive-border);

    border-radius: 18px;

    background: #fff;
}


.tml-archive-empty h2 {
    margin:
        11px 0 0;

    color:
        var(--archive-navy);

    font-family:
        Georgia,
        serif;

    font-size: 36px;

    font-weight: 500;
}


.tml-archive-empty p {
    margin:
        12px 0 0;

    color:
        var(--archive-muted);

    font-size: 13px;

    line-height: 1.7;
}


.tml-archive-empty > a {
    display: inline-flex;

    gap: 8px;

    margin-top: 20px;

    color:
        var(--archive-gold-dark);

    font-size: 10px;

    font-weight: 800;

    text-decoration: none;

    text-transform: uppercase;
}


/* =========================================================
   REVEAL
========================================================= */

.tml-archive-reveal {
    opacity: 0;

    transform:
        translateY(18px);

    transition:
        opacity .65s ease,
        transform .65s
        cubic-bezier(.2,.7,.2,1);
}


.tml-archive-reveal.is-visible {
    opacity: 1;

    transform: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .tml-archive-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .tml-archive-hero {
        min-height: 285px;
    }


    .tml-archive-hero h1 {
        font-size: 39px;
    }


    .tml-archive-listing {
        padding:
            68px 0 76px;
    }


    .tml-archive-section-head {
        align-items: flex-start;

        flex-direction: column;

        gap: 18px;

        margin-bottom: 33px;
    }


    .tml-archive-section-head h2 {
        font-size: 36px;
    }


    .tml-archive-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .tml-archive-card h3 {
        font-size: 22px;
    }


    .tml-archive-pagination {
        margin-top: 44px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tml-archive-reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }


    .tml-archive-card,
    .tml-archive-card-image img,
    .tml-archive-image-arrow {
        transition: none;
    }

}