/* Single public-site palette, independent of saved or system theme. */
:root, :root[data-theme] {
 color-scheme:light; --bg:#f5f2eb; --surface:#ece8df; --surface-hover:#e5e1d8;
 --ink:#272c32; --heading:#272c32; --text-primary:#272c32;
 --text-body:#4d535c; --text-main:#4d535c; --text-card:#626872; --text-muted:#626872; --muted:#626872;
 --border:#d6d3cb; --line:#d6d3cb; --border-hover:#bcbab3;
 --accent:#315da3; --accent-hover:#244c8a; --accent-light:#244c8a;
 --accent-soft:rgba(49,93,163,.07); --accent-glow:rgba(49,93,163,.12);
}
html{scroll-padding-top:24px}body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
*,*::before,*::after{box-sizing:border-box}img{max-width:100%}a,button,input{touch-action:manipulation}button,input{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.theme-toggle,.theme-btn{display:none!important}
/* Every navigation destination stays reachable on phones. */
.site-header{padding:22px 0}body>nav{position:static;background:var(--bg);backdrop-filter:none;padding:22px 0}
.nav-content,.site-header .nav{display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo,.logo a{font:800 16px Arial,Helvetica,sans-serif;letter-spacing:.03em;text-transform:uppercase;color:var(--ink)}
.nav-links{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0}
.nav-links li{display:block}.nav-links a{display:inline-flex;align-items:center;min-height:44px;font:500 13px Arial,Helvetica,sans-serif;color:var(--ink);padding:10px 0}
.nav-links a:hover,.nav-links a.active{color:var(--accent)}
body.editorial{font-family:Arial,Helvetica,sans-serif;overflow-x:visible}
.editorial .container{max-width:900px;padding-inline:32px}
.editorial .page-body{padding-top:48px}.editorial .page-header{padding-top:48px}
.editorial h1,.editorial .hero h1{font-family:Arial,Helvetica,sans-serif;font-size:clamp(32px,4vw,52px);font-weight:600;letter-spacing:-.045em;line-height:1.12}
.editorial h2,.editorial h3,.editorial .bit-title{font-family:Arial,Helvetica,sans-serif;letter-spacing:-.025em}
.editorial .bit-body{font-size:17px;line-height:1.85;overflow-wrap:anywhere}
.editorial .bit-body h2{font-size:29px}.editorial .bit-body h3{font-size:23px}
.editorial .author-hero{padding-top:36px;padding-bottom:24px;margin-bottom:28px}
.editorial .author-hero img{width:52px;height:52px}.editorial .author-footer{border-radius:0}
.editorial .related-card,.editorial .service-card{background:transparent;border-width:1px 0 0;border-radius:0;box-shadow:none}
.editorial .service-card{padding:28px 0}.editorial .service-card:hover{transform:none;box-shadow:none}
.editorial .bit-card{background:transparent;border-radius:0;border-width:1px 0 0;padding:26px 0;box-shadow:none}
.editorial .bit-card:hover{background:transparent;transform:none;box-shadow:none}
.editorial .bit-title{font-size:26px;line-height:1.25}.editorial .bit-text{color:var(--text-body)}
.editorial .tag-filters{gap:8px}.editorial .tag-pill{min-height:44px;color:var(--ink);border-color:var(--border)}
.editorial .tag-pill.active{background:var(--accent);color:white;border-color:var(--accent)}
.editorial .cta-primary,.editorial .newsletter-signup button{background:var(--accent);color:white;border-radius:2px;min-height:44px}
.editorial .cta-primary:hover,.editorial .newsletter-signup button:hover{background:var(--accent-hover);box-shadow:none}
.editorial footer{background:var(--bg)}.editorial input[type=email]{font-size:16px;min-height:44px}
.editorial .newsletter-signup form{max-width:100%}.editorial .newsletter-signup input{min-width:0}
.editorial .bit-meta{flex-wrap:wrap}.editorial pre{max-width:100%;white-space:pre-wrap}.editorial table{display:block;max-width:100%;overflow-x:auto}
@media(max-width:760px){
 .site-header{padding:12px 0}body>nav{padding:12px 0}
 .nav-content,.site-header .nav{flex-wrap:wrap;gap:0}
 .wordmark,.logo,.logo a{font-size:13px}
 .nav-links,.site-header .nav-links{width:100%;justify-content:space-between;gap:12px;flex-wrap:wrap}
 .nav-links li:first-child,.nav-links li:nth-child(3){display:block}
 .nav-links a,.site-header .nav-links a{font-size:12px;min-height:44px}
 .nav-work,.nav-bits{display:inline-flex}
 .editorial .container{padding-inline:20px}
 .editorial .page-body,.editorial .page-header{padding-top:32px}
 .editorial .hero{margin-bottom:36px}.editorial .hero-intro{font-size:16px}
 .editorial .author-hero{display:flex!important;padding-top:28px;padding-bottom:20px;margin-bottom:24px;gap:14px}
 .editorial h1{margin-top:0}.editorial .bit-body{font-size:16px;line-height:1.8}
 .editorial .bit-body h2{font-size:27px;margin-top:36px}.editorial .bit-title{font-size:24px}
 .editorial .author-footer{align-items:flex-start;gap:14px;flex-wrap:wrap}.editorial .author-footer-info{min-width:0}
 .editorial .author-footer-links{flex-wrap:wrap}.editorial .author-footer-links a{white-space:normal}
 .editorial .newsletter-signup form{width:100%;flex-wrap:wrap}.editorial .newsletter-signup input[type=email]{width:100%;flex:1 1 160px}
 .editorial .newsletter-signup button{flex:1 1 90px}.editorial .related-grid{grid-template-columns:1fr}
 .editorial .services-grid{margin-top:30px;gap:12px}
}
@media(max-width:360px){.editorial .container{padding-inline:16px}.nav-links,.site-header .nav-links{gap:8px}.nav-links a,.site-header .nav-links a{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
/* A compact, deliberate portrait on phones, not the HTML intrinsic height. */
.portrait-image{height:auto}
body{background:var(--bg)!important;color:var(--ink)}
@media(max-width:760px){
 .hero{padding-top:22px;padding-bottom:32px}
 .hero-grid{gap:24px}
 .portrait{display:flex;align-items:center;gap:18px;margin:0}
 .portrait-image{width:112px;height:132px;aspect-ratio:auto;object-fit:cover;object-position:50% 16%;flex:none}
 .portrait figcaption{display:flex;flex-direction:column;justify-content:center;gap:8px;max-width:170px;padding:0;font-size:9px;line-height:1.6}
 .hero-label{margin-bottom:16px}.hero-scale{margin-top:18px}
}
/* Reading is immediate; no staggered invisible cards on mobile or reduced motion. */
.editorial .bit-card{opacity:1;animation:none;transform:none}
.editorial h1,.editorial h2,.editorial h3{color:var(--ink)}
.editorial a{color:var(--accent)}
.editorial .cta-primary,.editorial .tag-pill.active{color:white}
@media(max-width:760px){.editorial .stats-grid,.editorial .stats-bar,.editorial .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.editorial .stat-card{min-width:0;padding:16px 8px}.editorial .stat-number{font-size:28px}.editorial .stat-label{overflow-wrap:anywhere}}
.editorial .bit-title{white-space:normal;overflow:visible;text-overflow:clip}
.editorial .bit-card{height:auto;min-height:0}
.editorial .logo,.editorial .logo a,.editorial .nav-links a{color:var(--ink)}
.editorial .nav-links a.active,.editorial .nav-links a:hover{color:var(--accent)}
