/* UI scale for desktop screens. ONE place, ONE number.
   --ui-scale-desktop is the zoom applied at widths >= 1024px (0.8 = looks like 80% browser zoom). Change the number to rescale; set 1 to switch it off.
   Phones, tablets and the installed PWA (display-mode: standalone) are never scaled.
   The property is `zoom` because the app's sizes are px. `vh`/`dvh` lengths inside a zoomed page are shrunk by the zoom too, so every height written
   in vh uses calc(<n>vh / var(--ui-scale, 1)) to keep filling the screen (--ui-scale is 1 whenever the page is not scaled). */
:root {
    --ui-scale-desktop: 0.8;
    --ui-scale: 1;
}

@media screen and (min-width: 1024px) and (not (display-mode: standalone)) {
    :root {
        --ui-scale: var(--ui-scale-desktop);
    }
    html {
        zoom: var(--ui-scale);
    }
}
