/* Counterra home fluid type (ctrhome). Front page only. Parent theme untouched. Undo = deactivate plugin. */
/* Base text grows/shrinks with the window: 15px on phones -> ~17.7px @1366 -> ~19.2px @1920 -> 21px cap @2560+ */
body.home{--ctrhome-base:clamp(15px, calc(13.9px + 0.277vw), 21px)}
/* 1) "Home" title: removed in PHP; this is a fallback so it can never take space */
body.home .site-content article .entry-header{display:none!important}
body.home.ast-plain-container.ast-no-sidebar #primary{margin-top:clamp(16px,1.6vw,36px)}
/* 2) Main text */
body.home .site-content .entry-content{font-size:var(--ctrhome-base)}
body.home .site-content .entry-content :is(p,li){font-size:inherit}
/* Headings keep their hierarchy and grow with the base (≈ current sizes at 390 and 1366) */
body.home .site-content .entry-content h2{font-size:calc(var(--ctrhome-base)*1.5 + 0.25vw)}
body.home .site-content .entry-content h3{font-size:calc(var(--ctrhome-base)*1.25 + 0.12vw)}
/* Gallery tiles widen with the text so titles stay proportional (was fixed 15rem) */
body.home .site-content .entry-content .ctr-kgi-grid{grid-template-columns:repeat(auto-fill,minmax(min(14em,100%),1fr))}
/* Pam line (inline 20px) scales too */
body.home .ctr-pam-cta{font-size:calc(var(--ctrhome-base)*1.25)!important}
