/* Everyday Insight modern homepage */
.home-page {
    /* Connect the new palette to older website components */
    --primary: #7196a5;
    --primary-dark: #567b8a;
    --primary-light: #dbe8eb;
    --secondary: #3d3a36;
    --background: #faf8f4;
    --surface: #ffffff;
    --surface-light: #f7f4ee;
    --text: #3d3a36;
    --text-light: #6f6a64;
    --border: #e7e2da;
    --ink: #3d3a36;
    --muted: #6f6a64;
    --blue: #7196a5;
    --blue-dark: #567b8a;
    --green: #86a493;
    --green-dark: #678574;
    --warm: #9c8061;
    --cream: #faf8f4;
    --line: #e7e2da;
    background: var(--cream);
    color: var(--ink)
}

/* ==========================================
   HOMEPAGE NAVIGATION STATE
   Keep previously visited links from looking active.
   On this page, only the Home link receives the underline.
========================================== */

.home-page #navigation nav a,
.home-page #navigation nav a:visited {
    color: #3d3a36;
    text-decoration: none;
    border-bottom-color: transparent;
}

.home-page #navigation nav a[aria-current="page"],
.home-page #navigation nav a.active {
    color: #9c8061;
    font-weight: 600;
    border-bottom: 2px solid #9c8061;
}

.home-page #navigation nav a:hover {
    color: #9c8061;
}

/* ==========================================
   ARTICLES PAGE — MATCH HOMEPAGE THEME
========================================== */

.articles-page {
    background: var(--cream);
    color: var(--ink);
}

.articles-page .page-hero {
    background:
        radial-gradient(circle at 20% 0, rgba(210,226,232,.82), transparent 39%),
        radial-gradient(circle at 82% 2%, rgba(216,231,219,.86), transparent 39%),
        linear-gradient(135deg, #faf8f4, #f2f7f5 56%, #f8f4ed);
}

.articles-page .page-hero h1,
.articles-page .section-header h2,
.articles-page .featured-content h3,
.articles-page .article-card h3,
.articles-page .related-article-card h3 {
    color: var(--ink);
}

.articles-page .page-hero p,
.articles-page .featured-content p,
.articles-page .article-card p,
.articles-page .related-article-card p {
    color: var(--muted);
}

.articles-page .section-tag,
.articles-page .article-category {
    background: #edf3ee;
    color: var(--green-dark);
}

.articles-page .featured-article,
.articles-page .latest-articles {
    background: var(--cream);
}

.articles-page .featured-card,
.articles-page .article-card,
.articles-page .related-article-card {
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(61,58,54,.08);
}

.articles-page .btn-primary {
    background: var(--blue);
    color: #ffffff;
}

.articles-page .btn-primary:hover {
    background: var(--blue-dark);
}

.articles-page .read-more {
    color: var(--blue-dark);
}

.articles-page .search-section {
    background: #ffffff;
}

.articles-page #siteSearch:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(113,150,165,.18);
}

/* ==========================================
   INDIVIDUAL SKIN-GUIDE LAYOUT
========================================== */

/* Keep the main image and explanation together in one balanced card */
.articles-page .featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: stretch;
    max-width: 1080px;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 16px;
}

.articles-page .featured-image {
    min-width: 0;
    height: 460px;
    overflow: hidden;
}

.articles-page .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.articles-page .featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

/* Acne page uses articles-grid with an s */
.articles-page .articles-grid,
.articles-page .methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 1080px;
    margin-inline: auto;
}

.articles-page .articles-grid .article-card,
.articles-page .methodology-grid .method-card {
    height: 100%;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(61,58,54,.07);
}

.articles-page .articles-grid .article-content {
    margin: 0;
}

.articles-page .method-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #edf3ee;
    color: var(--green-dark);
    font-weight: 700;
}

@media (max-width: 760px) {
    .articles-page .featured-card,
    .articles-page .articles-grid,
    .articles-page .methodology-grid {
        grid-template-columns: 1fr;
    }

    .articles-page .featured-image {
        height: 300px;
    }

    .articles-page .featured-content {
        padding: 28px 22px;
    }
}

