/* CodeFrom Journal v30 · Modern editorial redesign (layers over existing design). */
:root{--cf30-ink:#181c35;--cf30-slate:#515a72;--cf30-accent:#6654db;--cf30-accent-dark:#4636bc;--cf30-line:#e9e8f4;--cf30-surface:#fff;--cf30-shadow:0 18px 54px rgba(41,32,104,.075)}
html{scroll-padding-top:105px}
body{background:#f7f8fc;color:var(--cf30-ink)}
::selection{background:#ddd5ff;color:#241a58}
a,button{ -webkit-tap-highlight-color:transparent }
@media(min-width:901px){.layout{width:calc(100% - 80px);max-width:1400px}.blog-nav.layout{max-width:1400px}}
/* Navigation and identity */
.blog-nav-wrap{padding:10px 0 11px;background:rgba(250,250,254,.78);border-bottom:1px solid rgba(108,100,151,.09);box-shadow:none}
.blog-nav{min-height:70px;padding:0 19px;border-radius:18px;background:rgba(255,255,255,.95);border:1px solid #e8e6f1;box-shadow:0 10px 35px rgba(36,29,91,.055)}
.blog-logo{color:#1e2042;letter-spacing:-.075em}.blog-logo .logo-accent{color:#6552d9}
.cf30-edition{margin-right:auto;font-size:10px;font-weight:800;letter-spacing:.16em;color:#6d6485;padding:9px 12px;border-left:1px solid #e7e5f0;white-space:nowrap}
.blog-nav-links a{font-weight:700;border-radius:11px}.blog-nav-links a.active{background:#eeeaff;color:#5541cf}
.nav-hire{background:#211b46;color:#fff;box-shadow:0 9px 20px rgba(56,39,135,.15)}
.cf-blog-login{border:1px solid #e5dff5;background:#f8f6ff;color:#4a3976;border-radius:12px;padding:12px 15px;font-size:12px;font-weight:800;white-space:nowrap}
.cf-blog-login:hover{background:#efebff}
/* Home: substantial header, editorial feature and topic system */
.blog-hero{padding:92px 0 107px;background:radial-gradient(circle at 86% 10%,rgba(173,157,255,.27),transparent 36%),radial-gradient(circle at 10% 92%,rgba(166,244,220,.34),transparent 35%),linear-gradient(120deg,#fcfbff 8%,#f7f6ff 55%,#eff9f7 100%);border-bottom:1px solid #e5e4f0}
.blog-hero:before{background:radial-gradient(circle,rgba(222,213,255,.65),transparent 68%);opacity:.65}
.blog-hero-grid{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:clamp(30px,4vw,72px)}
.blog-kicker{font-size:11px;color:#6e55d7;letter-spacing:.19em;font-weight:800}
.blog-hero h1{font-size:clamp(60px,6.2vw,97px);line-height:1.025;letter-spacing:-.077em;max-width:800px;color:#1b1b35}
.blog-hero h1 em{background:linear-gradient(100deg,#5d4bd6,#9561d6,#13a88d);-webkit-background-clip:text;background-clip:text;color:transparent}
.blog-hero p{color:#5a6075;font-size:17px;line-height:1.83;max-width:590px}
.blog-hero-actions{margin-top:36px}
.blog-hero-actions .button-primary{background:#251d57;border-radius:14px;box-shadow:0 16px 33px rgba(75,58,164,.2)}
.blog-hero-actions .button-subtle{border-radius:14px}
.cf30-hero-footnote{margin-top:36px;display:flex;align-items:center;gap:15px;flex-wrap:wrap;color:#77748f;font-size:12px;font-weight:600}
.cf30-hero-footnote b{color:#4235a4;font-weight:800}.cf30-foot-divider{height:17px;width:1px;background:#d6d1e8}
.hero-art{height:440px;padding:19px 9px 20px;filter:drop-shadow(0 28px 40px rgba(46,41,113,.11))}
.art-window{border-radius:30px;border:1px solid rgba(236,226,255,.19);background:radial-gradient(circle at 85% 20%,rgba(128,93,206,.32),transparent 35%),linear-gradient(140deg,#1b1c3d 0%,#27234d 100%);transform:rotate(2deg);box-shadow:23px 30px 65px rgba(44,34,98,.18)}
.art-window:after{content:'';position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.22) 1px,transparent 1px);background-size:25px 25px;mask-image:linear-gradient(90deg,transparent,black);opacity:.16;pointer-events:none}
.art-title{font-size:clamp(43px,4vw,64px);margin-top:90px}.art-title span{color:#baf5ce}.art-sticker{background:#c2facd;box-shadow:0 16px 30px rgba(44,39,73,.15)}
/* Compact value strip */
.cf30-pillars{background:#fff;border-bottom:1px solid #eceaf3}
.cf30-pillars-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:27px 0}
.cf30-pillar{display:flex;align-items:center;gap:17px;padding:10px 18px;min-width:0;border-right:1px solid #e9e7f1}
.cf30-pillar:last-child{border-right:none}
.cf30-pillar-icon{width:49px;height:49px;flex:none;border-radius:15px;display:grid;place-items:center;color:#5c46be;background:#f0ecff;font-size:23px}
.cf30-pillar strong{display:block;color:#25233c;font-weight:800;font-size:13px}.cf30-pillar p{font-size:11px;color:#817e91;margin:5px 0 0;line-height:1.6}
/* Featured post */
.cf21-spotlight{background:#f8f9fd;padding:72px 0 86px}
.cf21-feature-layout{box-shadow:0 26px 75px rgba(33,26,80,.095);border:1px solid #ece9f4;border-radius:32px}
.cf21-feature-info{padding:clamp(34px,4vw,70px)}
.cf21-chip{background:#f2eefe;color:#5b43c4;border-color:#e0d7ff}
.cf21-feature-info h2{color:#191a36;font-size:clamp(35px,3.8vw,59px)}
.cf21-feature-info>p:not(.cf21-overline){font-size:16px;color:#687083}
.cf21-feature-image{background:#edeaff}.cf21-feature-image .cf21-feature-cover{padding:clamp(24px,3vw,48px)}
.cf21-feature-bottom a{border-radius:13px;background:#5d4acf}
/* Search and article cards */
.articles-section{background:linear-gradient(180deg,#f7f6fd,#f9f9fc);padding:88px 0 107px;border-color:#edebf5}
.section-upper .small-label,.small-label{letter-spacing:.15em}
.section-upper h2{color:#212036;letter-spacing:-.068em}
.section-upper>p{font-size:14px;color:#717388;max-width:330px}
.blog-search{max-width:750px;margin:0 0 22px;padding:19px;background:#fff;border:1px solid #eae7f5;border-radius:20px;box-shadow:0 10px 35px rgba(35,26,78,.045)}
.blog-search label{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#736a91}
.search-row{gap:10px}
.search-row input{height:52px;border:1px solid #e7e4f2;border-radius:12px;background:#fafaff}
.search-row input:focus{border-color:#8876ee;background:#fff}
.search-row button{border-radius:12px;background:#272052;color:white;font-weight:800}
.cf21-explore-hint{font-size:12px;margin:25px 0 17px;color:#7d7990}
.categories{gap:10px;flex-wrap:wrap;margin-bottom:28px}
.categories a{display:inline-flex;align-items:center;gap:9px;min-height:43px;border-radius:12px;padding:10px 14px;background:#fff;border:1px solid #e6e1f3;color:#69617b;font-weight:750;transition:background .18s,border-color .18s,transform .18s}
.categories a:hover{background:#f1edff;border-color:#d4c9ff;transform:translateY(-2px)}
.categories a.selected,.categories a[aria-current=page]{background:#261f57;color:#fff;border-color:#261f57}
.cf30-category-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:8px;background:rgba(110,94,184,.1);font-size:10px}
.categories a.selected .cf30-category-count{background:rgba(255,255,255,.17)}
.articles-grid{gap:25px}
.blog-card{border-radius:23px;border:1px solid #e9e7f2;background:#fff;box-shadow:0 15px 34px rgba(34,29,91,.055);overflow:hidden;transition:transform .24s,box-shadow .24s,border-color .24s}
.blog-card:hover{transform:translateY(-6px);box-shadow:0 30px 65px rgba(35,27,95,.14);border-color:#d8d0f6}
.blog-card .blog-cover{overflow:hidden;min-height:220px}
.blog-card .cover-word{font-size:clamp(30px,2.9vw,43px)}
.blog-card-content{padding:27px 27px 24px}
.blog-card h3{font-size:clamp(21px,2vw,28px);line-height:1.23;letter-spacing:-.045em;color:#22213e}
.blog-card p{font-size:13px;line-height:1.85;color:#77758c}
.blog-card-footer{color:#817c94}
.blog-card-footer strong{color:#5f46d0}
/* Conversion area */
.blog-hire{background:#f9f9fc;padding:56px 0 91px}.hire-panel{background:radial-gradient(circle at 78% 20%,rgba(147,135,249,.24),transparent 32%),linear-gradient(115deg,#1c1a3a,#2b235b);border-radius:32px;box-shadow:0 25px 55px rgba(36,27,85,.13)}
.hire-panel h2{letter-spacing:-.07em}.hire-panel a{background:#c6f6d1}
.blog-footer{background:#f0eff8;border-top:1px solid #e5e2f0}
/* Long-form article: article body uses ≥70% of reading region on desktop */
.article-hero{position:relative;overflow:hidden;padding:67px 0 65px;background:radial-gradient(circle at 95% 0%,rgba(178,164,255,.18),transparent 37%),linear-gradient(135deg,#fdfdff,#f5f5fe 73%,#f3faf8);border-bottom:1px solid #edebf6}
.article-hero:before{content:'';position:absolute;width:390px;height:390px;right:-140px;bottom:-150px;border:1px solid rgba(120,102,213,.14);border-radius:50%;box-shadow:0 0 0 40px rgba(100,88,206,.025),0 0 0 90px rgba(100,88,206,.02);pointer-events:none}
.article-container{width:calc(100% - 80px);max-width:1400px;position:relative}
.breadcrumbs{margin-bottom:26px;color:#8b869d;font-size:12px}
.breadcrumbs a{color:#5b49c9}
.article-hero .blog-kicker{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;margin-bottom:14px;color:#7559d2}
.cf30-label-divider{color:#c6badf}.article-hero .cf30-hero-label{color:#624dc7}
.article-hero h1{max-width:1140px;font-size:clamp(44px,5.3vw,77px);line-height:1.09;letter-spacing:-.066em;color:#181b34;margin:15px 0 20px}
.article-deck{font-size:clamp(17px,1.55vw,21px);color:#687086;line-height:1.78;max-width:1080px;margin:0}
.article-byline{margin-top:26px;gap:13px;font-size:12px;color:#7b7892}
.article-byline .avatar{border-radius:15px;background:linear-gradient(135deg,#5548cd,#221a53)}
.article-byline b{font-size:13px}
.cf30-article-note{margin-left:4px;padding:8px 11px;border:1px solid #e6e0f4;border-radius:30px;color:#6e56bd;background:rgba(255,255,255,.8)}
.article-image.layout,.cf21-article-toolbar.layout,.article-layout.layout{max-width:1400px;width:calc(100% - 80px)}
.article-image{margin-top:40px}.article-image .blog-cover{height:390px;min-height:390px;border-radius:28px;padding:clamp(30px,4vw,58px);box-shadow:0 22px 50px rgba(49,38,104,.095)}
.article-image .cover-word{font-size:clamp(55px,7vw,103px);max-width:900px}.article-image .cover-label{font-size:12px}
.cf21-reading-progress{height:4px;z-index:110}
.cf21-article-toolbar{margin:24px auto 0;min-height:68px;padding:12px 16px 12px 24px;background:#fff;border:1px solid #ece9f5;box-shadow:0 10px 28px rgba(33,25,91,.04);border-radius:17px;color:#6d6781}
.cf21-toolbar-buttons button{background:#f9f7ff;border-radius:10px;border-color:#ebe7f5;min-height:37px}
.cf21-toolbar-buttons button:hover{background:#eeebff}
/* At 1101px and up, the article occupies about 78–82% of the grid, aside the rest. */
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:32px;align-items:start;padding-top:32px;padding-bottom:81px}
.article-prose{background:#fff;min-width:0;border:1px solid #ebe8f3;border-radius:26px;box-shadow:var(--cf30-shadow);padding:clamp(30px,3.1vw,45px);font-family:'DM Sans',system-ui,sans-serif;font-size:17px;line-height:1.92;color:#444a61;letter-spacing:.002em;overflow-wrap:anywhere}
.article-prose>p{margin:0 0 25px}
.article-prose h2{font-size:clamp(28px,2.4vw,37px);line-height:1.24;letter-spacing:-.052em;margin:48px 0 18px;padding-top:13px;color:#22203c}
.article-prose h3{font-size:clamp(23px,2vw,29px);line-height:1.3;color:#292642;margin:33px 0 14px}
.article-prose ul{margin:0 0 27px;padding-left:28px}.article-prose li{padding-left:4px;margin-bottom:10px}
.article-prose li::marker{color:#6e58de}
.article-prose strong{color:#292440;font-weight:800}
.article-prose a{color:#614acf;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.article-prose a:hover{color:#3622ab}
.article-prose blockquote{background:#f6f3ff;border-left:4px solid #7a62de;border-radius:0 14px 14px 0;padding:20px 24px;color:#514a6b}
.article-prose pre{background:#191936;border:1px solid #252451;box-shadow:0 12px 20px rgba(23,22,59,.08)}
.article-author{margin-top:62px;border-top:1px solid #eae7f1;padding-top:28px}
.cf30-article-intro{display:flex;gap:18px;align-items:flex-start;padding:23px 24px;margin:0 0 34px;background:linear-gradient(112deg,#f1f0ff,#f6fafa);border:1px solid #e1def4;border-radius:18px}
.cf30-article-intro-icon{flex:none;display:grid;place-items:center;width:40px;height:40px;background:#e4dbff;border-radius:13px;color:#6550cd;font-size:22px}
.cf30-article-intro>div>span{font-weight:800;font-size:10px;color:#6b4ac8;letter-spacing:.14em}
.cf30-article-intro p{margin:8px 0 0;font-size:15px;line-height:1.75;color:#565873}
.article-sidebar{position:sticky;top:110px;align-self:start;display:flex;flex-direction:column;gap:16px;max-height:calc(100vh - 125px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d7d0ed transparent}
.cf21-toc{border-radius:20px;background:#fff;border-color:#ebe9f4;box-shadow:0 10px 25px rgba(35,24,86,.04);padding:22px}
.cf21-toc .small-label{display:flex;justify-content:space-between;color:#4f468b;font-weight:800}
.cf30-toc-spark{color:#7e69e7;font-size:15px}
.cf21-toc a{font-size:12px;color:#73728b;padding:8px 9px 8px 13px}
.cf21-toc a.is-active{color:#533ac5;background:#f5f2ff}
.article-aside-card{position:relative;top:auto;background:linear-gradient(140deg,#eeeafe,#f4f4ff);border-color:#e2dcfa;border-radius:20px;padding:23px}
.article-aside-card h3{font-size:23px;color:#292243}.article-aside-card p{color:#756e8c}
.sidebar-project-link{margin-top:0;border-radius:14px;border-color:#e9e6f3;background:#fff}
.related{padding-bottom:100px}.related .articles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Wide/focus reading: user controlled, keeps all content accessible */
.cf30-focus-reading .article-layout{grid-template-columns:minmax(0,1fr)}
.cf30-focus-reading .article-sidebar{display:none}
.cf30-focus-reading .article-prose{max-width:1400px}
.cf30-focus-reading #cf30FocusMode,.cf30-text-large #cf30TextSize{color:white;background:#5e4ad4;border-color:#5e4ad4}
.cf30-text-large .article-prose{font-size:19px;line-height:2}
.cf30-text-large .article-prose p,.cf30-text-large .article-prose li{font-size:inherit}
/* Responsive */
@media(max-width:1180px){.cf30-edition{display:none}.blog-nav-links a{padding:11px 9px}.blog-hero h1{font-size:clamp(50px,6.2vw,78px)}}
@media(max-width:1100px){.article-layout{grid-template-columns:minmax(0,1fr)}.article-sidebar{display:none}.article-layout.layout,.article-image.layout,.cf21-article-toolbar.layout{width:calc(100% - 64px)}.article-container{width:calc(100% - 64px)}}
@media(max-width:900px){.blog-hero{padding:66px 0 74px}.blog-hero-grid{grid-template-columns:1fr}.hero-art{height:340px;max-width:650px;margin:auto;width:100%}.art-title{margin-top:56px}.cf30-pillars-grid{gap:8px}.cf30-pillar{padding:9px;gap:10px}.cf30-pillar-icon{width:39px;height:39px}.blog-nav-wrap{padding:7px 0}.cf21-spotlight{padding:43px 0 62px}.article-hero{padding:49px 0}.article-image{margin-top:25px}.article-image .blog-cover{height:290px;min-height:290px}}
@media(max-width:680px){.blog-nav{border-radius:14px;padding:0 12px;min-height:64px}.blog-hero{padding:55px 0 64px}.blog-hero h1{font-size:clamp(47px,10vw,66px)}.blog-hero p{font-size:15px}.cf30-hero-footnote{gap:11px;font-size:11px}.hero-art{height:290px}.art-title{font-size:clamp(34px,8vw,47px);margin:51px 0 24px}.cf30-pillars-grid{grid-template-columns:1fr;gap:0;padding:11px 0}.cf30-pillar{padding:14px 6px;border-right:0;border-bottom:1px solid #f0eef7}.cf30-pillar:last-child{border-bottom:0}.cf30-pillar strong{font-size:13px}.cf30-pillar p{font-size:11px}.cf21-spotlight{padding:25px 0 48px}.cf21-feature-layout{border-radius:22px}.cf21-feature-info{padding:26px}.cf21-feature-info h2{font-size:clamp(30px,7vw,43px)}.articles-section{padding:58px 0 70px}.blog-search{padding:12px;border-radius:14px}.search-row input{min-width:0}.categories{gap:7px}.categories a{min-height:39px;font-size:11px;padding:8px 10px}.cf30-category-count{min-width:20px;height:20px}.article-container,.article-layout.layout,.article-image.layout,.cf21-article-toolbar.layout{width:calc(100% - 30px)}.article-hero{padding:34px 0 42px}.article-hero h1{font-size:clamp(37px,9vw,55px);line-height:1.13}.article-deck{font-size:16px}.cf30-article-note{display:none}.article-image{margin-top:18px}.article-image .blog-cover{height:230px;min-height:230px;border-radius:19px;padding:24px}.article-image .cover-word{font-size:clamp(43px,10vw,69px)}.cf21-article-toolbar{margin-top:16px;padding:15px;gap:12px}.cf21-toolbar-buttons{width:100%;gap:6px}.cf21-toolbar-buttons button{flex:1 1 40%;min-height:36px;padding:8px 5px;font-size:11px}.article-layout{gap:0;padding-top:17px;padding-bottom:44px}.article-prose{padding:23px 19px;font-size:16px;line-height:1.87;border-radius:20px}.article-prose h2{font-size:27px;margin-top:37px}.article-prose h3{font-size:23px}.cf30-article-intro{padding:17px 15px;gap:12px}.cf30-article-intro-icon{width:33px;height:33px}.cf30-article-intro p{font-size:14px}.cf30-text-large .article-prose{font-size:17px}.blog-footer{padding-top:44px}}
@media(max-width:370px){.blog-hero-actions{flex-direction:column}.cf30-foot-divider{display:none}.blog-hero h1{font-size:44px}.hero-art{height:265px}.art-title{font-size:34px}}
@media(prefers-reduced-motion:reduce){.blog-card,.categories a,.blog-hero-actions a{transition:none!important}}

/* Consistent modern typography even if Google Fonts is temporarily unavailable. */
.art-title,.blog-card h3,.section-upper h2,.cf21-feature-info h2,.cf21-feature-cover .cover-word,.article-image .cover-word,.article-hero h1,.article-prose h2,.article-prose h3,.hire-panel h2,.article-aside-card h3,.blog-footer h2{font-family:'Space Grotesk','DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
