/* Pictures that hold their place, a blur first, then a fade (plans/platform/02-smooth-pages.md, phases G and H;
   src/ui/picture.tsx, assets/js/picture.js). Every file under css/ loads on every page, so every rule here is under
   .pf-img (and phase H's own). The wrapper is the picture's box: the place's class on it sets its size, shape, border
   and background; the placeholder fills it, blurred and a little larger so its soft edge stays outside the box; the
   picture lies over it. Without the script the picture simply covers the blur as it arrives. */
.pf-img { display: block; position: relative; overflow: hidden; }
.pf-img > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-img > .pf-img__ph { position: absolute; inset: 0; filter: blur(12px); transform: scale(1.1); }
.pf-img > .pf-img__pic { position: relative; transition: opacity .25s ease-out; }
.pf-img > .pf-img__pic--wait { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .pf-img > .pf-img__pic { transition: none; }
}
/* In forced colours the placeholder is no picture of anything: it isn't drawn, and nothing frames it. */
@media (forced-colors: active) {
  .pf-img > .pf-img__ph, .mh-media > .mh-media__ph { display: none; }
}
/* A home news card's cover: the board's rule names every img in the card (site.css, .st-ncard img, generated); its
   shape and its line go to the wrapper, and the two pictures inside it fill it. */
.st-ncard .pf-img { aspect-ratio: 16 / 7; border-bottom: 1px solid var(--bronze-700); }
.st-ncard .pf-img > img { aspect-ratio: auto; border-bottom: 0; }
/* A picture panel of the site's own art (src/ui/kit.tsx, ImagePanel; phase H): its placeholder under it, blurred. */
.mh-media > .mh-media__ph { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(12px);
  transform: scale(1.1); }

/* Text that doesn't jump (phase H). Until a web font arrives (font-display: swap, shared/design/fonts.css) the words are
   drawn in a local font made to its measure: the same width of the site's English and the same line box, so the swap
   moves nothing. The values come from the fonts' own tables (scripts/font-metrics.mjs: Alegreya over Georgia, Gothic A1
   over Arial and Arial Bold). The site's stacks name each right after its web font; the kit's own stacks (the launcher
   shares the kit) are left as they are. */
@font-face { font-family: "Alegreya fallback"; src: local("Georgia"); font-weight: 400 500;
  size-adjust: 92.01%; ascent-override: 110.42%; descent-override: 37.5%; line-gap-override: 0%; }
/* The headings' weight over Georgia Bold, from Alegreya's default instance (a variable font's heavier weights are a
   little wider: near, not exact). */
@font-face { font-family: "Alegreya fallback"; src: local("Georgia Bold"), local("Georgia-Bold"); font-weight: 600 900;
  size-adjust: 79.05%; ascent-override: 128.53%; descent-override: 43.64%; line-gap-override: 0%; }
@font-face { font-family: "Gothic A1 fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400;
  size-adjust: 101.25%; ascent-override: 78.8%; descent-override: 19.97%; line-gap-override: 24.69%; }
@font-face { font-family: "Gothic A1 fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700;
  size-adjust: 97.51%; ascent-override: 81.82%; descent-override: 20.73%; line-gap-override: 25.64%; }
:root {
  --font-display: "Alegreya", "Alegreya fallback", Georgia, "Times New Roman", serif;
  --font-ui: "Gothic A1", "Gothic A1 fallback", "Noto Sans", system-ui, sans-serif;
}

/* Pages that cross-fade into each other (phase H, D9): a navigation within the site, where the browser can; nothing
   under reduced motion; a browser without it ignores the rule. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
