/* BLOTHOR v3 · the bridge for an app written on the older system (v1.2: ../../css/blothor-theme.css and its
   --blothor-… variables, dark by default with «warm» as the light exception).

   Loaded after the tokens, it hands those older variables the values of this system, so an app takes the new
   colours, type, radii and theme all at once without rewriting its screens; a change to a token then reaches it
   like every other app. What an app still styles by itself for one theme or the other hangs from
   [data-bt-scheme='light'] (js/theme.js keeps that attribute), which is where its old [data-theme='warm'] rules went.

   It is a bridge, not a destination: a screen that is rewritten uses the bt-… tokens and classes directly, and
   when no app reads a --blothor-… variable any more this file goes. */
:root[data-blothor]{
 /* An app's sizes are written in rem against a 16 px root; the tokens' 14 px is for text, not for layout. */
 font-size:16px;
 --blothor-color-background:var(--bt-bg);
 --blothor-color-surface:var(--bt-panel);
 --blothor-color-surface-solid:var(--bt-inner);
 --blothor-color-on-surface:var(--bt-text);
 --blothor-color-on-surface-muted:var(--bt-muted);
 --blothor-color-primary:var(--bt-primary);
 --blothor-color-on-primary:var(--bt-on-primary);
 /* Light text sits on this one in the apps, in both themes: the brand green, never the pale «active». */
 --blothor-color-primary-container:var(--bt-primary);
 --blothor-color-secondary:var(--bt-earth);
 --blothor-color-tertiary:var(--bt-earth);
 --blothor-color-danger:var(--bt-danger);
 --blothor-font-heading:var(--bt-display);
 --blothor-font-body:var(--bt-reading);
 --blothor-font-mono:var(--bt-reading);
 --blothor-radius-sm:var(--bt-radius-control);
 --blothor-radius-md:var(--bt-radius-card);
 --blothor-radius-lg:var(--bt-radius-modal);
 --blothor-radius-xl:var(--bt-radius-modal);
 /* In the apps a button is sober, radius 10: the capsule is for commercial pages only. The older apps drew their
    buttons, and the switches made of buttons, with the pill radius. */
 --blothor-radius-pill:var(--bt-radius-control);
 /* Subtle borders and minimal shadows instead of the older glass. */
 --blothor-glass-border:1px solid var(--bt-border);
 --blothor-glass-border-glow:1px solid var(--bt-input-border);
 --blothor-glass-card-shadow:0 3px 12px #14121003;
 --blothor-shadow-card-hover:0 4px 12px #466b5c12;
}
/* <html> paints the page's colour now; an opaque <body> on top of it would hide the background (.bt-backdrop). */
:root[data-blothor] body{background:transparent;color:var(--bt-text);font-family:var(--bt-reading)}
/* Departure Mono has one weight: a title asked for in bold would be drawn with a faked one. */
:root[data-blothor] :is(h1,h2,h3,h4){font-family:var(--bt-display);font-weight:400;letter-spacing:-.02em}
/* The older styles fix `color-scheme` for the theme they were written in; the browser's own controls and scrollbars
   follow what is on screen. */
:root[data-blothor][data-bt-scheme='light']{color-scheme:light}
:root[data-blothor][data-bt-scheme='dark']{color-scheme:dark}
