/* numal.ai in dark mode: used only when the visitor's system asks for dark (prefers-color-scheme: dark).
   Loaded by an @import at the top of page.css (every page but the homepage) and by a <link media> on the homepage,
   so it adds to the pages without changing them. Every rule starts with html:root, which outranks the same selector
   anywhere else, so the order it loads in does not matter.

   The same warm graphite world as the light pages: the page is a warm near-black, text is warm off-white, lines stay
   hairlines. Most colors on the site are tokens, so most of this file is the tokens; below them, the few places that
   set a color directly (white text on the ink button and the logo, a shadow, a dark brand mark).

   Checked: body text #ebeae6 on #191918 is 14.6:1, muted #9c9b95 is 6.3:1, faint #75746f is 3.8:1 (labels and
   hints only, as in light mode, where faint is 2.6:1). Tags keep their hue, with the ink light and the wash dark:
   each ink is 6:1 or more on its wash. */

html:root {
  color-scheme: dark;
  --bg: #191918; --tint: #1e1e1d; --stone: #252524; --stone-2: #2f2f2d;
  --fg: #ebeae6; --soft: #d6d5d0; --soft-2: #b1b0aa; --muted: #9c9b95; --faint: #75746f;
  --line: rgba(235, 234, 230, .1); --line-2: rgba(235, 234, 230, .18);
  --mark: #574a1d;
  --todo: #4a4945; --focus: #5aa2ea; --focus-ring: rgba(90, 162, 234, .32);
  --green-ink: #7fcb9c; --green-wash: #1c2b22; --green: #4fae7e;
  --blue-ink: #82b8f0; --blue-wash: #1a2737; --blue: #5a9fe6; --blue-line: #335f8c;
  --hl-task: rgba(110, 165, 230, .24);
  --q-a: #4f93dc; --q-a-hl: rgba(79, 147, 220, .24); --q-a-ring: rgba(79, 147, 220, .6); --q-a-wash: rgba(79, 147, 220, .08);
  --q-b: #cf7f2a; --q-b-hl: rgba(207, 127, 42, .24); --q-b-ring: rgba(207, 127, 42, .6); --q-b-wash: rgba(207, 127, 42, .08);
  --q-c: #bd63a7; --q-c-hl: rgba(189, 99, 167, .24); --q-c-ring: rgba(189, 99, 167, .6); --q-c-wash: rgba(189, 99, 167, .08);
  --amber: #e4b45e; --amber-bar: #d49a32; --amber-wash: #33291a;
  --red: #f0877e; --red-wash: #3b1f1d;
  /* a raised surface reads by a lighter edge and a deep shadow, not by a soft grey one */
  --paper: inset 0 1px 0 rgba(255, 255, 255, .03), 0 16px 36px -18px rgba(0, 0, 0, .7);
}

html:root ::selection { background: rgba(90, 162, 234, .34); }

/* the ink button and the logo square turn light, so their white text turns dark */
html:root .logo { color: var(--bg); }
html:root .btn.ink { color: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
html:root .btn.ink:hover { background: #ffffff; border-color: #ffffff; }
html:root .btn { box-shadow: none; }
html:root .bhub-tabs a[aria-current="page"] { color: var(--bg); }
html:root .sb-from .logo { color: var(--bg); }

/* panels that float over the page: one step lighter than the page, and a shadow deep enough to show on it */
html:root .dd { background: var(--tint); box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .75); }
html:root dialog.sb { background: var(--tint); }
html:root dialog.sb::backdrop { background: rgba(0, 0, 0, .62); }
html:root .cookie-note { background: var(--tint); box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .75); }
/* the board lanes on the homepage: a touch more tint, so each status still reads on the dark page */
html:root .col[data-status="todo"] { background: rgba(235, 234, 230, .05); }
html:root .col[data-status="progress"] { background: rgba(90, 159, 230, .11); }
html:root .col[data-status="done"] { background: rgba(79, 174, 126, .09); }
html:root .col h3::before { background: #77756f; }
html:root .col[data-status="progress"] h3::before { background: var(--blue); }
html:root .col[data-status="done"] h3::before { background: var(--green); }
html:root .card, html:root .chip, html:root .plan.rec, html:root .ask { box-shadow: none; }
html:root .ask:hover { border-color: rgba(235, 234, 230, .3); }
html:root .period button[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--line-2); }
/* the agents over MCP figure: the tiles lie flat like the other cards */
html:root .agents li { box-shadow: none; }

/* text that had its own color */
html:root .rec-tag { color: #f3dc8f; }
html:root .formnote.err { color: var(--red); }

/* the drawn faces are black lines on white paper, multiplied into their disc: the disc stays light, so the faces
   read as small light avatars instead of sinking into the dark */
html:root .face { background: #e4e2dc; }
html:root .face.bot, html:root .face.ag { background: #c9dcf2; }
/* the "+3" chips on pricing hold a number, not a drawing: they stay dark like the rest of the page */
html:root .face.more { background: var(--stone-2); }
html:root .face.more.ag { background: var(--blue-wash); }

/* app marks in their brand color: the near-black ones (GitHub, Notion, Zendesk, our own) take the text color,
   and the deep blue one takes its lighter shade */
html:root svg[style*="--c:#181717"], html:root svg[style*="--c:#000000"], html:root svg[style*="--c:#1d1c1a"],
html:root svg[style*="--c:#03363D"], html:root svg[style*="--c:#03363d"] { fill: var(--fg); }
html:root svg[style*="--c:#0052CC"], html:root svg[style*="--c:#0052cc"] { fill: #4c9aff; }
/* the deep Slack aubergine takes the text color, Outlook's blue its lighter shade */
html:root svg[style*="--c:#4A154B"] { fill: var(--fg); }
html:root svg[style*="--c:#0078D4"] { fill: #3a96dd; }
/* the heart in the footer's legal line, lighter on the dark page */
html:root .foot-base .heart { fill: #f0877e; }

/* 18.11 cards with covers (blog.css): the sheet is a lighter raised surface on its dark plate; the request card on /blog
   is a raised panel with a hairline, since a near-black card would vanish on the dark page */
html:root .posts a:hover { box-shadow: none; }
html:root .cv-guide { background: var(--tint); }
html:root .cv .sh { background: #272725; border-color: rgba(235, 234, 230, .08); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .7); }
html:root .posts a:hover .sh { box-shadow: 0 18px 32px -16px rgba(0, 0, 0, .8); }
html:root .cv .sh .pl:not(.ok):not(.wait):not(.on) { background: var(--stone-2); }
html:root .cta-in { background: var(--stone); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); }
html:root .posts .cta h3 { color: var(--fg); }
html:root .posts .cta h3 + p, html:root .posts .cta .assure, html:root .posts .cta .formnote:not(.err) { color: var(--soft-2); }
html:root .cta .ask { border-color: var(--line-2); }
html:root .cta .assure .ok { stroke: var(--green-ink); }
/* end 18.11 cards with covers */
