/* Approved homepage, using the same 1066px content width as Explore and Projects. */
.spj-home-frame{container:spj-home/inline-size;max-width:1178px;margin-inline:auto}
.spj-home{max-width:1066px;margin:0 auto;color:var(--text);font:400 16px/1.6 Inter,system-ui,sans-serif;--bg:var(--background);--soft:#edf0f6;--line:#d9dfe7}
.spj-home :is(h1,h2,h3,p,figure){margin:0}
.spj-home :is(h1,h2){font-family:"Playfair Display",Georgia,serif;font-weight:500;line-height:1.12}
.spj-home .eyebrow{font:600 10px/1.5 Inter,system-ui,sans-serif;letter-spacing:1.8px;text-transform:uppercase;color:var(--warm)}
.spj-home .button{font:500 13px/1.4 Inter,system-ui,sans-serif;min-height:48px;padding:12px 20px;border:1px solid var(--accent);border-radius:4px;color:var(--accent);text-decoration:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:28px}
.spj-home .button:is(:hover,:focus-visible){color:var(--warm);border-color:var(--warm);background:var(--soft);text-decoration:none}
.spj-home .home-primary{background:var(--accent);color:var(--background)}
.spj-home .home-primary:is(:hover,:focus-visible){background:var(--accent);color:var(--background);filter:brightness(.94)}
.spj-home .home-hero{position:relative;isolation:isolate;margin:0 -56px;padding:64px 56px;min-height:620px;overflow:hidden;background:var(--background)}
.spj-home .home-hero-copy{position:relative;container-type:inline-size;width:61%;z-index:1;min-width:0}
.spj-home .home-hero h1{font-size:clamp(28px,11.5cqi,68px);line-height:1.12;letter-spacing:-.035em;margin-top:18px;max-width:620px}
.spj-home .home-hero h1 span{display:block;white-space:nowrap}
.spj-home .home-intro{font:400 24px/1.5 "Playfair Display",Georgia,serif;color:var(--muted);margin:20px 0 24px;max-width:490px}
.spj-home .home-actions{display:flex;gap:28px;align-items:center;flex-wrap:wrap;margin-top:26px}
.spj-home .home-footnote{display:flex;gap:14px;align-items:flex-start;margin-top:28px}
.spj-home .home-footnote>span{width:28px;height:1px;flex:none;background:var(--warm);margin-top:9px}
.spj-home .home-footnote p{font-size:12px;line-height:1.8;color:var(--muted)}
.spj-home .home-portrait{position:absolute;inset:0;width:100%;height:100%;z-index:-2;overflow:hidden}
.spj-home .home-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center;mask-image:linear-gradient(90deg,#000 0%,#000 32%,transparent 45%);-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 32%,transparent 45%)}
.spj-home .home-portrait picture{position:absolute;right:0;top:0;width:auto;height:100%;aspect-ratio:960/1199;mask-image:linear-gradient(90deg,transparent,#000 20%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 20%)}
.spj-home .home-portrait picture img{width:100%;height:100%;object-fit:contain;object-position:center}
.spj-home .home-hero:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,var(--background) 0%,var(--background) 25%,color-mix(in srgb,var(--background) 97%,transparent) 40%,color-mix(in srgb,var(--background) 76%,transparent) 51%,color-mix(in srgb,var(--background) 10%,transparent) 60%,transparent 68%)}
.spj-home .home-section{padding:54px 0;border-top:1px solid var(--line)}
.spj-home .home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:30px}
.spj-home .home-section-heading h2,.spj-home .home-topics h2{font-size:38px;letter-spacing:-1px;margin-top:10px}
.spj-home .home-writing-grid{display:grid;grid-template-columns:1fr;gap:32px}
.spj-home .home-writing-card{display:flex;flex-direction:column;min-width:0;border:0;border-radius:6px;padding:0 0 24px;color:var(--text);text-decoration:none}
.spj-home .home-card-image{display:block;aspect-ratio:3/2;overflow:hidden;border-radius:6px;margin-bottom:24px}
.spj-home .home-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 250ms ease}
.spj-home .home-card-copy{display:flex;flex-direction:column;flex:1;min-width:0}
.spj-home .home-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--warm);font:500 10px/1.6 Inter,system-ui,sans-serif;letter-spacing:1px}
.spj-home .home-pin{display:inline-flex;gap:6px;align-items:center;font-size:11px;letter-spacing:0;color:var(--muted)}
.spj-home .home-card-title{font:500 26px/1.2 "Playfair Display",Georgia,serif;letter-spacing:-.4px;margin:0;overflow-wrap:break-word}
.spj-home .home-writing-lead .home-card-title{font-size:33px}
.spj-home .home-card-summary{font-size:16px;line-height:1.7;color:var(--muted);margin-bottom:20px}
.spj-home .home-card-action{align-self:flex-end;margin-top:auto;font-size:13px;padding:10px 16px;min-height:44px;gap:8px}
.spj-home .home-writing-card:is(:hover,:focus-visible) .home-card-title{color:var(--warm)}
.spj-home .home-writing-card:is(:hover,:focus-visible) .home-card-action{color:var(--warm);border-color:var(--warm);background:var(--soft)}
.spj-home .home-writing-card:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.spj-home .home-bio{display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;border-block:1px solid var(--line);padding:48px 0}
.spj-home .home-bio h2{font-size:35px;line-height:1.25;margin-top:18px;letter-spacing:-1px}
.spj-home .home-biography{font-size:17px;line-height:1.8;max-width:680px}
.spj-home .home-biography p{margin-bottom:20px}
.spj-home .home-biography .home-welcome{font:400 23px/1.8 "Playfair Display",Georgia,serif;margin-top:26px;color:var(--text)}
.spj-home .home-topics{border-top:0}
.spj-home .home-topics>div{display:flex;justify-content:space-between;gap:56px;align-items:start}
.spj-home .home-topics nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin-top:16px}
.spj-home .home-topics nav a{display:flex;align-items:center;min-height:44px;padding:10px 0;color:var(--text);font-size:14px;text-decoration:none;border-bottom:1px solid var(--line)}
.spj-home .home-topics nav a:is(:hover,:focus-visible){color:var(--warm);text-decoration:underline}
@media(hover:hover) and (pointer:fine){.spj-home .home-writing-card:hover .home-card-image img{transform:scale(1.03)}}
@container spj-home (min-width:760px){.spj-home .home-writing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.spj-home .home-writing-lead{grid-column:1/-1}}
@container spj-home (min-width:960px){.spj-home .home-writing-grid{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr))}.spj-home .home-writing-lead{grid-column:auto}}
@container spj-home (max-width:800px){
 .spj-home .home-hero{display:flex;flex-direction:column;margin:0;padding:32px 0 32px;min-height:0;gap:16px}
 .spj-home .home-portrait{position:relative;inset:auto;order:-1;z-index:0;height:auto;min-height:0;aspect-ratio:1.3}
 .spj-home .home-portrait picture{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;mask-image:none;-webkit-mask-image:none}
 .spj-home .home-portrait picture img{object-fit:cover;object-position:50% 28%}
 .spj-home .home-backdrop,.spj-home .home-hero:after{display:none}
 .spj-home .home-hero-copy{width:100%}
 .spj-home .home-hero h1{font-size:clamp(14px,5.7cqi,28px);letter-spacing:-.025em;white-space:nowrap;max-width:none}
 .spj-home .home-hero h1 span{display:inline}
 .spj-home .home-hero h1 span+span:before{content:none}
 .spj-home .home-intro{font-size:21px;max-width:none}
 .spj-home .home-footnote{margin-top:24px}
 .spj-home .home-section{padding:32px 0}
 .spj-home .home-section-heading{align-items:start}
 .spj-home .home-section-heading h2,.spj-home .home-topics h2{font-size:31px}
 .spj-home .home-bio{grid-template-columns:1fr;gap:24px;padding:32px 0}
 .spj-home .home-bio h2{font-size:29px}
 .spj-home .home-biography{font-size:16px}
 .spj-home .home-topics>div{display:block}
 .spj-home .home-topics nav{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){.spj-home .home-actions{gap:12px}.spj-home .home-section-heading{flex-direction:column;gap:18px}.spj-home .home-writing-lead .home-card-title{font-size:29px}}
:root[data-appearance=dark] .spj-home{--line:#344156;--soft:#1e2c40}
@media(prefers-color-scheme:dark){:root:not([data-appearance=light]) .spj-home{--line:#344156;--soft:#1e2c40}}
@media(prefers-reduced-motion:reduce){.spj-home .home-card-image img{transition:none;transform:none!important}}

.wp-site-blocks>.spj-home-frame{margin-block-start:0}

.spj-home .home-actions .button{font-size:12px;gap:10px}
@container spj-home (max-width:800px){.spj-home .home-actions{gap:18px}}

.spj-home .home-primary:is(:hover,:focus-visible){background:#a34f35;border-color:#a34f35;color:#faf9f6;filter:none}.spj-home .home-primary:active{background:#843d28;border-color:#843d28;color:#faf9f6}

/* Connected Interests: native topic links, curated independently of article pins. */
.spj-home .home-topic-links{flex:1;min-width:0;max-width:560px}
.spj-home .home-topics nav{width:100%}
.spj-home .home-topics nav a{padding:10px 12px;border-radius:3px;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;overflow-wrap:anywhere}
.spj-home .home-topics nav a:is(:hover,:focus-visible){background:var(--nav-feedback);color:var(--warm);text-decoration:underline}
.spj-home .home-topics nav a:focus-visible,.spj-home .home-all-topics:focus-visible{outline:3px solid var(--focus);outline-offset:4px;background:var(--nav-feedback)}
.spj-home .home-all-topics{display:inline-flex;gap:8px;align-items:center;min-height:44px;padding:8px 12px;margin-top:16px;border:0;border-radius:3px;background:transparent;color:var(--link-default);font:500 14px/1.6 Inter,system-ui,sans-serif;text-decoration:underline;text-underline-offset:4px}
.spj-home .home-all-topics:visited{color:var(--link-visited)}
.spj-home .home-all-topics:is(:hover,:focus-visible){background:var(--nav-feedback);color:var(--warm);text-decoration-thickness:2px}
@container spj-home (max-width:800px){.spj-home .home-topic-links{max-width:none}}
@container spj-home (max-width:360px){.spj-home .home-topics nav{grid-template-columns:1fr}}


/* Homepage parity: this family stays distinct from bordered Explore/Projects cards. */
.spj-home .home-card-meta{font-size:8px;font-weight:600;letter-spacing:1px;margin-bottom:20px;flex-wrap:wrap;gap:12px}
.spj-home .home-card-summary{margin-top:16px}
.spj-home .home-topics>div{margin-top:14px}
.spj-home .home-topics h2{margin-top:0}
@container spj-home (max-width:800px){
 .spj-home .home-section{padding:36px 0}
 .spj-home .home-section-heading{display:block;margin-bottom:24px}
 .spj-home .home-section-heading>.button{margin-top:8px}
 .spj-home .home-section-heading h2{font-size:32px}
 .spj-home .home-topics h2{font-size:31px}
 .spj-home .home-card-title,.spj-home .home-writing-lead .home-card-title{font-size:28px;line-height:1.2}
 .spj-home .home-card-meta{font-size:9px;margin-bottom:14px}
 .spj-home .home-card-image{margin-bottom:20px}
}

/* Approved compact hero image frame. */
@container spj-home (max-width:800px){.spj-home .home-portrait{border:1px solid var(--line);border-radius:6px;overflow:hidden}}
