/*
Theme Name: RetailVie Magazine
Theme URI: https://retailvie.com
Description: RetailVie custom child theme for The Magazine.
Author: Nick Berelehis
Author URI: https://retailvie.com
Template: kadence
Version: 1.0
Text Domain: retailvie-magazine
*/

/* ==========================================================
   RetailVie Magazine
   Custom Styles
========================================================== */

body{
    background:#f5f5f5;
}


.rv-wrapper{
    max-width:1440px;
    margin:auto;
}



/* ==========================================================
   FEATURED EDITORIAL HERO
========================================================== */

.rv-home-featured {
    padding: 54px 0 72px;
    background: #fff;
}

.rv-featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr);
    gap: 34px;
    align-items: stretch;
}

/* ==========================================================
   MAIN FEATURE
========================================================== */

.rv-featured-lead,
.rv-featured-lead-link {
    height: 100%;
}

.rv-featured-lead-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.rv-featured-lead-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f2f2f0;
}

.rv-featured-lead-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.rv-featured-lead:hover .rv-featured-lead-image img {
    transform: scale(1.018);
}

.rv-featured-lead-content {
    padding-top: 22px;
}

.rv-story-eyebrow {
    display: block;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #98783f;
}

.rv-featured-lead-title {
    max-width: 920px;
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(36px, 3.4vw, 58px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.rv-featured-lead-excerpt {
    max-width: 850px;
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: #555;
}

.rv-story-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
}


/* ==========================================================
   SUPPORTING FEATURED STORIES
========================================================== */

.rv-featured-supporting {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 20px;
    min-height: 100%;
}

.rv-featured-support-card {
    min-width: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #dedede;
}

.rv-featured-support-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rv-featured-support-link {
    display: grid;
    grid-template-columns: minmax(130px, 42%) minmax(0, 1fr);
    gap: 18px;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.rv-featured-support-image {
    width: 100%;
    height: 100%;
    min-height: 150px;
    overflow: hidden;
    background: #f2f2f0;
}

.rv-featured-support-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.rv-featured-support-card:hover .rv-featured-support-image img {
    transform: scale(1.025);
}

.rv-featured-support-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.rv-featured-support-title {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(20px, 1.7vw, 28px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.015em;
}

.rv-featured-support-excerpt {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #555;
}


/* ==========================================================
   IMAGE PLACEHOLDER
========================================================== */

.rv-featured-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: #f3f1ed;
}

.rv-featured-image-placeholder span {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #9b8b70;
}


/* ==========================================================
   LATEST STORIES
========================================================== */

.rv-latest-posts {
    padding: 72px 0 90px;
    background: #f7f7f6;
}

.rv-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d8d8d8;
}

.rv-section-heading h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(34px, 3vw, 46px);
    font-weight: 400;
    line-height: 1.1;
}

.rv-post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.rv-post-card {
    min-width: 0;
}

.rv-post-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.rv-post-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #efefed;
}

.rv-post-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.rv-post-card:hover .rv-post-card-image img {
    transform: scale(1.025);
}

.rv-post-card-content {
    padding-top: 17px;
}

.rv-post-card h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.22;
}

.rv-post-card p {
    margin: 11px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #555;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1180px) {

    .rv-featured-layout {
        grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
        gap: 28px;
    }

    .rv-featured-support-link {
        grid-template-columns: 40% minmax(0, 1fr);
        gap: 15px;
    }

    .rv-featured-support-excerpt {
        display: none;
    }

    .rv-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 42px;
    }
}


@media (max-width: 820px) {

    .rv-home-featured {
        padding: 34px 0 52px;
    }

    .rv-featured-layout {
        display: block;
    }

    .rv-featured-lead-image {
        aspect-ratio: 4 / 3;
    }

    .rv-featured-lead-title {
        font-size: clamp(34px, 8vw, 48px);
    }

    .rv-featured-supporting {
        margin-top: 42px;
        grid-template-rows: none;
        gap: 28px;
    }

    .rv-featured-support-card {
        padding-bottom: 28px;
    }

    .rv-featured-support-link {
        grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
        min-height: 170px;
    }

    .rv-featured-support-image {
        min-height: 170px;
    }

    .rv-featured-support-excerpt {
        display: block;
    }
}


@media (max-width: 600px) {

    .rv-home-featured {
        padding: 24px 0 42px;
    }

    .rv-featured-lead-content {
        padding-top: 17px;
    }

    .rv-featured-lead-title {
        font-size: 35px;
        line-height: 1.08;
    }

    .rv-featured-lead-excerpt {
        font-size: 14px;
    }

    .rv-featured-supporting {
        margin-top: 36px;
    }

    .rv-featured-support-link {
        display: block;
        min-height: 0;
    }

    .rv-featured-support-image {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .rv-featured-support-content {
        padding-top: 16px;
    }

    .rv-featured-support-title {
        font-size: 25px;
    }

    .rv-featured-support-excerpt {
        font-size: 14px;
    }

    .rv-latest-posts {
        padding: 52px 0 70px;
    }

    .rv-post-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
        scrollbar-width: none;
    }

    .rv-post-grid::-webkit-scrollbar {
        display: none;
    }

    .rv-post-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
}



/* ==========================================================
   MAGAZINE HEADER
========================================================== */

.rv-wrapper {
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.rv-mag-header {
    background: #fff;
}

.rv-mag-header-top {
    border-bottom: 1px solid #e8e8e8;
}

.rv-mag-header-top .rv-wrapper {
    display: flex;
    justify-content: flex-end;
    min-height: 38px;
    align-items: center;
}

.rv-return-link {
    color: #222;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.rv-mag-brand {
    padding: 42px 0 34px;
    text-align: center;
}

.rv-mag-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.rv-mag-logo-main {
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.rv-mag-logo-sub {
    margin-top: 10px;
    font-size: 22px;
    color: #a58952;
}

.rv-mag-nav {
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.rv-mag-nav .rv-wrapper {
    display: flex;
    justify-content: center;
    gap: 32px;
    min-height: 48px;
    align-items: center;
}

.rv-mag-nav a {
    color: #222;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

/* ==========================================================
   SINGLE ARTICLE
========================================================== */

.rv-single-post {
    background: #fff;
}

.rv-article-header {
    padding: 70px 0 44px;
    text-align: center;
}

.rv-article-header .rv-wrapper {
    max-width: 1080px;
}

.rv-article-title {
    max-width: 1000px;
    margin: 0 auto;
    font-family: Georgia, serif;
    font-size: clamp(44px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.rv-article-deck {
    max-width: 780px;
    margin: 22px auto 0;
    font-size: 19px;
    line-height: 1.55;
    color: #555;
}

.rv-article-header .rv-story-meta {
    justify-content: center;
}

.rv-article-featured-image {
    padding: 0 0 58px;
}

.rv-article-featured-image .rv-wrapper {
    max-width: 1280px;
}

.rv-article-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 780px;
    object-fit: cover;
}

.rv-article-body {
    padding: 0 20px 100px;
}

.rv-article-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.8;
}

.rv-article-content p {
    margin: 0 0 28px;
}

.rv-article-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {

    .rv-article-header {
        padding: 42px 0 30px;
    }

    .rv-article-title {
        font-size: 39px;
        line-height: 1.07;
    }

    .rv-article-deck {
        font-size: 16px;
    }

    .rv-article-featured-image {
        padding-bottom: 38px;
    }

    .rv-article-body {
        padding-bottom: 70px;
    }

    .rv-article-content {
        font-size: 17px;
        line-height: 1.75;
    }
}

