.square-arrow { display: inline-block; width: 17px; height: 17px; fill: currentColor; vertical-align: -.1em; flex: none; }
.lab-header { position: fixed; top: 0; left: 0; right: 0; height: 76px; z-index: 40; padding: 0 38px; display: flex; align-items: center; justify-content: flex-end; font: 400 14px/1.4 "Onest", Helvetica, sans-serif; color: #1b1f2a; }
.lab-header nav { display: flex; align-items: center; gap: 30px; }
.lab-header a { text-decoration: none; color: inherit; }
.lab-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.lab-header a:focus-visible, .lab-brand:focus-visible { outline: 2px solid #265487; outline-offset: 5px; }
.lab-brand { text-decoration: none; color: #1b1f2a; font: 600 22px/1.15 "Onest", Helvetica, sans-serif; letter-spacing: -.035em; white-space: nowrap; }
.lab-home .lab-header { transition: background .25s, box-shadow .25s; }
.lab-home .lab-header.docked { background: rgba(244,243,238,.96); box-shadow: 0 1px #d6d4cb; }
.lab-home .lab-brand { position: fixed; z-index: 50; left: 50%; top: 45%; font-size: clamp(68px, 11vw, 155px); transform: translate(-50%, -50%); transform-origin: 0 0; }
.brand-arrow { position: absolute; left: calc(100% + 10px); top: .14em; opacity: 0; }
.brand-arrow .square-arrow { width: 18px; height: 18px; }
.lab-home .mark { display: none; }
.lab-article { padding-top: 76px; }
.article-header { background: rgba(244,243,238,.97); border-bottom: 1px solid #d6d4cb; justify-content: space-between; }
.article-header .lab-brand { display: flex; align-items: center; gap: 10px; }
.lab-article .post-footer { font-family: "Onest", Helvetica, sans-serif; }
.lab-article .post-footer a { text-decoration: none; color: #265487; }
.lab-article .toc { top: 104px; }
.lab-article .body section { scroll-margin-top: 100px; }
/* articles arrive slowly: the title rises first, then the subtitle and byline, then the hero, then the text */
@keyframes post-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lab-article .opening .giant, .lab-article .opening .dek, .lab-article .opening .byline, .lab-article .opening .hero, .lab-article .page { animation: post-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.lab-article .opening .giant { animation-delay: .08s; }
.lab-article .opening .dek { animation-delay: .32s; }
.lab-article .opening .byline { animation-delay: .44s; }
.lab-article .opening .hero { animation-delay: .62s; animation-duration: 1.2s; }
.lab-article .page { animation-delay: .85s; animation-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) { .lab-article .opening .giant, .lab-article .opening .dek, .lab-article .opening .byline, .lab-article .opening .hero, .lab-article .page { animation: none; } }
@media (max-width: 620px) {
  .lab-header { height: 70px; padding: 0 22px; font-size: 12px; }
  .lab-header nav { gap: 18px; }
  .lab-brand { font-size: 21px; }
  .article-header .lab-brand { gap: 7px; }
  .article-header .square-arrow { width: 13px; height: 13px; }
  .lab-article { padding-top: 70px; }
}
@media (prefers-reduced-motion: reduce) { .lab-home .lab-header { transition: none; } }
.article-header { background: rgba(255,255,255,.96); border-bottom: 0; }
.lab-article .article-header { background: #fff; }
.shared-footer { background: #f4f3ee; color: #1b1f2a; font-family: Onest, Helvetica, sans-serif; margin-top: 60px; }
.shared-footer nav { display: flex; gap: 26px; }
.shared-footer .wrap { max-width: 1560px; }
.shared-footer .footer-line { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 24px 0 50px; border-top: 1px solid #d6d4cb; font-size: 12px; }
.shared-footer .footer-line a { text-decoration: none; }
.shared-footer .bigmark { margin: 0; }
@media(max-width:620px) { .shared-footer .footer-line { gap: 22px; } .shared-footer nav { gap: 20px; } }
.lab-brand { color: #233c66; font-weight: 500; letter-spacing: -.065em; }
.brand-h { color: #779bae; }
.article-header .lab-brand { align-items: center; }
.lab-header .nav-arrow { width: 14px; height: 14px; margin-left: 1px; align-self: flex-start; margin-top: 3px; }
@media(max-width:620px) {
 .lab-header { height: 104px; padding-top: 15px; padding-bottom: 14px; align-items: flex-start; flex-wrap: wrap; }
 .lab-header nav { position: absolute; left: 22px; right: 22px; bottom: 15px; justify-content: space-between; gap: 12px; font-size: 13px; }
 .lab-home .lab-header nav { width: auto; }
 .lab-article, .subpage, .project-page { padding-top: 104px; }
 .about-page .lab-header nav { gap: 12px; }
}
/* essay titles at reading scale, matching the rest of the site */
.lab-article .giant { font-size: clamp(34px, 3.8vw, 46px); font-weight: 600; line-height: 1.12; }
.lab-article .dek { font-size: clamp(18px, 1.6vw, 21px); }
