/* bbrummel.ca polish layer, Manitoulin Media, November 2026.
   Loaded last; everything above it is the site's original styling. */

/* Signature header: the logo arrives big over the hero, hanging into the painting,
   then settles into the sticky bar once the page scrolls. */
.header .brand{transition:width .45s cubic-bezier(.2,.8,.2,1)}
.header:not(.scrolled):not(.menu-open) .brand{width:340px}
.header:not(.scrolled):not(.menu-open) .brand img{filter:drop-shadow(0 3px 14px rgba(0,0,0,.38))}
.header:not(.scrolled):not(.menu-open) .header-inner{align-items:flex-start}
.header:not(.scrolled):not(.menu-open) nav{margin-top:14px}
@media(max-width:1000px){.header:not(.scrolled):not(.menu-open) .brand{width:270px}}
@media(max-width:800px){
  .header:not(.scrolled):not(.menu-open) .brand{width:230px}
  .header:not(.scrolled):not(.menu-open) .header-inner{align-items:center}
  .header:not(.scrolled):not(.menu-open) nav{margin-top:0}
}

/* No orphan words anywhere. */
h1,h2,h3,.eyebrow,.availability,figcaption{text-wrap:balance}
p,li,blockquote{text-wrap:pretty}

/* Rich text Bridget writes in the editor. */
.editorial ul,.prose ul,.news ul{padding-left:1.2em;margin:0 0 1.5em}
.prose h3,.editorial h3{font:400 22px/1.3 Roboto,Arial,sans-serif;margin:1.6em 0 .7em}
blockquote{margin:0 0 1.5em;padding-left:22px;border-left:3px solid var(--accent)}
.art-caption p+p{margin-top:-.8em}

/* Artwork eases into place as it scrolls into view, and back out on the way up. */
@supports (animation-timeline: view()){
  @media(prefers-reduced-motion:no-preference){
    .art-grid .art-card,.feature-grid .art-card,.artist-layout figure{animation:art-in linear both;animation-timeline:view();animation-range:entry 0% entry 55%}
    @keyframes art-in{from{opacity:0;transform:translateY(46px) scale(.97)}to{opacity:1;transform:none}}
  }
}
.art-open img{transition:transform .5s cubic-bezier(.2,.8,.2,1)}
@media(hover:hover){.art-open:hover img{transform:scale(1.015)}}

/* Lightbox: show the whole artwork, never cropped. */
.lightbox>img{height:auto;max-height:75vh;object-fit:contain}

/* 404 page has no hero, so the header starts in its solid form. */
.page-404 .header{background:var(--paper)!important;box-shadow:0 1px 0 var(--line)}
.page-404 .header .brand{width:200px!important}
.page-404 .header .brand img{filter:invert(1)!important}
.page-404 .header nav{color:var(--ink);text-shadow:none}
.not-found{padding-top:190px;padding-bottom:110px;max-width:900px}
.not-found h1{margin-bottom:20px}
.not-found .actions{margin-top:30px}
.page-404 .header .header-inner{align-items:center!important}
.page-404 .header nav{margin-top:0!important}
.page-404 main{min-height:calc(100vh - 340px)}
