/* Local additions on top of the captured live CSS (public/css/live). Keep this file small. */

/* Honeypot field: invisible to people and assistive tech, still present in the DOM for bots. */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Live CSS fades images in via the lazyload script; we render images directly. */
.image.background-image { background-size: cover; background-position: center center; }

/* Responsive background images (src/components/BgImage.astro): the build writes --bg-sm/--bg-md/--bg-lg (WebP, 800/1400/2000 px
   wide) and one is chosen by viewport width and pixel density. Keep these media conditions in step with the preload hints there. */
.bgset { background-image: var(--bg-sm); }
@media (min-width: 640px) { .bgset { background-image: var(--bg-md, var(--bg-sm)); } }
@media (min-width: 1400px), (min-width: 800px) and (min-resolution: 1.5dppx) { .bgset { background-image: var(--bg-lg, var(--bg-md, var(--bg-sm))); } }
/* Below-the-fold backgrounds wait until site.js marks them .bg-in (without JavaScript they load at once). */
html.js .bgset.bg-lazy:not(.bg-in) { background-image: none; }
