/* THE COLOUR LIBRARY — every colour the site wears, as tokens on the root, in four palettes. Light is wood-pulp paper: a warm, slightly beige ground rather than stark white, the warmth in the ground and the borders while cards stay close to white. Dark is a blackboard, slate's colour: a very dark neutral grey ground, #1c1c1c, never brown and never pure black, its surfaces and borders neutral steps above it. White and black take the two to the extreme: the ground full white or full black, the text full black or full white, and every grey between the light's or the dark's own with any tint taken out, so nothing warm or cool is left. In all four the first accent is YELLOW, golden honey, #EAB83D, the same on every ground: a fill with dark text over it — 9.3:1 and more — and a line or a thin mark as it is; a word or a mark in the accent is the yellow itself on the dark grounds, 9.3:1 on slate and 11.4:1 on black, and on the light ones, where yellow on the ground stands at 1.6:1, it stands on the yellow — a pill or a disc — and is dark — a moss second accent beside it, and links wear the text's own colour with the underline as their mark — never blue, never the accent. The staff pages and the dialogs wear the yellow; the controls inside the app wear the natural black, grey, and white of a system control, and THE TAB OR THE SUBJECT PICKED wears `--chip-on` under `--chip-on-ink`, the raised surface under the text's own ink, in white `--surface-2`, a grey. Three marks wear colours of their own: A FOLLOWED ACCOUNT'S MARK on an X post's people rows and THE RSS MARK a news row and the shim's bar wear while a website the person follows covers the story wear `--follow`, the web feed's own orange, #F26522 on the light grounds, where it stands at 2.8:1 on the paper and 3.2:1 on white, under 3:1 on the paper as Bluesky's repost and like stand there, and a step lighter, #FF7A3D, on the dark grounds, 6.6:1 on slate and 8.1:1 on black; A PICKER'S WAY TO ITS LIST, `Edit follow list` or `Edit explore list`, wears `--link-blue`, the classic hyperlink blue, a lighter blue on the dark grounds so it reads there, and nothing else wears it; a news row's open button wears the ink. A dot for something new wears iOS's system blue, `--new`, a shade brighter on the dark grounds, and so do the words of a picker's row whose choice caught the open story. THE SOFT STOP, `--stop`, a matte, pastel red under dark text, `--on-stop`, is the act that stops something and destroys nothing — an unfollow — calmer than the danger red, which stays for an act that destroys: #e0a39e on the light grounds, 8.4:1 under the light's ink and 9.9:1 under black, and a step deeper, #d39893, on the dark ones, 7.0:1 under slate's ground and 8.7:1 under black. THE SWITCH'S KNOB, `--knob`, is white in every palette, as a system switch's is. THE WORDMARK'S COLOUR, `--icon`, is the same yellow, the same in every palette, the colour of the hubbub wordmark set in League Spartan Black, worn on a black tile by the Home Screen icons and the touch icon, files the icons' composer renders (brand/hubbub/icons.py), and by nothing a stylesheet paints. THE FACE'S COLOUR, `--app-icon`, is a bright yellow, #FED445, the same in every palette, the colour of the face's disc — its ticks cut out of it and laid on black by the same composer in the iOS app icon, its eyes drawn black on nothing in the tab icon, the favicon, the extension's icon, and the install badge. BLUESKY'S COLOURS, `--bsky-reply`, `--bsky-repost`, and `--bsky-like`, are the ones Bluesky's app defines in its design system's palette, `@bsky.app/alf` src/palette.ts, read by social-app's src/alf/themes.ts: the like `pink`, #EC4899, the repost `positive_500`, #09B35E, and the brand blue `primary_500`, #006AFF, which the reply takes, since Bluesky's own reply button wears no colour. Bluesky wears them the same in its light and dark themes, and they stand the same in all four palettes here: against a round button's ground, the button's own colour at 8% over the page, each stands at least 3:1 on the dark and the black grounds; on the light ground the repost and the like stand under 3:1, and on the white the repost does, as it does on Bluesky's own white. THE RAISED SURFACE, `--raised`, is the lit segment of a bar and, in every palette but white, the hot chip, standing on the dim ground: the card's white in the light and the white, the dark's card in the black, and in the dark a grey a step above that ground, since the dark's card stands darker than the dim ground over its own. The platform's own mode, light or dark, applies by default; the account's choice, set on the root as `data-theme` by /theme.js before the first paint, wins either way. The root stylesheet (/style.css) imports this file, so every page has the tokens, and no stylesheet names a colour of its own — a piece that needs one takes a token. The dark set stands twice below, once for the platform's dark, which holds only while no choice is set, and once for the chosen dark, since a stylesheet cannot share a block between a media query and a selector. */
:root {
  color-scheme: light dark;
  --bg: #f4f0e8; /* the page's ground */
  --surface: #ffffff; /* a card, a box, a dialog */
  --raised: #ffffff; /* the lit segment of a bar, and the hot chip in every palette but white, on the dim ground */
  --surface-2: #ece8e0; /* a raised surface over a card */
  --ink: #18181a; /* the text */
  --ink-2: #6b6b70; /* the second word: a note, a label, a muted state */
  --line: #d9d4cc; /* a border, a rule */
  --accent: #eab83d; /* yellow: the first accent, the same on every ground — a fill with dark text over it, `--on-accent`, an act, a warm or running state, and a line or a thin mark */
  --accent-ink: #18181a; /* the first accent's word or mark: the yellow itself on the dark grounds; on the light ones dark, on the yellow ground beneath it */
  --accent-ground: #eab83d; /* what a word or mark in the accent stands on: nothing on the dark grounds; on the light ones the yellow, a pill or a disc, since yellow on the light ground does not read */
  --accent-pad: 0.15em; /* that pill's or disc's room around the word or mark: none on the dark grounds, so they lay out as before */
  --chip-on: var(--raised); /* the tab or the subject picked: the raised surface, a step above the ground, as a system control lights its picked segment */
  --chip-on-ink: var(--ink); /* its word: the text's own ink */
  --accent-2: #5f745f; /* moss: the second accent — an on state, a good state */
  --follow: #f26522; /* a followed account's mark on an X post's people rows and the RSS mark, the web feed's own orange */
  --link: #18181a; /* a link is the text's colour; the underline says it is a link */
  --link-blue: #0b57d0; /* a picker's way to its list, the classic hyperlink blue */
  --danger: #dc2626; /* beyond the given palette: a destructive act, a failed state */
  --stop: #e0a39e; /* THE SOFT STOP: an act that stops something and destroys nothing — an unfollow — a matte, pastel red, calmer than the danger red, with dark text over it */
  --on-accent: #18181a; /* text over a yellow fill */
  --on-accent-2: #ffffff; /* text over a moss fill */
  --on-danger: #ffffff; /* text over a danger fill */
  --on-stop: #18181a; /* text over a soft stop fill */
  --knob: #ffffff; /* THE SWITCH'S KNOB, white in every palette, as a system switch's is: the palettes below name no knob of their own */
  --new: #007aff; /* the dot for something new, iOS's system blue */
  --bsky-reply: #006aff; /* BLUESKY'S COLOURS, its app's own: the brand blue, `primary_500`, the reply's */
  --bsky-repost: #09b35e; /* the repost green, `positive_500` */
  --bsky-like: #ec4899; /* the like pink, `pink` */
  --app-icon: #FED445; /* the face's disc, a bright yellow — the iOS app icon and the tab icon — the same in every palette */
  --alo: #a67c00; /* ALO'S GOLD, Alo's mark wherever it stands lit — the Ask button on an open card's acts, lit or busy, the sign on a closed card's third line, the mark in the shim's browser bar, and the guide's — hubbub's own yellow, its sun with its moons round it: on the light grounds a deep gold, dark enough to stand on paper and white and yellow enough to stand apart from the RSS mark's orange; on the dark grounds the first accent's honey, #eab83d */
  --icon: #EAB83D; /* the wordmark's yellow, on a black tile in the Home Screen icons and the touch icon, the first accent, the same in every palette */
  --score-strong: #0f766e; /* THE SCORE SCALE, the search's numbers: blue-green, 0.55 and up — a line that says nearly what was asked */
  --score-good: #15803d; /* green, 0.40 to 0.55 — about the same thing */
  --score-weak: #c2410c; /* orange, 0.30 to 0.40 — just above the floor */
  --score-under: #d11a1a; /* red, under 0.30 — nothing in it for the phrase */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #1c1c1c;
    --surface: #242424;
    --raised: #3a3a3a;
    --surface-2: #2e2e2e;
    --ink: #f3f4f6;
    --ink-2: #a7abb2;
    --line: #3d3d3d;
    --accent: #eab83d;
    --accent-ink: #eab83d;
    --accent-ground: transparent;
    --accent-pad: 0;
    --chip-on: var(--raised);
    --chip-on-ink: var(--ink);
    --accent-2: #7f9480;
    --follow: #ff7a3d;
    --alo: #eab83d;
    --link: #f3f4f6;
    --link-blue: #8ab4f8;
    --danger: #f87171;
    --stop: #d39893;
    --on-accent: #1c1c1c;
    --on-accent-2: #1c1c1c;
    --on-danger: #1c1c1c;
    --on-stop: #1c1c1c;
    --new: #0a84ff;
    --bsky-reply: #006aff;
    --bsky-repost: #09b35e;
    --bsky-like: #ec4899;
    --icon: #EAB83D;
    --score-strong: #2dd4bf;
    --score-good: #4ade80;
    --score-weak: #fb923c;
    --score-under: #f03e3e;
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1c1c;
  --surface: #242424;
  --raised: #3a3a3a;
  --surface-2: #2e2e2e;
  --ink: #f3f4f6;
  --ink-2: #a7abb2;
  --line: #3d3d3d;
  --accent: #eab83d;
  --accent-ink: #eab83d;
  --accent-ground: transparent;
  --accent-pad: 0;
  --chip-on: var(--raised);
  --chip-on-ink: var(--ink);
  --accent-2: #7f9480;
  --follow: #ff7a3d;
  --alo: #eab83d;
  --link: #f3f4f6;
  --link-blue: #8ab4f8;
  --danger: #f87171;
  --stop: #d39893;
  --on-accent: #1c1c1c;
  --on-accent-2: #1c1c1c;
  --on-danger: #1c1c1c;
  --on-stop: #1c1c1c;
  --new: #0a84ff;
  --bsky-reply: #006aff;
  --bsky-repost: #09b35e;
  --bsky-like: #ec4899;
  --icon: #EAB83D;
  --score-strong: #2dd4bf;
  --score-good: #4ade80;
  --score-weak: #fb923c;
  --score-under: #f03e3e;
}
/* WHITE — the light taken to the extreme: the ground full white, the text full black, the paper's warmth gone from every grey; a card is the ground's own white, its border what sets it apart */
:root[data-theme="white"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --raised: #ffffff;
  --surface-2: #e8e8e8;
  --ink: #000000;
  --ink-2: #6b6b6b;
  --line: #d5d5d5;
  --accent: #eab83d;
  --accent-ink: #000000;
  --accent-ground: #eab83d;
  --accent-pad: 0.15em;
  --chip-on: var(--surface-2);
  --chip-on-ink: var(--ink);
  --accent-2: #5f745f;
  --follow: #f26522;
  --link: #000000;
  --link-blue: #0b57d0;
  --danger: #dc2626;
  --stop: #e0a39e;
  --on-accent: #000000;
  --on-accent-2: #ffffff;
  --on-danger: #ffffff;
  --on-stop: #000000;
  --new: #007aff;
  --bsky-reply: #006aff;
  --bsky-repost: #09b35e;
  --bsky-like: #ec4899;
  --icon: #EAB83D;
  --score-strong: #0f766e;
  --score-good: #15803d;
  --score-weak: #c2410c;
  --score-under: #d11a1a;
}
/* BLACK — the dark taken to the extreme: the ground full black, the text full white, the surfaces and the border the dark's own, the second ink the dark's with its cool cast gone */
:root[data-theme="black"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #242424;
  --raised: #242424;
  --surface-2: #2e2e2e;
  --ink: #ffffff;
  --ink-2: #ababab;
  --line: #3d3d3d;
  --accent: #eab83d;
  --accent-ink: #eab83d;
  --accent-ground: transparent;
  --accent-pad: 0;
  --chip-on: var(--raised);
  --chip-on-ink: var(--ink);
  --accent-2: #7f9480;
  --follow: #ff7a3d;
  --alo: #eab83d;
  --link: #ffffff;
  --link-blue: #8ab4f8;
  --danger: #f87171;
  --stop: #d39893;
  --on-accent: #000000;
  --on-accent-2: #000000;
  --on-danger: #000000;
  --on-stop: #000000;
  --new: #0a84ff;
  --bsky-reply: #006aff;
  --bsky-repost: #09b35e;
  --bsky-like: #ec4899;
  --icon: #EAB83D;
  --score-strong: #2dd4bf;
  --score-good: #4ade80;
  --score-weak: #fb923c;
  --score-under: #f03e3e;
}
/* A PICTURE IN TWO LOOKS, a picture with a dark twin: both images drawn side by side in its place, `look-light` and `look-dark`, the look's own shown and the other not displayed — the look the root's, the account's choice in `data-theme`, light or white the light look and dark or black the dark, and with none the platform's own mode — so a flip of the look shows the other at once; a page draws both eager, since a lazy picture that is not displayed is never fetched */
:root[data-theme="light"] .look-dark, :root[data-theme="white"] .look-dark, :root[data-theme="dark"] .look-light, :root[data-theme="black"] .look-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .look-light { display: none; } }
@media not all and (prefers-color-scheme: dark) { :root:not([data-theme]) .look-dark { display: none; } }
