/*
Theme Name: Better Mom Than Me
Theme URI: https://bettermomthanme.com
Author: Better Mom Than Me
Description: Parenting. Products. Sarcasm.
Version: 1.7
*/

:root {
    --cream: #f6eedf;
    --pink: #ed3d73;
    --black: #111111;
    --green: #858d3c;
    --paper: #fffaf0;
    --gray: #6d695f;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0 !important;
}

body {
    margin: 0;
    background: var(--cream) !important;
    color: var(--black) !important;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    display: none;
}

.brand-hero {
    width: 100%;
    background: var(--cream);
    overflow: hidden;
}

.brand-hero picture {
    display: block;
    width: 100%;
}

.brand-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.category-bar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    background: var(--black);
    color: white;
    border-top: 3px solid var(--black);
    border-bottom: 5px solid var(--pink);
}

.category-bar a {
    min-height: 78px;
    padding: 12px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    text-align: center;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1.2;
    border-right: 1px solid #444;
    transition: background .15s ease, color .15s ease;
}

.category-bar a:last-child {
    border-right: none;
}

.category-bar a:hover {
    background: var(--pink);
}

.category-icon {
    font-size: 1.25rem;
}

.section {
    width: min(1180px, 90%);
    margin: 64px auto;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 4px solid var(--black);
    margin-bottom: 32px;
    padding-bottom: 12px;
}

.eyebrow {
    color: var(--pink);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 2px 0 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1;
    text-transform: uppercase;
}

.section-snark {
    color: var(--gray);
    font-style: italic;
}

.home-featured {
    margin-top: 58px;
}

.featured-post-card {
    display: grid;
    grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
    background: var(--paper);
    border: 3px solid var(--black);
    box-shadow: 10px 10px 0 var(--pink);
    overflow: hidden;
}

.featured-post-image {
    display: block;
    height: 360px;
    overflow: hidden;
    border-right: 3px solid var(--black);
}

.featured-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .2s ease;
}

.featured-post-card:hover .featured-post-image img {
    transform: scale(1.02);
}

.featured-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 34px 38px;
}

.featured-post-content .post-category {
    margin-bottom: 7px;
}

.featured-post-content h2 {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.03;
    letter-spacing: -1px;
}

.featured-post-excerpt {
    margin-bottom: 20px;
    color: #403d37;
    font-size: 1.04rem;
    line-height: 1.65;
}

.featured-post-excerpt p {
    margin: 0;
}

.featured-post-content .read-more {
    margin-top: 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--paper);
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0 var(--pink);
    overflow: hidden;
}

.post-image {
    display: block;
    overflow: hidden;
    border-bottom: 3px solid var(--black);
}

.post-image img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .2s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.025);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.post-category {
    color: var(--green);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.post-card h2 {
    margin: 7px 0 12px;
    font-size: 1.55rem;
    line-height: 1.15;
}

.post-excerpt {
    color: #403d37;
}

.read-more {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 16px;
    background: var(--black);
    color: white;
    font-size: .8rem;
    font-weight: 900;
}

.read-more:hover {
    background: var(--pink);
}

.nothing-here {
    padding: 28px 30px;
    background: var(--paper);
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0 var(--pink);
}

.nothing-here h2 {
    margin-top: 0;
}

.home-categories {
    width: min(1180px, 90%);
    margin: 58px auto 72px;
}

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

.home-category-card {
    position: relative;
    min-height: 190px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--paper);
    color: var(--black);
    border: 3px solid var(--black);
    box-shadow: 7px 7px 0 var(--pink);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.home-category-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0 var(--pink);
}

.home-category-icon {
    display: block;
    margin-bottom: 14px;
    font-size: 2rem;
    line-height: 1;
}

.home-category-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.03rem;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.home-category-copy {
    display: block;
    color: var(--gray);
    font-size: .93rem;
    line-height: 1.45;
}

.home-category-card:nth-child(2) {
    box-shadow: 7px 7px 0 var(--green);
}

.home-category-card:nth-child(2):hover {
    box-shadow: 10px 10px 0 var(--green);
}

.home-category-card:nth-child(3) {
    background: var(--black);
    color: white;
    box-shadow: 7px 7px 0 var(--green);
}

.home-category-card:nth-child(3) .home-category-copy {
    color: #d8d3c8;
}

.home-category-card:nth-child(3):hover {
    box-shadow: 10px 10px 0 var(--green);
}

.manifesto {
    padding: 75px 20px;
    background: var(--pink);
    color: var(--black);
    border-top: 4px solid var(--black);
    border-bottom: 4px solid var(--black);
}

.manifesto-inner {
    width: min(850px, 90%);
    margin: auto;
    text-align: center;
}

