/*
Theme Name: How Firms Work
Theme URI: https://howfirmswork.com
Author: Editorial Studio
Description: Modern independent business editorial theme for howfirmswork.com.
Version: 4.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: howfirmswork
*/
:root{--ink:#112c36;--soft:#d7f2e8;--paper:#f5f8f5;--accent:#e5aa62;--line:rgba(20,35,40,.16)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.wrap{max-width:1230px;margin:auto;padding:0 28px}.topbar{background:var(--ink);color:#fff;font-size:11px;letter-spacing:2px;text-transform:uppercase;padding:10px 0}.topbar .wrap{display:flex;justify-content:space-between}.masthead{padding:28px 0 24px;border-bottom:1px solid var(--line)}.masthead .wrap{display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{display:flex;gap:13px;align-items:center;font-family:Georgia,serif;font-size:clamp(25px,3vw,39px);font-weight:bold;letter-spacing:-1.5px}.brandmark{width:39px;height:39px;border-radius:50%;background:var(--ink);color:var(--soft);display:grid;place-items:center;font:700 25px Georgia}.tagline{font-size:12px;max-width:200px;line-height:1.6;opacity:.7}.nav{border-bottom:1px solid var(--line);padding:16px 0}.nav .wrap{display:flex;gap:30px;flex-wrap:wrap;align-items:center}.nav a{font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:1px}.nav a:hover,.card h3 a:hover{color:#b56b35}.hero{padding:65px 0 55px}.eyebrow{font-size:11px;font-weight:bold;letter-spacing:2.5px;text-transform:uppercase}.hero-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;align-items:center}.hero h1{font-family:Georgia,serif;font-size:clamp(44px,6vw,82px);letter-spacing:-3px;line-height:1.03;margin:24px 0}.hero p{font-size:18px;line-height:1.8;max-width:510px}.hero-photo{width:100%;height:460px;object-fit:cover;border-radius:0 130px 0 0;box-shadow:20px 20px 0 var(--soft)}.cta{display:inline-block;background:var(--ink);color:white;padding:15px 22px;font-weight:700;font-size:12px;letter-spacing:1px;text-transform:uppercase;margin-top:22px}.ticker{background:var(--soft);padding:19px 0;font-size:13px;font-weight:bold;letter-spacing:1px}.section{padding:65px 0;border-top:1px solid var(--line)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:30px}.section-head h2{font:normal clamp(32px,4vw,53px) Georgia,serif;letter-spacing:-1.5px;margin:10px 0 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{min-width:0}.card img{width:100%;height:235px;object-fit:cover}.grid.four .card img{height:180px}.card .meta{font-size:10px;font-weight:bold;text-transform:uppercase;letter-spacing:1.6px;margin:18px 0 9px}.card h3{font:normal 26px/1.18 Georgia,serif;margin:0 0 12px}.card p{font-size:14px;line-height:1.7;opacity:.75}.read{font-size:11px;font-weight:bold;letter-spacing:1.2px;text-transform:uppercase;border-bottom:1px solid;padding-bottom:4px}.feature{background:var(--ink);color:white;padding:62px 0}.feature h2{font:normal 55px Georgia,serif;max-width:800px;margin:14px 0}.feature p{max-width:670px;line-height:1.8;opacity:.8}.content{max-width:820px;margin:60px auto 100px;padding:0 24px}.content h1{font:normal clamp(40px,5vw,68px)/1.07 Georgia,serif;letter-spacing:-2px}.content .lead{font-size:20px;line-height:1.7}.content .cover{width:100%;max-height:480px;object-fit:cover;margin:30px 0}.entry{font-size:17px;line-height:1.9}.entry a{color:#9a5d29;text-decoration:underline}.entry a[href^='http']:not([href*='howfirmswork.com']){color:#bd562e}.site-footer{background:var(--ink);color:white;padding:70px 0 25px;margin-top:60px}.footgrid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:45px}.site-footer h2{font:normal 45px Georgia,serif;margin:0 0 15px}.site-footer p{opacity:.7;line-height:1.8}.site-footer a{display:block;margin:12px 0}.footbottom{border-top:1px solid #ffffff40;margin-top:40px;padding-top:25px;font-size:12px;opacity:.7}.search-field{padding:12px;border:1px solid var(--line);background:transparent;max-width:220px}.search-submit{padding:12px;background:var(--ink);color:white;border:0;cursor:pointer}.pagination{margin:35px 0}@media(max-width:800px){.hero-grid,.grid,.grid.four,.footgrid{grid-template-columns:1fr 1fr}.hero h1{font-size:46px}.hero-photo{height:300px}}@media(max-width:540px){.masthead .wrap,.hero-grid,.grid,.grid.four,.footgrid{grid-template-columns:1fr;display:grid}.nav .wrap{gap:15px}.hero{padding:35px 0}.hero-photo{height:250px}.feature h2{font-size:38px}.section{padding:42px 0}}

/* V2 extended editorial homepage */
:root{--ink:#092a3b;--soft:#eaf2f6;--paper:#fffdfa;--accent:#1d79a8;--line:#dfe5e7}
body{background:#fffdfa;color:#0d2939}.wrap{max-width:1390px}.masthead{padding:14px 0;background:#fff;border-bottom:1px solid #e8e8e8}.header-row{display:flex!important;justify-content:space-between;align-items:center;gap:22px}.brand{display:block;font:bold clamp(24px,2.5vw,37px) Georgia,serif;letter-spacing:-1.5px;white-space:nowrap}.brand span,.footer-brand span{color:#2789c3}.brand small{display:block;font:9px Arial,sans-serif;letter-spacing:2.2px;font-weight:500;margin-top:4px}.nav{padding:0;border:0;display:flex;gap:24px;flex-wrap:wrap}.nav a{font-size:11px;letter-spacing:1.1px}.header-actions{display:flex;align-items:center;gap:20px}.search-icon{font-size:28px}.subscribe-btn{padding:14px 20px;background:#092a3b;color:#fff;text-transform:uppercase;font-size:10px;font-weight:bold;letter-spacing:1px}.hero-big{background:linear-gradient(90deg,#f8f1e9,#fff 58%);overflow:hidden}.hero-big-grid{display:grid;grid-template-columns:42% 58%;min-height:570px;align-items:center}.hero-copy{padding:55px 35px 55px 0;z-index:1}.hero-copy h1{font:normal clamp(52px,6.2vw,93px)/.98 Georgia,serif;letter-spacing:-4px;margin:26px 0}.hero-copy h1 em{font-style:normal;color:#166080}.hero-copy p{font:20px/1.55 Georgia,serif;max-width:510px}.hero-visual{height:570px;position:relative}.hero-visual img{width:100%;height:100%;object-fit:cover}.hero-visual span{position:absolute;bottom:24px;right:24px;background:#fffdf5e8;padding:12px 15px;font-size:10px;letter-spacing:2px;max-width:260px;line-height:1.6}.cta{background:#092a3b}.category-strip{padding:36px 0 45px;background:#f4f8fa}.category-strip .eyebrow{margin-bottom:19px}.category-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}.category-grid a{background:#fff;min-height:96px;border:1px solid #e4edf1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;text-align:center;padding:12px 6px;font-size:11px;font-weight:bold}.category-grid a:hover{background:#dceff8}.category-symbol{font-size:28px;color:#2475a0}.section{padding:75px 0}.section-head h2{font-size:clamp(34px,4vw,57px)}.homepage-main{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,1fr);gap:35px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.two .card img{height:230px}.card .meta a{color:#276f96}.card h3{font-size:24px}.newsletter-card{background:#eaf3f7;padding:28px;margin-bottom:32px}.newsletter-card h3{font:normal 30px Georgia,serif;margin:20px 0 12px}.newsletter-card p{font:15px/1.6 Georgia,serif}.newsletter-card label{display:block;font-size:11px;margin:12px 0}.newsletter-card input{padding:14px;width:100%;border:1px solid #d1dce1}.newsletter-card button{width:100%;background:#092a3b;color:#fff;border:0;padding:14px;margin-top:9px;cursor:pointer}.newsletter-card small{display:block;margin-top:12px;opacity:.7}.popular-item{display:flex;gap:12px;border-bottom:1px solid #e4e7e9;padding:14px 0;font:17px/1.3 Georgia,serif}.popular-item img{width:93px;height:70px;object-fit:cover}.popular-item small{display:block;font:9px Arial,sans-serif;text-transform:uppercase;letter-spacing:1px;color:#648095;margin-top:7px}.deep-dive{background:#082b3c;color:#fff;padding:70px 0}.deep-grid{display:grid;grid-template-columns:42% 58%;align-items:center;gap:30px}.deep-grid h2{font:normal clamp(52px,5vw,78px)/1.05 Georgia,serif;margin:20px 0}.deep-grid h2 em{color:#91b8c8}.deep-grid p{font:18px/1.7 Georgia,serif;max-width:450px}.deep-grid img{height:450px;width:100%;object-fit:cover}.cta.light{background:#fff;color:#092a3b}.alternate{background:#f4f8fa}.spotlight{background:#fff;padding:75px 0}.spotlight-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:70px}.spotlight img{height:460px;width:100%;object-fit:cover}.spotlight h2{font:normal clamp(42px,4.5vw,66px)/1.08 Georgia,serif;margin:18px 0}.spotlight p{font:19px/1.6 Georgia,serif}.bottom-cta{background:#dcecf2;padding:80px 0;text-align:center}.bottom-cta h2{font:normal clamp(40px,5vw,66px) Georgia,serif;max-width:850px;margin:22px auto}.bottom-cta p{font:19px/1.6 Georgia,serif;max-width:750px;margin:auto}.site-footer{margin:0;background:#092a3b}.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr;gap:50px}.footer-brand{font:bold 40px Georgia,serif}.footer-top strong{font-size:11px;letter-spacing:2px}.footer-top a:not(.footer-brand){font-size:14px}.footer-bottom{border-top:1px solid #ffffff33;margin-top:45px;padding-top:25px;display:flex;justify-content:space-between;font-size:12px;opacity:.7}.entry a{color:#1b729e}.entry a[href^='http']:not([href*='howfirmswork.com']){color:#c15e2d}
@media(max-width:1100px){.header-row{flex-wrap:wrap}.category-grid{grid-template-columns:repeat(5,1fr)}.hero-big-grid{grid-template-columns:1fr 1fr}.hero-copy h1{font-size:58px}.homepage-main{grid-template-columns:2fr 1fr}}
@media(max-width:750px){.hero-big-grid,.homepage-main,.deep-grid,.spotlight-grid,.footer-top{grid-template-columns:1fr}.hero-big-grid{min-height:auto}.hero-visual{height:330px}.hero-copy{padding:55px 0 30px}.category-grid{grid-template-columns:repeat(3,1fr)}.grid.two,.grid.four{grid-template-columns:repeat(2,1fr)}.deep-grid img{height:300px}.nav{gap:12px}.header-actions{margin-left:auto}.spotlight-grid{gap:30px}.footer-bottom{display:block}}
@media(max-width:490px){.category-grid{grid-template-columns:repeat(2,1fr)}.grid.two,.grid.four{grid-template-columns:1fr}.hero-copy h1{font-size:48px}.hero-copy p{font-size:17px}.hero-visual{height:260px}.brand{font-size:29px}.nav a{font-size:10px}.section{padding:45px 0}}

/* V3 visible logo, photograph showcase and external research links */
.brand{display:flex;align-items:center;gap:11px}.brand-logo{width:46px;height:46px;flex:none}.brand-words{display:block}.brand-words>span{color:#2789c3}.brand-words small{display:block}.photo-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.photo-edit-grid figure{margin:0}.photo-edit-grid img{width:100%;height:280px;object-fit:cover}.photo-edit-grid figcaption{font-size:11px;font-weight:700;letter-spacing:2px;margin-top:14px;color:#276f96}.resource-section{background:#eaf2f6;padding:75px 0}.resource-section>div>p{font:18px/1.6 Georgia,serif;max-width:700px}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}.external-resource{background:white;padding:28px;border-top:4px solid #d58c47;min-height:150px}.external-resource strong{display:block;font:25px Georgia,serif;color:#092a3b;margin-bottom:16px}.external-resource span{color:#ad562c;font-size:14px;line-height:1.6}.external-resource:hover{box-shadow:0 8px 24px #092a3b18}.inline-related{border-left:4px solid #217ba4;background:#eff6f8;padding:22px 26px;margin:35px 0}.inline-related ul{margin:14px 0 0;padding-left:22px}.inline-related li{margin:10px 0;line-height:1.5}.entry .inline-related a{color:#155c84;font-weight:700;text-decoration:none}.entry .inline-related a:hover{text-decoration:underline}.entry a[href^="https://"]:not([href*="howfirmswork.com"]),.entry a[href^="http://"]:not([href*="howfirmswork.com"]){color:#b45a27;text-decoration:underline}
@media(max-width:750px){.photo-edit-grid,.resource-grid{grid-template-columns:1fr}.photo-edit-grid img{height:260px}.brand-logo{width:38px;height:38px}}

/* V4: photographic category strip and real photo post cards */
.category-strip{padding:24px 0 38px;background:#fff}.category-photos{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}.category-photos a{min-height:0;padding:0;background:#fff;border:0;display:block;overflow:hidden;text-align:center}.category-photos a img{display:block;width:100%;height:78px;object-fit:cover;transition:transform .25s}.category-photos a:hover img{transform:scale(1.045)}.category-photos a span{display:block;padding:9px 2px 5px;font-size:11px;line-height:1.2;color:#0b2a3a}.category-photos a:hover{background:#f3f8fa}.card img{object-fit:cover}.popular-item img{object-fit:cover}.brand-logo{display:block}
@media(max-width:1050px){.category-photos{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:650px){.category-photos{grid-template-columns:repeat(3,minmax(0,1fr))}.category-photos a img{height:85px}}@media(max-width:380px){.category-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}
