/*
  devanshu.wiki theme
  One file for colors and fonts, shared by every page. Link it before a page's own CSS:
    <link rel="stylesheet" href="/theme.css">
  To change the look of the whole site, edit only this file.

  Palette: "Ink & Signal" (default). Deep ink text, quiet blue-grey paper, one steel-blue
  accent. It reads as careful and technical, keeps red free for "wrong/fraud", and works in
  light and dark. Other palettes are at the bottom of this file: swap their values into the
  two blocks below to try one.

  Fonts: Newsreader for headings and reading text, IBM Plex Sans for labels and controls,
  JetBrains Mono for numbers and code. Each page loads them with this link:
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap">
*/

:root {
  /* Light */
  --bg: #F6F7F9;        /* page */
  --surface: #FFFFFF;   /* cards, demos */
  --ink: #14202E;       /* text */
  --muted: #5B6878;     /* secondary text */
  --rule: #DCE1E7;      /* borders, dividers */
  --link: #1D5F8A;      /* accent: links, buttons, highlights */
  --ok: #1F7A4D;        /* true / passed */
  --false: #B3362B;     /* false / fraud / failed */
  --open: #A86A00;      /* unknown / warning */

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Aliases, so pages written with other names still work */
  --font: var(--font-body);
  --line: var(--rule);
  --accent: var(--link);
  --display: var(--font-display);
  --body: var(--font-ui);
  --mono: var(--font-mono);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E141B;
    --surface: #16202B;
    --ink: #E6ECF2;
    --muted: #93A1B0;
    --rule: #2A3644;
    --link: #6FB3E0;
    --ok: #4CC38A;
    --false: #F07A6E;
    --open: #E8B04A;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0E141B;
  --surface: #16202B;
  --ink: #E6ECF2;
  --muted: #93A1B0;
  --rule: #2A3644;
  --link: #6FB3E0;
  --ok: #4CC38A;
  --false: #F07A6E;
  --open: #E8B04A;
  color-scheme: dark;
}

/*
  Other palettes (light / dark values for --bg, --surface, --ink, --muted, --rule, --link)

  Graphite & Amber: warm, confident, stands out from the usual blue tech sites.
    light: #F7F7F5 #FFFFFF #1B1B1F #66655F #E2E0DA #A35A12
    dark:  #121212 #1C1C1E #ECEAE4 #A3A099 #2E2D2A #E6A15C

  Forest Lab: calm, research-y, pairs well with charts.
    light: #F4F6F3 #FFFFFF #13221B #5A6B62 #D9E0DA #2F6B4F
    dark:  #0F1612 #17211B #E3ECE6 #94A69B #27352D #7CC4A0

  Classic Blue: the site's original look, brighter and more web-standard.
    light: #FFFFFF #FFFFFF #1A1C22 #5F6470 #E3E5EA #1E3FAE
    dark:  #14171D #1B1F27 #E8EAEF #9BA1AE #2A2F3A #8FA8FF
*/
