/* Improve Daily Habits design layer, "Atomic" skin (v2.0).
   Inspired by the colours and calm, bold, minimal feel of the Atomic Habits book cover
   (warm cream paper, black type, amber-orange accent). It does not reuse the cover artwork,
   title treatment or any James Clear branding. Palette lives in the Kadence global palette
   (--global-palette1..9); extra brand vars are below. Contrast pairs were checked to WCAG AA. */
:root{
  --idh-orange:#e9aa64; --idh-orange-deep:#d68d3f; --idh-tan:#c7a266;
  --idh-ink:#14130f; --idh-cream:#f6f4ea; --idh-card:#fffdf6; --idh-tint:#f1e9d9; --idh-line:#e3dbc6;
  --idh-radius:20px; --idh-radius-sm:12px;
  --idh-shadow:0 1px 2px rgba(20,19,15,.05),0 14px 34px -16px rgba(20,19,15,.22);
  --global-body-font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --global-heading-font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --global-content-width:1200px;
}
body{font-family:var(--global-body-font-family);color:var(--global-palette4);background:var(--global-palette8);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,.wp-block-heading,.entry-title{font-family:var(--global-heading-font-family);color:var(--global-palette3);letter-spacing:-.03em;line-height:1.08;font-weight:800}
h3,h4{letter-spacing:-.02em;font-weight:700}
a{color:var(--global-palette1)} a:hover{color:var(--global-palette2)}
.content-bg,.site,body.content-style-unboxed .site{background:var(--global-palette8)}

/* ---------- Header: sticky, cream, logo ---------- */
#masthead{position:sticky;top:0;z-index:1000}
.site-header .site-header-row-container-inner,#masthead .site-main-header-wrap .site-header-row-container-inner{background:rgba(246,244,234,.92);backdrop-filter:saturate(160%) blur(12px);-webkit-backdrop-filter:saturate(160%) blur(12px);border-bottom:1px solid var(--idh-line)}
.site-main-header-inner-wrap{min-height:76px}
.site-branding .site-title-wrap{display:none}
.site-branding .custom-logo,.site-branding a.brand img{max-height:52px;width:auto;height:auto}
.main-navigation .primary-menu-container>ul>li.menu-item>a{font-family:var(--global-body-font-family);font-weight:600;font-size:15.5px;color:var(--global-palette4);padding:.6em 1em}
.main-navigation .primary-menu-container>ul>li.menu-item>a:hover,.main-navigation .primary-menu-container>ul>li.current-menu-item>a{color:var(--global-palette1)}
.main-navigation .primary-menu-container>ul>li.idh-nav-cta>a{background:var(--idh-orange);color:var(--idh-ink)!important;border-radius:999px;padding:.55em 1.25em;margin-left:.5em;font-weight:700}
.main-navigation .primary-menu-container>ul>li.idh-nav-cta>a:hover{background:var(--idh-orange-deep)}
.mobile-toggle-open-container .menu-toggle-open{color:var(--global-palette3)}
#mobile-drawer .drawer-inner{background:var(--idh-ink)}
#mobile-drawer .drawer-inner a{color:#fff;font-size:18px}

/* ---------- Buttons ---------- */
.wp-block-button__link,.wp-element-button,.button,button.button{border-radius:999px;padding:.85em 1.6em;font-weight:700;font-family:var(--global-body-font-family);font-size:16px;transition:transform .15s ease,background .15s ease,box-shadow .15s ease}
.wp-block-button__link:hover{transform:translateY(-1px)}
.idh-btn-primary .wp-block-button__link{background:var(--idh-orange);color:var(--idh-ink)!important}
.idh-btn-primary .wp-block-button__link:hover{background:var(--idh-orange-deep)}
.idh-btn-ink .wp-block-button__link{background:var(--idh-ink);color:#fff!important}
.idh-btn-ink .wp-block-button__link:hover{background:#2b2924}
.idh-btn-outline .wp-block-button__link{background:transparent;color:var(--idh-ink)!important;border:2px solid var(--idh-ink);padding:calc(.85em - 2px) calc(1.6em - 2px)}
.idh-btn-outline .wp-block-button__link:hover{background:var(--idh-ink);color:#fff!important}

/* ---------- Layout helpers ---------- */
.entry-content>.alignfull{margin-left:0;margin-right:0}
.idh-section{padding:clamp(56px,8vw,112px) 24px}
.idh-section>.wp-block-group__inner-container,.idh-section>*{max-width:1200px;margin-left:auto;margin-right:auto}
.idh-eyebrow{font-size:13px!important;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--global-palette1)!important;margin-bottom:.8em!important}
.idh-lead{font-size:clamp(17px,1.6vw,20px);color:var(--global-palette5);max-width:640px}
.idh-center{text-align:center}.idh-center .idh-lead{margin-left:auto;margin-right:auto}
.idh-section h2{font-size:clamp(30px,4vw,48px);margin:0 0 .4em}
/* 1% progress-line motif: a thin track with a small amber fill */
.idh-section h2::after,.idh-prose h2::after{content:"";display:block;width:72px;height:4px;border-radius:4px;margin-top:16px;background:linear-gradient(90deg,var(--idh-orange) 0 18%,var(--idh-line) 18% 100%)}
.idh-center h2::after{margin-left:auto;margin-right:auto}
.idh-steps-band h2::after,.idh-cta h2::after{background:linear-gradient(90deg,var(--idh-orange) 0 18%,rgba(255,255,255,.22) 18% 100%)}
.idh-progress{display:flex;align-items:center;gap:14px;margin-top:30px;max-width:420px;font-size:14px;font-weight:600;color:var(--global-palette5)}
.idh-progress i{flex:1;height:6px;border-radius:6px;background:var(--idh-line);position:relative;overflow:hidden}
.idh-progress i::before{content:"";position:absolute;left:0;top:0;bottom:0;width:12%;background:var(--idh-orange-deep);border-radius:6px}
.idh-progress b{color:var(--idh-ink);font-weight:800;white-space:nowrap}

/* ---------- Hero (split: bold type left, image right) ---------- */
.idh-hero{background:var(--idh-cream);padding:clamp(40px,6vw,88px) 24px clamp(40px,6vw,80px)!important}
.idh-hero .idh-herocols{max-width:1200px;margin:0 auto!important;align-items:center;gap:clamp(28px,5vw,64px)!important}
.idh-hero h1{font-size:clamp(40px,6.2vw,76px);letter-spacing:-.04em;line-height:1.02;margin:0 0 .35em;font-weight:800;max-width:13ch}
.idh-hero h1 em{font-style:normal;color:var(--global-palette1)}
.idh-hero p:not(.idh-eyebrow){font-size:clamp(17px,1.8vw,21px);max-width:520px;color:var(--global-palette5)}
.idh-hero .wp-block-buttons{margin-top:28px}
.idh-hero-sm{padding-top:clamp(32px,4.5vw,64px)!important;padding-bottom:clamp(32px,4.5vw,64px)!important}
.idh-hero-sm h1{font-size:clamp(36px,5vw,60px);max-width:16ch}
.idh-hero figure.wp-block-image{margin:0}
.idh-hero img.idh-hero-img{width:100%;height:auto;aspect-ratio:5/4;object-fit:cover;border-radius:28px;box-shadow:var(--idh-shadow);display:block}
.idh-hero-sm img.idh-hero-img{aspect-ratio:4/3}
.idh-hero-pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.idh-hero-pills span{background:var(--idh-card);border:1px solid var(--idh-line);color:var(--idh-ink);border-radius:999px;padding:6px 14px;font-size:14px;font-weight:600}

/* ---------- Feature cards ---------- */
.idh-cards{gap:24px!important;margin-top:40px}
.idh-card{background:var(--idh-card);border-radius:var(--idh-radius);padding:32px 28px!important;box-shadow:var(--idh-shadow);border:1px solid var(--idh-line);height:100%;transition:transform .2s ease}
.idh-card:hover{transform:translateY(-4px)}
.idh-card h3{font-size:21px;margin:18px 0 8px}
.idh-card p{color:var(--global-palette5);margin:0;font-size:16px}
.idh-icon{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:#fbe9d2;color:var(--global-palette1)}
.idh-icon svg{width:28px;height:28px}
.idh-icon.is-gold{background:var(--idh-ink);color:var(--idh-orange)}.idh-icon.is-sage{background:var(--idh-tint);color:#6b5320}

/* ---------- Image cards (fitness, tracking, reading, reflection) ---------- */
.idh-pillars{gap:22px!important;margin-top:44px}
.idh-pillar{background:var(--idh-card);border-radius:var(--idh-radius);overflow:hidden;box-shadow:var(--idh-shadow);border:1px solid var(--idh-line);height:100%;transition:transform .2s ease}
.idh-pillar:hover{transform:translateY(-4px)}
.idh-pillar figure{margin:0}
.idh-pillar img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.idh-pillar-body{padding:20px 22px 26px!important}
.idh-pillar h3{font-size:20px;margin:0 0 6px}
.idh-pillar p{margin:0;font-size:15.5px;color:var(--global-palette5)}
.idh-pillar-num{font-size:12px!important;letter-spacing:.14em;font-weight:800;color:var(--global-palette1)!important;margin:0 0 6px!important}

/* ---------- Steps band (ink) ---------- */
.idh-steps-band{background:var(--idh-ink);color:#fff;position:relative;overflow:hidden}
.idh-steps-band h2,.idh-steps-band h3{color:#fff}
.idh-steps-band .idh-eyebrow{color:var(--idh-orange)!important}
.idh-steps-band .idh-lead{color:rgba(255,255,255,.78)}
.idh-steps{gap:28px!important;margin-top:44px;position:relative;z-index:1}
.idh-step{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);border-radius:var(--idh-radius);padding:32px 28px!important;position:relative;overflow:hidden}
.idh-step::after{content:"";position:absolute;left:28px;right:28px;bottom:22px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--idh-orange) 0 var(--w,33%),rgba(255,255,255,.16) var(--w,33%) 100%)}
.idh-steps .wp-block-column:nth-child(2) .idh-step::after{--w:66%}.idh-steps .wp-block-column:nth-child(3) .idh-step::after{--w:100%}
.idh-step{padding-bottom:58px!important}
.idh-step-num{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--idh-orange);color:var(--idh-ink);font-weight:800;font-family:var(--global-body-font-family);margin:0 0 16px!important}
.idh-step p{color:rgba(255,255,255,.8);margin:0}
.idh-step h3{font-size:22px;margin:0 0 8px}

/* ---------- Split (image + text) ---------- */
.idh-split{gap:clamp(28px,5vw,64px)!important;align-items:center}
.idh-split figure{margin:0}
.idh-split img{border-radius:var(--idh-radius);box-shadow:var(--idh-shadow);width:100%;height:auto;display:block}
.idh-split-rev{flex-direction:row-reverse}
.idh-checks{list-style:none;padding:0;margin:20px 0 28px}
.idh-checks li{position:relative;padding-left:34px;margin:10px 0;color:var(--global-palette4)}
.idh-checks li::before{content:"";position:absolute;left:0;top:3px;width:22px;height:22px;border-radius:50%;background:var(--idh-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314130f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat}

/* ---------- Posts grid ---------- */
.idh-posts .wp-block-post-template{gap:28px!important}
.idh-post-card{background:var(--idh-card);border-radius:var(--idh-radius);overflow:hidden;box-shadow:var(--idh-shadow);border:1px solid var(--idh-line);height:100%;display:flex;flex-direction:column;transition:transform .2s ease}
.idh-post-card:hover{transform:translateY(-4px)}
.idh-post-card .wp-block-post-featured-image{margin:0}
.idh-post-card .wp-block-post-featured-image img{aspect-ratio:4/3;object-fit:cover;width:100%;height:auto;display:block}
.idh-post-card .idh-post-body{padding:22px 24px 26px!important}
.idh-post-card .wp-block-post-title{font-size:21px;margin:8px 0 8px;line-height:1.22;letter-spacing:-.02em;font-weight:700}
.idh-post-card .wp-block-post-title a{color:var(--global-palette3);text-decoration:none}
.idh-post-card .wp-block-post-title a:hover{color:var(--global-palette1)}
.idh-post-card .wp-block-post-excerpt{color:var(--global-palette5);font-size:15.5px;margin:0}
.idh-post-card .wp-block-post-excerpt__more-text{margin-top:12px}
.idh-post-card .wp-block-post-terms{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.idh-post-card .wp-block-post-terms a{background:var(--idh-tint);color:var(--global-palette1);padding:4px 10px;border-radius:999px;text-decoration:none}
.idh-post-card .wp-block-post-date{font-size:13px;color:var(--global-palette5)}
.idh-posts .wp-block-query-pagination{margin-top:36px}

/* ---------- Newsletter / CTA band (ink, with image) ---------- */
.idh-cta{background:var(--idh-ink);border-radius:28px;padding:0!important;color:#fff;position:relative;overflow:hidden;max-width:1200px;margin:0 auto}
.idh-cta .idh-ctacols{margin:0!important;gap:0!important;align-items:stretch}
.idh-cta .idh-ctacols>.wp-block-column:first-child{padding:clamp(32px,5vw,64px)}
.idh-cta .idh-ctacols>.wp-block-column:last-child{position:relative;min-height:260px}
.idh-cta figure{margin:0;position:absolute;inset:0}
.idh-cta figure img{width:100%;height:100%;object-fit:cover;display:block;border-radius:0;box-shadow:none}
.idh-cta h2{color:#fff;font-size:clamp(28px,3.4vw,42px);margin:0 0 .3em}
.idh-cta p{color:rgba(255,255,255,.86);max-width:560px}
.idh-cta .idh-eyebrow{color:var(--idh-orange)!important}
.idh-cta .wp-block-buttons{position:relative;z-index:1}
.idh-cta-wrap{padding:clamp(48px,7vw,96px) 24px}

/* ---------- Inner page content ---------- */
.idh-prose{max-width:760px;margin:0 auto;padding:clamp(48px,7vw,88px) 24px}
.idh-prose h2{font-size:clamp(26px,3vw,36px);margin:1.4em 0 .5em}
.idh-prose h2:first-child{margin-top:0}
.idh-prose p{color:var(--global-palette4)}
.idh-values{gap:20px!important;margin:28px 0}
.idh-value{background:var(--idh-card);border-radius:var(--idh-radius-sm);padding:22px!important;border:1px solid var(--idh-line);border-top:4px solid var(--idh-orange)}
.idh-value h3{font-size:19px;margin:0 0 6px}.idh-value p{margin:0;font-size:15.5px;color:var(--global-palette5)}
.idh-quote{border-left:6px solid var(--idh-orange);background:var(--idh-card);border-radius:0 var(--idh-radius-sm) var(--idh-radius-sm) 0;padding:24px 28px!important;font-size:clamp(20px,2.2vw,26px);font-weight:700;letter-spacing:-.02em;color:var(--global-palette3);margin:28px 0;line-height:1.3}
.idh-contact-card{background:var(--idh-card);border-radius:var(--idh-radius);padding:36px!important;box-shadow:var(--idh-shadow);border:1px solid var(--idh-line)}
.idh-contact-card h3{margin-top:0}
.idh-band-tint{background:var(--idh-tint)}

/* ---------- Single post ---------- */
.single-post .entry-content-wrap{padding-top:0}
.single-post .entry-title{font-size:clamp(34px,4.4vw,54px)}
.single-post .post-thumbnail img,.single-post .article-post-thumbnail img{border-radius:var(--idh-radius)}
.single-post .entry-content{font-size:18px}
.single-post .entry-content h2,.single-post .entry-content h3{margin-top:1.6em}

/* ---------- Footer ---------- */
.site-footer:not(.idh-footer){display:none}
.idh-footer{background:var(--idh-ink);color:rgba(255,255,255,.8);padding:72px 24px 28px;position:relative}
.idh-footer::before{content:"";position:absolute;left:max(24px,calc((100% - 1200px)/2 + 24px));top:0;width:96px;height:4px;border-radius:0 0 4px 4px;background:linear-gradient(90deg,var(--idh-orange) 0 18%,rgba(255,255,255,.2) 18% 100%)}
.idh-footer__inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr;gap:48px}
.idh-footer__brand img{height:52px;width:auto;margin-bottom:18px}
.idh-footer__brand p{max-width:380px;font-size:15.5px}
.idh-footer h3{color:#fff;font-family:var(--global-body-font-family);font-size:13px;letter-spacing:.14em;text-transform:uppercase;margin:6px 0 16px;font-weight:700}
.idh-footer ul{list-style:none;margin:0;padding:0}
.idh-footer li{margin:10px 0}
.idh-footer a{color:rgba(255,255,255,.88);text-decoration:none;font-size:15.5px}
.idh-footer a:hover{color:var(--idh-orange)}
.idh-footer__bottom{max-width:1200px;margin:48px auto 0;padding-top:24px;border-top:1px solid rgba(255,255,255,.14);display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:14px}

/* ---------- Mobile ---------- */
@media (max-width:1000px){.idh-pillars{flex-wrap:wrap!important}.idh-pillars>.wp-block-column{flex-basis:calc(50% - 11px)!important;flex-grow:0}}
@media (max-width:781px){
  .idh-footer__inner{grid-template-columns:1fr;gap:32px}
  .idh-hero{padding-left:20px!important;padding-right:20px!important}
  .idh-hero h1{max-width:none}
  .idh-hero img.idh-hero-img,.idh-hero-sm img.idh-hero-img{aspect-ratio:16/10;border-radius:20px}
  .idh-split{gap:28px!important}
  .idh-pillars>.wp-block-column{flex-basis:100%!important}
  .idh-cta{border-radius:22px}
  .idh-cta .idh-ctacols>.wp-block-column:last-child{min-height:200px;flex-basis:100%!important}
  .idh-section{padding-left:20px;padding-right:20px}
  .idh-cards,.idh-steps{gap:18px!important}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
.idh-center-buttons{justify-content:center;margin-top:40px}
.idh-disclaimer-wrap{padding-top:0!important;padding-bottom:56px!important}
.idh-disclaimer{max-width:760px;margin:0 auto;text-align:center;font-size:13.5px;color:var(--global-palette5)}
.idh-legal-head{padding-top:72px!important;padding-bottom:56px!important}
.idh-legal-head h1{color:#fff;font-size:clamp(36px,5vw,56px);margin:0}
.idh-section{padding-left:24px!important;padding-right:24px!important}
.idh-section:not(.idh-steps-band):not(.idh-band-tint)+.idh-section:not(.idh-steps-band):not(.idh-band-tint):not(.idh-disclaimer-wrap){padding-top:0!important}
.idh-cta-wrap{padding:24px 24px clamp(48px,7vw,88px)!important}
.idh-post-card .wp-block-post-date{margin-top:14px;display:block}
.idh-post-card .idh-post-body>*{margin-top:0}
.idh-posts+.idh-center-buttons,.wp-block-buttons.idh-center-buttons{margin-top:44px!important}
@media (max-width:781px){.idh-section{padding-left:20px!important;padding-right:20px!important}.idh-cta-wrap{padding-left:16px!important;padding-right:16px!important}}
.entry-content .idh-prose,.entry-content .idh-prose.alignfull{max-width:none!important;width:auto;margin-left:0!important;margin-right:0!important;padding:clamp(48px,7vw,88px) max(20px,calc((100% - 760px)/2)) clamp(24px,3vw,40px)!important;box-sizing:border-box}
.idh-prose .idh-values .wp-block-group,.idh-value{padding:22px 24px!important}
.idh-newsletter-embed:empty{display:none}.idh-newsletter-embed{margin:20px 0 8px;max-width:560px}
.idh-narrow>*{max-width:760px}
.idh-values-4{gap:20px!important;margin-top:36px}
.idh-band-tint .idh-values-4 .wp-block-column{flex-basis:calc(25% - 15px)!important}
@media (max-width:1000px){.idh-values-4{flex-wrap:wrap!important}.idh-band-tint .idh-values-4 .wp-block-column{flex-basis:calc(50% - 10px)!important}}
@media (max-width:600px){.idh-band-tint .idh-values-4 .wp-block-column{flex-basis:100%!important}}
/* v2.0.1 polish */
.idh-pillar figure.wp-block-image,.idh-split figure.wp-block-image{margin:0!important}
.idh-checks{margin-left:0!important;padding-left:0!important}
.idh-values-4 .wp-block-column{display:flex}.idh-values-4 .idh-value{width:100%}
.idh-hero+.idh-section{padding-top:clamp(32px,5vw,64px)!important}
.idh-hero img.idh-hero-img{object-position:68% 50%}
.idh-hero:not(.idh-hero-sm) img.idh-hero-img{aspect-ratio:4/3}
/* heading levels kept sequential for accessibility (h1 > h2) while keeping card-title styling */
.idh-section h2.idh-card-title,.idh-section .idh-post-card h2.wp-block-post-title{font-size:21px;margin:8px 0 8px;letter-spacing:-.02em}
.idh-section h2.idh-card-title{margin:18px 0 8px}
.idh-section h2.idh-card-title::after,.idh-section .idh-post-card h2.wp-block-post-title::after{display:none}
