/* pxDest v4 loader g (Dec 3, 2026, 12:15 a.m. ET). His click: the 3 homepage panels go "Off the homepage"; he wants a sign-up CTA.
Homepage hero = kicker, headline, sign-up form (members: "Open Nib"). Phones: 1 row of 3 links. Header menu: tighter gap so every link shows on wide screens.
Replaces loader e (which held loaders b-e). The panel copy is kept in claude/homepage-hero-off-the-homepage-dec2.md. Source: claude/pxdest-v4-loaderf.js */
(function(){var s=document.createElement('style');s.id='px-loaderf-css';s.textContent=''
+'.gh-navigation .px-soc a{color:rgba(22,21,19,.2)!important}.gh-navigation .px-soc a:hover,.gh-navigation .px-soc a:focus-visible{color:#161513!important}'
+'body.home-template .px-dest3{display:none!important}'
+'@media(max-width:859px){html body.home-template .px-hm .plys-hero{display:none!important}body.home-template .px-hm .b{margin-top:1.2rem!important}}'
/* the hero is short now: keep the pixel animation small, on the button row, clear of the headline */
+'@media(min-width:860px){html body.home-template .px-hm .plys-hero{width:216px!important;max-width:216px!important;height:auto!important}html body.home-template .px-hm .plys-hero canvas,html body.home-template .px-hm .plys-hero img,html body.home-template .px-hm .plys-hero svg{width:100%!important;height:auto!important}}'
/* phone row of 3 links */
+'.px-doors{display:none}'
+'@media(max-width:767px){body.home-template .px-doors{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem 1rem;margin:1.4rem 0 0;padding:1.1rem 0;border-top:2px solid #161513;border-bottom:1px solid rgba(22,21,19,.18)}body.home-template .px-doors a{font-weight:700;font-size:1.5rem;line-height:1.2;color:#161513;text-decoration:none;white-space:nowrap}}'
/* sign-up form */
+'body.home-template .px-hm .b a.go.px-hide{display:none!important}'
+'.px-cta{grid-column:2;display:flex;align-items:stretch;margin:0;position:relative}'
+'.px-cta label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}'
+'.px-cta input{width:27rem;max-width:100%;height:45px;box-sizing:border-box;margin:0;padding:0 1.4rem;border:1px solid #161513;border-right:0;border-radius:0;background:#fff;color:#161513;font-size:1.5rem;line-height:1;-webkit-appearance:none;appearance:none}'
+'.px-cta input:focus-visible{outline:2px solid #161513;outline-offset:2px}'
+'.px-cta button{position:relative;z-index:0;height:45px;margin:0;padding:0 2.4rem;border:0;border-radius:0;cursor:pointer;white-space:nowrap}'
+'.px-cta button[disabled]{opacity:.7;cursor:default}'
+'.px-cta button::before{content:"";position:absolute;inset:-7px;padding:2px;background:conic-gradient(from var(--pxa),rgba(200,16,46,0) 0 58%,#f2c14e 80%,#c8102e 100%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:pxring 2.8s linear infinite;pointer-events:none}'
+'@media(prefers-reduced-motion:reduce){.px-cta button::before{animation:none}}'
+'.px-cta-msg{grid-column:1/-1;margin:1rem 0 0;text-align:center;font-size:1.5rem;line-height:1.4;color:#161513;display:none}.px-cta-msg.on{display:block}.px-cta-msg.err{color:#b9441a}'
+'@media(max-width:859px){.px-cta{grid-column:1;flex-direction:column;width:100%}.px-cta input{width:100%;border-right:1px solid #161513;border-bottom:0}.px-cta button{width:100%}.px-cta button::before{display:none}}'
/* header menu: a little less air between the letters on mid-width screens */
+'@media(min-width:1200px) and (max-width:1339px){html body .gh-navigation.is-middle-logo .gh-navigation-menu .nav a,html body .gh-navigation.is-middle-logo .gh-navigation-menu .nav a span{letter-spacing:.05em!important}}';
document.head.appendChild(s);
window.pxSub={'prizecraft-1-7':'7 judges’ accounts of the Booker & the Pulitzer, read side by side: nearly identical conflicts turned up in each.'};
var a=document.createElement('script');a.src='https://storage.ghost.io/c/4e/c3/4ec30a9c-d909-4c02-a1d1-d5fff50267a0/content/files/2026/12/pxdest-v4-add-dec2.js';document.head.appendChild(a);})();
/* loader d (Dec 2): hero lines up with the header at tablet widths */
(function(){function pad(){var i=document.querySelector('.px-hm .gh-inner'),n=document.querySelector('.gh-navigation-inner');if(!i||!n)return;i.style.paddingLeft=i.style.paddingRight='';if(window.innerWidth<768)return;var d=n.getBoundingClientRect().left-i.getBoundingClientRect().left;if(d>4){i.style.boxSizing='border-box';i.style.paddingLeft=i.style.paddingRight=Math.round(d)+'px';}}
document.addEventListener('DOMContentLoaded',pad);window.addEventListener('resize',pad);setTimeout(pad,300);setTimeout(pad,1500);})();
/* loader f, part 1: homepage hero without the panels */
(function(){
function hero(){
if(!document.body||!document.body.classList.contains('home-template'))return;
var hm=document.querySelector('.px-hm .gh-inner');if(!hm)return;
var b=hm.querySelector('.b'),go=b&&b.querySelector('a.go');if(!b||!go)return;
if(!hm.querySelector('.px-doors')){var d=document.createElement('nav');d.className='px-doors';d.setAttribute('aria-label','Sections');
d.innerHTML='📖 Magazine✏️Nib™ & Tools📊 Prosedata';b.parentNode.insertBefore(d,b);}
if(b.getAttribute('data-px6'))return;b.setAttribute('data-px6','1');
var member=!!document.querySelector('.gh-navigation-members [data-portal="account"]');
if(member){var n=go.cloneNode(false);n.removeAttribute('data-portal');n.setAttribute('href','/nib/');n.textContent='Open ✏️Nib™ →';go.parentNode.replaceChild(n,go);return;}
var cs=getComputedStyle(go);
var f=document.createElement('form');f.className='px-cta';f.setAttribute('novalidate','');
f.innerHTML='';
var bt=f.querySelector('button');bt.style.background=cs.backgroundColor;bt.style.color=cs.color;bt.style.fontFamily=cs.fontFamily;bt.style.fontSize=cs.fontSize;bt.style.fontWeight=cs.fontWeight;bt.style.letterSpacing=cs.letterSpacing;bt.style.textTransform=cs.textTransform;
var msg=document.createElement('p');msg.className='px-cta-msg';msg.setAttribute('aria-live','polite');
go.classList.add('px-hide');b.insertBefore(f,go);b.appendChild(msg);
function say(t,err){msg.textContent=t;msg.className='px-cta-msg on'+(err?' err':'');}
f.addEventListener('submit',function(e){e.preventDefault();
var input=f.querySelector('input'),email=input.value.trim();
if(!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(email)){say('Enter a full email address.',true);input.focus();return;}
bt.disabled=true;bt.textContent='Sending';
fetch('/members/api/integrity-token/').then(function(r){return r.text()}).then(function(tok){
return fetch('/members/api/send-magic-link/',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({email:email,emailType:'signup',integrityToken:tok})})})
.then(function(r){if(r.ok){f.style.display='none';say('Check your inbox and click the link to confirm.');return;}
return r.json().catch(function(){return {}}).then(function(j){var m=j&&j.errors&&j.errors[0]&&j.errors[0].message;throw new Error(m||'');});})
.catch(function(err){bt.disabled=false;bt.textContent='Sign up free';say((err&&err.message)||'That did not go through. Try again.',true);});
});
}
function run(){try{hero()}catch(e){}}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',run);else run();
setTimeout(run,450);setTimeout(run,1600);window.addEventListener('load',run);
})();
/* loader f, part 2: the theme folds menu links behind a "..." button when they do not fit beside the centred logo.
With the socials in the header, Membership was folded away even at 1440px. A smaller gap lets all links show from about 1200px up. */
(function(){
var busy=0;
function fit(){
var ul=document.querySelector('.gh-navigation.is-middle-logo .gh-navigation-menu .nav');if(!ul)return;
var w=window.innerWidth,g=w>=1340?'24px':(w>=1200?'14px':'');
if(ul.getAttribute('data-pxg')===g)return;
ul.setAttribute('data-pxg',g);
if(g)ul.style.setProperty('gap',g,'important');else ul.style.removeProperty('gap');
if(!busy){busy=1;setTimeout(function(){window.dispatchEvent(new Event('resize'));setTimeout(function(){busy=0},50);},20);}
}
function run(){try{fit()}catch(e){}}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',run);else run();
window.addEventListener('load',function(){var ul=document.querySelector('.gh-navigation.is-middle-logo .gh-navigation-menu .nav');if(ul)ul.removeAttribute('data-pxg');run();});
window.addEventListener('resize',function(){if(!busy)run();});
})();
/* loader g (Dec 3, 2026, his click: "Build it"): every post card shows 1 of the Magazine's 4 sections, with its series after it.
The section comes from the post's own tags, by the same rule /magazine/ uses to file posts into its 4 channels.
Runs on the homepage & on any page with post cards. Changes the label text only; no link, title or tag is touched. */
(function(){
var SEC={interviews:'Interviews',profiles:'Interviews',"asked-twice":'Interviews',prizecraft:'Prizes & Publishing',prizes:'Prizes & Publishing',"national-book-awards":'Prizes & Publishing',chartcraft:'Prizes & Publishing',data:'Prizes & Publishing',"prosedata-updates":'Prizes & Publishing',news:'Prizes & Publishing',craft:'Craft',lossless:'Craft',workshop:'Tools'};
function sectionOf(slugs){
if(slugs.length===1&&slugs[0]==='workshop')return 'Tools';
for(var i=0;i