:root:root {
    /* frame-1 ground: warm paper body, white surfaces, ink text */
    --dcm-color-body-bg: #fbfaf4;
    --dcm-color-navbar-bg: #ffffff;
    --dcm-color-surface: #ffffff;
    --dcm-color-surface-hover: #f7f0df;
    --dcm-color-surface-muted: #f7f0df;
    --dcm-color-text-primary: #10100e;
    --dcm-color-text-secondary: rgba(16, 16, 14, 0.66);
    --dcm-color-border: rgba(16, 16, 14, 0.14);
    /* kill Dutchie default blue at BOTH layers, or the stock accent flashes */
    --dcm-color-primary: #ffaa00;
    --dct--customized-colors-buttonsLinks: #ffaa00;
    --dct--customized-colors-background: #fbfaf4;
    --dct--customized-colors-navBar: #fbfaf4;
    /* Work Sans is self-hosted and @font-face-injected by theme-wrapper; name
     * it here too so frame 1 does not measure text in a stock fallback and
     * then reflow when the real face lands. */
    --dct--customized-fonts-primary: 'Work Sans', 'Helvetica Neue', sans-serif;
    --dct--customized-fonts-secondary: 'Work Sans', 'Helvetica Neue', sans-serif;
    color-scheme: light;
  }

  /* Dark by OS preference until the remote reads localStorage.rushTheme. */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --dcm-color-body-bg: #080808;
      --dcm-color-navbar-bg: #15130f;
      --dcm-color-surface: #15130f;
      --dcm-color-surface-hover: #10100e;
      --dcm-color-surface-muted: #10100e;
      --dcm-color-text-primary: #fbfaf4;
      --dcm-color-text-secondary: rgba(251, 250, 244, 0.70);
      --dcm-color-border: rgba(255, 255, 255, 0.12);
      --dcm-color-primary: #ffaa00;
      --dct--customized-colors-buttonsLinks: #ffaa00;
      --dct--customized-colors-background: #080808;
      --dct--customized-colors-navBar: #080808;
      color-scheme: dark;
    }
  }

  /* The body itself, so the very first paint is the ground, not white. */
  body {
    background-color: #fbfaf4;
    color: #10100e;
  }
  @media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) body {
      background-color: #080808;
      color: #fbfaf4;
    }
  }