/*
Theme Name: My Balance in Life v1.2
Theme URI: https://mybalanceinlife.com
Author: My Balance in Life
Description: Responsive editorial theme that preserves existing WordPress page content, homepage hero content, media, and menus.
Version: 1.2.0
Text Domain: mybalanceinlife
*/
:root{--ink:#24332d;--muted:#66736d;--sage:#788f7b;--sage-dark:#536c5a;--cream:#f7f3ea;--sand:#e9dfcf;--terra:#b9785d;--gold:#cba864;--white:#fff;--line:#ded8cb;--shadow:0 12px 35px rgba(36,51,45,.09);--radius:18px;--content:1160px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--white);color:var(--ink);font:16px/1.7 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:var(--sage-dark);text-decoration:none}a:hover{color:var(--terra)}img{max-width:100%;height:auto}.wrap{width:min(var(--content),calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.header-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:28px}.custom-logo{display:block;max-height:54px;width:auto}.brand{font-family:Georgia,serif;font-size:24px;font-weight:700;color:var(--ink)}.brand span{color:var(--sage)}.primary-nav ul{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0}.primary-nav a{font-size:14px;font-weight:700;color:var(--ink)}.primary-nav .current-menu-item>a,.primary-nav a:hover{color:var(--terra)}.menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);cursor:pointer}.bars,.bars:before,.bars:after{display:block;width:22px;height:2px;background:currentColor;border-radius:2px;transition:.2s}.bars{position:relative;margin:auto}.bars:before,.bars:after{content:"";position:absolute;left:0}.bars:before{top:-7px}.bars:after{top:7px}.menu-toggle[aria-expanded=true] .bars{background:transparent}.menu-toggle[aria-expanded=true] .bars:before{top:0;transform:rotate(45deg)}.menu-toggle[aria-expanded=true] .bars:after{top:0;transform:rotate(-45deg)}
/* Preserve the current homepage content and first image; only apply the v1.2 visual system. */
.preserved-home{overflow:hidden}.preserved-home>:first-child{margin-top:0}.preserved-home h1,.preserved-home h2,.preserved-home h3,.entry-content h1,.entry-content h2,.entry-content h3{font-family:Georgia,"Times New Roman",serif;line-height:1.18;color:var(--ink)}.preserved-home h1,.entry-content h1{font-size:clamp(40px,6vw,72px)}.preserved-home h2,.entry-content h2{font-size:clamp(30px,4vw,46px)}.preserved-home p,.entry-content p{color:var(--muted)}.preserved-home .wp-block-cover:first-of-type,.preserved-home .elementor-section:first-child,.preserved-home .wp-block-image:first-of-type img{min-height:min(72vh,720px);object-fit:cover}.preserved-home .wp-block-cover__inner-container{width:min(var(--content),calc(100% - 40px));margin:auto}.preserved-home .wp-block-button__link,.preserved-home a.wp-element-button,.button,.product-button{display:inline-block;background:var(--sage-dark);color:#fff!important;border:0;border-radius:999px;padding:12px 20px;font-weight:750}.preserved-home .wp-block-button__link:hover,.button:hover,.product-button:hover{background:var(--terra)}
.content-area{width:min(var(--content),calc(100% - 40px));margin:auto;padding:64px 0}.archive-title{font:700 clamp(38px,5vw,58px)/1.15 Georgia,serif;margin:0 0 34px}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}.post-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:0 7px 24px rgba(36,51,45,.05)}.post-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.post-card-body{padding:22px}.post-card h2{font:700 26px/1.2 Georgia,serif;margin:8px 0 12px}.meta{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--sage);font-weight:800}.entry{width:min(820px,calc(100% - 40px));margin:auto;padding:62px 0}.entry img{border-radius:14px}.affiliate-note{background:var(--cream);border-left:4px solid var(--terra);padding:18px 22px;margin:26px 0;border-radius:0 12px 12px 0}.site-footer{background:var(--ink);color:#e5ebe7;padding:46px 0}.site-footer a{color:#fff}.footer-inner{display:grid;grid-template-columns:2fr 1fr;gap:40px}.footer-menu{list-style:none;margin:0;padding:0}.legal{font-size:13px;color:#b9c3be;margin-top:25px}
@media(max-width:800px){.wrap,.content-area{width:min(100% - 28px,var(--content))}.header-inner{min-height:68px;position:relative}.custom-logo{max-height:44px;max-width:210px}.brand{font-size:20px}.menu-toggle{display:block}.primary-nav{display:none;position:absolute;top:68px;left:-14px;right:-14px;background:#fff;border:1px solid var(--line);border-radius:0 0 16px 16px;box-shadow:var(--shadow);padding:10px 20px 18px}.primary-nav.is-open{display:block}.primary-nav ul{display:flex;flex-direction:column;align-items:stretch;gap:0}.primary-nav li{border-bottom:1px solid var(--line)}.primary-nav li:last-child{border:0}.primary-nav a{display:block;padding:14px 4px;font-size:16px}.post-grid,.footer-inner{grid-template-columns:1fr}.preserved-home .wp-block-cover:first-of-type,.preserved-home .elementor-section:first-child{min-height:560px}.entry{padding:42px 0}}
