/* BLOTHOR v3 · tokens. The values are the kit's (0.1.0); what is added here is the theme:
   light by default, dark when the browser or the system ask for it, and either one when chosen by hand.

   A container carries `data-blothor`. Its theme is its own `data-theme` (light | dark) if it has one; otherwise
   the page's (`data-theme` on <html>, which js/theme.js sets from the person's choice); otherwise automatic.
   The dark values are written twice, word for word (a media query cannot share a block with a selector):
   tools/design/test_v3.py fails if the two ever differ.

   Not the kit's: --bt-on-danger (the theme needed it) and --bt-grid / --bt-bloop-* (the apps' background, with the
   grid and shapes of the owner's laboratory, packages/design-system/v2; he asked for stronger bloops than there:
   .20 and .14 in light for its .14 and .08, .26 and .16 in dark for its .19 and .10). */
[data-blothor]{
 color-scheme:light;
 --bt-bg:#FDFBF7;--bt-text:#141210;--bt-body:#3A332D;--bt-muted:#68665D;--bt-earth:#8A6E5C;
 --bt-primary:#466B5C;--bt-on-primary:#FDFBF7;--bt-secondary:#EFF1EA;--bt-active:#E9EEE7;
 --bt-panel:rgba(255,255,255,.78);--bt-inner:#F8F6F1;--bt-input:#F8F6F1;
 --bt-border:rgba(138,110,92,.16);--bt-input-border:rgba(138,110,92,.28);
 --bt-focus:#466B5C;--bt-focus-ring:rgba(70,107,92,.12);--bt-danger:#A74639;--bt-on-danger:#FDFBF7;
 --bt-scrim:rgba(20,18,16,.27);
 --bt-grid:#466b5c09;--bt-bloop-green:.20;--bt-bloop-earth:.14;
 --bt-display:'Departure Mono',ui-monospace,monospace;--bt-reading:'Commit Mono',ui-monospace,monospace;
 --bt-space-1:4px;--bt-space-2:8px;--bt-space-3:16px;--bt-space-4:24px;
 --bt-space-5:32px;--bt-space-6:48px;--bt-space-7:64px;--bt-space-8:96px;
 --bt-radius-control:10px;--bt-radius-card:16px;--bt-radius-modal:20px;--bt-radius-pill:999px;
 --bt-touch:48px;--bt-field-height:52px;--bt-fast:180ms;--bt-normal:400ms;
 background:var(--bt-bg);color:var(--bt-text);font:400 14px/1.7 var(--bt-display);
}
/* Dark, chosen by hand: on the container itself, or on the page for the containers that say nothing. */
[data-blothor][data-theme='dark'],
:root[data-theme='dark'] [data-blothor]:not([data-theme]){
 color-scheme:dark;--bt-bg:#151311;--bt-text:#EBE6DF;--bt-body:#CFC8BD;--bt-muted:#B0A898;--bt-earth:#B9946C;
 --bt-panel:rgba(28,25,22,.9);--bt-inner:#231F1B;--bt-input:#191714;
 --bt-border:rgba(138,110,92,.2);--bt-input-border:rgba(138,110,92,.4);
 --bt-secondary:#252D25;--bt-active:#283A30;--bt-focus:#8AAC94;
 --bt-focus-ring:rgba(138,172,148,.14);--bt-danger:#D96C5F;--bt-on-danger:#151311;--bt-scrim:rgba(8,8,7,.6);
 --bt-grid:#8aac9408;--bt-bloop-green:.26;--bt-bloop-earth:.16;
}
/* Dark, automatic: nobody chose, and the browser or the system prefer it. Works without any script. */
@media (prefers-color-scheme:dark){
:root[data-blothor]:not([data-theme]),
:root:not([data-theme]) [data-blothor]:not([data-theme]){
 color-scheme:dark;--bt-bg:#151311;--bt-text:#EBE6DF;--bt-body:#CFC8BD;--bt-muted:#B0A898;--bt-earth:#B9946C;
 --bt-panel:rgba(28,25,22,.9);--bt-inner:#231F1B;--bt-input:#191714;
 --bt-border:rgba(138,110,92,.2);--bt-input-border:rgba(138,110,92,.4);
 --bt-secondary:#252D25;--bt-active:#283A30;--bt-focus:#8AAC94;
 --bt-focus-ring:rgba(138,172,148,.14);--bt-danger:#D96C5F;--bt-on-danger:#151311;--bt-scrim:rgba(8,8,7,.6);
 --bt-grid:#8aac9408;--bt-bloop-green:.26;--bt-bloop-earth:.16;
}
}