.manifesto-small {
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.manifesto h2 {
    margin: 12px 0 20px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: .95;
    text-transform: uppercase;
}

.manifesto h2 span {
    color: var(--cream);
}

.manifesto p {
    max-width: 700px;
    margin: auto;
    font-size: 1.15rem;
    font-weight: 600;
}

.site-footer {
    margin: 0;
    padding: 50px 20px;
    background: var(--black);
    color: white;
    text-align: center;
}

.site-footer strong {
    color: var(--pink);
    font-size: 1.25rem;
}

.standard-page {
    width: min(900px, 90%);
    margin: 70px auto 90px;
}

.page-article {
    width: 100%;
}

.page-heading {
    margin-bottom: 35px;
    padding-bottom: 18px;
    border-bottom: 4px solid var(--black);
}

.page-heading h1 {
    margin: 3px 0 0;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: .95;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.page-content {
    background: var(--paper);
    padding: 45px 50px;
    border: 3px solid var(--black);
    box-shadow: 10px 10px 0 var(--pink);
    font-size: 1.15rem;
    line-height: 1.8;
}

.page-content p {
    margin-top: 0;
    margin-bottom: 1.5em;
}

.page-content p:last-child {
    margin-bottom: 0;
}

.page-content strong {
    font-weight: 900;
}

.page-content a {
    color: var(--pink);
    font-weight: 800;
    text-decoration: underline;
}

.page-content h2 {
    margin-top: 1.5em;
    font-size: 2rem;
    line-height: 1.1;
}

.single-post-page {
    width: min(920px, 90%);
    margin: 70px auto 90px;
}

.single-post-header {
    margin-bottom: 35px;
    padding-bottom: 24px;
    border-bottom: 4px solid var(--black);
}

.single-post-category {
    color: var(--pink);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.single-post-header h1 {
    margin: 8px 0 14px;
    max-width: 900px;
    font-size: clamp(2.5rem, 4.3vw, 4rem);
    line-height: 1.02;
    letter-spacing: -2px;
}

.single-post-meta {
    color: var(--gray);
    font-size: .9rem;
    font-style: italic;
}

.single-featured-image {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 40px;
    border: 3px solid var(--black);
    box-shadow: 10px 10px 0 var(--pink);
    overflow: hidden;
}

.single-featured-image img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: center;
}

.single-post-content {
    background: var(--paper);
    padding: 48px 52px;
    border: 3px solid var(--black);
    box-shadow: 10px 10px 0 var(--pink);
    font-size: 1.15rem;
    line-height: 1.8;
}

.single-post-content p {
    margin-top: 0;
    margin-bottom: 1.5em;
}

.single-post-content h2 {
    margin-top: 1.7em;
    margin-bottom: .6em;
    font-size: 2rem;
    line-height: 1.1;
}

.single-post-content h3 {
    margin-top: 1.5em;
    margin-bottom: .5em;
    font-size: 1.5rem;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 1.4em;
}

.single-post-content > ul li,
.single-post-content > ol li {
    margin-bottom: .8em;
}

.single-post-content a {
    color: var(--pink);
    font-weight: 800;
    text-decoration: underline;
}

.single-post-footer {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 4px solid var(--black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.single-post-signoff {
    margin: 0;
    color: var(--gray);
    font-style: italic;
}

.back-to-chaos {
    display: inline-block;
    padding: 12px 18px;
    background: var(--black);
    color: white;
    font-size: .8rem;
    font-weight: 900;
}

.back-to-chaos:hover {
    background: var(--pink);
}

.affiliate-disclosure {
    margin: 45px 0 0;
    padding: 18px 20px;
    background: #f7dfe6;
    border-left: 6px solid var(--pink);
    font-size: .9rem;
    line-height: 1.55;
}

.affiliate-disclosure strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.product-rec-box {
    width: 100%;
    margin: 35px 0;
    padding: 26px;
    background: var(--paper);
    border: 3px solid var(--black);
    box-shadow: 9px 9px 0 var(--pink);
}

.product-rec-box > .wp-block-columns {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(170px, 26%) minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: center;
    margin: 0 !important;
}

.product-rec-box > .wp-block-columns > .wp-block-column {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex-basis: auto !important;
    margin: 0 !important;
}

.product-rec-box .product-rec-image {
    margin: 0 !important;
}

.product-rec-box .product-rec-image img {
    display: block;
    width: 100% !important;
    max-width: 190px !important;
    height: auto !important;
    margin: 0 auto;
}

.product-rec-label {
    margin: 0 0 5px !important;
    color: var(--pink);
    font-size: .72rem !important;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-rec-title {
    margin: 0 0 10px !important;
    font-size: 1.8rem !important;
    line-height: 1.08 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.product-rec-verdict {
    margin: 0 0 12px !important;
    color: var(--green);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.4;
}

.product-rec-description {
    margin: 0 0 18px !important;
    line-height: 1.65;
    word-break: normal !important;
    overflow-wrap: anywhere;
}

.product-rec-box .wp-block-buttons,
.product-rec-box .wp-block-button {
    margin: 0 !important;
}

.product-rec-box .wp-block-button__link,
.product-rec-button .wp-block-button__link {
    display: inline-block;
    padding: 12px 18px !important;
    background: var(--black) !important;
    color: white !important;
    border-radius: 0 !important;
    font-size: .82rem;
    font-weight: 900;
    text-decoration: none !important;
}

.product-rec-box .wp-block-button__link:hover,
.product-rec-button .wp-block-button__link:hover {
    background: var(--pink) !important;
}

@media (min-width: 651px) {
    .brand-hero {
        aspect-ratio: 2 / 1;
        overflow: hidden;
    }

    .brand-hero picture {
        width: 100%;
    }

    .brand-hero-image {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 651px) and (max-width: 900px) {
    .category-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-bar a {
        min-height: 68px;
    }

    .featured-post-card {
        grid-template-columns: 40% minmax(0, 1fr);
    }

    .featured-post-image {
        height: 320px;
    }

    .featured-post-content {
        padding: 28px;
    }

    .featured-post-content h2 {
        font-size: clamp(1.7rem, 4vw, 2.5rem);
    }

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

    .home-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-rec-box > .wp-block-columns {
        grid-template-columns: minmax(150px, 30%) minmax(0, 1fr) !important;
        gap: 22px !important;
    }

    .single-featured-image {
        max-width: 680px;
    }

    .single-featured-image img {
        height: 380px;
    }
}

@media (max-width: 650px) {
    .brand-hero {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        overflow: visible;
        background: var(--cream);
    }

    .brand-hero picture {
        display: block;
        width: 100%;
    }

    .brand-hero-image {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
        object-position: center;
    }

    .category-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-bar a {
        min-height: 66px;
        padding: 10px 6px;
        font-size: .73rem;
        line-height: 1.15;
        border-right: 1px solid #444;
        border-bottom: 1px solid #444;
    }

    .category-bar a:nth-child(even) {
        border-right: none;
    }

    .category-bar a:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .category-icon {
        font-size: 1.15rem;
    }

    .section {
        width: 90%;
        margin: 45px auto;
    }

    .section-heading {
        display: block;
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }

    .section-snark {
        display: block;
        margin-top: 12px;
        font-size: 1rem;
    }

    .home-featured {
        margin-top: 45px;
    }

    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .featured-post-image {
        height: 240px;
        border-right: 0;
        border-bottom: 3px solid var(--black);
    }

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

    .featured-post-content {
        padding: 24px;
    }

    .featured-post-content h2 {
        margin-bottom: 14px;
        font-size: clamp(1.75rem, 8vw, 2.35rem);
        line-height: 1.05;
    }

    .featured-post-excerpt {
        margin-bottom: 18px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .post-card-content {
        padding: 24px;
    }

    .post-image img {
        height: 220px;
        max-height: none;
        object-fit: cover;
    }

    .home-categories {
        width: 90%;
        margin: 46px auto 55px;
    }

    .home-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-category-card {
        min-height: 0;
        padding: 20px;
    }

    .home-category-icon {
        margin-bottom: 10px;
        font-size: 1.8rem;
    }

    .home-category-label {
        margin-bottom: 5px;
        font-size: 1rem;
    }

    .manifesto {
        padding: 55px 20px;
    }

    .manifesto h2 {
        font-size: clamp(2.3rem, 11vw, 4rem);
    }

    .standard-page {
        width: 90%;
        margin: 45px auto 65px;
    }

    .page-heading {
        margin-bottom: 25px;
    }

    .page-heading h1 {
        font-size: clamp(2.7rem, 14vw, 4rem);
        letter-spacing: -1px;
    }

    .page-content {
        padding: 28px 24px;
        font-size: 1.05rem;
        line-height: 1.7;
        box-shadow: 7px 7px 0 var(--pink);
    }

    .single-post-page {
        width: 90%;
        margin: 45px auto 65px;
    }

    .single-post-header h1 {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
        line-height: 1.04;
        letter-spacing: -1px;
    }

    .single-featured-image {
        width: 100%;
        max-width: none;
        margin-bottom: 32px;
        box-shadow: 7px 7px 0 var(--pink);
    }

    .single-featured-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .single-post-content {
        padding: 28px 24px;
        font-size: 1.05rem;
        line-height: 1.7;
        box-shadow: 7px 7px 0 var(--pink);
    }

    .single-post-footer {
        display: block;
    }

    .back-to-chaos {
        margin-top: 18px;
    }

    .affiliate-disclosure {
        margin-top: 35px;
        padding: 16px;
        font-size: .88rem;
    }

    .product-rec-box {
        padding: 22px;
    }

    .product-rec-box > .wp-block-columns {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .product-rec-box > .wp-block-columns > .wp-block-column {
        width: 100% !important;
        max-width: none !important;
    }

    .product-rec-box .product-rec-image img {
        width: auto !important;
        max-width: 220px !important;
        margin: 0 auto;
    }

    .product-rec-title {
        font-size: 1.55rem !important;
    }
}