/* Keep article cards and their images a consistent size */
.articles-page .latest-articles .container {
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
}

.articles-page .article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.articles-page .article-card,
.articles-page .related-article-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
}

.articles-page .article-card > img,
.articles-page .related-article-card > a:first-child,
.articles-page .related-article-card > a:first-child img {
    display: block;
    width: 100%;
}

.articles-page .article-card > img,
.articles-page .related-article-card > a:first-child img {
    height: 220px;
    object-fit: cover;
}

.articles-page .article-card > h3,
.articles-page .article-card > a,
.articles-page .related-article-content {
    margin-left: 20px;
    margin-right: 20px;
}

.articles-page .article-card > h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 1.15rem;
    line-height: 1.4;
}

.articles-page .article-card > a,
.articles-page .related-read-more {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--blue-dark);
    font-weight: 700;
}

/* Footer contrast and matching blue subscribe button */
/* ==========================================
   LIGHT BLUE-GREEN FOOTER
========================================== */

.home-page .site-footer {
    background: linear-gradient(
        135deg,
        #dbe8e5 0%,
        #d6e3e8 100%
    );

    color: #344846;
    border-top: 3px solid #9c8061;
}

/* Footer headings */

.home-page .site-footer h2,
.home-page .site-footer h3 {
    color: #3d3a36;
}

/* Footer paragraphs and links */

.home-page .site-footer p,
.home-page .site-footer a {
    color: #465c5a;
}

.home-page .site-footer a:hover {
    color: #567b8a;
}

/* Subscribe button */

.home-page .footer-newsletter-form .footer-button {
    background: #567b8a;
    color: #ffffff;
}

.home-page .footer-newsletter-form .footer-button:hover {
    background: #486b78;
}

/* Email field */

.home-page .footer-newsletter-form input[type="email"] {
    background: #fffdf9;
    color: #3d3a36;
    border: 1px solid #b7cbc6;
}

.home-page .footer-newsletter-form input[type="email"]:focus {
    border-color: #7196a5;
    box-shadow: 0 0 0 3px rgba(113, 150, 165, 0.18);
}

/* Bottom copyright area */

.home-page .site-footer .footer-bottom {
    border-top: 1px solid rgba(70, 92, 90, 0.25);
}

.home-page .site-footer .footer-bottom,
.home-page .site-footer .footer-bottom p,
.home-page .site-footer .footer-disclaimer,
.home-page .site-footer .affiliate-disclosure {
    color: #586c69;
    opacity: 1;
}
@media (max-width: 900px) {
    .articles-page .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .articles-page .article-card > img,
    .articles-page .related-article-card > a:first-child img {
        height: 200px;
    }
}

.home-page main {
    overflow: hidden
}

.home-shell {
    width: min(1080px, calc(100% - 40px));
    margin-inline: auto
}

.home-hero {
    position: relative;
    padding: 70px 0 108px;
    text-align: center;
    background: radial-gradient(circle at 20% 0, rgba(210, 226, 232, .82), transparent 39%), radial-gradient(circle at 82% 2%, rgba(216, 231, 219, .86), transparent 39%), linear-gradient(135deg, #faf8f4, #f2f7f5 56%, #f8f4ed)
}

.home-hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .7));
    pointer-events: none
}

.hero-inner {
    position: relative;
    z-index: 1
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--warm);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase
}

.home-hero h1 {
    max-width: 760px;
    margin: 0 auto 16px;
    color: var(--ink);
    font-family: Inter, sans-serif;
    font-size: clamp(2.35rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02
}

.hero-copy {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.65
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(27, 52, 67, .12)
}

.home-button:hover {
    color: #fff;
    transform: translateY(-2px)
}

.button-blue {
    background: var(--blue)
}

.button-blue:hover {
    background: var(--blue-dark)
}

.button-green {
    background: var(--green)
}

.button-green:hover {
    background: var(--green-dark)
}

.tool-showcase {
    position: relative;
    z-index: 2;
    margin-top: -55px;
    padding-bottom: 66px
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
}

.tool-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(24, 49, 62, .11)
}

