/* Functional finishing pass: keep the journal and its chapter palettes. */
.site-header .contact-trigger{border:1px solid currentColor;padding:8px 16px;min-height:44px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center}
#projects-menu>div{right:0;max-width:calc(100vw - 32px)}
#projects-menu a{display:block;min-height:44px;padding:10px 12px;color:inherit}
.chapter-step{display:none}
.reading-contact{margin-top:36px;padding-top:16px;border-top:1px solid var(--paper-rule,#111A3733)}
.reading-contact a{display:inline-flex;align-items:center;min-height:44px;color:var(--paper-accent,#111A37);font-weight:500}
#contact-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px 32px 24px;background:#f7f5ee;color:#202c47;border-radius:6px;overflow:auto}
.contact-bar{display:flex;justify-content:flex-end;margin-bottom:24px}
.contact-bar button{display:inline-flex;align-items:center;gap:8px;border:0;background:none;min-height:44px;padding:8px 0;font-size:14px;color:#111A37}
.contact-bar svg,.chapter-step svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#contact-title{font:46px/1.35 Hand;margin:0 0 24px;color:#111A37}
#contact-email{display:block;width:fit-content;max-width:100%;font-size:clamp(17px,4.7vw,23px);line-height:1.6;overflow-wrap:anywhere;text-decoration-thickness:1px;text-underline-offset:6px;user-select:text}
.contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.contact-actions a,.contact-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 16px;border:0;border-radius:4px;text-decoration:none;font:500 14px/1.5 Heebo;cursor:pointer}
.contact-actions .contact-send{background:#111A37;color:#f7f5ee}
#contact-copy{background:#F7F5EE;color:#111A37}
#contact-status{min-height:26px;margin:16px 0 0;font:14px/1.7 Heebo;color:#111A37}
@media(hover:hover){.contact-send:hover{background:#111A37}#contact-copy:hover{background:#E8B494}.contact-trigger:hover{background:#E8B49422}}
@media(max-width:800px),(pointer:coarse) and (max-height:600px){
 .site-header{padding:10px 18px;height:116px;gap:4px}
 .site-header nav{width:100%;justify-content:space-between;gap:12px;font-size:14px}
 .site-header .contact-trigger{padding:6px 14px}
 #chapter-location{direction:rtl;left:18px;right:18px;bottom:38px;gap:8px;justify-content:center;min-height:48px;color:var(--chrome-ink)}
 #chapter-location label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #chapter-select{min-width:0;max-width:220px;flex:1;text-align:center;font-size:14px;min-height:48px;background:var(--paper-stock,#f7f5ee);color:#202c47;border:0;border-radius:3px;padding:8px}
 .chapter-step{display:inline-flex;align-items:center;justify-content:center;width:44px;height:48px;flex-shrink:0;background:transparent;color:inherit;border:0;padding:10px;cursor:pointer}
 .chapter-step:disabled{opacity:.3;cursor:default}
 #mobile-journal{bottom:100px}
 #mobile-page>.case-link{margin:0 0 20px;font-size:15px}
 #motion-toggle{bottom:max(0px,env(safe-area-inset-bottom));min-height:36px}
 #contact-dialog{padding:16px 24px 20px}
 .contact-bar{margin-bottom:16px}
 #contact-title{font-size:40px;margin-bottom:20px}
 .contact-actions{gap:10px;margin-top:24px}
 .contact-actions a,.contact-actions button{flex:1 1 auto}
}
@media(max-width:800px) and (max-height:550px),(pointer:coarse) and (max-height:600px){
 .site-header{height:76px;flex-direction:row;align-items:center;gap:20px}
 .site-header nav{width:auto;gap:16px}
 .site-brand>span>span{display:none}
 .site-brand>img{display:none}
 .site-brand>span>img{width:110px}
 #mobile-journal{top:86px;bottom:72px}
 #chapter-location{bottom:12px}
 #motion-toggle{display:none}
 #mobile-page .project-identity{margin:0 0 12px}
 #mobile-page .project-identity img{max-height:72px}
}
@media(max-width:479px) and (max-height:550px){
 .site-header{height:116px;flex-direction:column;align-items:flex-start;gap:4px}
 .site-header nav{width:100%;gap:12px}
 #mobile-journal{top:126px}
}
