/* Phone layouts keep the rooftop world and give reading and touch room to breathe. */
.article-toc-toggle{display:none}
.article-toc-toggle[hidden]{display:none!important}
@media(max-width:800px){
 .article-page .article-toc[data-collapsible=true]{padding:0;background:transparent;border-block:1px solid var(--interaction-line);border-radius:0}
 .article-page .article-toc[data-collapsible=true]>span{display:none}
 .article-page .article-toc .article-toc-toggle{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:56px;padding:12px 2px;color:var(--ink);font:500 16px/1.4 var(--sans);text-align:left}
 .article-toc-toggle svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform 180ms ease-out}
 .article-toc-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
 .article-page .article-toc[data-collapsible=true] ol{padding:0 0 14px}
 .article-page .article-toc[data-collapsed=true] ol{display:none}
 .article-page .article-toc[data-collapsible=true] a{min-height:44px;padding:11px 8px 11px 18px;font-size:15px;line-height:1.5}
 .article-page .article-toc[data-collapsible=true] a::before{top:21px;left:2px}
 .article-page .article-layout{gap:28px}
 .article-page .article-copy{width:100%;min-width:0}
 .article-page .article-copy :is(h2,h3){text-wrap:balance;scroll-margin-top:80px}
 .article-page .article-copy pre{font-size:14px;line-height:1.7;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
 .article-page .article-copy :is(a,li){overflow-wrap:break-word}
 .article-page .article-footer strong{display:block;line-height:1.4}
}
@media(max-width:650px){
 :root,.article-page{--page-gutter:max(20px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))}
 .utility-panel:is(.filter-panel,.sort-panel){max-width:calc(100vw - 40px)}
 .utility-panel .panel-header{min-height:48px}
 .content{padding-top:26px}
 .section-heading{margin-bottom:16px}
 .section-heading h2{font-size:clamp(27px,7.4vw,32px);line-height:1.15}
 .browse-controls{gap:12px;margin-bottom:22px}
 .browse-controls:has(.search.is-open){flex-wrap:wrap;row-gap:8px}
 .browse-controls .search#archive-search.is-open{width:100%;max-width:100%;flex-basis:100%}
 .browse-controls:has(.search.is-open) .archive-tools{margin-left:auto}
 .browse-controls .search-fields{padding-right:4px}
 .browse-controls .search-fields input{font-size:16px}
 .post-grid{gap:22px}
 .post .post-body{padding:22px}
 .post h3{font-size:24px;line-height:1.25;margin-bottom:14px}
 .post p{font-size:16px;line-height:1.65}
 .post-meta{margin-bottom:14px;font-size:12px}
 .work-wrap{padding-top:26px}
 .work-hero{padding-top:30px;padding-bottom:32px}
 .work-hero-copy{gap:18px;margin-top:24px}
 .work-hero .work-lead{font-size:22px;line-height:1.4}
 .work-hero-copy>p:last-child{font-size:16px;line-height:1.75}
 .work-chapters{column-gap:20px;row-gap:0;font-size:14px}
 .work-wayfinding{padding:8px 0}
 .work-section{padding-top:46px;scroll-margin-top:74px}
 .work-section+.work-section{margin-top:56px}
 .work-section-head{margin-bottom:26px}
 .work-section-head h2{font-size:clamp(29px,8.3vw,34px);line-height:1.12}
 .project-story.work-feature{padding:23px}
 .project-story-link{gap:22px}
 .work-project .project-story-copy h3{font-size:clamp(29px,8.2vw,34px);line-height:1.13}
 .project-story-copy .story-description{font-size:20px;line-height:1.4}
 .project-story-copy .story-summary{font-size:16px;line-height:1.7}
 .project-detail-page .article-heading h1{font-size:clamp(31px,8.8vw,40px);line-height:1.12}
 .article-page .article-wrap{padding-top:76px}
 .article-page .article-back{margin-bottom:20px}
 .article-page .article-heading{margin-bottom:30px}
 .article-page .article-heading h1{font-size:clamp(31px,8.8vw,40px);line-height:1.12;margin-bottom:22px}
 .article-page .article-dek{font-size:18px;line-height:1.6}
 .article-page .article-meta{gap:8px 12px;font-size:12px;margin-bottom:20px}
 .article-page .article-copy{font-size:17px;line-height:1.8}
 .article-page .article-copy h2{font-size:28px;line-height:1.2;margin-top:44px}
 .article-page .article-copy h3{font-size:23px;line-height:1.25}
 .article-page .article-copy pre{padding:18px 16px;border-radius:10px}
 .article-page .article-copy li{margin-block:12px}
 .article-page .article-wide figcaption{font-size:14px;line-height:1.65}
 .article-page .article-wide figcaption strong{font-size:22px;line-height:1.3}
 .article-page .article-footer{gap:24px;padding-top:24px;margin-top:48px}
 .article-page .article-footer>a{font-size:15px;line-height:1.6}
 .about-wrap{width:calc(100% - var(--page-gutter)*2)}
 .about-hero{padding-top:26px;padding-bottom:42px}
 .about-intro h1{font-size:clamp(39px,11.5vw,50px);line-height:1.06}
 .about-intro .about-lead{font-size:24px;line-height:1.4}
 .about-intro p{font-size:17px;line-height:1.75}
 .about-portrait{width:min(280px,82%)}
 .about-section{margin-top:64px;scroll-margin-top:76px}
 .about-section h2{font-size:31px;line-height:1.2}
 .about-section p{font-size:17px;line-height:1.75}
 .contact-dialog-close{min-width:44px;min-height:44px}
 .contact-card-caption{font-size:12px}
 .ronin-footer.laptop-footer .footer-body{padding-bottom:max(24px,env(safe-area-inset-bottom))}
 .ronin-footer.laptop-footer .footer-nav{font-size:14px;gap:24px}
 .ronin-footer.laptop-footer .footer-contact-row .contact-links{gap:10px}
}
/* Keep the rooftop scene useful on short phones as browser chrome changes. */
@media(max-width:650px) and (max-height:740px){
 .rooftop-scene.panorama.has-background{height:clamp(380px,68svh,470px);min-height:0}
 .rooftop-scene .hero-scene-art{width:clamp(1140px,204svh,1410px);height:auto;aspect-ratio:3/1;right:-90px;top:0}
 .rooftop-scene .scene-note{top:66px}
 .rooftop-scene .scene-note h1{font-size:32px;line-height:1.12}
 .rooftop-scene .scene-note p{font-size:15px}
}
@media(max-width:360px){
 .project-story.work-feature{padding:21px}
 .project-story-copy .story-description{font-size:19px}
 .ronin-footer.laptop-footer .footer-nav{gap:20px;font-size:13px}
 .ronin-footer.laptop-footer .footer-contact-row .contact-links{gap:7px}
 .about-intro .about-lead{font-size:22px}
}
@media(prefers-reduced-motion:reduce){.article-toc-toggle svg{transition:none}}
