/*
Theme Name: Eat With Yum Premium
Theme URI: https://eatwithyum.com/
Author: Eat With Yum
Description: Custom editorial recipe theme for Eat With Yum.
Version: 2.0.0
Text Domain: eatwithyum-premium
*/

/* =========================================================
   1. GLOBAL
========================================================= */

:root {
    --green: #315f48;
    --green-dark: #244b38;
    --ink: #17251d;
    --muted: #6d756f;
    --cream: #f4f1e9;
    --soft: #f7f5ef;
    --line: #e7e5dd;
    --white: #ffffff;
    --gold: #9b8054;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
.serif {
    font-family: Georgia, "Times New Roman", serif;
}

.wrap {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   2. HEADER
========================================================= */

.site-header {
    background: #fff;
}

.header-main {
    width: min(var(--max), calc(100% - 48px));
    height: 104px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 320px 1fr;
    align-items: center;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    color: var(--green);
    font-size: 13px;
    font-weight: 700;

    transition: .25s ease;
}

.header-social a:hover {
    color: #fff;
    background: var(--green);
    transform: translateY(-2px);
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 90px;

    overflow: hidden;
}

.site-logo img {
    width: 285px;
    height: 84px;
    object-fit: contain;
}

.header-search {
    justify-self: end;

    width: 220px;
    height: 36px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    border: 1px solid #e8e8e3;
    border-radius: 30px;

    background: #fafaf7;
}

.header-search input {
    min-width: 0;
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #505851;
    font-size: 11px;
}

.header-search button {
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--green);
    font-size: 15px;
    cursor: pointer;
}


/* =========================================================
   3. NAVIGATION
========================================================= */

.nav {
    position: relative;
    z-index: 20;

    background: #fff;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.nav .wrap {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.main-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;

    gap: 29px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.main-menu > li {
    position: relative;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.main-menu > li::marker {
    content: "";
}

.main-menu a {
    display: block;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .55px;
    text-transform: uppercase;

    white-space: nowrap;

    transition: color .2s ease;
}

.main-menu a:hover {
    color: var(--green);
}

.main-menu .sub-menu {
    display: none;

    position: absolute;
    left: 0;
    top: 100%;

    min-width: 180px;

    margin: 0;
    padding: 10px 0;

    list-style: none;

    background: #fff;
    border: 1px solid var(--line);

    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.main-menu li:hover > .sub-menu {
    display: block;
}

.main-menu .sub-menu li {
    list-style: none;
}

.main-menu .sub-menu a {
    padding: 8px 15px;
}


/* =========================================================
   4. HERO
========================================================= */

.hero,
.hero-v14 {
    display: grid;

    grid-template-columns: 48% 52%;

    width: 100%;
    min-height: 500px;
    height: 500px;

    overflow: hidden;

    background: var(--cream);
}

.hero-copy,
.hero-v14 .hero-copy {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        45px
        max(35px, calc((100vw - var(--max)) / 2 + 24px));

    padding-right: 45px;

    background: var(--cream);
}

.eyebrow {
    color: var(--green);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero h1,
.hero-v14 h1 {
    margin: 14px 0 18px;

    max-width: 600px;

    color: var(--ink);

    font-size: clamp(50px, 4.45vw, 70px);
    font-weight: 500;

    line-height: .98;
    letter-spacing: -2.5px;
}

.hero p {
    max-width: 520px;

    margin: 0 0 26px;

    color: #59615b;

    font-size: 14px;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;

    width: max-content;

    gap: 10px;

    padding: 14px 23px;

    background: var(--green);
    color: #fff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .7px;
    text-transform: uppercase;

    transition: background .2s ease;
}

.btn:hover {
    background: var(--green-dark);
}

.hand {
    margin: 25px 0 0 95px;

    color: #67746c;

    font: italic 16px/1.25 Georgia, serif;

    transform: rotate(-3deg);
}

.hero-photo,
.hero-v14 .hero-photo {
    position: relative;

    width: 100%;
    height: 500px;
    min-height: 500px;

    overflow: hidden;
}

.hero-photo img,
.hero-v14 .hero-photo img {
    width: 100%;
    height: 100%;
    min-height: 0;

    object-fit: cover;
    object-position: center center;
}

.hero-v14 .hero-photo::before {
    content: "";

    position: absolute;
    z-index: 1;

    top: 0;
    bottom: 0;
    left: 0;

    width: 15%;

    background: linear-gradient(
        90deg,
        var(--cream) 0%,
        rgba(244,241,233,.55) 48%,
        rgba(244,241,233,0) 100%
    );

    pointer-events: none;
}

.hero-note {
    display: none;
}


/* =========================================================
   5. BENEFITS
========================================================= */

.benefits {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.benefit {
    padding: 18px 14px;

    text-align: center;

    border-right: 1px solid var(--line);
}

.benefit:last-child {
    border-right: 0;
}

.benefit .icon {
    color: var(--green);
    font-size: 23px;
}

.benefit b {
    display: block;

    margin-top: 5px;

    font-size: 11px;
}

.benefit small {
    display: block;

    color: #8b908c;
    font-size: 9px;
}


/* =========================================================
   6. GENERAL SECTIONS
========================================================= */

.section {
    padding: 58px 0;
}

.section-kicker {
    margin-bottom: 5px;

    color: var(--gold);

    font: italic 15px Georgia, serif;

    text-align: center;
}

.section-title {
    margin: 0 0 28px;

    font-size: 40px;
    font-weight: 500;

    line-height: 1.1;

    text-align: center;
}


/* =========================================================
   7. MOOD CARDS
========================================================= */

.mood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}

.mood-card {
    overflow: hidden;

    border: 1px solid var(--line);

    background: #faf9f5;
}

.mood-card .pic {
    aspect-ratio: 1.45;

    overflow: hidden;

    background: #eee;
}

.mood-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.mood-card:hover img {
    transform: scale(1.035);
}

.mood-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .7px;
    text-transform: uppercase;
}


/* =========================================================
   8. ABOUT
========================================================= */

.about {
    background: var(--soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    min-height: 500px;
}

.about-photo {
    min-height: 500px;

    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}

.about-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 52px 60px;
}

.about-copy .mini {
    font-size: 10px;
    letter-spacing: 1.5px;
}

.about-copy h2 {
    margin: 8px 0 20px;

    font-size: 42px;
    font-weight: 500;

    line-height: 1.02;
}

.about-copy p {
    max-width: 520px;

    color: #5f665f;

    font-size: 14px;
}

.signature {
    margin: 16px 0 22px;

    color: var(--green);

    font: italic 17px Georgia, serif;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid var(--line);
}

.stat {
    text-align: center;

    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat b {
    font: 24px Georgia, serif;
}

.stat small {
    display: block;

    font-size: 8px;

    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   9. LATEST RECIPES
========================================================= */

.latest-head,
.season-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 22px;
}

.latest-head .section-kicker,
.latest-head .section-title,
.season-head .section-kicker,
.season-head .section-title {
    margin-left: 0;

    text-align: left;
}

.latest-head .section-title,
.season-head .section-title {
    margin-bottom: 0;

    font-size: 36px;
}

.viewall {
    font-size: 9px;
    font-weight: 700;

    letter-spacing: .7px;
    text-transform: uppercase;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.recipe-card .thumb {
    aspect-ratio: 1.5;

    overflow: hidden;

    background: #eee;
}

.recipe-card .thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.recipe-card:hover .thumb img {
    transform: scale(1.025);
}

.recipe-cat {
    margin-top: 13px;

    color: #777;

    font-size: 9px;

    text-transform: uppercase;
}

.recipe-card h3 {
    margin: 4px 0 9px;

    font-size: 21px;
    font-weight: 500;

    line-height: 1.15;
}

.recipe-card p {
    margin: 0;

    color: #676d68;

    font-size: 12px;
}

.meta {
    margin-top: 12px;

    color: #737a75;

    font-size: 9px;
}

.placeholder {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;

    background: linear-gradient(135deg,#d9ddcf,#f0e7d6);

    color: var(--green);

    font: italic 18px Georgia, serif;
}


/* =========================================================
   10. NEWSLETTER
========================================================= */

.newsletter {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;

    gap: 30px;

    margin: 10px auto 55px;
    padding: 24px 28px;

    background: #f0f3ea;

    border: 1px solid #e3e7dc;
}

.newsletter h3 {
    margin: 0;

    font-size: 23px;
}

.newsletter p {
    margin: 3px 0 0;

    color: #697068;

    font-size: 11px;
}

.newsletter form {
    display: flex;
}

.newsletter input {
    flex: 1;

    min-width: 0;

    padding: 13px;

    border: 1px solid #ddd;

    background: #fff;

    font-size: 11px;
}

.newsletter button {
    padding: 0 20px;

    border: 0;

    background: var(--green);
    color: #fff;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .6px;

    cursor: pointer;
}


/* =========================================================
   11. SEASONS
========================================================= */

.season-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.season-card {
    border: 1px solid var(--line);
}

.season-card .pic {
    aspect-ratio: 1.6;

    overflow: hidden;
}

.season-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.season-card span {
    display: flex;
    justify-content: space-between;

    padding: 11px;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   12. SINGLE RECIPE / ARTICLE
========================================================= */

.single-wrap {
    width: min(900px, calc(100% - 48px));

    margin: 55px auto 70px;
}

.single-wrap article {
    width: 100%;
}

.single-wrap .recipe-cat {
    margin: 0 0 10px;

    color: var(--green);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}

.single-wrap > article > h1 {
    max-width: 850px;

    margin: 0 0 30px;

    font-size: clamp(42px, 5vw, 62px);
    font-weight: 500;

    line-height: 1.05;

    letter-spacing: -1.5px;
}

/*
 Featured image:
 desktop = wide editorial photo
 mobile = compact photo, no giant vertical image
*/

.single-wrap > article > img.wp-post-image {
    display: block;

    width: 100%;
    height: auto;
    max-height: 560px;

    margin: 0 0 35px;

    object-fit: cover;
    object-position: center;

    border-radius: 2px;
}

.single-wrap .entry-content {
    color: #303832;

    font-size: 16px;
    line-height: 1.8;
}

.single-wrap .entry-content p {
    margin: 0 0 22px;
}

.single-wrap .entry-content h2 {
    margin: 42px 0 15px;

    font-size: 34px;
    font-weight: 500;

    line-height: 1.15;
}

.single-wrap .entry-content h3 {
    margin: 32px 0 12px;

    font-size: 26px;
    font-weight: 500;
}

.single-wrap .entry-content img {
    width: auto;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   13. ARCHIVE
========================================================= */

.archive-title {
    padding: 55px 20px 15px;

    font-size: 45px;

    text-align: center;
}


/* =========================================================
   14. FOOTER
========================================================= */

.footer {
    margin-top: 60px;
    padding: 45px 0 24px;

    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 50px;
}

.footer .brand {
    color: var(--green-dark);

    font: 700 30px/1 Georgia, serif;
}

.footer p,
.footer a {
    color: #667069;

    font-size: 10px;
}

.footer h4 {
    margin: 0 0 13px;

    font-size: 9px;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links {
    display: grid;

    gap: 6px;
}

.copyright {
    display: flex;
    justify-content: space-between;

    margin-top: 35px;
    padding-top: 18px;

    border-top: 1px solid var(--line);

    color: #8a8f8b;

    font-size: 9px;
}


/* =========================================================
   15. TABLET
========================================================= */

@media (max-width: 900px) {

    .wrap {
        width: min(100% - 30px, var(--max));
    }

    /* Header */

    .header-main {
        width: 100%;
        height: 100px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 8px 20px;
    }

    .header-social,
    .header-search {
        display: none;
    }

    .site-logo {
        width: 270px;
        height: 84px;

        overflow: visible;
    }

    .site-logo img {
        width: 250px;
        height: 80px;

        object-fit: contain;
    }

    /* Navigation */

    .nav {
        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;
    }

    .nav .wrap {
        width: max-content;
        min-width: 100%;

        justify-content: flex-start;

        padding: 0 20px;
    }

    .main-menu {
        justify-content: flex-start;

        gap: 26px;
    }

    .main-menu .sub-menu {
        display: none !important;
    }

    /* Hero */

    .hero,
    .hero-v14 {
        grid-template-columns: 1fr;

        height: auto;
        min-height: 0;
        max-height: none;
    }

    .hero-copy,
    .hero-v14 .hero-copy {
        padding: 55px 30px 50px;
    }

    .hero h1,
    .hero-v14 h1 {
        font-size: 54px;
    }

    .hero-photo,
    .hero-v14 .hero-photo {
        width: 100%;
        height: 470px;
        min-height: 470px;
        max-height: 470px;
    }

    .hero-photo img,
    .hero-v14 .hero-photo img {
        width: 100%;
        height: 100%;
        min-height: 0;

        object-fit: cover;
        object-position: center center;
    }

    .hero-v14 .hero-photo::before {
        display: none;
    }

    /* Sections */

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit:nth-child(2) {
        border-right: 0;
    }

    .section {
        padding: 50px 0;
    }

    .mood-grid,
    .season-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-photo {
        height: 500px;
        min-height: 0;
    }

    .about-copy {
        padding: 45px 30px;
    }

    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-card:last-child {
        display: none;
    }

    .newsletter {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   16. MOBILE
========================================================= */

@media (max-width: 560px) {

    /* Header / Logo */

    .header-main {
        width: 100%;
        height: 92px;
        min-height: 92px;

        padding: 6px 15px;
    }

    .site-logo {
        width: min(280px, 86vw);
        height: 82px;

        margin: 0 auto;

        overflow: visible;
    }

    .site-logo img {
        width: 260px;
        max-width: 100%;
        height: 78px;

        object-fit: contain;
    }

    .header-social,
    .header-search {
        display: none;
    }

    /* Menu */

    .nav .wrap {
        min-height: 46px;

        padding: 0 18px;
    }

    .main-menu {
        gap: 27px;
    }

    .main-menu a {
        font-size: 10px;

        letter-spacing: .4px;
    }

    /* Hero */

    .hero-copy,
    .hero-v14 .hero-copy {
        padding: 46px 24px 45px;
    }

    .eyebrow {
        font-size: 10px;

        letter-spacing: 2.5px;
    }

    .hero h1,
    .hero-v14 h1 {
        margin: 13px 0 20px;

        font-size: clamp(46px, 13vw, 58px);

        line-height: .98;
        letter-spacing: -2px;
    }

    .hero p {
        margin-bottom: 26px;

        font-size: 15px;
        line-height: 1.65;
    }

    .btn {
        padding: 14px 20px;

        font-size: 10px;
    }

    .hand {
        margin: 30px auto 0;

        font-size: 16px;

        text-align: center;
    }

    .hero-photo,
    .hero-v14 .hero-photo {
        height: 390px;
        min-height: 390px;
        max-height: 390px;
    }

    .hero-photo img,
    .hero-v14 .hero-photo img {
        width: 100%;
        height: 390px;
        min-height: 0;

        object-fit: cover;
        object-position: 58% center;
    }

    /* Benefits */

    .benefit {
        padding: 17px 8px;
    }

    /* Sections */

    .section {
        padding: 45px 0;
    }

    .section-title {
        font-size: 33px;
    }

    .mood-grid,
    .season-grid,
    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .recipe-card:last-child {
        display: block;
    }

    .latest-head,
    .season-head {
        align-items: flex-start;

        gap: 15px;
    }

    .latest-head .section-title,
    .season-head .section-title {
        font-size: 32px;
    }

    /* About */

    .about-photo {
        height: 420px;
    }

    .about-copy {
        padding: 40px 25px;
    }

    .about-copy h2 {
        font-size: 38px;
    }

    /* Newsletter */

    .newsletter {
        width: calc(100% - 30px);

        padding: 22px 18px;
    }

    .newsletter form {
        display: grid;
    }

    .newsletter button {
        padding: 14px;
    }

    /* Single article */

    .single-wrap {
        width: calc(100% - 32px);

        margin: 35px auto 55px;
    }

    .single-wrap > article > h1 {
        margin-bottom: 24px;

        font-size: clamp(36px, 10vw, 46px);

        line-height: 1.05;
        letter-spacing: -1px;

        overflow-wrap: break-word;
    }

    .single-wrap > article > img.wp-post-image {
        width: 100%;
        height: 280px;
        max-height: 280px;

        margin-bottom: 28px;

        object-fit: cover;
        object-position: center;

        border-radius: 2px;
    }

    .single-wrap .entry-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .single-wrap .entry-content h2 {
        font-size: 29px;
    }

    .single-wrap .entry-content h3 {
        font-size: 24px;
    }

    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .copyright {
        display: block;
    }

    .copyright span {
        display: block;

        margin-top: 5px;
    }

}