/* Compact masthead and personal destinations. */
.masthead .masthead-inner{min-height:84px;padding-block:7px;gap:22px}
.masthead .wordmark,.fb-shell>.masthead .wordmark,.legal-shell>.masthead .wordmark{font-size:2.1rem;padding-block:12px}
.substack-link{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;min-height:44px;padding:10px 15px;border:1px solid #ffffff70;border-radius:4px;font-size:1rem;line-height:1.4;transition:border-color .2s,background .2s}
.substack-link:hover{border-color:var(--paper);background:#ffffff0b}
.shop-link{display:inline-flex;align-items:center;justify-content:center;gap:12px;max-width:100%;min-height:44px;margin-top:15px;padding:10px 16px;border:1px solid var(--ink);border-radius:4px;background:var(--ink);color:var(--paper);font-size:1rem;line-height:1.25;transition:background .2s,color .2s}
.shop-link span{white-space:nowrap}
.shop-link .gumroad-logo{width:112px;height:auto;flex-shrink:0}
.shop-link:hover{background:var(--paper);color:var(--ink)}
.shop-link:focus-visible{outline:2px solid var(--ink);outline-offset:4px}

/* Preserve the portrait's orbit independently of the removed conversation. */
.home-page .hero{grid-template-columns:1.2fr 1fr;gap:24px;padding-block:35px 38px}
.home-page .portrait{display:grid;place-items:center;width:calc(100% + 20px);max-width:500px;aspect-ratio:1;margin:0 -10px 0 auto;isolation:isolate}
.portrait .photo-print{position:relative;width:76%;z-index:1;padding:9px;transform:rotate(2deg)}
.portrait-orbit{position:absolute;inset:4%;border:1px solid #1111116b;border-radius:50%;pointer-events:none}
.portrait-orbit::after{content:'';position:absolute;inset:3px -3px -2px 3px;border:1px solid #11111116;border-radius:50%;transform:rotate(-8deg)}
.orbit-dot{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;display:grid;place-items:center;z-index:3;border:0;border-radius:50%;background:transparent;color:var(--ink);will-change:transform;transform:translate(0,-200px)}
.orbit-dot::before{content:'';display:block;width:13px;height:13px;background:var(--ink);border:2px solid var(--paper);border-radius:50%;box-shadow:0 0 0 1px var(--ink);transition:scale .2s}
.orbit-dot:hover::before,.orbit-dot:focus-visible::before{scale:1.25}
.orbit-dot:focus-visible{outline:1px dashed var(--ink);outline-offset:0}

/* Four notebook sketches: 85% of their base size and 80% of the previous opacity. */
.floating-element{width:calc(var(--sketch-size)*.85);stroke-width:1.25;opacity:.24;animation-duration:22s}
.floating-element .hatch{stroke-width:.75;opacity:.8}
.float-book{--sketch-size:112px;top:6%;left:48%;--turn:-13deg}
.float-psychology{--sketch-size:92px;top:4%;right:8%;--turn:9deg;animation-delay:-5s}
.float-philosophy{--sketch-size:94px;top:45%;left:50%;--turn:-9deg;animation-delay:-11s}
.float-laptop{--sketch-size:120px;bottom:26%;right:5%;--turn:5deg;animation-delay:-16s}

@media(min-width:761px) and (max-height:800px){
  .masthead .masthead-inner{min-height:76px;padding-block:5px}
  .home-page .hero{padding-block:18px}
  .home-page .hero h1{font-size:clamp(3.6rem,6.5vw,4.6rem)}
  .home-page .intro{margin-top:18px;line-height:1.5}
  .home-page .social-links{margin-top:18px}
  .shop-link{margin-top:10px}
  .home-page .portrait{max-width:420px}
  .float-book{--sketch-size:89px;top:1%}
  .float-psychology{--sketch-size:78px;top:1%}
  .float-philosophy{--sketch-size:76px;top:40%;left:51%}
  .float-laptop{--sketch-size:100px;bottom:30%;right:3%}
}
@media(max-width:1000px){
  .home-page .hero{grid-template-columns:1.15fr 1fr;gap:12px}
  .float-book{left:44%;--sketch-size:92px}
}
@media(min-width:761px) and (max-width:1000px){
  .float-philosophy{top:12%;left:70%;--sketch-size:72px}
}
@media(max-width:760px){
  .masthead .masthead-inner{min-height:78px;padding-block:7px;gap:14px}
  .masthead .wordmark,.fb-shell>.masthead .wordmark,.legal-shell>.masthead .wordmark{font-size:1.9rem}
  .home-page .hero{grid-template-columns:1fr;gap:32px;padding-block:36px 30px}
  .home-page .portrait{width:calc(100% + 30px);max-width:460px;margin-inline:auto;left:0;justify-self:center}
  .float-book{--sketch-size:89px;top:5%;left:auto;right:3%;opacity:.192}
  .float-psychology{--sketch-size:79px;top:43%;right:4%}
  .float-philosophy{--sketch-size:82px;top:51%;left:1%}
  .float-laptop{--sketch-size:106px;bottom:28.5%;right:3%}
}
@media(max-width:520px){
  .substack-prefix{display:none}
  .substack-link{font-size:.875rem;padding:9px 11px;gap:8px}
  .substack-link svg{width:18px;height:20px}
  .masthead .masthead-inner{min-height:73px;gap:10px}
  .masthead .wordmark,.fb-shell>.masthead .wordmark,.legal-shell>.masthead .wordmark{font-size:1.8rem}
  .home-page .portrait{margin-left:-15px}
  .float-book{top:3%;--sketch-size:70px}
}
@media(max-width:350px){
  .masthead .wordmark,.fb-shell>.masthead .wordmark,.legal-shell>.masthead .wordmark{font-size:1.5rem}
  .substack-link{padding-inline:9px;gap:7px}
}
@media(min-width:761px) and (max-height:740px){.home-page .portrait{max-width:400px}}
@media(prefers-reduced-motion:reduce){.orbit-dot{will-change:auto}}
@media(forced-colors:active){.substack-link{border-color:CanvasText}.orbit-dot::before{background:CanvasText;border-color:Canvas}.portrait-orbit{border-color:CanvasText}.shop-link{border-color:ButtonText;background:ButtonFace;color:ButtonText}}