.tool-card:hover {
    border-color: #c9d4d7;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(24, 49, 62, .15)
}

.tool-image {
    min-height: 100%;
    overflow: hidden;
    background: #edf3f3
}

.tool-image-skin {
    background: #edf3ee
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease
}

.tool-card:hover .tool-image img {
    transform: scale(1.035)
}

.tool-card-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px
}

.card-label,
.article-category {
    display: inline-block;
    margin-bottom: 9px;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.budget-label {
    color: var(--blue)
}

.skin-label {
    color: var(--green-dark)
}

.tool-card h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font: 750 1.28rem Inter, sans-serif
}

.tool-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55
}

.card-link {
    margin-top: auto;
    color: var(--blue-dark);
    font-size: .82rem;
    font-weight: 700
}

.featured-insights {
    padding: 12px 0 82px
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px
}

.section-title-row .eyebrow {
    color: var(--green-dark)
}

.section-title-row h2,
.home-promise h2 {
    margin: 0;
    color: var(--ink);
    font: 800 clamp(1.7rem, 3vw, 2.35rem) Inter, sans-serif;
    letter-spacing: -.035em
}

.view-all {
    flex: none;
    padding-bottom: 4px;
    color: var(--blue-dark);
    font-size: .88rem;
    font-weight: 700
}

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

.insight-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: .3s
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(24, 49, 62, .1)
}

.insight-image {
    display: block;
    height: 190px;
    overflow: hidden;
    background: #f6f8f8
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease
}

.insight-card:hover img {
    transform: scale(1.04)
}

.insight-copy {
    padding: 18px 18px 21px
}

.article-category {
    color: var(--green-dark)
}

.insight-copy h3 {
    margin: 0 0 9px;
    font: 750 1.05rem/1.35 Inter, sans-serif
}

.insight-copy h3 a {
    color: var(--ink)
}

.insight-copy h3 a:hover {
    color: var(--blue)
}

.insight-copy p {
    margin: 0;
    color: var(--muted);
    font-size: .87rem;
    line-height: 1.55
}

.home-promise {
    padding: 64px 0;
    border-block: 1px solid var(--line);
    background: linear-gradient(120deg, #f3f6f5, #f7f2ea)
}

.promise-grid {
    display: grid;
    grid-template-columns: 1fr .8fr;
    align-items: center;
    gap: 80px
}

.home-promise .eyebrow {
    color: var(--warm)
}

.home-promise p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75
}

@media(max-width:900px) {
    .home-hero {
        padding: 60px 0 95px
    }

    .tool-grid {
        grid-template-columns: 1fr;
        max-width: 690px
    }

    .insight-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .insight-card:last-child {
        grid-column: 1/-1;
        max-width: calc(50% - 11px)
    }
}

@media(max-width:640px) {
    .home-shell {
        width: min(100% - 28px, 1080px)
    }

    .home-hero {
        padding: 48px 0 82px
    }

    .home-hero h1 {
        font-size: clamp(2.05rem, 10.5vw, 3rem)
    }

    .home-hero h1 br {
        display: none
    }

    .hero-copy {
        font-size: .96rem
    }

    .hero-actions {
        flex-direction: column
    }

    .tool-showcase {
        margin-top: -42px;
        padding-bottom: 52px
    }

    .tool-card {
        grid-template-columns: 1fr
    }

    .tool-image {
        height: 185px
    }

    .tool-card-copy {
        padding: 21px
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px
    }

    .insight-grid {
        grid-template-columns: 1fr
    }

    .insight-card:last-child {
        grid-column: auto;
        max-width: none
    }

    .insight-image {
        height: 210px
    }

    .promise-grid {
        grid-template-columns: 1fr;
        gap: 22px
    }
}



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

    .home-page *,
    .home-page *:before,
    .home-page *:after {
        transition-duration: .01ms !important
    }
}
